Versions in this module Expand all Collapse all v0 v0.4.3 Nov 9, 2026 v0.4.2 Nov 4, 2026 Changes in this version + func LastUUID(recs []Record) string + func Messages(recs []Record) ([]llm.Message, llm.Usage) + func NewAgentID() string + func NewSessionID() string + func SessionIDFrom(ctx context.Context) string + func WithSessionID(ctx context.Context, sessionID string) context.Context + type Record struct + AgentID string + Boundary *llm.BoundaryMeta + IsSidechain bool + Message *llm.Message + ParentUUID string + SessionID string + Timestamp string + Type string + UUID string + Usage *llm.Usage + type Store struct + func NewStore(dir string) *Store + func (s *Store) AgentPath(sessionID, agentID string) string + func (s *Store) Append(path string, recs ...Record) error + func (s *Store) Load(path string) ([]Record, error) + func (s *Store) MainPath(sessionID string) string + func (s *Store) NewWriter(sessionID, agentID string) *Writer + func (s *Store) ResumeWriter(sessionID, lastUUID string) *Writer + type Writer struct + func (w *Writer) Err() error + func (w *Writer) RecordBoundary(meta llm.BoundaryMeta) + func (w *Writer) RecordMessage(m llm.Message, usage llm.Usage)