Azure / Azure/azure-sdk-for-python
azure.ai.agents -> AgentsClient Class -> "type": "knowledge" instead of "type": "function"
- Lingua principale
- Python
- Stelle
- 5.6k
- Fork
- 3.4k
- Merge medio
- 2g 2h
- PR unite (30g)
- 213
Descrizione
- **azure-ai-agents**:
- **1.1**:
- **Linux**:
- **3.13**:
**Describe the bug**
azure.ai.agents -> AgentsClient Class -> enable_auto_function_calls is calling "type": "knowledge" tool instead of "type": "function"
I have seen this in the Internet already but not sure if this was reported by anyone here as well. I got today a few times response like below but before it was always "type":"function" which works fine. No idea why now Azure AI Foundry started calling "knowledge" when it is not even imported and return just (data: {"event_type": "thread.run.completed",) after it without any message.
from azure.ai.agents.models import FunctionTool, ToolSet
functions = FunctionTool(user_functions)
toolset = ToolSet()
toolset.add(functions)
data: {"type": "tool_calls", "step_id": " ....... "tool_calls": [{"_data": {"id": "call_Do8FyDBiajUrga7gLOX0SbJk", "type": "**knowledge**", "tool_call": {"arguments":
data: {"event_type": "thread.run.completed",
data: {"event_type": "done",
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia con il percorso azure.ai.agents AgentsClient enable_auto_function_calls e la configurazione FunctionTool/ToolSet mostrata. Riproduci la risposta tool_calls segnalata e verifica se il tipo di strumento emesso è knowledge invece di function e se un messaggio segue thread.run.completed.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- azure, python
- Ambito
- ai, api
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100