pub struct CognitiveStream {
pub lens: String,
pub prompt_modifier: String,
pub model_override: Option<String>,
pub metadata: HashMap<String, Value>,
}Expand description
A single cognitive processing stream — one lens on the agent’s identity.
All streams share the same agent identity, memory, and boundaries. Each stream modifies the system prompt to focus on a specific cognitive function, and can optionally use a different (typically smaller) model.
Fields§
§lens: StringWhat cognitive function this stream handles. Examples: “emotional”, “logical”, “antithink”, “past-errors”, “creative”
prompt_modifier: StringHow the agent’s system prompt is modified for this stream. Appended to the agent’s base system prompt.
model_override: Option<String>Optional model override — use a smaller/cheaper model for this stream.
When None, uses the agent’s primary model.
Fast streams (haiku, local models) cost ~1% of the main model.
metadata: HashMap<String, Value>Stream-specific metadata.
Implementations§
Trait Implementations§
Source§impl Clone for CognitiveStream
impl Clone for CognitiveStream
Source§fn clone(&self) -> CognitiveStream
fn clone(&self) -> CognitiveStream
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CognitiveStream
impl Debug for CognitiveStream
Source§impl<'de> Deserialize<'de> for CognitiveStream
impl<'de> Deserialize<'de> for CognitiveStream
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 CognitiveStream
impl RefUnwindSafe for CognitiveStream
impl Send for CognitiveStream
impl Sync for CognitiveStream
impl Unpin for CognitiveStream
impl UnsafeUnpin for CognitiveStream
impl UnwindSafe for CognitiveStream
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