Creates an instance of the OpenAIAdapter.
Configuration options including the API key and optional model/baseURL/defaults.
ReadonlyproviderThe unique identifier name for this provider (e.g., 'openai', 'anthropic').
Sends a request to the OpenAI Responses API.
Translates ArtStandardPrompt to the Responses API format and handles streaming/reasoning.
The standardized prompt messages.
Call options, including streaming, reasoning options, and model parameters.
A promise resolving to an AsyncIterable of StreamEvent objects.
Optional: Method for graceful shutdown
Implements the
ProviderAdapterinterface for interacting with OpenAI's Responses API (supports reasoning models like GPT-5 family and other models).Handles formatting requests, parsing responses, streaming, reasoning token detection, and tool use. Uses the official OpenAI SDK with the new Responses API for full reasoning model support.
See