Documentation
¶
Index ¶
- type Compaction
- type Meta
- type Schedule
- type Store
- func (s *Store) AddSchedule(sessionID, schedule, prompt string, anchor time.Time) (int, error)
- func (s *Store) ClearMessages(id string) error
- func (s *Store) ClearSnapshots(id string) error
- func (s *Store) Close() error
- func (s *Store) Compactions(id string) []Compaction
- func (s *Store) Create(cwd, model, provider string) (string, error)
- func (s *Store) DeleteCompaction(id string, seq int) error
- func (s *Store) DeleteFrom(id string, from int) error
- func (s *Store) DeleteSchedule(sessionID string, id int) error
- func (s *Store) Fork(srcID string, uptoSeq int, title string) (string, error)
- func (s *Store) ForkTitle(base string) (string, error)
- func (s *Store) ForksOf(id string) ([]Meta, error)
- func (s *Store) LastExchange(id string) (user, assistant string)
- func (s *Store) LatestInDir(dir string) (Meta, error)
- func (s *Store) Load(idOrPrefix string) (Meta, []ai.Message, error)
- func (s *Store) LoadTasks(sessionID string) ([]Task, error)
- func (s *Store) MarkFired(sessionID string, id int, at time.Time) error
- func (s *Store) RawMessages(id string) []ai.Message
- func (s *Store) Recent(n int) ([]Meta, error)
- func (s *Store) RecordCompaction(id string, cutoff int, summary, model string, usage ai.Usage) error
- func (s *Store) Save(id string, from int, msgs []ai.Message, model, provider string) error
- func (s *Store) SaveSubagentTranscript(parentID, taskID string, msgs []ai.Message, model, provider string) (string, error)
- func (s *Store) SaveTask(sessionID string, t Task) error
- func (s *Store) Schedules(sessionID string) []Schedule
- func (s *Store) SetEffort(id, effort string) error
- func (s *Store) SetGoal(id, goal string) error
- func (s *Store) SetPinned(id string, pinned bool) error
- func (s *Store) SetSnapshot(id string, seq int, ref string) error
- func (s *Store) SetTags(id string, tags []string) error
- func (s *Store) SetTitle(id, title string) error
- func (s *Store) SetTodos(id, todosJSON string) error
- func (s *Store) SetUsage(id string, in, cached, out int, sub map[string]ai.Usage) error
- func (s *Store) Snapshots(id string) map[int]string
- func (s *Store) SubagentTranscript(parentID, taskID string) ([]ai.Message, error)
- func (s *Store) Todos(id string) string
- func (s *Store) UserHistory(limit int) ([]string, error)
- type Task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Compaction ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) AddSchedule ¶
func (*Store) ClearMessages ¶
func (*Store) ClearSnapshots ¶
func (*Store) Compactions ¶
func (s *Store) Compactions(id string) []Compaction
func (*Store) LastExchange ¶
func (*Store) RecordCompaction ¶
func (*Store) SaveSubagentTranscript ¶
func (*Store) SubagentTranscript ¶
Click to show internal directories.
Click to hide internal directories.