Versions in this module Expand all Collapse all v0 v0.1.0 Aug 9, 2026 Changes in this version + var ErrSessionNotFound = errors.New("session not found") + type BaseStore interface + LoadSession func(context.Context, string) (SessionCheckpoint, error) + SaveSession func(context.Context, string, SessionCheckpoint) error + type InMemoryStore struct + func NewInMemoryStore() *InMemoryStore + func (s *InMemoryStore) LoadSession(_ context.Context, sessionID string) (SessionCheckpoint, error) + func (s *InMemoryStore) SaveSession(_ context.Context, sessionID string, checkpoint SessionCheckpoint) error + type PendingToolCall struct + InterruptActive bool + ToolCall *streaming.ToolCall + type PostgresStore struct + func NewPostgresStore(conn *pgx.Conn) *PostgresStore + func (s *PostgresStore) LoadSession(ctx context.Context, sessionID string) (SessionCheckpoint, error) + func (s *PostgresStore) SaveSession(ctx context.Context, sessionID string, checkpoint SessionCheckpoint) error + type SessionCheckpoint struct + ContextWindow []*streaming.Message + State sessionState + func NewCheckpoint(contextWindow []*streaming.Message, ...) (*SessionCheckpoint, error)