Documentation
¶
Index ¶
- type Diagnostics
- type SQLiteStore
- func (s *SQLiteStore) AcceptMessage(ctx context.Context, message core.Message, run core.Run, ...) error
- func (s *SQLiteStore) AddPlanItem(ctx context.Context, item core.PlanItem) error
- func (s *SQLiteStore) ClearPlanRun(ctx context.Context, sessionID string) error
- func (s *SQLiteStore) ClearSessionPlan(ctx context.Context, sessionID string) 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) CreateMemory(ctx context.Context, entry core.MemoryEntry) 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) CreateSessionInput(ctx context.Context, input core.SessionInput) error
- func (s *SQLiteStore) CreateSubagentTask(ctx context.Context, task core.SubagentTask) error
- func (s *SQLiteStore) DeleteExternalAgentSession(ctx context.Context, sessionID string) error
- func (s *SQLiteStore) DeleteMemory(ctx context.Context, id string) error
- func (s *SQLiteStore) DeleteSession(ctx context.Context, sessionID string) error
- func (s *SQLiteStore) GetActiveRunBySession(ctx context.Context, sessionID string) (core.Run, 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) GetMemory(ctx context.Context, id string) (core.MemoryEntry, error)
- func (s *SQLiteStore) GetPlanItem(ctx context.Context, itemID string) (core.PlanItem, error)
- func (s *SQLiteStore) GetPlanRun(ctx context.Context, sessionID string) (core.PlanRun, 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) GetSessionPlan(ctx context.Context, sessionID string) (core.SessionPlan, error)
- func (s *SQLiteStore) GetSubagentTask(ctx context.Context, taskID string) (core.SubagentTask, error)
- func (s *SQLiteStore) GetSubagentTaskByChildRun(ctx context.Context, childRunID string) (core.SubagentTask, error)
- func (s *SQLiteStore) GetSubagentTaskByParentToolCall(ctx context.Context, parentSessionID string, parentRunID string, ...) (core.SubagentTask, error)
- func (s *SQLiteStore) ListActiveRuns(ctx context.Context) ([]core.Run, error)
- func (s *SQLiteStore) ListActiveSubagentTasksByParent(ctx context.Context, parentSessionID string) ([]core.SubagentTask, 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) ListMemories(ctx context.Context, filter core.MemoryFilter) ([]core.MemoryEntry, error)
- func (s *SQLiteStore) ListMessages(ctx context.Context, sessionID string, limit int) ([]core.Message, error)
- func (s *SQLiteStore) ListPendingSessionInputs(ctx context.Context, sessionID string) ([]core.SessionInput, error)
- func (s *SQLiteStore) ListPendingSteerInputs(ctx context.Context, sessionID string, runID string) ([]core.SessionInput, error)
- func (s *SQLiteStore) ListPendingSubagentCompletionTasks(ctx context.Context, limit int) ([]core.SubagentTask, error)
- func (s *SQLiteStore) ListSessions(ctx context.Context, filter core.SessionListFilter) ([]core.Session, error)
- func (s *SQLiteStore) ListSubagentTasks(ctx context.Context, filter core.SubagentTaskFilter) ([]core.SubagentTask, error)
- func (s *SQLiteStore) ListUsageRecords(ctx context.Context, filter core.UsageFilter) ([]core.UsageRecord, error)
- func (s *SQLiteStore) NextPendingSessionInput(ctx context.Context, sessionID string) (core.SessionInput, error)
- func (s *SQLiteStore) NextPlanItemPosition(ctx context.Context, sessionID string, parentID string) (int, 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) SavePlanRun(ctx context.Context, run core.PlanRun) error
- func (s *SQLiteStore) SaveUsageRecord(ctx context.Context, record core.UsageRecord) error
- func (s *SQLiteStore) SearchMessages(ctx context.Context, filter core.SearchFilter) ([]core.SearchResult, error)
- func (s *SQLiteStore) SetSessionGoal(ctx context.Context, sessionID string, goal string, updatedAt time.Time) 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) UpdateMemory(ctx context.Context, entry core.MemoryEntry) error
- func (s *SQLiteStore) UpdateMessage(ctx context.Context, message core.Message) error
- func (s *SQLiteStore) UpdatePlanItem(ctx context.Context, item core.PlanItem) error
- func (s *SQLiteStore) UpdateRun(ctx context.Context, run core.Run) error
- func (s *SQLiteStore) UpdateSession(ctx context.Context, session core.Session) error
- func (s *SQLiteStore) UpdateSessionInput(ctx context.Context, input core.SessionInput) error
- func (s *SQLiteStore) UpdateSubagentTask(ctx context.Context, task core.SubagentTask) 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 (s *SQLiteStore) AcceptMessage(ctx context.Context, message core.Message, run core.Run, deliveries ...core.ClientDelivery) error
func (*SQLiteStore) AddPlanItem ¶ added in v0.1.7
func (*SQLiteStore) ClearPlanRun ¶ added in v0.1.7
func (s *SQLiteStore) ClearPlanRun(ctx context.Context, sessionID string) error
func (*SQLiteStore) ClearSessionPlan ¶ added in v0.1.7
func (s *SQLiteStore) ClearSessionPlan(ctx context.Context, sessionID string) error
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) CreateMemory ¶ added in v0.1.12
func (s *SQLiteStore) CreateMemory(ctx context.Context, entry core.MemoryEntry) error
func (*SQLiteStore) CreateSession ¶
func (*SQLiteStore) CreateSessionInput ¶ added in v0.1.13
func (s *SQLiteStore) CreateSessionInput(ctx context.Context, input core.SessionInput) error
func (*SQLiteStore) CreateSubagentTask ¶ added in v0.1.12
func (s *SQLiteStore) CreateSubagentTask(ctx context.Context, task core.SubagentTask) error
func (*SQLiteStore) DeleteExternalAgentSession ¶ added in v0.1.4
func (s *SQLiteStore) DeleteExternalAgentSession(ctx context.Context, sessionID string) error
func (*SQLiteStore) DeleteMemory ¶ added in v0.1.12
func (s *SQLiteStore) DeleteMemory(ctx context.Context, id string) error
func (*SQLiteStore) DeleteSession ¶
func (s *SQLiteStore) DeleteSession(ctx context.Context, sessionID string) error
func (*SQLiteStore) GetActiveRunBySession ¶ added in v0.1.13
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) GetMemory ¶ added in v0.1.12
func (s *SQLiteStore) GetMemory(ctx context.Context, id string) (core.MemoryEntry, error)
func (*SQLiteStore) GetPlanItem ¶ added in v0.1.7
func (*SQLiteStore) GetPlanRun ¶ added in v0.1.7
func (*SQLiteStore) GetSession ¶
func (*SQLiteStore) GetSessionPlan ¶ added in v0.1.7
func (s *SQLiteStore) GetSessionPlan(ctx context.Context, sessionID string) (core.SessionPlan, error)
func (*SQLiteStore) GetSubagentTask ¶ added in v0.1.12
func (s *SQLiteStore) GetSubagentTask(ctx context.Context, taskID string) (core.SubagentTask, error)
func (*SQLiteStore) GetSubagentTaskByChildRun ¶ added in v0.1.13
func (s *SQLiteStore) GetSubagentTaskByChildRun(ctx context.Context, childRunID string) (core.SubagentTask, error)
func (*SQLiteStore) GetSubagentTaskByParentToolCall ¶ added in v0.1.13
func (s *SQLiteStore) GetSubagentTaskByParentToolCall(ctx context.Context, parentSessionID string, parentRunID string, parentToolCallID string) (core.SubagentTask, error)
func (*SQLiteStore) ListActiveRuns ¶ added in v0.1.15
func (*SQLiteStore) ListActiveSubagentTasksByParent ¶ added in v0.1.13
func (s *SQLiteStore) ListActiveSubagentTasksByParent(ctx context.Context, parentSessionID string) ([]core.SubagentTask, error)
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) ListMemories ¶ added in v0.1.12
func (s *SQLiteStore) ListMemories(ctx context.Context, filter core.MemoryFilter) ([]core.MemoryEntry, error)
func (*SQLiteStore) ListMessages ¶
func (*SQLiteStore) ListPendingSessionInputs ¶ added in v0.1.13
func (s *SQLiteStore) ListPendingSessionInputs(ctx context.Context, sessionID string) ([]core.SessionInput, error)
func (*SQLiteStore) ListPendingSteerInputs ¶ added in v0.1.13
func (s *SQLiteStore) ListPendingSteerInputs(ctx context.Context, sessionID string, runID string) ([]core.SessionInput, error)
func (*SQLiteStore) ListPendingSubagentCompletionTasks ¶ added in v0.1.13
func (s *SQLiteStore) ListPendingSubagentCompletionTasks(ctx context.Context, limit int) ([]core.SubagentTask, error)
func (*SQLiteStore) ListSessions ¶
func (s *SQLiteStore) ListSessions(ctx context.Context, filter core.SessionListFilter) ([]core.Session, error)
func (*SQLiteStore) ListSubagentTasks ¶ added in v0.1.13
func (s *SQLiteStore) ListSubagentTasks(ctx context.Context, filter core.SubagentTaskFilter) ([]core.SubagentTask, error)
func (*SQLiteStore) ListUsageRecords ¶ added in v0.1.7
func (s *SQLiteStore) ListUsageRecords(ctx context.Context, filter core.UsageFilter) ([]core.UsageRecord, error)
func (*SQLiteStore) NextPendingSessionInput ¶ added in v0.1.13
func (s *SQLiteStore) NextPendingSessionInput(ctx context.Context, sessionID string) (core.SessionInput, error)
func (*SQLiteStore) NextPlanItemPosition ¶ added in v0.1.7
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) SavePlanRun ¶ added in v0.1.7
func (*SQLiteStore) SaveUsageRecord ¶ added in v0.1.7
func (s *SQLiteStore) SaveUsageRecord(ctx context.Context, record core.UsageRecord) error
func (*SQLiteStore) SearchMessages ¶ added in v0.1.7
func (s *SQLiteStore) SearchMessages(ctx context.Context, filter core.SearchFilter) ([]core.SearchResult, error)
func (*SQLiteStore) SetSessionGoal ¶ added in v0.1.7
func (*SQLiteStore) UpdateApproval ¶
func (*SQLiteStore) UpdateClientDelivery ¶
func (s *SQLiteStore) UpdateClientDelivery(ctx context.Context, delivery core.ClientDelivery) error
func (*SQLiteStore) UpdateMemory ¶ added in v0.1.12
func (s *SQLiteStore) UpdateMemory(ctx context.Context, entry core.MemoryEntry) error
func (*SQLiteStore) UpdateMessage ¶
func (*SQLiteStore) UpdatePlanItem ¶ added in v0.1.7
func (*SQLiteStore) UpdateSession ¶
func (*SQLiteStore) UpdateSessionInput ¶ added in v0.1.13
func (s *SQLiteStore) UpdateSessionInput(ctx context.Context, input core.SessionInput) error
func (*SQLiteStore) UpdateSubagentTask ¶ added in v0.1.12
func (s *SQLiteStore) UpdateSubagentTask(ctx context.Context, task core.SubagentTask) error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.