Class: LiterLlm::LlmConfig
- Inherits:
-
Object
- Object
- LiterLlm::LlmConfig
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#api_key ⇒ String?
readonly
Returns the value of attribute api_key.
-
#base_url ⇒ String?
readonly
Returns the value of attribute base_url.
-
#bedrock ⇒ BedrockConfig?
readonly
Returns the value of attribute bedrock.
-
#budget ⇒ LlmBudgetConfig?
readonly
Returns the value of attribute budget.
-
#cache ⇒ LlmCacheConfig?
readonly
Returns the value of attribute cache.
-
#cooldown_secs ⇒ Integer?
readonly
Returns the value of attribute cooldown_secs.
-
#cost_tracking ⇒ Boolean?
readonly
Returns the value of attribute cost_tracking.
-
#headers ⇒ Hash[String, String]?
readonly
Returns the value of attribute headers.
-
#health_check_secs ⇒ Integer?
readonly
Returns the value of attribute health_check_secs.
-
#in_flight_limit ⇒ LlmInFlightLimitConfig?
readonly
Returns the value of attribute in_flight_limit.
-
#load_env ⇒ Boolean?
readonly
Returns the value of attribute load_env.
-
#max_retries ⇒ Integer?
readonly
Returns the value of attribute max_retries.
-
#max_tokens ⇒ Integer?
readonly
Returns the value of attribute max_tokens.
-
#model ⇒ String
readonly
Returns the value of attribute model.
-
#providers ⇒ Array[LlmProviderConfig]?
readonly
Returns the value of attribute providers.
-
#rate_limit ⇒ LlmRateLimitConfig?
readonly
Returns the value of attribute rate_limit.
-
#temperature ⇒ Float?
readonly
Returns the value of attribute temperature.
-
#timeout_secs ⇒ Integer?
readonly
Returns the value of attribute timeout_secs.
-
#tracing ⇒ Boolean?
readonly
Returns the value of attribute tracing.
Instance Method Summary collapse
-
#initialize ⇒ LlmConfig
constructor
A new instance of LlmConfig.
Constructor Details
#initialize ⇒ LlmConfig
Returns a new instance of LlmConfig.
490 |
# File 'sig/types.rbs', line 490
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_key ⇒ String? (readonly)
Returns the value of attribute api_key.
471 472 473 |
# File 'sig/types.rbs', line 471 def api_key @api_key end |
#base_url ⇒ String? (readonly)
Returns the value of attribute base_url.
472 473 474 |
# File 'sig/types.rbs', line 472 def base_url @base_url end |
#bedrock ⇒ BedrockConfig? (readonly)
Returns the value of attribute bedrock.
488 489 490 |
# File 'sig/types.rbs', line 488 def bedrock @bedrock end |
#budget ⇒ LlmBudgetConfig? (readonly)
Returns the value of attribute budget.
481 482 483 |
# File 'sig/types.rbs', line 481 def budget @budget end |
#cache ⇒ LlmCacheConfig? (readonly)
Returns the value of attribute cache.
480 481 482 |
# File 'sig/types.rbs', line 480 def cache @cache end |
#cooldown_secs ⇒ Integer? (readonly)
Returns the value of attribute cooldown_secs.
486 487 488 |
# File 'sig/types.rbs', line 486 def cooldown_secs @cooldown_secs end |
#cost_tracking ⇒ Boolean? (readonly)
Returns the value of attribute cost_tracking.
484 485 486 |
# File 'sig/types.rbs', line 484 def cost_tracking @cost_tracking end |
#headers ⇒ Hash[String, String]? (readonly)
Returns the value of attribute headers.
478 479 480 |
# File 'sig/types.rbs', line 478 def headers @headers end |
#health_check_secs ⇒ Integer? (readonly)
Returns the value of attribute health_check_secs.
487 488 489 |
# File 'sig/types.rbs', line 487 def health_check_secs @health_check_secs end |
#in_flight_limit ⇒ LlmInFlightLimitConfig? (readonly)
Returns the value of attribute in_flight_limit.
483 484 485 |
# File 'sig/types.rbs', line 483 def in_flight_limit @in_flight_limit end |
#load_env ⇒ Boolean? (readonly)
Returns the value of attribute load_env.
477 478 479 |
# File 'sig/types.rbs', line 477 def load_env @load_env end |
#max_retries ⇒ Integer? (readonly)
Returns the value of attribute max_retries.
474 475 476 |
# File 'sig/types.rbs', line 474 def max_retries @max_retries end |
#max_tokens ⇒ Integer? (readonly)
Returns the value of attribute max_tokens.
476 477 478 |
# File 'sig/types.rbs', line 476 def max_tokens @max_tokens end |
#model ⇒ String (readonly)
Returns the value of attribute model.
470 471 472 |
# File 'sig/types.rbs', line 470 def model @model end |
#providers ⇒ Array[LlmProviderConfig]? (readonly)
Returns the value of attribute providers.
479 480 481 |
# File 'sig/types.rbs', line 479 def providers @providers end |
#rate_limit ⇒ LlmRateLimitConfig? (readonly)
Returns the value of attribute rate_limit.
482 483 484 |
# File 'sig/types.rbs', line 482 def rate_limit @rate_limit end |
#temperature ⇒ Float? (readonly)
Returns the value of attribute temperature.
475 476 477 |
# File 'sig/types.rbs', line 475 def temperature @temperature end |
#timeout_secs ⇒ Integer? (readonly)
Returns the value of attribute timeout_secs.
473 474 475 |
# File 'sig/types.rbs', line 473 def timeout_secs @timeout_secs end |
#tracing ⇒ Boolean? (readonly)
Returns the value of attribute tracing.
485 486 487 |
# File 'sig/types.rbs', line 485 def tracing @tracing end |