Expand description
Session tree navigation for branched sessions
Handles navigation between different points in the session tree, including the creation of branch summaries when leaving a path.
Structs§
- Before
Tree Hook Result - Extension hook result for session_before_tree event
- Branch
Summary Details - Details stored in BranchSummaryEntry for file tracking
- Branch
Summary Entry - Branch summary entry - captures context when navigating away from a branch
- Branch
Summary Result - Result of branch summarization
- Collect
Entries Result - Result of collecting entries for branch summarization
- Compaction
Entry - Compaction entry - summary after context window compaction
- Custom
Entry - Custom entry for extensions to store extension-specific data
- Custom
Message Entry - Custom message entry for extensions to inject messages into LLM context
- Extension
Summary - Summary generated by an extension
- Label
Entry - Label entry - user-defined bookmark/marker on entries
- Message
Entry - Message entry content
- Navigation
Options - Navigation target options
- Navigation
Result - Result of tree navigation
- Session
Info Entry - Session info entry - metadata like display name
- Session
Navigator - Session navigator for tree-based session management
- Tree
Preparation - Preparation data for tree navigation (passed to extension hooks)
Enums§
- Message
Role - Message role types
- Session
Entry Type - Extended session entry types for tree navigation
- Summarization
Error - Error during summarization
Traits§
- Summarizer
- Trait for LLM-based summarization Implement this to provide actual summarization, or use a mock for testing
Functions§
- extract_
custom_ message_ text - Extract text content from custom message
- extract_
user_ message_ text - Extract text content from user message
- is_
assistant_ message - Check if an entry is an assistant message
- is_
custom_ message - Check if an entry is a custom message
- is_
user_ message - Check if an entry is a user message