semantic-kernel
semantic-kernel copied to clipboard
Python: Bug: Agent in Handoff tries to hand off to multiple agents in parallel
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
This issue is stale because it has been open for 90 days with no activity.