Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSessionNotFound = errors.New("session: not found")
Functions ¶
Types ¶
type ContextWindowStore ¶
type ContextWindowStore interface {
ListContextWindowEvents(context.Context, *Session) ([]*Event, error)
}
ContextWindowStore optionally provides a reduced event window optimized for model context construction (typically latest compaction event and newer).
type Event ¶
type Event struct {
ID string
SessionID string
Time time.Time
Message model.Message
Meta map[string]any
}
Event is the persisted unit of runtime history used to rebuild invocation context and state.
type Store ¶
type Store interface {
GetOrCreate(context.Context, *Session) (*Session, error)
AppendEvent(context.Context, *Session, *Event) error
ListEvents(context.Context, *Session) ([]*Event, error)
SnapshotState(context.Context, *Session) (map[string]any, error)
}
Store provides session and event persistence.
Click to show internal directories.
Click to hide internal directories.