Azure / Azure/azure-sdk-for-python

AI search could not work together with MCP tools

Ouverte
#42,998 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
AI Client customer-reported needs-team-attention question Service Attention
Langage dominant
Python
Étoiles
5.6k
Forks
3.4k
Merge moyen
2 j 2 h
PR mergées (30 j)
213

Description

- **Package Name**: azure-ai-agents
- **Package Version**: 1.2.0b3
- **Operating System**: Windows
- **Python Version**: 3.11.9

**Describe the bug**
AI search could not work when work with MCP tools. Below are the scenarios I tried.

1. Use AI search sample to create a new agent with AI search configured.
AI search tool works correctly

2. Use the same agent with AI search configured and pass MCP tools via AgentsClient.runs.stream().
MCP tools work correctly but AI search doesn't work

3. Use the same agent with AI search and pass MCP tools along with AI search tool via AgentsClient.runs.stream().
Both of MCP tools and AI search work correctly.

4. Use an agent without AI search configured and pass AI search tool via AgentsClient.runs.stream().
AI search doesn't work.

**To Reproduce**
Steps to reproduce the behavior:
See the above scenario descriptions.

**Expected behavior**
A clear and concise description of what you expected to happen.
If AI search is configured for an agent, it should also work when MCP tools are passed for a run.
If AI search is not configured for and agent, it should also work when pass AI search tool via AgentsClient.runs.stream().

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Additional context**
Add any other context about the problem here.

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par reproduire les quatre scénarios avec azure-ai-agents 1.2.0b3, en vous concentrant sur AgentsClient.runs.stream() et sur l’interaction entre AI search et MCP tools. C’est terminé lorsque AI search fonctionne à la fois lorsqu’il est configuré sur un agent et lorsqu’il est transmis pour une exécution, y compris les exécutions qui reçoivent également des MCP tools.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
python
Domaine
ai, api
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.