# AGENTS.md — agent-framework-openai OpenAI integration package for Agent Framework. Contains OpenAI Responses API and Chat Completions API clients. ## Package Structure ``` agent_framework_openai/ ├── __init__.py # Public API exports ├── _chat_client.py # OpenAIChatClient (Responses API) + RawOpenAIChatClient ├── _chat_completion_client.py # OpenAIChatCompletionClient (Chat Completions API) + RawOpenAIChatCompletionClient ├── _embedding_client.py # OpenAIEmbeddingClient ├── _exceptions.py # OpenAI-specific exceptions ├── _shared.py # OpenAIBase, OpenAIConfigMixin, OpenAISettings ├── _assistants_client.py # OpenAIAssistantsClient (DEPRECATED) └── _assistant_provider.py # OpenAIAssistantProvider (DEPRECATED) ``` ## Key Classes | Class | API | Status | |---|---|---| | `OpenAIChatClient` | Responses API | Primary | | `OpenAIChatCompletionClient` | Chat Completions API | Primary | | `OpenAIEmbeddingClient` | Embeddings API | Primary | | `OpenAIAssistantsClient` | Assistants API | Deprecated | All clients follow the Raw + Full-Featured pattern (e.g., `RawOpenAIChatClient` + `OpenAIChatClient`). The generic OpenAI clients support both OpenAI and Azure OpenAI routing. Precedence is: explicit Azure inputs (`credential`, `azure_endpoint`, `api_version`) → OpenAI API key (`OPENAI_API_KEY`) → Azure environment fallback (`AZURE_OPENAI_*`). ## Dependencies - `agent-framework-core` — core abstractions - `openai` — OpenAI Python SDK - `packaging` — version checking