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)


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

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)


278
279
280
# File 'sig/types.rbs', line 278

def api_key
  @api_key
end

#base_urlString?

Returns the value of attribute base_url.

Returns:

  • (String, nil)


279
280
281
# File 'sig/types.rbs', line 279

def base_url
  @base_url
end

#max_retriesInteger?

Returns the value of attribute max_retries.

Returns:

  • (Integer, nil)


281
282
283
# File 'sig/types.rbs', line 281

def max_retries
  @max_retries
end

#max_tokensInteger?

Returns the value of attribute max_tokens.

Returns:

  • (Integer, nil)


283
284
285
# File 'sig/types.rbs', line 283

def max_tokens
  @max_tokens
end

#modelString?

Returns the value of attribute model.

Returns:

  • (String, nil)


277
278
279
# File 'sig/types.rbs', line 277

def model
  @model
end

#temperatureFloat?

Returns the value of attribute temperature.

Returns:

  • (Float, nil)


282
283
284
# File 'sig/types.rbs', line 282

def temperature
  @temperature
end

#timeout_secsInteger?

Returns the value of attribute timeout_secs.

Returns:

  • (Integer, nil)


280
281
282
# File 'sig/types.rbs', line 280

def timeout_secs
  @timeout_secs
end