Triage Agent

The Triage Agent serves as the central routing component in the agent swarm system, responsible for analyzing user queries and directing them to appropriate cryptocurrency-specific consultant agents. This agent operates exclusively in Russian and acts as the primary entry point for user interactions with specialized trading consultants.

For information about the specialized consultant agents that the Triage Agent routes to, see Cryptocurrency Consultant Agents. For broader context on the agent swarm architecture, see Agent Swarm System.

The Triage Agent operates as part of the RootSwarm orchestration layer, functioning as the primary decision-making component that determines user intent and routes conversations accordingly.

Mermaid Diagram

The Triage Agent operates with specific communication constraints and requirements:

Requirement Description
Language Exclusively Russian (Всегда пиши ответ на русском языке)
Reasoning Level High reasoning capability enabled
Message Format Markdown text only - no images, files, tables, or HTML
Conversation Style Natural conversational flow, avoiding formal greetings unless initiated by user

The agent uses keyword and context analysis to determine cryptocurrency interest:

Cryptocurrency Trigger Keywords Target Agent
Bitcoin Bitcoin, BTC btc_consultant_agent
Ethereum Ethereum, ETH, Эфириум, Эфир (not Classic) eth_consultant_agent
Binance Coin Binance Coin, BNB, Binance Smart Chain bnb_consultant_agent
Ripple Ripple, XRP, Рипл xrp_consultant_agent
Solana Solana, SOL, Солана sol_consultant_agent

The Triage Agent employs five specialized navigation tools for routing users to appropriate consultants:

Mermaid Diagram

Each navigation tool follows the same pattern:

  • Parameters: Empty parameter set (no input required)
  • Exclusivity: Tools are mutually exclusive (Если ты выбрал этот инструмент, не вызывай другие)
  • Immediate Activation: Tools trigger immediately upon cryptocurrency mention detection
  • Error Handling: Implements onToolError callback for error management

When user queries don't relate to supported cryptocurrencies, the Triage Agent:

  1. Maintains Conversational Flow: Acts as a friendly conversational partner
  2. Avoids Topic Persistence: Does not attempt to maintain conversations when users abruptly change topics
  3. Natural Interaction Style: Continues conversations as if users are familiar contacts
  4. Direct Response Style: Avoids restating user questions, responds directly

The agent operates under specific formatting limitations:

  • Supported: Text, Markdown formatting, Links
  • Unsupported: Images, Files, Tables, HTML, Line breaks
  • Style: Natural human-like responses without formal acknowledgments
Property Value
Completion Type runner_stream_completion
Operator Not specified (empty array)
Dependencies 5 consultant agents
Schema Reference ai/swarm-schema/triage_agent

The Triage Agent integrates with the broader system through:

  1. RootSwarm Coordination: Receives user queries from the root orchestrator
  2. Consultant Agent Handoff: Transfers control to specialized agents via navigation tools
  3. Error Handling: Manages tool execution errors through callback mechanisms
  4. Schema Compliance: Follows standardized agent schema patterns

The core directive is concise: Определи, в какой криптовалюте заинтересован пользователь и перейдите к соответствующему агенту консультаций (Determine which cryptocurrency the user is interested in and proceed to the appropriate consultation agent).

The agent operates under four system prompt categories:

  1. Navigation Guidelines: Cryptocurrency detection and routing logic
  2. Communication Constraints: Format and capability limitations
  3. Conversation Management: Behavioral guidelines for non-crypto interactions
  4. Response Style: Natural interaction requirements