Skip to content

Python: AzureAI Agent AI Search Sample - #1281

Merged
Giles Odigwe (giles17) merged 2 commits into
microsoft:mainfrom
giles17:azure_ai_search_sample
Oct 8, 2025
Merged

Python: AzureAI Agent AI Search Sample#1281
Giles Odigwe (giles17) merged 2 commits into
microsoft:mainfrom
giles17:azure_ai_search_sample

Conversation

@giles17

@giles17 Giles Odigwe (giles17) commented Oct 7, 2025

Copy link
Copy Markdown
Contributor

Motivation and Context

Should resolve #1214 #1175

Description

Contribution Checklist

  • The code builds clean without any errors or warnings
  • The PR follows the Contribution Guidelines
  • All unit tests pass, and I have added new tests where possible
  • Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR.

Copilot AI review requested due to automatic review settings October 7, 2025 23:00
@markwallace-microsoft Mark Wallace (markwallace-microsoft) added documentation Usage: [Issues, PRs], Target: documentation in the code base and learn docs python Usage: [Issues, PRs], Target: Python labels Oct 7, 2025
@github-actions github-actions Bot changed the title AzureAI Agent Sample Python: AzureAI Agent Sample Oct 7, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new Azure AI agent sample demonstrating integration with Azure AI Search capabilities. The sample shows how to create agents that can search through indexed data using the HostedFileSearchTool with Azure AI Search configuration.

  • Adds a new sample file showing Azure AI Search integration with agents
  • Updates the README to document the new sample
  • Fixes a bug in the Azure AI agent client where tool resources weren't properly configured for Azure AI Search

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
azure_ai_with_azure_ai_search.py New sample demonstrating Azure AI Search integration with agents for querying hotel data
README.md Added documentation entry for the new Azure AI Search sample
_chat_client.py Fixed missing tool resources configuration for Azure AI Search functionality

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread python/samples/getting_started/agents/azure_ai/azure_ai_with_azure_ai_search.py Outdated
Comment thread python/packages/azure-ai/agent_framework_azure_ai/_chat_client.py
@markwallace-microsoft

Mark Wallace (markwallace-microsoft) commented Oct 7, 2025

Copy link
Copy Markdown
Contributor

Python Test Coverage

Python Test Coverage Report •
FileStmtsMissCoverMissing
packages/azure-ai/agent_framework_azure_ai
   _chat_client.py3656981%235, 240, 262–265, 269–270, 272, 346, 418, 487–488, 490–491, 499, 511–513, 517–519, 527–530, 540, 548–553, 560, 568–569, 577–578, 583–584, 588–595, 600–601, 609, 615, 623–625, 628, 683, 712–714, 717–718, 733, 738, 777–778, 912–913, 915
TOTAL10311173883% 

Python Unit Test Overview

Tests Skipped Failures Errors Time
1254 98 💤 0 ❌ 0 🔥 26.445s ⏱️

@giles17 Giles Odigwe (giles17) changed the title Python: AzureAI Agent Sample Python: AzureAI Agent AI Search Sample Oct 8, 2025
@giles17
Giles Odigwe (giles17) added this pull request to the merge queue Oct 8, 2025
Merged via the queue into microsoft:main with commit 334d52f Oct 8, 2025
21 checks passed
Reuben Bond (ReubenBond) pushed a commit to ReubenBond/agent-framework that referenced this pull request Oct 28, 2025
* azure ai search sample

* small fix
Aris Nguyen (arisng) pushed a commit to arisng/agent-framework that referenced this pull request Feb 2, 2026
* azure ai search sample

* small fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Usage: [Issues, PRs], Target: documentation in the code base and learn docs python Usage: [Issues, PRs], Target: Python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Python: Provide sample or path for using Azure AI Search as a Tool in Agentic Framework (Python)

6 participants