Skip to main content

Module session

Module session 

Source
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

§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§

ConversationManager
Conversation manager for multi-party sessions.
EncryptedSession
An encrypted session wrapper.
EncryptedSessionStore
Store for encrypted sessions.
EncryptionConfig
Configuration for encryption.
Session
A single conversation session.
SessionStore
Thread-safe store for sessions.
StreamingSession
A session with streaming support.
StrongholdKeyManager
Key manager using Stronghold.
WebRTCEncryptedSession
WebRTC-based encrypted session.

Enums§

EncryptionType
Encryption type used for sessions.

Type Aliases§

ConversationId
Conversation identifier.
DeviceId
Device identifier.
UserId
User identifier.