pub struct ConfigFileLlm {Show 15 fields
pub provider: Option<String>,
pub model: Option<String>,
pub api_key: Option<String>,
pub base_url: Option<String>,
pub max_tokens: Option<u32>,
pub timeout_ms: Option<u64>,
pub connect_timeout_ms: Option<u64>,
pub max_retries: Option<u32>,
pub retry_backoff_ms: Option<u64>,
pub breaker_failure_threshold: Option<u32>,
pub breaker_reset_ms: Option<u64>,
pub breaker_half_open_max_calls: Option<u32>,
pub latency_slo_ms: Option<u64>,
pub error_budget_ratio: Option<f64>,
pub error_budget_window_secs: Option<u64>,
}Expand description
LLM section in config file.
Fields§
§provider: Option<String>Provider name.
model: Option<String>Model name.
api_key: Option<String>API key.
base_url: Option<String>Base URL.
max_tokens: Option<u32>Maximum completion tokens for LLM responses (default: 8192).
timeout_ms: Option<u64>Request timeout in milliseconds.
connect_timeout_ms: Option<u64>Connect timeout in milliseconds.
max_retries: Option<u32>Maximum retries for LLM calls.
retry_backoff_ms: Option<u64>Retry backoff in milliseconds.
breaker_failure_threshold: Option<u32>Circuit breaker failure threshold.
breaker_reset_ms: Option<u64>Circuit breaker reset timeout in milliseconds.
breaker_half_open_max_calls: Option<u32>Circuit breaker half-open max calls.
latency_slo_ms: Option<u64>Latency budget in milliseconds.
error_budget_ratio: Option<f64>Error budget ratio threshold.
error_budget_window_secs: Option<u64>Error budget window in seconds.
Trait Implementations§
Source§impl Debug for ConfigFileLlm
impl Debug for ConfigFileLlm
Source§impl Default for ConfigFileLlm
impl Default for ConfigFileLlm
Source§fn default() -> ConfigFileLlm
fn default() -> ConfigFileLlm
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConfigFileLlm
impl<'de> Deserialize<'de> for ConfigFileLlm
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ConfigFileLlm
impl RefUnwindSafe for ConfigFileLlm
impl Send for ConfigFileLlm
impl Sync for ConfigFileLlm
impl Unpin for ConfigFileLlm
impl UnwindSafe for ConfigFileLlm
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].