From 02685fc2fabf5ef949004b39bceb0f76a8e98b0b Mon Sep 17 00:00:00 2001 From: aifanatic Date: Wed, 21 Oct 2026 09:27:19 -0500 Subject: [PATCH] Python: fix run commands that reference missing sample files The Azure AI Search context provider README told readers to run azure_ai_with_search_context_{semantic,agentic}.py, and the agentic sample's docstring pointed to the old semantic filename; the files are search_context_{semantic,agentic}.py. The declarative agents README listed openai_responses_agent.py, but the sample is openai_agent.py. Co-Authored-By: Claude Opus 5.5 --- .../02-agents/context_providers/azure_ai_search/README.md | 4 ++-- .../azure_ai_search/search_context_agentic.py | 2 +- python/samples/02-agents/declarative/README.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/python/samples/02-agents/context_providers/azure_ai_search/README.md b/python/samples/02-agents/context_providers/azure_ai_search/README.md index bd03eb1066a..92645b4339d 100644 --- a/python/samples/02-agents/context_providers/azure_ai_search/README.md +++ b/python/samples/02-agents/context_providers/azure_ai_search/README.md @@ -211,10 +211,10 @@ async with Agent( 4. **Run the examples**: ```bash # Semantic mode (fast, simple) - python azure_ai_with_search_context_semantic.py + python search_context_semantic.py # Agentic mode (intelligent, complex) - python azure_ai_with_search_context_agentic.py + python search_context_agentic.py ``` ## Key Parameters diff --git a/python/samples/02-agents/context_providers/azure_ai_search/search_context_agentic.py b/python/samples/02-agents/context_providers/azure_ai_search/search_context_agentic.py index b7fcd5624ec..5a0718fc4e6 100644 --- a/python/samples/02-agents/context_providers/azure_ai_search/search_context_agentic.py +++ b/python/samples/02-agents/context_providers/azure_ai_search/search_context_agentic.py @@ -23,7 +23,7 @@ - Slightly slower with more token consumption for query planning - See: https://techcommunity.microsoft.com/blog/azure-ai-foundry-blog/foundry-iq-boost-response-relevance-by-36-with-agentic-retrieval/4470720 -For simple queries where speed is critical, use semantic mode instead (see azure_ai_with_search_context_semantic.py). +For simple queries where speed is critical, use semantic mode instead (see search_context_semantic.py). Prerequisites: 1. An Azure AI Search service diff --git a/python/samples/02-agents/declarative/README.md b/python/samples/02-agents/declarative/README.md index 85c191d532f..8ef8ab19fd5 100644 --- a/python/samples/02-agents/declarative/README.md +++ b/python/samples/02-agents/declarative/README.md @@ -257,7 +257,7 @@ python get_weather_agent.py python microsoft_learn_agent.py python inline_yaml.py python azure_openai_responses_agent.py -python openai_responses_agent.py +python openai_agent.py ``` ## Learn More