Python: renamed ai search and cleanup of samples and unified import logic#2369
Merged
eavanvalkenburg merged 4 commits intomicrosoft:mainfrom Nov 24, 2025
Merged
Conversation
Member
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR renames the AI Search package from agent-framework-aisearch to agent-framework-azure-ai-search for consistency with the naming convention used by other Azure packages. It also unifies the import logic across all packages by separating the import path from the package name and standardizing error messages.
- Renamed package from
agent-framework-aisearchtoagent-framework-azure-ai-search - Updated all imports to use unified
agent_framework.azurenamespace - Standardized import error handling with separate IMPORT_PATH and PACKAGE_NAME constants
Reviewed Changes
Copilot reviewed 32 out of 35 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
python/pyproject.toml |
Updated workspace dependency from agent-framework-aisearch to agent-framework-azure-ai-search |
python/packages/core/pyproject.toml |
Updated all extra dependency reference to use new package name |
python/packages/azure_ai_search/pyproject.toml |
Renamed package from agent-framework-aisearch to agent-framework-azure-ai-search and updated test/lint targets |
python/packages/azure_ai_search/README.md |
Updated installation instructions with new package name |
python/packages/azure_ai_search/LICENSE |
Added MIT license file |
python/packages/azure_ai_search/agent_framework_azure_ai_search/__init__.py |
Added package initialization with version detection |
python/packages/azure_ai_search/agent_framework_azure_ai_search/_search_provider.py |
Moved module docstring (incorrectly placed after imports) |
python/packages/azure_ai_search/tests/test_search_provider.py |
Updated all patch decorators and imports from agent_framework_aisearch to agent_framework_azure_ai_search |
python/samples/getting_started/context_providers/simple_context_provider.py |
Updated import to use AzureAIClient and improved string formatting |
python/samples/getting_started/context_providers/azure_ai_search/azure_ai_with_search_context_semantic.py |
Unified imports to use agent_framework.azure namespace |
python/samples/getting_started/context_providers/azure_ai_search/azure_ai_with_search_context_agentic.py |
Unified imports to use agent_framework.azure namespace |
python/samples/getting_started/context_providers/azure_ai_search/README.md |
Added comprehensive documentation for Azure AI Search context provider examples |
python/samples/getting_started/context_providers/README.md |
Added overview documentation for all context providers |
python/samples/getting_started/agents/azure_ai/README.md |
Updated file paths to point to relocated search context samples |
python/packages/core/agent_framework/azure/__init__.py |
Updated import mappings to use new package name and separated import path from package name |
python/packages/core/agent_framework/azure/__init__.pyi |
Added type stubs for AzureAISearchContextProvider and AzureAISearchSettings |
python/packages/core/agent_framework/redis/__init__.py |
Standardized import logic with IMPORT_PATH and PACKAGE_NAME separation |
python/packages/core/agent_framework/redis/__init__.pyi |
Reformatted imports and all list |
python/packages/core/agent_framework/microsoft/__init__.py |
Simplified import dictionary from tuple of list to tuple of two strings |
python/packages/core/agent_framework/microsoft/__init__.pyi |
Reformatted imports |
python/packages/core/agent_framework/mem0/__init__.py |
Standardized import logic with IMPORT_PATH and PACKAGE_NAME separation |
python/packages/core/agent_framework/mem0/__init__.pyi |
Reformatted imports and all list |
python/packages/core/agent_framework/devui/__init__.py |
Standardized import logic with IMPORT_PATH and PACKAGE_NAME separation |
python/packages/core/agent_framework/devui/__init__.pyi |
Added blank line after copyright |
python/packages/core/agent_framework/chatkit/__init__.py |
Standardized import logic with IMPORT_PATH and PACKAGE_NAME separation |
python/packages/core/agent_framework/chatkit/__init__.pyi |
Reformatted all list |
python/packages/core/agent_framework/anthropic/__init__.py |
Standardized import logic with IMPORT_PATH and PACKAGE_NAME separation |
python/packages/core/agent_framework/anthropic/__init__.pyi |
Reformatted imports and all list |
python/packages/core/agent_framework/ag_ui/__init__.py |
Standardized import logic with IMPORT_PATH and PACKAGE_NAME separation |
python/packages/core/agent_framework/a2a/__init__.py |
Standardized import logic with IMPORT_PATH and PACKAGE_NAME separation |
python/packages/core/agent_framework/a2a/__init__.pyi |
Reformatted imports and all list |
python/packages/core/agent_framework/openai/_shared.py |
Simplified all list formatting |
python/packages/core/agent_framework/_workflows/__init__.pyi |
Deleted type stub file (appears to be out of sync with .py file) |
python/.cspell.json |
Added "azurefunctions" to spell check dictionary |
Comments suppressed due to low confidence (1)
python/packages/azure_ai_search/agent_framework_azure_ai_search/_search_provider.py:113
- Module docstring should be at the top of the file (after copyright notice), not here after imports. Module docstrings need to be the first statement in a module to be recognized by Python documentation tools and IDEs.
dmytrostruk
approved these changes
Nov 21, 2025
moonbox3
reviewed
Nov 24, 2025
python/packages/azure-ai-search/agent_framework_azure_ai_search/_search_provider.py
Show resolved
Hide resolved
696132e to
233681a
Compare
giles17
approved these changes
Nov 24, 2025
arisng
pushed a commit
to arisng/agent-framework
that referenced
this pull request
Feb 2, 2026
…ogic (microsoft#2369) * renamed ai search and cleanup of samples and unified import logic * fixed error messages * fixed folder name * remove old samples from readme
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation and Context
Updated aisearch package to use the already registered
agent-framework-azure-ai-searchUpdated the samples for it and moved them to the context_providers folder
Maintenance on all the import code, which still had some extra language which we no longer use.
Description
Contribution Checklist