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.
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_key ⇒ String? (readonly)
Returns the value of attribute api_key.
683 684 685 |
# File 'sig/types.rbs', line 683 def api_key @api_key end |
#base_url ⇒ String? (readonly)
Returns the value of attribute base_url.
684 685 686 |
# File 'sig/types.rbs', line 684 def base_url @base_url end |
#bedrock ⇒ BedrockConfig? (readonly)
Returns the value of attribute bedrock.
700 701 702 |
# File 'sig/types.rbs', line 700 def bedrock @bedrock end |
#budget ⇒ LlmBudgetConfig? (readonly)
Returns the value of attribute budget.
693 694 695 |
# File 'sig/types.rbs', line 693 def budget @budget end |
#cache ⇒ LlmCacheConfig? (readonly)
Returns the value of attribute cache.
692 693 694 |
# File 'sig/types.rbs', line 692 def cache @cache end |
#cooldown_secs ⇒ Integer? (readonly)
Returns the value of attribute cooldown_secs.
698 699 700 |
# File 'sig/types.rbs', line 698 def cooldown_secs @cooldown_secs end |
#cost_tracking ⇒ Boolean? (readonly)
Returns the value of attribute cost_tracking.
696 697 698 |
# File 'sig/types.rbs', line 696 def cost_tracking @cost_tracking end |
#headers ⇒ Hash[String, String]? (readonly)
Returns the value of attribute headers.
690 691 692 |
# File 'sig/types.rbs', line 690 def headers @headers end |
#health_check_secs ⇒ Integer? (readonly)
Returns the value of attribute health_check_secs.
699 700 701 |
# File 'sig/types.rbs', line 699 def health_check_secs @health_check_secs end |
#in_flight_limit ⇒ LlmInFlightLimitConfig? (readonly)
Returns the value of attribute in_flight_limit.
695 696 697 |
# File 'sig/types.rbs', line 695 def in_flight_limit @in_flight_limit end |
#load_env ⇒ Boolean? (readonly)
Returns the value of attribute load_env.
689 690 691 |
# File 'sig/types.rbs', line 689 def load_env @load_env end |
#max_retries ⇒ Integer? (readonly)
Returns the value of attribute max_retries.
686 687 688 |
# File 'sig/types.rbs', line 686 def max_retries @max_retries end |
#max_tokens ⇒ Integer? (readonly)
Returns the value of attribute max_tokens.
688 689 690 |
# File 'sig/types.rbs', line 688 def max_tokens @max_tokens end |
#model ⇒ String (readonly)
Returns the value of attribute model.
682 683 684 |
# File 'sig/types.rbs', line 682 def model @model end |
#providers ⇒ Array[LlmProviderConfig]? (readonly)
Returns the value of attribute providers.
691 692 693 |
# File 'sig/types.rbs', line 691 def providers @providers end |
#rate_limit ⇒ LlmRateLimitConfig? (readonly)
Returns the value of attribute rate_limit.
694 695 696 |
# File 'sig/types.rbs', line 694 def rate_limit @rate_limit end |
#temperature ⇒ Float? (readonly)
Returns the value of attribute temperature.
687 688 689 |
# File 'sig/types.rbs', line 687 def temperature @temperature end |
#timeout_secs ⇒ Integer? (readonly)
Returns the value of attribute timeout_secs.
685 686 687 |
# File 'sig/types.rbs', line 685 def timeout_secs @timeout_secs end |
#tracing ⇒ Boolean? (readonly)
Returns the value of attribute tracing.
697 698 699 |
# File 'sig/types.rbs', line 697 def tracing @tracing end |