Skip to main content

Overview

The OpenAI Agents SDK can use AI Sonar through an OpenAI-compatible client and OpenAIChatCompletionsModel.
Type: Python Agent SDKPrimary Path: OpenAI-compatible chat completionsSupport Confidence: Supported chat-completions path

Environment

Example

Scope

This path uses Chat Completions compatibility. AI Sonar’s native Responses endpoint is available at https://api.aisonar.dev/v1/responses, but SDK features that depend on OpenAI-specific Responses semantics should be verified with the exact model and workflow before production use.