Exception: RubyLLM::SemanticRouter::InvalidFallbackError

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

Overview

Raised when an invalid fallback behavior is specified

Constant Summary collapse

VALID_BEHAVIORS =
%i[default_agent keep_current ask_clarification].freeze

Instance Method Summary collapse

Constructor Details

#initialize(behavior) ⇒ InvalidFallbackError

Returns a new instance of InvalidFallbackError.



47
48
49
# File 'lib/rubyllm/semantic_router/errors.rb', line 47

def initialize(behavior)
  super("Invalid fallback behavior '#{behavior}'. Valid options: #{VALID_BEHAVIORS.join(', ')}")
end