From 7a968383948ad0ffd549ccf689e6aae2dcb50e66 Mon Sep 17 00:00:00 2001 From: AAliKKhan Date: Fri, 17 Jul 2026 21:05:24 +0500 Subject: [PATCH 1/3] 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/3] 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/3] 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"]