Module undo_redo

Module undo_redo 

Source
Expand description

Undo/Redo system for conversation management

This module provides functionality to track conversation states and enable undo/redo operations with branch preservation and memory-efficient snapshots.

Structsยง

BranchInfo
Information about a branch in the conversation
ConversationDiff
Diff between two conversation states (for efficient storage)
ConversationSnapshot
Represents a complete snapshot of conversation state at a point in time
MemoryInfo
Memory usage information
SnapshotMetadata
Metadata associated with a conversation snapshot
UndoRedoManager
Manages undo/redo operations for a conversation