Skip to content

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

Closed

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

Activity

  1. changed the title [-]Bug: Azure AI agent stuck in an infinite loop when tools not found[/-] [+]Python: Bug: Azure AI agent stuck in an infinite loop when tools not found[/+] on May 19, 2025
  2. added a commit that references this issue on May 19, 2025
    c64e51c
  3. added a commit that references this issue on Sep 15, 2025
    a62c048
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

agentsbugSomething isn't workingpythonPull requests for the Python Semantic Kernel

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions