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



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

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], ?providers: Array[LlmProviderConfig], ?cache: LlmCacheConfig, ?budget: LlmBudgetConfig, ?rate_limit: LlmRateLimitConfig, ?in_flight_limit: LlmInFlightLimitConfig, ?cost_tracking: bool, ?tracing: bool, ?cooldown_secs: Integer, ?health_check_secs: Integer, ?bedrock: BedrockConfig) -> void

Instance Attribute Details

#api_keyString? (readonly)

Returns the value of attribute api_key.

Returns:

  • (String, nil)


471
472
473
# File 'sig/types.rbs', line 471

def api_key
  @api_key
end

#base_urlString? (readonly)

Returns the value of attribute base_url.

Returns:

  • (String, nil)


472
473
474
# File 'sig/types.rbs', line 472

def base_url
  @base_url
end

#bedrockBedrockConfig? (readonly)

Returns the value of attribute bedrock.

Returns:



488
489
490
# File 'sig/types.rbs', line 488

def bedrock
  @bedrock
end

#budgetLlmBudgetConfig? (readonly)

Returns the value of attribute budget.

Returns:



481
482
483
# File 'sig/types.rbs', line 481

def budget
  @budget
end

#cacheLlmCacheConfig? (readonly)

Returns the value of attribute cache.

Returns:



480
481
482
# File 'sig/types.rbs', line 480

def cache
  @cache
end

#cooldown_secsInteger? (readonly)

Returns the value of attribute cooldown_secs.

Returns:

  • (Integer, nil)


486
487
488
# File 'sig/types.rbs', line 486

def cooldown_secs
  @cooldown_secs
end

#cost_trackingBoolean? (readonly)

Returns the value of attribute cost_tracking.

Returns:

  • (Boolean, nil)


484
485
486
# File 'sig/types.rbs', line 484

def cost_tracking
  @cost_tracking
end

#headersHash[String, String]? (readonly)

Returns the value of attribute headers.

Returns:

  • (Hash[String, String], nil)


478
479
480
# File 'sig/types.rbs', line 478

def headers
  @headers
end

#health_check_secsInteger? (readonly)

Returns the value of attribute health_check_secs.

Returns:

  • (Integer, nil)


487
488
489
# File 'sig/types.rbs', line 487

def health_check_secs
  @health_check_secs
end

#in_flight_limitLlmInFlightLimitConfig? (readonly)

Returns the value of attribute in_flight_limit.

Returns:



483
484
485
# File 'sig/types.rbs', line 483

def in_flight_limit
  @in_flight_limit
end

#load_envBoolean? (readonly)

Returns the value of attribute load_env.

Returns:

  • (Boolean, nil)


477
478
479
# File 'sig/types.rbs', line 477

def load_env
  @load_env
end

#max_retriesInteger? (readonly)

Returns the value of attribute max_retries.

Returns:

  • (Integer, nil)


474
475
476
# File 'sig/types.rbs', line 474

def max_retries
  @max_retries
end

#max_tokensInteger? (readonly)

Returns the value of attribute max_tokens.

Returns:

  • (Integer, nil)


476
477
478
# File 'sig/types.rbs', line 476

def max_tokens
  @max_tokens
end

#modelString (readonly)

Returns the value of attribute model.

Returns:

  • (String)


470
471
472
# File 'sig/types.rbs', line 470

def model
  @model
end

#providersArray[LlmProviderConfig]? (readonly)

Returns the value of attribute providers.

Returns:



479
480
481
# File 'sig/types.rbs', line 479

def providers
  @providers
end

#rate_limitLlmRateLimitConfig? (readonly)

Returns the value of attribute rate_limit.

Returns:



482
483
484
# File 'sig/types.rbs', line 482

def rate_limit
  @rate_limit
end

#temperatureFloat? (readonly)

Returns the value of attribute temperature.

Returns:

  • (Float, nil)


475
476
477
# File 'sig/types.rbs', line 475

def temperature
  @temperature
end

#timeout_secsInteger? (readonly)

Returns the value of attribute timeout_secs.

Returns:

  • (Integer, nil)


473
474
475
# File 'sig/types.rbs', line 473

def timeout_secs
  @timeout_secs
end

#tracingBoolean? (readonly)

Returns the value of attribute tracing.

Returns:

  • (Boolean, nil)


485
486
487
# File 'sig/types.rbs', line 485

def tracing
  @tracing
end