Skip to content

Python: Bug: Azure AI agent stuck in an infinite loop when tools not found #12177

@TaoChenOSU

Description

@TaoChenOSU

Describe the bug
An Azure AI agent will enter an infinite loop when a tool is not found in the kernel.

To Reproduce

  1. Created a regular agent, with functions, in Foundry through the SDK (azure.ai.projects)
  2. Referenced this agent from Semantic Kernel as follows:
agent_definition = await client.agents.get_agent("...")
sk_agent = AzureAIAgent(client = client, definition = agent_definition, plugins = [])

The plugins argument is set to an empty list intentionally because the tools are in the agent definition.

Expected behavior
Semantic Kernel Azure AI agent should throw if a tool is not found.

Screenshots
Image

Platform

  • Language: Python

Metadata

Metadata

Assignees

Labels

agentsbugSomething isn't workingpythonPull requests for the Python Semantic Kernel

Type

Projects

Status

Bug

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions