Module models

Module models 

Source
Expand description

Data structures representing sessions, messages, and links. Core data models for Lore

These represent the internal representation of reasoning history, independent of any specific AI tool’s format.

Structs§

Annotation
An annotation on a session.
ContextMessage
A simplified message representation for context display.
Machine
Represents a machine that has captured sessions.
MatchWithContext
A single match with its surrounding context messages.
Message
A single message in a session
Repository
A tracked git repository.
SearchOptions
Options for filtering search results.
SearchResult
A search result from full-text search of message content.
SearchResultWithContext
A search result with surrounding context messages.
Session
A Session represents a complete human-AI collaboration. This is the primary unit of reasoning history.
SessionLink
Links a session to a git commit
Summary
A summary of a session.
Tag
A tag applied to a session.

Enums§

ContentBlock
A block of content within a message
LinkCreator
Indicates how a session link was created.
LinkType
The type of link between a session and git history.
MessageContent
Message content - can be simple text or complex with tool calls
MessageRole
The role of a message sender in a conversation.

Functions§

extract_session_files
Extracts file paths mentioned in a list of messages.