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)
  • load_env: (Boolean)
  • headers: (Hash[String, String])


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_keyString?

Returns the value of attribute api_key.

Returns:

  • (String, nil)


318
319
320
# File 'sig/types.rbs', line 318

def api_key
  @api_key
end

#base_urlString?

Returns the value of attribute base_url.

Returns:

  • (String, nil)


319
320
321
# File 'sig/types.rbs', line 319

def base_url
  @base_url
end

#headersHash[String, String]?

Returns the value of attribute headers.

Returns:

  • (Hash[String, String], nil)


325
326
327
# File 'sig/types.rbs', line 325

def headers
  @headers
end

#load_envBoolean?

Returns the value of attribute load_env.

Returns:

  • (Boolean, nil)


324
325
326
# File 'sig/types.rbs', line 324

def load_env
  @load_env
end

#max_retriesInteger?

Returns the value of attribute max_retries.

Returns:

  • (Integer, nil)


321
322
323
# File 'sig/types.rbs', line 321

def max_retries
  @max_retries
end

#max_tokensInteger?

Returns the value of attribute max_tokens.

Returns:

  • (Integer, nil)


323
324
325
# File 'sig/types.rbs', line 323

def max_tokens
  @max_tokens
end

#modelString?

Returns the value of attribute model.

Returns:

  • (String, nil)


317
318
319
# File 'sig/types.rbs', line 317

def model
  @model
end

#temperatureFloat?

Returns the value of attribute temperature.

Returns:

  • (Float, nil)


322
323
324
# File 'sig/types.rbs', line 322

def temperature
  @temperature
end

#timeout_secsInteger?

Returns the value of attribute timeout_secs.

Returns:

  • (Integer, nil)


320
321
322
# File 'sig/types.rbs', line 320

def timeout_secs
  @timeout_secs
end