semantic-kernel icon indicating copy to clipboard operation
semantic-kernel copied to clipboard

Python: Bug: Agent in Handoff tries to hand off to multiple agents in parallel

Open TaoChenOSU opened this issue 9 months ago • 1 comments

Describe the bug When an agent supports parallel function calling, it may try to hand off to multiple agents at the same time.

This behavior is not obvious and difficult to detect. Depending on the order in which handoff functions are executed, the target agent is set by the last function, so no error will be raised.

To Reproduce Running a handoff orchestration in debug mode with a break point in the agent response. If you're lucky, you will see the agent returns multiple handoff function calls.

Expected behavior The agent should only hand off to one agent at a time.

Platform

  • Language: Python

TaoChenOSU avatar Jul 21 '25 16:07 TaoChenOSU

This issue is stale because it has been open for 90 days with no activity.

github-actions[bot] avatar Oct 23 '25 02:10 github-actions[bot]