Use Auriko as your LLM provider in the OpenAI Agents SDK. This integration is Python-only. For TypeScript, use the Vercel AI SDK integration.Documentation Index
Fetch the complete documentation index at: https://docs.auriko.ai/llms.txt
Use this file to discover all available pages before exploring further.
Requires
openai-agents >=0.13.Prerequisites
Install
Use AurikoAsyncOpenAI (experimental)
AurikoAsyncOpenAI (experimental) is an AsyncOpenAI subclass that captures routing metadata from every successful response. Pass it to OpenAIChatCompletionsModel via the openai_client= parameter:
Runner.run_sync() works the same way.
Configure routing
Pass routing options throughModelSettings.extra_body, not through the client.chat.completions.create() call:
ModelSettings.extra_body to the API call. RoutingOptions.to_extra_body() returns a dict the Auriko API accepts.
Access routing metadata
Readclient.last_routing_metadata after a run completes:
on_response callback:
TypeError.
Handle errors
AurikoAsyncOpenAI raises errors catchable as both Auriko and OpenAI error types:
openai.RateLimitError.
Network-layer exceptions (openai.APITimeoutError, openai.APIConnectionError) propagate unchanged.
Mid-stream SSE errors (raised after the HTTP 200 during
stream=True) remain unmapped openai.APIError. AurikoAsyncOpenAI maps HTTP-level status errors only.AurikoAsyncOpenAI.
Configure manually
Alternative: configure OpenAI Agents SDK manually
Alternative: configure OpenAI Agents SDK manually
If you prefer to configure the SDK’s client directly, without the Auriko integration:
set_default_openai_api("chat_completions") is the default for the Agents SDK. Chat Completions streaming includes routing_metadata in the response. /v1/responses streaming does not include routing_metadata yet.