Exception: RubyLLM::SemanticRouter::AgentNotFoundError

Inherits:
Error
  • Object
show all
Defined in:
lib/rubyllm/semantic_router/errors.rb

Overview

Raised when an agent name is not found in the router

Instance Method Summary collapse

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