Class: Xberg::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:

  • model: (String)
  • api_key: (String)
  • base_url: (String)
  • timeout_secs: (Integer)
  • max_retries: (Integer)
  • temperature: (Float)
  • max_tokens: (Integer)


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

def initialize: (?model: String, ?api_key: String, ?base_url: String, ?timeout_secs: Integer, ?max_retries: Integer, ?temperature: Float, ?max_tokens: Integer) -> void

Instance Attribute Details

#api_keyString?

Returns the value of attribute api_key.

Returns:

  • (String, nil)


294
295
296
# File 'sig/types.rbs', line 294

def api_key
  @api_key
end

#base_urlString?

Returns the value of attribute base_url.

Returns:

  • (String, nil)


295
296
297
# File 'sig/types.rbs', line 295

def base_url
  @base_url
end

#max_retriesInteger?

Returns the value of attribute max_retries.

Returns:

  • (Integer, nil)


297
298
299
# File 'sig/types.rbs', line 297

def max_retries
  @max_retries
end

#max_tokensInteger?

Returns the value of attribute max_tokens.

Returns:

  • (Integer, nil)


299
300
301
# File 'sig/types.rbs', line 299

def max_tokens
  @max_tokens
end

#modelString?

Returns the value of attribute model.

Returns:

  • (String, nil)


293
294
295
# File 'sig/types.rbs', line 293

def model
  @model
end

#temperatureFloat?

Returns the value of attribute temperature.

Returns:

  • (Float, nil)


298
299
300
# File 'sig/types.rbs', line 298

def temperature
  @temperature
end

#timeout_secsInteger?

Returns the value of attribute timeout_secs.

Returns:

  • (Integer, nil)


296
297
298
# File 'sig/types.rbs', line 296

def timeout_secs
  @timeout_secs
end