Communication between agents
Agents communicate one with another via one of the following tools:
-
pass_question– passes user questions to another agent. Receiving agent name must be specified via theagentparameter. In most cases, you can reference the tool by it’s description in the prompt. For example:If user asks a question about university courses, pass the question to `university-courses` agent. -
send_message– sends the message specified via themessageparameter to another agent. Receiving agent name must be specified via theagentparameter. In most cases, you can reference the tool by its description in the prompt. For example:If user chooses to schedule an appointment, send a message with caller's name, SSN and INTENT to `doctor-schedule` agent.
To enable communication between agents you must add appropriate communication tools - pass_question / send_message – to the Tools list for the agents that use them.