pub struct LlmConfig {Show 21 fields
pub provider: ProviderKind,
pub base_url: String,
pub model: String,
pub embedding_model: String,
pub cloud: Option<CloudLlmConfig>,
pub openai: Option<OpenAiConfig>,
pub candle: Option<CandleConfig>,
pub orchestrator: Option<OrchestratorConfig>,
pub compatible: Option<Vec<CompatibleConfig>>,
pub router: Option<RouterConfig>,
pub ollama: Option<OllamaConfig>,
pub stt: Option<SttConfig>,
pub vision_model: Option<String>,
pub response_cache_enabled: bool,
pub response_cache_ttl_secs: u64,
pub router_ema_enabled: bool,
pub router_ema_alpha: f64,
pub router_reorder_interval: u64,
pub instruction_file: Option<PathBuf>,
pub summary_model: Option<String>,
pub summary_provider: Option<OrchestratorProviderConfig>,
}Fields§
§provider: ProviderKind§base_url: String§model: String§embedding_model: String§cloud: Option<CloudLlmConfig>§openai: Option<OpenAiConfig>§candle: Option<CandleConfig>§orchestrator: Option<OrchestratorConfig>§compatible: Option<Vec<CompatibleConfig>>§router: Option<RouterConfig>§ollama: Option<OllamaConfig>§stt: Option<SttConfig>§vision_model: Option<String>§response_cache_enabled: bool§response_cache_ttl_secs: u64§router_ema_enabled: bool§router_ema_alpha: f64§router_reorder_interval: u64§instruction_file: Option<PathBuf>Provider-specific instruction file to inject into the system prompt.
Merged with agent.instruction_files at startup.
summary_model: Option<String>Shorthand model spec for tool-pair summarization and context compaction.
Format: ollama/<model>, claude[/<model>], openai[/<model>], compatible/<name>, candle.
Ignored when [llm.summary_provider] is set.
summary_provider: Option<OrchestratorProviderConfig>Structured provider config for summarization. Takes precedence over summary_model.
Same format as [llm.orchestrator.providers.*].
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LlmConfig
impl<'de> Deserialize<'de> for LlmConfig
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 LlmConfig
impl RefUnwindSafe for LlmConfig
impl Send for LlmConfig
impl Sync for LlmConfig
impl Unpin for LlmConfig
impl UnsafeUnpin for LlmConfig
impl UnwindSafe for LlmConfig
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request