Skip to content

How to add messages to the conversation history #642

Closed as not planned
Closed as not planned
@muneebarshadd

Description

@muneebarshadd

Question

I am wondering how can I add a message to the conversation so the Agent has access to it?

My setup:

  • Agent A is the start agent. It hands it off to Agent B and call on_handoff function.
  • Inside the on_handoff function, I run another LLM call(Agent C) to rewrite the initial input. I want to run Agent B with the rewritten query
  • How can I add the output from Agent C to the conversation? Or is there a way to override the initial input with the response from Agent C?

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