Skip to main content

Module runtime

Module runtime 

Source
Expand description

Session-scoped runtime controller for hook-driven cognition.

This module owns the RuntimeController lifecycle (start / shutdown), the embedding service factory, and the LLM client fallback. All heavy cognition logic is delegated to the sibling modules:

  • dream_cycle — dream-cycle orchestration, signal collection, scheduling
  • job_processor — derive / reflect / digest job handlers
  • [distill] — activity distillation pipeline (LLM summarisation)
  • runtime_state — state persistence, session-key derivation, helper types

Re-exports§

pub use crate::runtime_state::derive_session_key;
pub use crate::runtime_state::RuntimeMode;
pub use crate::runtime_state::RuntimeShutdownReason;

Structs§

RuntimeController

Functions§

create_embedding_service
Create an embedding service when config.embedding.enabled is true.