- Notifications
You must be signed in to change notification settings - Fork1k
Open
Description
Tools andoutput functions can be used to do agent handoff, but still require you to define a wrapper function aroundagent.run
that handles the input, output, and handling errors (possibly by bubbling them up to the top-level agent). There's also no way to easily get all of the messages in a multi-agent conversation, as top-level agent currently doesn't any have knowledge of other agents that are called from tools or output functions, so theAgentRunResult
will only contain the top-level agent messages.
It would be nice to supportAgent(..., handoff=[agent_one, agent_two])
, similar to how OpenAI does it but of course with a Pydantic AI spin on it.