Skip to content

Support customizing Swarm handoff trigger beyond model-based function call #5931

@ekzhu

Description

@ekzhu

Confirmation

  • I confirm that I am a maintainer and so can use this template. If I am not, I understand this issue will be closed and I will be asked to use a different template.

Issue body

Currently handoff in AssistantAgent is through model-driven function call. The handoff is converted into a tool which the model can choose to call. We would like to be able to trigger handoff with a user-defined condition, which can take the input of the current model context or the latest model inference result.

This allows more robust handoff, especially when structured output is used.

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    proj-agentchatswarmRelated to the Swarm group chat pattern

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions