pub struct CognitiveContext {
pub system_directive: String,
pub recall: Vec<String>,
pub history: Vec<Message>,
pub constraints: Vec<String>,
}Expand description
Cognitive context for prompt rendering.
Contains the system directive, recall (memory), conversation history, and active constraints (policies) the model must respect.
Fields§
§system_directive: StringThe system directive (identity + constitution + role).
recall: Vec<String>Relevant memories for the current context (long-term recall).
history: Vec<Message>Recent conversation history.
constraints: Vec<String>Active kernel constraints the model must respect.
Trait Implementations§
Source§impl Clone for CognitiveContext
impl Clone for CognitiveContext
Source§fn clone(&self) -> CognitiveContext
fn clone(&self) -> CognitiveContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CognitiveContext
impl Debug for CognitiveContext
Source§impl Default for CognitiveContext
impl Default for CognitiveContext
Source§fn default() -> CognitiveContext
fn default() -> CognitiveContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CognitiveContext
impl<'de> Deserialize<'de> for CognitiveContext
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 CognitiveContext
impl RefUnwindSafe for CognitiveContext
impl Send for CognitiveContext
impl Sync for CognitiveContext
impl Unpin for CognitiveContext
impl UnwindSafe for CognitiveContext
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