pub struct StaticMetricsInit {
pub stt_model: Option<String>,
pub compaction_model: Option<String>,
pub semantic_cache_enabled: bool,
pub embedding_model: String,
pub self_learning_enabled: bool,
pub active_channel: String,
pub token_budget: Option<u64>,
pub compaction_threshold: Option<u32>,
pub vault_backend: String,
pub autosave_enabled: bool,
pub model_name_override: Option<String>,
}Expand description
Configuration-derived fields of MetricsSnapshot that are known at agent startup and do
not change during the session.
Pass this struct to AgentBuilder::with_static_metrics immediately after
AgentBuilder::with_metrics to initialize all static fields in one place rather than
through scattered send_modify calls in the runner.
§Examples
use zeph_core::metrics::StaticMetricsInit;
let init = StaticMetricsInit {
active_channel: "cli".to_owned(),
..StaticMetricsInit::default()
};Fields§
§stt_model: Option<String>STT model name (e.g. "whisper-1"). None when STT is not configured.
compaction_model: Option<String>Model used for context compaction/summarization. None when no summary provider is set.
semantic_cache_enabled: boolWhether the semantic response cache is enabled.
This value is also written to MetricsSnapshot::cache_enabled which is an alias for the
same concept.
embedding_model: StringEmbedding model name (e.g. "nomic-embed-text"). Empty when embeddings are disabled.
self_learning_enabled: boolWhether self-learning (skill evolution) is enabled.
active_channel: StringActive I/O channel name: "cli", "telegram", "tui", "discord", "slack".
token_budget: Option<u64>Token budget for context window. None when not configured.
compaction_threshold: Option<u32>Token threshold that triggers soft compaction. None when not configured.
vault_backend: StringVault backend identifier: "age", "env", or "none".
autosave_enabled: boolWhether assistant messages are auto-saved to memory.
model_name_override: Option<String>Override for the active model name. When Some, replaces the model name set by the
builder from runtime.model_name (which may be a placeholder) with the effective model
resolved from the LLM provider configuration.
Trait Implementations§
Source§impl Debug for StaticMetricsInit
impl Debug for StaticMetricsInit
Source§impl Default for StaticMetricsInit
impl Default for StaticMetricsInit
Source§fn default() -> StaticMetricsInit
fn default() -> StaticMetricsInit
Auto Trait Implementations§
impl Freeze for StaticMetricsInit
impl RefUnwindSafe for StaticMetricsInit
impl Send for StaticMetricsInit
impl Sync for StaticMetricsInit
impl Unpin for StaticMetricsInit
impl UnsafeUnpin for StaticMetricsInit
impl UnwindSafe for StaticMetricsInit
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
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>
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>
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>
T in a tonic::Request