Python: Added Azure OpenAI Responses File Search sample + Integration test update#2645
Merged
eavanvalkenburg merged 2 commits intomicrosoft:mainfrom Dec 5, 2025
Merged
Conversation
Member
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a new Azure OpenAI File Search sample that demonstrates using HostedFileSearchTool with the Azure OpenAI Responses Client. It also updates integration tests to remove skip markers now that file search supports TokenCredential authentication.
- Adds a new sample demonstrating document-based question answering with file search
- Updates integration tests to enable file search tests that were previously skipped
- Corrects test comments to accurately describe file search functionality
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| python/samples/getting_started/agents/azure_openai/azure_responses_client_with_file_search.py | New sample demonstrating Azure OpenAI Responses Client with HostedFileSearchTool for document-based question answering, including vector store creation and cleanup |
| python/samples/getting_started/agents/azure_openai/README.md | Adds entry to the samples table documenting the new file search sample |
| python/packages/core/tests/azure/test_azure_responses_client.py | Removes skip markers from file search tests now that TokenCredential is supported, and fixes comment from "web search" to "file search" |
python/samples/getting_started/agents/azure_openai/azure_responses_client_with_file_search.py
Outdated
Show resolved
Hide resolved
dmytrostruk
approved these changes
Dec 5, 2025
eavanvalkenburg
approved these changes
Dec 5, 2025
arisng
pushed a commit
to arisng/agent-framework
that referenced
this pull request
Feb 2, 2026
… test update (microsoft#2645) * added azure responses file search sample + int test update * sample update to use token credential
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
Adds Azure OpenAI File Search sample and update integration tests because the file search feature now supports TokenCredential
Resolves #750
Description
Contribution Checklist