Documentation
¶
Index ¶
- type Diagnostics
- type SQLiteStore
- func (s *SQLiteStore) AcceptMessage(ctx context.Context, message core.Message, run core.Run) error
- func (s *SQLiteStore) Close() error
- func (s *SQLiteStore) CompleteRun(ctx context.Context, assistantMessage core.Message, run core.Run) error
- func (s *SQLiteStore) CreateApproval(ctx context.Context, approval core.Approval) error
- func (s *SQLiteStore) CreateClientDelivery(ctx context.Context, delivery core.ClientDelivery) error
- func (s *SQLiteStore) CreateFileSnapshot(ctx context.Context, snapshot core.FileSnapshot) (core.FileSnapshot, error)
- func (s *SQLiteStore) CreateRun(ctx context.Context, run core.Run) error
- func (s *SQLiteStore) CreateSession(ctx context.Context, session core.Session) error
- func (s *SQLiteStore) DeleteExternalAgentSession(ctx context.Context, sessionID string) error
- func (s *SQLiteStore) DeleteSession(ctx context.Context, sessionID string) error
- func (s *SQLiteStore) GetApproval(ctx context.Context, approvalID string) (core.Approval, error)
- func (s *SQLiteStore) GetBinding(ctx context.Context, client string, externalKey string) (core.ClientBinding, error)
- func (s *SQLiteStore) GetExternalAgentSession(ctx context.Context, sessionID string) (externalagents.SessionAttachment, error)
- func (s *SQLiteStore) GetRun(ctx context.Context, runID string) (core.Run, error)
- func (s *SQLiteStore) GetSession(ctx context.Context, sessionID string) (core.Session, error)
- func (s *SQLiteStore) ListApprovals(ctx context.Context, sessionID string, state core.ApprovalState) ([]core.Approval, error)
- func (s *SQLiteStore) ListClientDeliveries(ctx context.Context, filter core.ClientDeliveryFilter) ([]core.ClientDelivery, error)
- func (s *SQLiteStore) ListFileSnapshots(ctx context.Context, sessionID string) ([]core.FileSnapshot, error)
- func (s *SQLiteStore) ListMessages(ctx context.Context, sessionID string, limit int) ([]core.Message, error)
- func (s *SQLiteStore) ListSessions(ctx context.Context, filter core.SessionListFilter) ([]core.Session, error)
- func (s *SQLiteStore) SaveBinding(ctx context.Context, binding core.ClientBinding) error
- func (s *SQLiteStore) SaveExternalAgentSession(ctx context.Context, attachment externalagents.SessionAttachment) error
- func (s *SQLiteStore) SaveMessage(ctx context.Context, message core.Message) error
- func (s *SQLiteStore) UpdateApproval(ctx context.Context, approval core.Approval) error
- func (s *SQLiteStore) UpdateClientDelivery(ctx context.Context, delivery core.ClientDelivery) error
- func (s *SQLiteStore) UpdateMessage(ctx context.Context, message core.Message) error
- func (s *SQLiteStore) UpdateRun(ctx context.Context, run core.Run) error
- func (s *SQLiteStore) UpdateSession(ctx context.Context, session core.Session) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Diagnostics ¶
func CheckSQLite ¶
func CheckSQLite(path string) (Diagnostics, error)
type SQLiteStore ¶
type SQLiteStore struct {
// contains filtered or unexported fields
}
func NewSQLite ¶
func NewSQLite(path string) (*SQLiteStore, error)
func (*SQLiteStore) AcceptMessage ¶
func (*SQLiteStore) Close ¶
func (s *SQLiteStore) Close() error
func (*SQLiteStore) CompleteRun ¶
func (*SQLiteStore) CreateApproval ¶
func (*SQLiteStore) CreateClientDelivery ¶
func (s *SQLiteStore) CreateClientDelivery(ctx context.Context, delivery core.ClientDelivery) error
func (*SQLiteStore) CreateFileSnapshot ¶
func (s *SQLiteStore) CreateFileSnapshot(ctx context.Context, snapshot core.FileSnapshot) (core.FileSnapshot, error)
func (*SQLiteStore) CreateSession ¶
func (*SQLiteStore) DeleteExternalAgentSession ¶ added in v0.1.4
func (s *SQLiteStore) DeleteExternalAgentSession(ctx context.Context, sessionID string) error
func (*SQLiteStore) DeleteSession ¶
func (s *SQLiteStore) DeleteSession(ctx context.Context, sessionID string) error
func (*SQLiteStore) GetApproval ¶
func (*SQLiteStore) GetBinding ¶
func (s *SQLiteStore) GetBinding(ctx context.Context, client string, externalKey string) (core.ClientBinding, error)
func (*SQLiteStore) GetExternalAgentSession ¶ added in v0.1.4
func (s *SQLiteStore) GetExternalAgentSession(ctx context.Context, sessionID string) (externalagents.SessionAttachment, error)
func (*SQLiteStore) GetSession ¶
func (*SQLiteStore) ListApprovals ¶
func (s *SQLiteStore) ListApprovals(ctx context.Context, sessionID string, state core.ApprovalState) ([]core.Approval, error)
func (*SQLiteStore) ListClientDeliveries ¶
func (s *SQLiteStore) ListClientDeliveries(ctx context.Context, filter core.ClientDeliveryFilter) ([]core.ClientDelivery, error)
func (*SQLiteStore) ListFileSnapshots ¶
func (s *SQLiteStore) ListFileSnapshots(ctx context.Context, sessionID string) ([]core.FileSnapshot, error)
func (*SQLiteStore) ListMessages ¶
func (*SQLiteStore) ListSessions ¶
func (s *SQLiteStore) ListSessions(ctx context.Context, filter core.SessionListFilter) ([]core.Session, error)
func (*SQLiteStore) SaveBinding ¶
func (s *SQLiteStore) SaveBinding(ctx context.Context, binding core.ClientBinding) error
func (*SQLiteStore) SaveExternalAgentSession ¶ added in v0.1.4
func (s *SQLiteStore) SaveExternalAgentSession(ctx context.Context, attachment externalagents.SessionAttachment) error
func (*SQLiteStore) SaveMessage ¶
func (*SQLiteStore) UpdateApproval ¶
func (*SQLiteStore) UpdateClientDelivery ¶
func (s *SQLiteStore) UpdateClientDelivery(ctx context.Context, delivery core.ClientDelivery) error
func (*SQLiteStore) UpdateMessage ¶
func (*SQLiteStore) UpdateSession ¶
Click to show internal directories.
Click to hide internal directories.