Module session

Module session 

Source
Expand description

Session management for stateful conversations.

Re-exports§

pub use crate::types::TokenUsage;
pub use compact::CompactExecutor;
pub use compact::CompactStrategy;
pub use manager::SessionManager;
pub use persistence::MemoryPersistence;
pub use persistence::Persistence;
pub use persistence::PersistenceFactory;
pub use persistence_jsonl::JsonlConfig;jsonl
pub use persistence_jsonl::JsonlConfigBuilder;jsonl
pub use persistence_jsonl::JsonlEntry;jsonl
pub use persistence_jsonl::JsonlPersistence;jsonl
pub use persistence_jsonl::SyncMode;jsonl
pub use persistence_postgres::PgPoolConfig;postgres
pub use persistence_postgres::PostgresConfig;postgres
pub use persistence_postgres::PostgresPersistence;postgres
pub use persistence_postgres::PostgresSchema;postgres
pub use persistence_postgres::SchemaIssue;postgres
pub use persistence_redis::RedisConfig;redis-backend
pub use persistence_redis::RedisPersistence;redis-backend
pub use queue::InputQueue;
pub use queue::MergedInput;
pub use queue::QueueError;
pub use queue::QueuedInput;
pub use queue::SharedInputQueue;
pub use session_state::ExecutionGuard;
pub use session_state::ToolState;
pub use state::MessageId;
pub use state::MessageMetadata;
pub use state::PermissionPolicy;
pub use state::Session;
pub use state::SessionConfig;
pub use state::SessionId;
pub use state::SessionMessage;
pub use state::SessionMode;
pub use state::SessionState;
pub use state::SessionType;
pub use types::CompactRecord;
pub use types::CompactTrigger;
pub use types::EnvironmentContext;
pub use types::Plan;
pub use types::PlanStatus;
pub use types::QueueItem;
pub use types::QueueOperation;
pub use types::QueueStatus;
pub use types::SessionStats;
pub use types::SessionTree;
pub use types::SummarySnapshot;
pub use types::TodoItem;
pub use types::TodoStatus;
pub use types::ToolExecution;
pub use types::ToolExecutionFilter;

Modules§

compact
Context Compaction (Claude Code CLI compatible)
manager
Session lifecycle management.
persistence
Session Persistence Backends
persistence_jsonljsonl
JSONL-based persistence backend compatible with Claude Code CLI.
persistence_postgrespostgres
PostgreSQL session persistence with explicit schema management.
persistence_redisredis-backend
Redis persistence backend for sessions.
queue
Input queue for handling concurrent user inputs.
session_state
Tool state for thread-safe state access.
state
Session state management.
types
Session-related types for persistence and tracking.

Enums§

SessionError

Type Aliases§

SessionResult