Closed
Description
Hi there. Congrats on the new launches, really cool stuff!
I have a couple of questions (too lazy to dig in the source code to figure it out, so please bear with me):
- Are agents stateful or stateless by default? Do they preserve conversation history or should we handle this ourselves?
- When delegating to the handoff agents, will the conversation history be forwarded to those agents as is or will it be modified? (e.g. will the handoff tool call be in the history that the target agent receives). Asking this because I have experience building a custom handoff feature with the gpt-3.5-turbo family of models (back in ancient times lol) and I remember passing the entire conversation history between agents caused the model to hallucinate new functions (by for example, calling functions of other agents, etc)
- What's the recommended method of passing back to the triage agent when working in a multiagent workflow? Take the following scenario as an example:
# Start of turn
User prompt -> Set a reminder for me
Triage Agent -> handoff to Reminder Agent
Reminder Agent -> Sure, can you tell me the date and time of your reminder?
# Turn is complete
What's the right thing to do when the user submits the response here? Should I directly pass it to the Reminder Agent and continue the conversation there (in this case, how and when should I pass back to the Triage Agent), or start again from the Triage Agent? We can probably make it work either way, but wanted to see if the framework has a best practice in mind in such scenarios.