Class: Legion::LLM::Router::HeaderConstraints::Value

Inherits:
Object
  • Object
show all
Defined in:
lib/legion/llm/router/header_constraints.rb

Overview

Immutable trusted-constraint value.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject (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_attemptsObject (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

#modelObject (readonly)

Returns the value of attribute model.



26
27
28
# File 'lib/legion/llm/router/header_constraints.rb', line 26

def model
  @model
end

#providerObject (readonly)

Returns the value of attribute provider.



26
27
28
# File 'lib/legion/llm/router/header_constraints.rb', line 26

def provider
  @provider
end

#tierObject (readonly)

Returns the value of attribute tier.



26
27
28
# File 'lib/legion/llm/router/header_constraints.rb', line 26

def tier
  @tier
end