Documentation
¶
Index ¶
- type CodexSnapshot
- type FlowerSnapshot
- type Record
- type Store
- func (s *Store) AdvanceCodex(ctx context.Context, endpointID string, userPublicID string, threadID string, ...) (Record, error)
- func (s *Store) AdvanceFlower(ctx context.Context, endpointID string, userPublicID string, threadID string, ...) (Record, error)
- func (s *Store) Close() error
- func (s *Store) DeleteThread(ctx context.Context, endpointID string, surface Surface, threadID string) ([]Record, error)
- func (s *Store) EnsureCodex(ctx context.Context, endpointID string, userPublicID string, ...) (map[string]Record, error)
- func (s *Store) EnsureFlower(ctx context.Context, endpointID string, userPublicID string, ...) (map[string]Record, error)
- func (s *Store) RestoreRecords(ctx context.Context, records []Record) error
- type Surface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CodexSnapshot ¶
type FlowerSnapshot ¶
type Record ¶
type Record struct {
EndpointID string `json:"endpoint_id"`
ScopeID string `json:"scope_id"`
Surface Surface `json:"surface"`
ThreadID string `json:"thread_id"`
LastSeenActivityRevision int64 `json:"last_seen_activity_revision"`
LastReadMessageAtUnixMs int64 `json:"last_read_message_at_unix_ms"`
LastSeenWaitingPromptID string `json:"last_seen_waiting_prompt_id"`
LastReadUpdatedAtUnixS int64 `json:"last_read_updated_at_unix_s"`
LastSeenActivitySignature string `json:"last_seen_activity_signature"`
UpdatedAtUnixMs int64 `json:"updated_at_unix_ms"`
}
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func OpenResettingInvalidSchema ¶ added in v0.7.1
func (*Store) AdvanceCodex ¶
func (*Store) AdvanceFlower ¶
func (*Store) DeleteThread ¶
func (*Store) EnsureCodex ¶
func (*Store) EnsureFlower ¶
Click to show internal directories.
Click to hide internal directories.