Skip to content

Major issue with agent handoff #82

@ozuromo

Description

@ozuromo

This is not really a problem with the example but a problem with handoffs, but I will use one of the provided examples to showcase the bug.

Take for example the flight_assistant agent, if you ask to book a flight AND a hotel on the same message, as soon as you send the required data for the search_flights tool, the LLM will call both search_flights and transfer_to_hotel_assistant at the same time, causing the bug, because handoff tools are not really "prepared" to be called together with other tools.

This problem can also lead to infinite loops because the output of the non-handoff tool gets ignored when called together with a handoff tool.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions