Expand description
Agent session model + persistence.
Session types and storage logic are defined in gestura-core-sessions and
re-exported here. This module adds config-dependent extensions
(SessionToolSettingsConfigExt) and migration wrappers that depend on
crate::config::AppConfig.
Structs§
- Agent
Session - A persisted agent session.
- Conversation
Message - A message in a persisted conversation history.
- File
Agent Session Store - File-backed session store (one JSON file per session).
- Session
Activity Event - A durable session activity event captured for replay and export.
- Session
Info - Minimal session info used for list UIs.
- Session
LlmConfig - Session-scoped LLM configuration override.
- Session
Memory Blocker - A blocker tracked in short-term memory.
- Session
Memory Decision - A durable decision made during the session.
- Session
Memory Entry - A compact timeline entry retained in session-local memory.
- Session
Memory Finding - A synthesized finding retained for the active session.
- Session
Memory Promotion Candidate - High-value short-term memory candidate for durable promotion.
- Session
Memory Resource - A resource remembered for the active session only.
- Session
Reflection Settings - Session-scoped experiential reflection override.
- Session
State - Persisted session state.
- Session
Tool Call - Tool call record for session history.
- Session
Tool Settings - Session-scoped tool availability settings.
- Session
Voice Config - Session-scoped Voice/STT configuration override.
- Session
Working Memory - Session-scoped working memory for the active task.
Enums§
- Message
Source - Source of an end-user message.
- Session
Blocker Status - Status for a remembered blocker.
- Session
Filter - Filter for listing sessions.
- Session
Memory Entry Kind - Timeline entry kind for short-term memory.
- Session
Memory Promotion Source - Source bucket for promoting short-term memory into durable memory.
- Session
Memory Resource Kind - Resource kind tracked in session working memory.
- Session
Permission Level - Permission level for tool execution.
Traits§
- Agent
Session Store - A storage abstraction for agent sessions.
- Session
Tool Settings Config Ext - Config-dependent constructors for
SessionToolSettings.
Functions§
- default_
agent_ sessions_ dir - Default directory for persisted agent sessions.
- effective_
session_ reflection_ enabled - Resolve whether experiential reflection is enabled for a session.
- legacy_
gui_ sessions_ file_ path - Returns the path for the legacy GUI session history file:
~/.gestura/gui_sessions.json. - migrate_
legacy_ gui_ sessions_ to_ core - One-time migration from the legacy
gui_sessions.jsonfile into the unified core store. - migrate_
legacy_ gui_ sessions_ to_ core_ at_ path - One-time migration from a legacy GUI sessions file at a specific path.
- sanitize_
session_ llm_ override - Sanitize potentially invalid persisted (provider, model) overrides.
Type Aliases§
- Agent
Session Result - Result type for agent session store operations.