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])


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

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)


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

def api_key
  @api_key
end

#base_urlString?

Returns the value of attribute base_url.

Returns:

  • (String, nil)


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

def base_url
  @base_url
end

#headersHash[String, String]?

Returns the value of attribute headers.

Returns:

  • (Hash[String, String], nil)


304
305
306
# File 'sig/types.rbs', line 304

def headers
  @headers
end

#load_envBoolean?

Returns the value of attribute load_env.

Returns:

  • (Boolean, nil)


303
304
305
# File 'sig/types.rbs', line 303

def load_env
  @load_env
end

#max_retriesInteger?

Returns the value of attribute max_retries.

Returns:

  • (Integer, nil)


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

def max_retries
  @max_retries
end

#max_tokensInteger?

Returns the value of attribute max_tokens.

Returns:

  • (Integer, nil)


302
303
304
# File 'sig/types.rbs', line 302

def max_tokens
  @max_tokens
end

#modelString?

Returns the value of attribute model.

Returns:

  • (String, nil)


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

def model
  @model
end

#temperatureFloat?

Returns the value of attribute temperature.

Returns:

  • (Float, nil)


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

def temperature
  @temperature
end

#timeout_secsInteger?

Returns the value of attribute timeout_secs.

Returns:

  • (Integer, nil)


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

def timeout_secs
  @timeout_secs
end