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)
  • top_p: (Float)
  • stop: (Array[String])
  • seed: (Integer)
  • presence_penalty: (Float)
  • frequency_penalty: (Float)
  • reasoning_effort: (String)
  • extra_body: (String)
  • load_env: (Boolean)
  • headers: (Hash[String, String])
  • providers: (Array[LlmProviderConfig])
  • cache: (LlmCacheConfig)
  • budget: (LlmBudgetConfig)
  • rate_limit: (LlmRateLimitConfig)
  • cost_tracking: (Boolean)
  • tracing: (Boolean)
  • cooldown_secs: (Integer)
  • health_check_secs: (Integer)
  • bedrock: (BedrockConfig)
  • credential_provider: (CredentialProviderConfig)
  • max_concurrency: (Integer)
  • max_response_bytes: (Integer)


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

def initialize: (?model: String, ?api_key: String, ?base_url: String, ?timeout_secs: Integer, ?max_retries: Integer, ?temperature: Float, ?max_tokens: Integer, ?top_p: Float, ?stop: Array[String], ?seed: Integer, ?presence_penalty: Float, ?frequency_penalty: Float, ?reasoning_effort: String, ?extra_body: String, ?load_env: bool, ?headers: Hash[String, String], ?providers: Array[LlmProviderConfig], ?cache: LlmCacheConfig, ?budget: LlmBudgetConfig, ?rate_limit: LlmRateLimitConfig, ?cost_tracking: bool, ?tracing: bool, ?cooldown_secs: Integer, ?health_check_secs: Integer, ?bedrock: BedrockConfig, ?credential_provider: CredentialProviderConfig, ?max_concurrency: Integer, ?max_response_bytes: Integer) -> void

Instance Attribute Details

#api_keyString? (readonly)

Returns the value of attribute api_key.

Returns:

  • (String, nil)


1496
1497
1498
# File 'sig/types.rbs', line 1496

def api_key
  @api_key
end

#base_urlString? (readonly)

Returns the value of attribute base_url.

Returns:

  • (String, nil)


1497
1498
1499
# File 'sig/types.rbs', line 1497

def base_url
  @base_url
end

#bedrockBedrockConfig? (readonly)

Returns the value of attribute bedrock.

Returns:



1519
1520
1521
# File 'sig/types.rbs', line 1519

def bedrock
  @bedrock
end

#budgetLlmBudgetConfig? (readonly)

Returns the value of attribute budget.

Returns:



1513
1514
1515
# File 'sig/types.rbs', line 1513

def budget
  @budget
end

#cacheLlmCacheConfig? (readonly)

Returns the value of attribute cache.

Returns:



1512
1513
1514
# File 'sig/types.rbs', line 1512

def cache
  @cache
end

#cooldown_secsInteger? (readonly)

Returns the value of attribute cooldown_secs.

Returns:

  • (Integer, nil)


1517
1518
1519
# File 'sig/types.rbs', line 1517

def cooldown_secs
  @cooldown_secs
end

#cost_trackingBoolean? (readonly)

Returns the value of attribute cost_tracking.

Returns:

  • (Boolean, nil)


1515
1516
1517
# File 'sig/types.rbs', line 1515

def cost_tracking
  @cost_tracking
end

#credential_providerCredentialProviderConfig? (readonly)

Returns the value of attribute credential_provider.

Returns:



1520
1521
1522
# File 'sig/types.rbs', line 1520

def credential_provider
  @credential_provider
end

#extra_bodyString? (readonly)

Returns the value of attribute extra_body.

Returns:

  • (String, nil)


1508
1509
1510
# File 'sig/types.rbs', line 1508

def extra_body
  @extra_body
end

#frequency_penaltyFloat? (readonly)

Returns the value of attribute frequency_penalty.

Returns:

  • (Float, nil)


1506
1507
1508
# File 'sig/types.rbs', line 1506

def frequency_penalty
  @frequency_penalty
end

#headersHash[String, String]? (readonly)

Returns the value of attribute headers.

Returns:

  • (Hash[String, String], nil)


1510
1511
1512
# File 'sig/types.rbs', line 1510

def headers
  @headers
end

#health_check_secsInteger? (readonly)

Returns the value of attribute health_check_secs.

Returns:

  • (Integer, nil)


1518
1519
1520
# File 'sig/types.rbs', line 1518

def health_check_secs
  @health_check_secs
end

#load_envBoolean? (readonly)

Returns the value of attribute load_env.

Returns:

  • (Boolean, nil)


1509
1510
1511
# File 'sig/types.rbs', line 1509

def load_env
  @load_env
end

#max_concurrencyInteger? (readonly)

Returns the value of attribute max_concurrency.

Returns:

  • (Integer, nil)


1521
1522
1523
# File 'sig/types.rbs', line 1521

def max_concurrency
  @max_concurrency
end

#max_response_bytesInteger? (readonly)

Returns the value of attribute max_response_bytes.

Returns:

  • (Integer, nil)


1522
1523
1524
# File 'sig/types.rbs', line 1522

def max_response_bytes
  @max_response_bytes
end

#max_retriesInteger? (readonly)

Returns the value of attribute max_retries.

Returns:

  • (Integer, nil)


1499
1500
1501
# File 'sig/types.rbs', line 1499

def max_retries
  @max_retries
end

#max_tokensInteger? (readonly)

Returns the value of attribute max_tokens.

Returns:

  • (Integer, nil)


1501
1502
1503
# File 'sig/types.rbs', line 1501

def max_tokens
  @max_tokens
end

#modelString (readonly)

Returns the value of attribute model.

Returns:

  • (String)


1495
1496
1497
# File 'sig/types.rbs', line 1495

def model
  @model
end

#presence_penaltyFloat? (readonly)

Returns the value of attribute presence_penalty.

Returns:

  • (Float, nil)


1505
1506
1507
# File 'sig/types.rbs', line 1505

def presence_penalty
  @presence_penalty
end

#providersArray[LlmProviderConfig]? (readonly)

Returns the value of attribute providers.

Returns:



1511
1512
1513
# File 'sig/types.rbs', line 1511

def providers
  @providers
end

#rate_limitLlmRateLimitConfig? (readonly)

Returns the value of attribute rate_limit.

Returns:



1514
1515
1516
# File 'sig/types.rbs', line 1514

def rate_limit
  @rate_limit
end

#reasoning_effortString? (readonly)

Returns the value of attribute reasoning_effort.

Returns:

  • (String, nil)


1507
1508
1509
# File 'sig/types.rbs', line 1507

def reasoning_effort
  @reasoning_effort
end

#seedInteger? (readonly)

Returns the value of attribute seed.

Returns:

  • (Integer, nil)


1504
1505
1506
# File 'sig/types.rbs', line 1504

def seed
  @seed
end

#stopArray[String]? (readonly)

Returns the value of attribute stop.

Returns:

  • (Array[String], nil)


1503
1504
1505
# File 'sig/types.rbs', line 1503

def stop
  @stop
end

#temperatureFloat? (readonly)

Returns the value of attribute temperature.

Returns:

  • (Float, nil)


1500
1501
1502
# File 'sig/types.rbs', line 1500

def temperature
  @temperature
end

#timeout_secsInteger? (readonly)

Returns the value of attribute timeout_secs.

Returns:

  • (Integer, nil)


1498
1499
1500
# File 'sig/types.rbs', line 1498

def timeout_secs
  @timeout_secs
end

#top_pFloat? (readonly)

Returns the value of attribute top_p.

Returns:

  • (Float, nil)


1502
1503
1504
# File 'sig/types.rbs', line 1502

def top_p
  @top_p
end

#tracingBoolean? (readonly)

Returns the value of attribute tracing.

Returns:

  • (Boolean, nil)


1516
1517
1518
# File 'sig/types.rbs', line 1516

def tracing
  @tracing
end

Instance Method Details

#validatevoid

This method returns an undefined value.



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

def validate: () -> void