Skip to main content

CognitionConfig

Struct CognitionConfig 

Source
pub struct CognitionConfig {
Show 27 fields pub auto_runtime_enabled: bool, pub derive_enabled: bool, pub digest_enabled: bool, pub reflect_enabled: bool, pub activity_distill_enabled: bool, pub dream_on_session_end: bool, pub checkpoint_flush_enabled: bool, pub runtime_idle_timeout_secs: u64, pub max_job_batch: usize, pub lease_ttl_secs: u64, pub representation_max_items: usize, pub digest_short_target_tokens: usize, pub digest_long_target_tokens: usize, pub direct_enrichment_timeout_secs: u64, pub activity_distill_min_events: usize, pub activity_distill_max_events: usize, pub include_raw_by_default: bool, pub session_end_dream_timeout_secs: u64, pub retry_buffer_drain_limit: usize, pub contradiction_belief_revision_enabled: bool, pub contradiction_confidence_penalty: f32, pub memory_decay_enabled: bool, pub memory_decay_age_days: u64, pub memory_decay_access_boost_days: u64, pub adaptive_dream_enabled: bool, pub adaptive_dream_min_interval_secs: u64, pub adaptive_dream_max_interval_secs: u64,
}
Expand description

Cognition and runtime orchestration configuration

Fields§

§auto_runtime_enabled: bool

Enable session-scoped runtime orchestration for hook-driven agent sessions

§derive_enabled: bool

Enable derivation of explicit observations from raw memories

§digest_enabled: bool

Enable session digest generation

§reflect_enabled: bool

Enable reflective/dream processing

§activity_distill_enabled: bool

Enable low-signal activity distillation into higher-level summaries

§dream_on_session_end: bool

Whether to trigger a bounded dream pass when a session ends

§checkpoint_flush_enabled: bool

Whether compact/checkpoint events should trigger a bounded flush

§runtime_idle_timeout_secs: u64

Idle timeout, in seconds, for session-scoped runtime state

§max_job_batch: usize

Maximum number of cognition jobs to claim in one worker batch

§lease_ttl_secs: u64

Lease TTL, in seconds, for claimed cognition jobs

§representation_max_items: usize

Maximum memories to include when building a working representation

§digest_short_target_tokens: usize

Target token budget for short digests

§digest_long_target_tokens: usize

Target token budget for long digests

§direct_enrichment_timeout_secs: u64

Timeout, in seconds, for direct hook-enrichment attempts

§activity_distill_min_events: usize

Minimum number of events required before activity distillation runs

§activity_distill_max_events: usize

Maximum number of events to include in one activity distillation batch

§include_raw_by_default: bool

Whether raw memories should be included by default in retrieval surfaces

§session_end_dream_timeout_secs: u64

Timeout, in seconds, for best-effort dream work during session shutdown

§retry_buffer_drain_limit: usize

Maximum retry-buffer artifacts to process during a bounded flush

§contradiction_belief_revision_enabled: bool

Enable belief revision when contradictions are detected (reduce confidence on sources)

§contradiction_confidence_penalty: f32

How much to reduce confidence on each contradicted memory (0.0–1.0)

§memory_decay_enabled: bool

Enable memory aging decay in ranking blend

§memory_decay_age_days: u64

Days before a memory starts decaying in ranking score

§memory_decay_access_boost_days: u64

Days that a recent access resets the decay clock

§adaptive_dream_enabled: bool

Enable adaptive dream interval in the periodic supervisor loop

§adaptive_dream_min_interval_secs: u64

Floor (minimum) for adaptive dream interval in seconds

§adaptive_dream_max_interval_secs: u64

Ceiling (maximum) for adaptive dream interval in seconds

Trait Implementations§

Source§

impl Clone for CognitionConfig

Source§

fn clone(&self) -> CognitionConfig

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CognitionConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for CognitionConfig

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for CognitionConfig

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for CognitionConfig

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,