pub struct ContextDefinition {
pub name: String,
pub memory_scope: String,
pub language: String,
pub depth: String,
pub max_tokens: Option<i64>,
pub temperature: Option<f64>,
pub cite_sources: Option<bool>,
pub now_tz: Option<String>,
pub loc: Loc,
pub leading_trivia: Vec<Trivia>,
pub trailing_trivia: Vec<Trivia>,
}Fields§
§name: String§memory_scope: String§language: String§depth: String§max_tokens: Option<i64>§temperature: Option<f64>§cite_sources: Option<bool>§now_tz: Option<String>v2.46.0 — the conversational frame’s declared cognitive timezone
(IANA name). Every step running within this context carries the run’s
captured instant rendered in this zone, unless the step declares its
own now: override. Format-checked (axon-T892); None → no
temporal injection (back-compat).
loc: Loc§leading_trivia: Vec<Trivia>v1.5.2 — leading comment trivia attached to this declaration (comments preceding the declaration’s first token, since the previous declaration or file start). Empty by default.
trailing_trivia: Vec<Trivia>v1.5.2 — trailing comment trivia (same line as the declaration’s last effective token). Empty by default.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ContextDefinition
impl RefUnwindSafe for ContextDefinition
impl Send for ContextDefinition
impl Sync for ContextDefinition
impl Unpin for ContextDefinition
impl UnsafeUnpin for ContextDefinition
impl UnwindSafe for ContextDefinition
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