Class: RubyLLM::SemanticRouter::RouterConfig

Inherits:
Struct
  • Object
show all
Defined in:
lib/rubyllm/semantic_router/router.rb

Overview

Configuration object for the router

Instance Attribute Summary collapse

Instance Attribute Details

#default_agentObject

Returns the value of attribute default_agent

Returns:

  • (Object)

    the current value of default_agent



6
7
8
# File 'lib/rubyllm/semantic_router/router.rb', line 6

def default_agent
  @default_agent
end

#embedding_modelObject

Returns the value of attribute embedding_model

Returns:

  • (Object)

    the current value of embedding_model



6
7
8
# File 'lib/rubyllm/semantic_router/router.rb', line 6

def embedding_model
  @embedding_model
end

#fallbackObject

Returns the value of attribute fallback

Returns:

  • (Object)

    the current value of fallback



6
7
8
# File 'lib/rubyllm/semantic_router/router.rb', line 6

def fallback
  @fallback
end

#k_neighborsObject

Returns the value of attribute k_neighbors

Returns:

  • (Object)

    the current value of k_neighbors



6
7
8
# File 'lib/rubyllm/semantic_router/router.rb', line 6

def k_neighbors
  @k_neighbors
end

#max_wordsObject

Returns the value of attribute max_words

Returns:

  • (Object)

    the current value of max_words



6
7
8
# File 'lib/rubyllm/semantic_router/router.rb', line 6

def max_words
  @max_words
end

#scopeObject

Returns the value of attribute scope

Returns:

  • (Object)

    the current value of scope



6
7
8
# File 'lib/rubyllm/semantic_router/router.rb', line 6

def scope
  @scope
end

#similarity_thresholdObject

Returns the value of attribute similarity_threshold

Returns:

  • (Object)

    the current value of similarity_threshold



6
7
8
# File 'lib/rubyllm/semantic_router/router.rb', line 6

def similarity_threshold
  @similarity_threshold
end