Skip to content

agent output format and handoff stability #568

Closed
@pandababyer

Description

@pandababyer

Please read this first

  • Have you read the docs?Agents SDK docs YES
  • Have you searched for related issues? Others may have had similar requests YES

Question

Hi, thanks for the great job!

In my situation, user chat with assistant agent and when assistant agent collect enough information, it will send a message like "hold on, i will back soon", at the same time, hand off to a search agent, the search agent finish rest task. here is my question:

  1. the assistant agent can't guarantee send a message and handoff to the search agent. it usually send a message " hold on ..." but not hand off to search agent or direct handoff to search agent without send a message

  2. sometime, the assistant agent will generate a message "hold on ..." and "transfer_to_search_agent..." to the user, which is not right. I hope "transfer_to_search_agent..." will never show to the user because it's work mechanism of my multi-agent system.

I have try to write the rule in my prompt and strict output_type of assistant agent, but still failed.

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