Class: RubyLLM::SemanticRouter::RouterConfig
- Inherits:
-
Struct
- Object
- Struct
- RubyLLM::SemanticRouter::RouterConfig
- Defined in:
- lib/rubyllm/semantic_router/router.rb
Overview
Configuration object for the router
Instance Attribute Summary collapse
-
#default_agent ⇒ Object
Returns the value of attribute default_agent.
-
#embedding_model ⇒ Object
Returns the value of attribute embedding_model.
-
#fallback ⇒ Object
Returns the value of attribute fallback.
-
#k_neighbors ⇒ Object
Returns the value of attribute k_neighbors.
-
#max_words ⇒ Object
Returns the value of attribute max_words.
-
#scope ⇒ Object
Returns the value of attribute scope.
-
#similarity_threshold ⇒ Object
Returns the value of attribute similarity_threshold.
Instance Attribute Details
#default_agent ⇒ Object
Returns the value of attribute default_agent
6 7 8 |
# File 'lib/rubyllm/semantic_router/router.rb', line 6 def default_agent @default_agent end |
#embedding_model ⇒ Object
Returns the value of attribute embedding_model
6 7 8 |
# File 'lib/rubyllm/semantic_router/router.rb', line 6 def @embedding_model end |
#fallback ⇒ Object
Returns the value of attribute fallback
6 7 8 |
# File 'lib/rubyllm/semantic_router/router.rb', line 6 def fallback @fallback end |
#k_neighbors ⇒ Object
Returns the value of attribute k_neighbors
6 7 8 |
# File 'lib/rubyllm/semantic_router/router.rb', line 6 def k_neighbors @k_neighbors end |
#max_words ⇒ Object
Returns the value of attribute max_words
6 7 8 |
# File 'lib/rubyllm/semantic_router/router.rb', line 6 def max_words @max_words end |
#scope ⇒ Object
Returns the value of attribute scope
6 7 8 |
# File 'lib/rubyllm/semantic_router/router.rb', line 6 def scope @scope end |
#similarity_threshold ⇒ Object
Returns the value of attribute similarity_threshold
6 7 8 |
# File 'lib/rubyllm/semantic_router/router.rb', line 6 def similarity_threshold @similarity_threshold end |