Class: LiterLlm::LlmConfig

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLlmConfig

Returns a new instance of LlmConfig.

Parameters:



702
# File 'sig/types.rbs', line 702

def initialize: (?model: String, ?api_key: String, ?base_url: String, ?timeout_secs: Integer, ?max_retries: Integer, ?temperature: Float, ?max_tokens: Integer, ?load_env: bool, ?headers: Hash[String, String], ?providers: Array[LlmProviderConfig], ?cache: LlmCacheConfig, ?budget: LlmBudgetConfig, ?rate_limit: LlmRateLimitConfig, ?in_flight_limit: LlmInFlightLimitConfig, ?cost_tracking: bool, ?tracing: bool, ?cooldown_secs: Integer, ?health_check_secs: Integer, ?bedrock: BedrockConfig) -> void

Instance Attribute Details

#api_keyString? (readonly)

Returns the value of attribute api_key.

Returns:

  • (String, nil)


683
684
685
# File 'sig/types.rbs', line 683

def api_key
  @api_key
end

#base_urlString? (readonly)

Returns the value of attribute base_url.

Returns:

  • (String, nil)


684
685
686
# File 'sig/types.rbs', line 684

def base_url
  @base_url
end

#bedrockBedrockConfig? (readonly)

Returns the value of attribute bedrock.

Returns:



700
701
702
# File 'sig/types.rbs', line 700

def bedrock
  @bedrock
end

#budgetLlmBudgetConfig? (readonly)

Returns the value of attribute budget.

Returns:



693
694
695
# File 'sig/types.rbs', line 693

def budget
  @budget
end

#cacheLlmCacheConfig? (readonly)

Returns the value of attribute cache.

Returns:



692
693
694
# File 'sig/types.rbs', line 692

def cache
  @cache
end

#cooldown_secsInteger? (readonly)

Returns the value of attribute cooldown_secs.

Returns:

  • (Integer, nil)


698
699
700
# File 'sig/types.rbs', line 698

def cooldown_secs
  @cooldown_secs
end

#cost_trackingBoolean? (readonly)

Returns the value of attribute cost_tracking.

Returns:

  • (Boolean, nil)


696
697
698
# File 'sig/types.rbs', line 696

def cost_tracking
  @cost_tracking
end

#headersHash[String, String]? (readonly)

Returns the value of attribute headers.

Returns:

  • (Hash[String, String], nil)


690
691
692
# File 'sig/types.rbs', line 690

def headers
  @headers
end

#health_check_secsInteger? (readonly)

Returns the value of attribute health_check_secs.

Returns:

  • (Integer, nil)


699
700
701
# File 'sig/types.rbs', line 699

def health_check_secs
  @health_check_secs
end

#in_flight_limitLlmInFlightLimitConfig? (readonly)

Returns the value of attribute in_flight_limit.

Returns:



695
696
697
# File 'sig/types.rbs', line 695

def in_flight_limit
  @in_flight_limit
end

#load_envBoolean? (readonly)

Returns the value of attribute load_env.

Returns:

  • (Boolean, nil)


689
690
691
# File 'sig/types.rbs', line 689

def load_env
  @load_env
end

#max_retriesInteger? (readonly)

Returns the value of attribute max_retries.

Returns:

  • (Integer, nil)


686
687
688
# File 'sig/types.rbs', line 686

def max_retries
  @max_retries
end

#max_tokensInteger? (readonly)

Returns the value of attribute max_tokens.

Returns:

  • (Integer, nil)


688
689
690
# File 'sig/types.rbs', line 688

def max_tokens
  @max_tokens
end

#modelString (readonly)

Returns the value of attribute model.

Returns:

  • (String)


682
683
684
# File 'sig/types.rbs', line 682

def model
  @model
end

#providersArray[LlmProviderConfig]? (readonly)

Returns the value of attribute providers.

Returns:



691
692
693
# File 'sig/types.rbs', line 691

def providers
  @providers
end

#rate_limitLlmRateLimitConfig? (readonly)

Returns the value of attribute rate_limit.

Returns:



694
695
696
# File 'sig/types.rbs', line 694

def rate_limit
  @rate_limit
end

#temperatureFloat? (readonly)

Returns the value of attribute temperature.

Returns:

  • (Float, nil)


687
688
689
# File 'sig/types.rbs', line 687

def temperature
  @temperature
end

#timeout_secsInteger? (readonly)

Returns the value of attribute timeout_secs.

Returns:

  • (Integer, nil)


685
686
687
# File 'sig/types.rbs', line 685

def timeout_secs
  @timeout_secs
end

#tracingBoolean? (readonly)

Returns the value of attribute tracing.

Returns:

  • (Boolean, nil)


697
698
699
# File 'sig/types.rbs', line 697

def tracing
  @tracing
end