Class: Legion::LLM::Router::HeaderConstraints::Value
- Inherits:
-
Object
- Object
- Legion::LLM::Router::HeaderConstraints::Value
- Defined in:
- lib/legion/llm/router/header_constraints.rb
Overview
Immutable trusted-constraint value.
Instance Attribute Summary collapse
-
#instance_id ⇒ Object
readonly
Returns the value of attribute instance_id.
-
#maximum_attempts ⇒ Object
readonly
Returns the value of attribute maximum_attempts.
-
#model ⇒ Object
readonly
Returns the value of attribute model.
-
#provider ⇒ Object
readonly
Returns the value of attribute provider.
-
#tier ⇒ Object
readonly
Returns the value of attribute tier.
Instance Method Summary collapse
-
#initialize(provider:, instance_id:, model:, tier:, maximum_attempts:) ⇒ Value
constructor
A new instance of Value.
Constructor Details
#initialize(provider:, instance_id:, model:, tier:, maximum_attempts:) ⇒ Value
Returns a new instance of Value.
28 29 30 31 32 33 34 35 |
# File 'lib/legion/llm/router/header_constraints.rb', line 28 def initialize(provider:, instance_id:, model:, tier:, maximum_attempts:) @provider = provider @instance_id = instance_id @model = model @tier = tier @maximum_attempts = maximum_attempts freeze end |
Instance Attribute Details
#instance_id ⇒ Object (readonly)
Returns the value of attribute instance_id.
26 27 28 |
# File 'lib/legion/llm/router/header_constraints.rb', line 26 def instance_id @instance_id end |
#maximum_attempts ⇒ Object (readonly)
Returns the value of attribute maximum_attempts.
26 27 28 |
# File 'lib/legion/llm/router/header_constraints.rb', line 26 def maximum_attempts @maximum_attempts end |
#model ⇒ Object (readonly)
Returns the value of attribute model.
26 27 28 |
# File 'lib/legion/llm/router/header_constraints.rb', line 26 def model @model end |
#provider ⇒ Object (readonly)
Returns the value of attribute provider.
26 27 28 |
# File 'lib/legion/llm/router/header_constraints.rb', line 26 def provider @provider end |
#tier ⇒ Object (readonly)
Returns the value of attribute tier.
26 27 28 |
# File 'lib/legion/llm/router/header_constraints.rb', line 26 def tier @tier end |