Skip to content

'handoffs' and 'agent.as_tool' have different performances. #224

Open
@huangbhan

Description

@huangbhan

hi, I created a query_agent that can invoke tools. There is also an assistants_agent that has control over the conversation.

If I use handoffs = [query_agent] in the assistants_agent, it can invoke tools well and pass the correct parameters, but this causes the assistants_agent to lose control of the conversation.

I tried using tools = [query_agent.as_tool] in the assistants_agent, but the performance of invoking tools deteriorated, and the parameters passed were not always correct.

Is this normal? How can I solve it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionQuestion about using the SDK

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions