Skip to content

How to add messages to the conversation history #642

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
muneebarshadd opened this issue May 2, 2025 · 0 comments
Open

How to add messages to the conversation history #642

muneebarshadd opened this issue May 2, 2025 · 0 comments
Labels
question Question about using the SDK

Comments

@muneebarshadd
Copy link

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?
@muneebarshadd muneebarshadd added the question Question about using the SDK label May 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question about using the SDK
Projects
None yet
Development

No branches or pull requests

1 participant