Get a prompt for TriageAgent
- User
Get a prompt for TriageAgent
Assistant
pythonfrom swarm import Agent triage_agent = Agent( name="Triage Agent", instructions="Determine which agent is best suited to handle the user's request, and transfer the conversation to that agent.", )The prompt for the
TriageAgentis defined in theagents.pyfile within thetriage_agentexample. The prompt, passed as theinstructionsparameter to theAgentconstructor, is:codeDetermine which agent is best suited to handle the user's request, and transfer the conversation to that agent.This prompt instructs the agent to act as a triage, deciding which other agent (e.g.,
sales_agentorrefunds_agent, also defined inagents.py) should handle the user's request. It doesn't directly answer user queries but instead routes them to the appropriate specialized agent.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.