pub struct Context {
pub compact_at: Option<f64>,
pub keep_last: Option<u32>,
pub model_window: Option<u64>,
pub plan: Plan,
pub template: Option<String>,
pub templates: BTreeMap<String, String>,
pub summarize: Summarize,
}Fields§
§compact_at: Option<f64>§keep_last: Option<u32>§model_window: Option<u64>The model’s context window in tokens (overrides the value inferred
from intelligence.model) — the base of the compaction threshold.
plan: Plan§template: Option<String>The system-prompt template. Unset = the built-in default,
which agentd --context-template prints. Written in the small
{{#if}} / {{#each}} language over the environment data; expressions
are a path first and CEL second.
templates: BTreeMap<String, String>Named alternates a node selects with context: {template: <name>} —
e.g. a minimal template for extraction steps that need no
environment.
summarize: SummarizeCompaction’s model-facing half: the summarizer prompt and (optionally) a cheaper model to run it on.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Context
impl<'de> Deserialize<'de> for Context
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
impl StructuralPartialEq for Context
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnsafeUnpin for Context
impl UnwindSafe for Context
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