Class: Xberg::LlmConfig
- Inherits:
-
Object
- Object
- Xberg::LlmConfig
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#api_key ⇒ String?
Returns the value of attribute api_key.
-
#base_url ⇒ String?
Returns the value of attribute base_url.
-
#headers ⇒ Hash[String, String]?
Returns the value of attribute headers.
-
#load_env ⇒ Boolean?
Returns the value of attribute load_env.
-
#max_retries ⇒ Integer?
Returns the value of attribute max_retries.
-
#max_tokens ⇒ Integer?
Returns the value of attribute max_tokens.
-
#model ⇒ String?
Returns the value of attribute model.
-
#temperature ⇒ Float?
Returns the value of attribute temperature.
-
#timeout_secs ⇒ Integer?
Returns the value of attribute timeout_secs.
Instance Method Summary collapse
-
#initialize ⇒ LlmConfig
constructor
A new instance of LlmConfig.
Constructor Details
#initialize ⇒ LlmConfig
Returns a new instance of LlmConfig.
327 |
# File 'sig/types.rbs', line 327
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]) -> void
|
Instance Attribute Details
#api_key ⇒ String?
Returns the value of attribute api_key.
318 319 320 |
# File 'sig/types.rbs', line 318 def api_key @api_key end |
#base_url ⇒ String?
Returns the value of attribute base_url.
319 320 321 |
# File 'sig/types.rbs', line 319 def base_url @base_url end |
#headers ⇒ Hash[String, String]?
Returns the value of attribute headers.
325 326 327 |
# File 'sig/types.rbs', line 325 def headers @headers end |
#load_env ⇒ Boolean?
Returns the value of attribute load_env.
324 325 326 |
# File 'sig/types.rbs', line 324 def load_env @load_env end |
#max_retries ⇒ Integer?
Returns the value of attribute max_retries.
321 322 323 |
# File 'sig/types.rbs', line 321 def max_retries @max_retries end |
#max_tokens ⇒ Integer?
Returns the value of attribute max_tokens.
323 324 325 |
# File 'sig/types.rbs', line 323 def max_tokens @max_tokens end |
#model ⇒ String?
Returns the value of attribute model.
317 318 319 |
# File 'sig/types.rbs', line 317 def model @model end |
#temperature ⇒ Float?
Returns the value of attribute temperature.
322 323 324 |
# File 'sig/types.rbs', line 322 def temperature @temperature end |
#timeout_secs ⇒ Integer?
Returns the value of attribute timeout_secs.
320 321 322 |
# File 'sig/types.rbs', line 320 def timeout_secs @timeout_secs end |