Class: Xberg::LlmConfig
- Inherits:
-
Object
- Object
- Xberg::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.
-
#credential_provider ⇒ CredentialProviderConfig?
readonly
Returns the value of attribute credential_provider.
-
#extra_body ⇒ String?
readonly
Returns the value of attribute extra_body.
-
#frequency_penalty ⇒ Float?
readonly
Returns the value of attribute frequency_penalty.
-
#headers ⇒ Hash[String, String]?
readonly
Returns the value of attribute headers.
-
#health_check_secs ⇒ Integer?
readonly
Returns the value of attribute health_check_secs.
-
#load_env ⇒ Boolean?
readonly
Returns the value of attribute load_env.
-
#max_concurrency ⇒ Integer?
readonly
Returns the value of attribute max_concurrency.
-
#max_response_bytes ⇒ Integer?
readonly
Returns the value of attribute max_response_bytes.
-
#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.
-
#presence_penalty ⇒ Float?
readonly
Returns the value of attribute presence_penalty.
-
#providers ⇒ Array[LlmProviderConfig]?
readonly
Returns the value of attribute providers.
-
#rate_limit ⇒ LlmRateLimitConfig?
readonly
Returns the value of attribute rate_limit.
-
#reasoning_effort ⇒ String?
readonly
Returns the value of attribute reasoning_effort.
-
#seed ⇒ Integer?
readonly
Returns the value of attribute seed.
-
#stop ⇒ Array[String]?
readonly
Returns the value of attribute stop.
-
#temperature ⇒ Float?
readonly
Returns the value of attribute temperature.
-
#timeout_secs ⇒ Integer?
readonly
Returns the value of attribute timeout_secs.
-
#top_p ⇒ Float?
readonly
Returns the value of attribute top_p.
-
#tracing ⇒ Boolean?
readonly
Returns the value of attribute tracing.
Instance Method Summary collapse
-
#initialize ⇒ LlmConfig
constructor
A new instance of LlmConfig.
- #validate ⇒ void
Constructor Details
#initialize ⇒ LlmConfig
Returns a new instance of LlmConfig.
1524 |
# File 'sig/types.rbs', line 1524
def initialize: (?model: String, ?api_key: String, ?base_url: String, ?timeout_secs: Integer, ?max_retries: Integer, ?temperature: Float, ?max_tokens: Integer, ?top_p: Float, ?stop: Array[String], ?seed: Integer, ?presence_penalty: Float, ?frequency_penalty: Float, ?reasoning_effort: String, ?extra_body: String, ?load_env: bool, ?headers: Hash[String, String], ?providers: Array[LlmProviderConfig], ?cache: LlmCacheConfig, ?budget: LlmBudgetConfig, ?rate_limit: LlmRateLimitConfig, ?cost_tracking: bool, ?tracing: bool, ?cooldown_secs: Integer, ?health_check_secs: Integer, ?bedrock: BedrockConfig, ?credential_provider: CredentialProviderConfig, ?max_concurrency: Integer, ?max_response_bytes: Integer) -> void
|
Instance Attribute Details
#api_key ⇒ String? (readonly)
Returns the value of attribute api_key.
1496 1497 1498 |
# File 'sig/types.rbs', line 1496 def api_key @api_key end |
#base_url ⇒ String? (readonly)
Returns the value of attribute base_url.
1497 1498 1499 |
# File 'sig/types.rbs', line 1497 def base_url @base_url end |
#bedrock ⇒ BedrockConfig? (readonly)
Returns the value of attribute bedrock.
1519 1520 1521 |
# File 'sig/types.rbs', line 1519 def bedrock @bedrock end |
#budget ⇒ LlmBudgetConfig? (readonly)
Returns the value of attribute budget.
1513 1514 1515 |
# File 'sig/types.rbs', line 1513 def budget @budget end |
#cache ⇒ LlmCacheConfig? (readonly)
Returns the value of attribute cache.
1512 1513 1514 |
# File 'sig/types.rbs', line 1512 def cache @cache end |
#cooldown_secs ⇒ Integer? (readonly)
Returns the value of attribute cooldown_secs.
1517 1518 1519 |
# File 'sig/types.rbs', line 1517 def cooldown_secs @cooldown_secs end |
#cost_tracking ⇒ Boolean? (readonly)
Returns the value of attribute cost_tracking.
1515 1516 1517 |
# File 'sig/types.rbs', line 1515 def cost_tracking @cost_tracking end |
#credential_provider ⇒ CredentialProviderConfig? (readonly)
Returns the value of attribute credential_provider.
1520 1521 1522 |
# File 'sig/types.rbs', line 1520 def credential_provider @credential_provider end |
#extra_body ⇒ String? (readonly)
Returns the value of attribute extra_body.
1508 1509 1510 |
# File 'sig/types.rbs', line 1508 def extra_body @extra_body end |
#frequency_penalty ⇒ Float? (readonly)
Returns the value of attribute frequency_penalty.
1506 1507 1508 |
# File 'sig/types.rbs', line 1506 def frequency_penalty @frequency_penalty end |
#headers ⇒ Hash[String, String]? (readonly)
Returns the value of attribute headers.
1510 1511 1512 |
# File 'sig/types.rbs', line 1510 def headers @headers end |
#health_check_secs ⇒ Integer? (readonly)
Returns the value of attribute health_check_secs.
1518 1519 1520 |
# File 'sig/types.rbs', line 1518 def health_check_secs @health_check_secs end |
#load_env ⇒ Boolean? (readonly)
Returns the value of attribute load_env.
1509 1510 1511 |
# File 'sig/types.rbs', line 1509 def load_env @load_env end |
#max_concurrency ⇒ Integer? (readonly)
Returns the value of attribute max_concurrency.
1521 1522 1523 |
# File 'sig/types.rbs', line 1521 def max_concurrency @max_concurrency end |
#max_response_bytes ⇒ Integer? (readonly)
Returns the value of attribute max_response_bytes.
1522 1523 1524 |
# File 'sig/types.rbs', line 1522 def max_response_bytes @max_response_bytes end |
#max_retries ⇒ Integer? (readonly)
Returns the value of attribute max_retries.
1499 1500 1501 |
# File 'sig/types.rbs', line 1499 def max_retries @max_retries end |
#max_tokens ⇒ Integer? (readonly)
Returns the value of attribute max_tokens.
1501 1502 1503 |
# File 'sig/types.rbs', line 1501 def max_tokens @max_tokens end |
#model ⇒ String (readonly)
Returns the value of attribute model.
1495 1496 1497 |
# File 'sig/types.rbs', line 1495 def model @model end |
#presence_penalty ⇒ Float? (readonly)
Returns the value of attribute presence_penalty.
1505 1506 1507 |
# File 'sig/types.rbs', line 1505 def presence_penalty @presence_penalty end |
#providers ⇒ Array[LlmProviderConfig]? (readonly)
Returns the value of attribute providers.
1511 1512 1513 |
# File 'sig/types.rbs', line 1511 def providers @providers end |
#rate_limit ⇒ LlmRateLimitConfig? (readonly)
Returns the value of attribute rate_limit.
1514 1515 1516 |
# File 'sig/types.rbs', line 1514 def rate_limit @rate_limit end |
#reasoning_effort ⇒ String? (readonly)
Returns the value of attribute reasoning_effort.
1507 1508 1509 |
# File 'sig/types.rbs', line 1507 def reasoning_effort @reasoning_effort end |
#seed ⇒ Integer? (readonly)
Returns the value of attribute seed.
1504 1505 1506 |
# File 'sig/types.rbs', line 1504 def seed @seed end |
#stop ⇒ Array[String]? (readonly)
Returns the value of attribute stop.
1503 1504 1505 |
# File 'sig/types.rbs', line 1503 def stop @stop end |
#temperature ⇒ Float? (readonly)
Returns the value of attribute temperature.
1500 1501 1502 |
# File 'sig/types.rbs', line 1500 def temperature @temperature end |
#timeout_secs ⇒ Integer? (readonly)
Returns the value of attribute timeout_secs.
1498 1499 1500 |
# File 'sig/types.rbs', line 1498 def timeout_secs @timeout_secs end |
#top_p ⇒ Float? (readonly)
Returns the value of attribute top_p.
1502 1503 1504 |
# File 'sig/types.rbs', line 1502 def top_p @top_p end |
#tracing ⇒ Boolean? (readonly)
Returns the value of attribute tracing.
1516 1517 1518 |
# File 'sig/types.rbs', line 1516 def tracing @tracing end |
Instance Method Details
#validate ⇒ void
This method returns an undefined value.
1525 |
# File 'sig/types.rbs', line 1525
def validate: () -> void
|