pub struct AdvisorConfigToml {
pub enabled: bool,
pub max_tool_calls: u32,
pub rate_limit_secs: u64,
pub dedup_window_secs: u64,
pub model: Option<String>,
}Expand description
On-disk schema for [advisor] (#3982).
Advisor mode is off by default. When enabled, the engine spawns a
short-lived background reviewer after each turn that contained tool calls.
The reviewer reads a bounded slice of recent tool calls, makes a concise
LLM advisory call, and emits the note as an AdvisoryNote event without
blocking the parent turn.
Fields§
§enabled: boolMaster on/off switch. false by default — no background reviewer is
spawned until the user opts in via [advisor] enabled = true or
/advisor on.
max_tool_calls: u32Maximum number of recent tool-call/result pairs to include in each advisory review. Keeps the reviewer’s context window bounded regardless of turn length. Defaults to 10; clamped to 1–50.
rate_limit_secs: u64Minimum wall-clock seconds between two consecutive advisor emissions. Prevents noise on rapid multi-turn sequences. Defaults to 60 seconds; clamped to 5–3600.
dedup_window_secs: u64Deduplication window in seconds. An advisory note whose content hash matches the previous note within this window is silently dropped. Defaults to 300 seconds (5 minutes).
model: Option<String>Optional model override for the advisor LLM call. When absent, the advisor reuses the session’s current model.
Trait Implementations§
Source§impl Clone for AdvisorConfigToml
impl Clone for AdvisorConfigToml
Source§fn clone(&self) -> AdvisorConfigToml
fn clone(&self) -> AdvisorConfigToml
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AdvisorConfigToml
impl Debug for AdvisorConfigToml
Source§impl Default for AdvisorConfigToml
impl Default for AdvisorConfigToml
Source§impl<'de> Deserialize<'de> for AdvisorConfigToml
impl<'de> Deserialize<'de> for AdvisorConfigToml
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>,
impl Eq for AdvisorConfigToml
Source§impl PartialEq for AdvisorConfigToml
impl PartialEq for AdvisorConfigToml
Source§impl Serialize for AdvisorConfigToml
impl Serialize for AdvisorConfigToml
impl StructuralPartialEq for AdvisorConfigToml
Auto Trait Implementations§
impl Freeze for AdvisorConfigToml
impl RefUnwindSafe for AdvisorConfigToml
impl Send for AdvisorConfigToml
impl Sync for AdvisorConfigToml
impl Unpin for AdvisorConfigToml
impl UnsafeUnpin for AdvisorConfigToml
impl UnwindSafe for AdvisorConfigToml
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.