ReplyResult
object, which represents the outcome of a tool’s operation and has three key properties:
classify_query
function to the triage agent, we’ve given it a specific tool to use for routing queries instead of relying solely on its LLM capabilities. The function returns a ReplyResult
that provides the Group Manager with an indication of the type of query for it decide the appropriate next speaker.
target
parameter in ReplyResult
allows a tool to specify which agent should receive control next.
Let’s update our classify_query
function to route the conversation to the appropriate agent based on the classification result:
classify_query
tool to classify the user query and route it to either the technical support agent or the general support agent.