Expand description
Session and conversation thread management.
This module provides in-memory session storage for managing conversation state across multiple requests. Sessions are identified by UUID and contain the full message history.
§Architecture
Session: Represents a single conversation sessionSessionStore: Thread-safe store for all active sessionsEncryptedSession: Encrypted wrapper for secure communicationsEncryptedSessionStore: Store managing encrypted sessions
§Example
use universal_agent_runtime::session::{Session, SessionStore};
let store = SessionStore::new();
let session = store.create();
session.add_user_message("Hello!");
let messages = session.messages();
assert_eq!(messages.len(), 1);Structs§
- Conversation
Manager - Conversation manager for multi-party sessions.
- Encrypted
Session - An encrypted session wrapper.
- Encrypted
Session Store - Store for encrypted sessions.
- Encryption
Config - Configuration for encryption.
- Session
- A single conversation session.
- Session
Store - Thread-safe store for sessions.
- Streaming
Session - A session with streaming support.
- Stronghold
KeyManager - Key manager using Stronghold.
- WebRTC
Encrypted Session - WebRTC-based encrypted session.
Enums§
- Encryption
Type - Encryption type used for sessions.
Type Aliases§
- Conversation
Id - Conversation identifier.
- Device
Id - Device identifier.
- UserId
- User identifier.