code-docs/plugins/connections/openai.md
OpenAI connection and OpenAIAgent resolver for GPT models.
Provides the OpenAI connection type (AI SDK provider) and OpenAIAgent agent type for Lowdefy's agent system.
Creates an OpenAI AI SDK provider instance.
Properties:
apiKey (required) — OpenAI API keySchema: src/connections/OpenAI/schema.js
Resolver that delegates to handleAgentChat from @lowdefy/ai-utils with OpenAI-specific provider options.
Provider-specific properties:
reasoningEffort — Reasoning effort for o-series modelsreasoningSummary — Summary of reasoning chainThese are mapped to providerOptions.openai before calling handleAgentChat.
Schema: Extends AISDKAgentSchema with reasoningEffort, reasoningSummary, and pageContext.
connections — { OpenAI: { schema, create } }agents — { OpenAIAgent: { schema, resolver } }types — Type registry for plugin system| File | Purpose |
|---|---|
src/connections/OpenAI/OpenAI.js | Connection factory |
src/connections/OpenAI/OpenAIAgent/OpenAIAgent.js | Agent resolver |
src/connections/OpenAI/OpenAIAgent/schema.js | Agent-specific schema |
src/connections/OpenAI/schema.js | Connection schema |