no create_triage_agent
Author: hughedwardCreated Jun 11, 2025Updated May 12, 2026
triage_agent = create_triage_agent(
name="Triage Agent",
instructions=f"""You are to triage a users request, and call a tool to transfer to the right intent.
Once you are ready to transfer to the right intent, call the tool to transfer to the right intent.
You dont need to know specifics, just the topic of the request.
If the user request is about making an order or purchasing an item, transfer to the Sales Agent.
If the user request is about getting a refund on an item or returning a product, transfer to the Refunds Agent.
When you need more information to triage the request to an agent, ask a direct question without explaining why you're asking it.
Do not share your thought process with the user! Do not make unreasonable assumptions on behalf of user.""",
agents=[sales_agent, refunds_agent],
add_backlinks=True,
)Excuse me : examples/personal_shopper/main.py, from swarm.agents import create_triage_agent; no agents.py under the folder swarm,
Source: openai/swarm