Exception: RubyLLM::SemanticRouter::AgentNotFoundError
- Defined in:
- lib/rubyllm/semantic_router/errors.rb
Overview
Raised when an agent name is not found in the router
Instance Method Summary collapse
-
#initialize(agent_name, available_agents) ⇒ AgentNotFoundError
constructor
A new instance of AgentNotFoundError.
Constructor Details
#initialize(agent_name, available_agents) ⇒ AgentNotFoundError
Returns a new instance of AgentNotFoundError.
10 11 12 |
# File 'lib/rubyllm/semantic_router/errors.rb', line 10 def initialize(agent_name, available_agents) super("Agent '#{agent_name}' not found. Available agents: #{available_agents.join(', ')}") end |