From 7a968383948ad0ffd549ccf689e6aae2dcb50e66 Mon Sep 17 00:00:00 2001 From: AAliKKhan Date: Fri, 17 Jul 2026 21:05:24 +0500 Subject: [PATCH 1/8] Update tools.md --- docs/tools.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tools.md b/docs/tools.md index eb05075fa0..92664b731b 100644 --- a/docs/tools.md +++ b/docs/tools.md @@ -745,8 +745,8 @@ orchestrator = Agent( ) async def main(): - context = RunContextWrapper(LanguageContext(language_preference="french_spanish")) - result = await Runner.run(orchestrator, "How are you?", context=context.context) + context = LanguageContext(language_preference="french_spanish") + result = await Runner.run(orchestrator, "How are you?", context=context) print(result.final_output) asyncio.run(main()) From 660bee2a4bc3c0510092c18ac1409fd16ac513bf Mon Sep 17 00:00:00 2001 From: AAliKKhan Date: Fri, 17 Jul 2026 21:21:52 +0500 Subject: [PATCH 2/8] Update agents.md --- docs/agents.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/agents.md b/docs/agents.md index 763c1065ee..ca07a3e0df 100644 --- a/docs/agents.md +++ b/docs/agents.md @@ -45,7 +45,7 @@ The most common properties of an agent are: | `reset_tool_choice` | no | Reset `tool_choice` after a tool call (default: `True`) to avoid tool-use loops. See [Forcing tool use](#forcing-tool-use). | ```python -from agents import Agent, ModelSettings, function_tool +from agents import Agent, function_tool @function_tool def get_weather(city: str) -> str: From 681d0de09139cbf97b2ad5d297600679b8083adf Mon Sep 17 00:00:00 2001 From: AAliKKhan Date: Mon, 20 Jul 2026 02:31:48 +0500 Subject: [PATCH 3/8] Update tracing.md --- docs/tracing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tracing.md b/docs/tracing.md index b2b50517a4..ad73c68329 100644 --- a/docs/tracing.md +++ b/docs/tracing.md @@ -164,7 +164,7 @@ You can use an OpenAI API key with non-OpenAI models to enable free tracing in t ```python import os -from agents import set_tracing_export_api_key, Agent, Runner +from agents import set_tracing_export_api_key, Agent from agents.extensions.models.any_llm_model import AnyLLMModel tracing_api_key = os.environ["OPENAI_API_KEY"] From 70927e10642aa5399e1e6f7c3883b2e401090fb1 Mon Sep 17 00:00:00 2001 From: AAliKKhan Date: Mon, 20 Jul 2026 02:50:06 +0500 Subject: [PATCH 4/8] Update index.md --- docs/models/index.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/models/index.md b/docs/models/index.md index b2625d973f..edb8c2228b 100644 --- a/docs/models/index.md +++ b/docs/models/index.md @@ -322,7 +322,9 @@ You can integrate other LLM providers with these built-in paths: In cases where you do not have an API key from `platform.openai.com`, we recommend disabling tracing via `set_tracing_disabled()`, or setting up a [different tracing processor](../tracing.md). ``` python -from agents import Agent, AsyncOpenAI, OpenAIChatCompletionsModel, set_tracing_disabled +from openai import AsyncOpenAI + +from agents import Agent, OpenAIChatCompletionsModel, set_tracing_disabled set_tracing_disabled(disabled=True) @@ -349,7 +351,9 @@ Within a single workflow, you may want to use different models for each agent. F While our SDK supports both the [`OpenAIResponsesModel`][agents.models.openai_responses.OpenAIResponsesModel] and the [`OpenAIChatCompletionsModel`][agents.models.openai_chatcompletions.OpenAIChatCompletionsModel] shapes, we recommend using a single model shape for each workflow because the two shapes support a different set of features and tools. If your workflow requires mixing and matching model shapes, make sure that all the features you're using are available on both. ```python -from agents import Agent, Runner, AsyncOpenAI, OpenAIChatCompletionsModel +from openai import AsyncOpenAI + +from agents import Agent, Runner, OpenAIChatCompletionsModel import asyncio spanish_agent = Agent( From b6f00ef61eff2d76c9acc46f13c3cc32d2dcbd31 Mon Sep 17 00:00:00 2001 From: AAliKKhan Date: Mon, 20 Jul 2026 03:03:55 +0500 Subject: [PATCH 5/8] Update quickstart.md --- docs/voice/quickstart.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/voice/quickstart.md b/docs/voice/quickstart.md index cd9126447e..7aa817f6cd 100644 --- a/docs/voice/quickstart.md +++ b/docs/voice/quickstart.md @@ -132,7 +132,6 @@ import sounddevice as sd from agents import ( Agent, function_tool, - set_tracing_disabled, ) from agents.voice import ( AudioInput, From 9f26dd76996323680223425ba4381da47c2437e7 Mon Sep 17 00:00:00 2001 From: AAliKKhan Date: Mon, 20 Jul 2026 03:24:40 +0500 Subject: [PATCH 6/8] Update agents.md --- docs/agents.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/agents.md b/docs/agents.md index ca07a3e0df..61857d70da 100644 --- a/docs/agents.md +++ b/docs/agents.md @@ -351,7 +351,7 @@ The `tool_use_behavior` parameter in the `Agent` configuration controls how tool - `"stop_on_first_tool"`: The output of the first tool call is used as the final response, without further LLM processing. ```python -from agents import Agent, Runner, function_tool, ModelSettings +from agents import Agent, Runner, function_tool @function_tool def get_weather(city: str) -> str: From 0b3fe68bcc2d599cab8abd9dd78013f1b13a5185 Mon Sep 17 00:00:00 2001 From: AAliKKhan Date: Mon, 20 Jul 2026 03:29:24 +0500 Subject: [PATCH 7/8] Update agents.md --- docs/agents.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/agents.md b/docs/agents.md index 61857d70da..ca07a3e0df 100644 --- a/docs/agents.md +++ b/docs/agents.md @@ -351,7 +351,7 @@ The `tool_use_behavior` parameter in the `Agent` configuration controls how tool - `"stop_on_first_tool"`: The output of the first tool call is used as the final response, without further LLM processing. ```python -from agents import Agent, Runner, function_tool +from agents import Agent, Runner, function_tool, ModelSettings @function_tool def get_weather(city: str) -> str: From fabba3fccd7eedb622388d28819c2913a92c112e Mon Sep 17 00:00:00 2001 From: AAliKKhan Date: Mon, 20 Jul 2026 03:36:04 +0500 Subject: [PATCH 8/8] Update index.md --- docs/models/index.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/models/index.md b/docs/models/index.md index edb8c2228b..daa78f8b5d 100644 --- a/docs/models/index.md +++ b/docs/models/index.md @@ -322,9 +322,7 @@ You can integrate other LLM providers with these built-in paths: In cases where you do not have an API key from `platform.openai.com`, we recommend disabling tracing via `set_tracing_disabled()`, or setting up a [different tracing processor](../tracing.md). ``` python -from openai import AsyncOpenAI - -from agents import Agent, OpenAIChatCompletionsModel, set_tracing_disabled +from agents import Agent, AsyncOpenAI, OpenAIChatCompletionsModel, set_tracing_disabled set_tracing_disabled(disabled=True)