Skip to content

How to use on_handoff content in the agent #627

Closed as not planned
Closed as not planned
@muneebarshadd

Description

@muneebarshadd

Please read this first

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

Question

My setup:

  • Agent A is handling a task.
  • Agent A calls on_handoff to hand off the task to Agent B.
  • Inside the on_handoff function, I run another Agent C and gets it output. I want to add the output to the message history
  • You want Agent B to have access to the output from Agent C.

Is there a way to do this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionQuestion about using the SDKstale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions