store

package
v0.1.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("not found")

Functions

This section is empty.

Types

type AgentRunStore

type AgentRunStore interface {
	CreateAgentRun(context.Context, model.AgentRun) (model.AgentRun, error)
	AppendAgentStep(context.Context, string, model.AgentStep) (model.AgentRun, error)
	PromoteAgentArtifact(context.Context, string, model.AgentPromotion) (model.AgentRun, error)
	CompleteAgentRun(context.Context, model.AgentRun) (model.AgentRun, error)
	GetAgentRun(context.Context, string) (model.AgentRun, error)
}

type AppConfigStore

type AppConfigStore interface {
	SetAppSetting(context.Context, string, string, string) error
	GetAppSetting(context.Context, string) (string, string, error)
	SetRuntimeFlag(context.Context, string, bool, string) error
	GetRuntimeFlag(context.Context, string) (bool, string, error)
}

type LadybugStore

type LadybugStore struct {
	// contains filtered or unexported fields
}

func NewLadybugStore

func NewLadybugStore(graph ladybug.Graph) *LadybugStore

func (*LadybugStore) AppendAgentStep

func (store *LadybugStore) AppendAgentStep(ctx context.Context, runID string, step model.AgentStep) (model.AgentRun, error)

func (*LadybugStore) CompleteAgentRun

func (store *LadybugStore) CompleteAgentRun(ctx context.Context, run model.AgentRun) (model.AgentRun, error)

func (*LadybugStore) CreateAgentRun

func (store *LadybugStore) CreateAgentRun(ctx context.Context, run model.AgentRun) (model.AgentRun, error)

func (*LadybugStore) CreateResearchRun

func (store *LadybugStore) CreateResearchRun(ctx context.Context, run model.ResearchRun) (model.ResearchRun, error)

func (*LadybugStore) CreateTask

func (store *LadybugStore) CreateTask(ctx context.Context, task model.Task) (model.Task, error)

func (*LadybugStore) GetAgentRun

func (store *LadybugStore) GetAgentRun(ctx context.Context, id string) (model.AgentRun, error)

func (*LadybugStore) GetResearchRun

func (store *LadybugStore) GetResearchRun(ctx context.Context, id string) (model.ResearchRun, error)

func (*LadybugStore) GetTask

func (store *LadybugStore) GetTask(ctx context.Context, id string) (model.Task, error)

func (*LadybugStore) PromoteAgentArtifact added in v0.1.1

func (store *LadybugStore) PromoteAgentArtifact(ctx context.Context, runID string, promotion model.AgentPromotion) (model.AgentRun, error)

func (*LadybugStore) UpdateTask

func (store *LadybugStore) UpdateTask(ctx context.Context, task model.Task) (model.Task, error)

type MemoryStore

type MemoryStore struct {
	// contains filtered or unexported fields
}

func NewMemoryStore

func NewMemoryStore() *MemoryStore

func (*MemoryStore) AppendAgentStep

func (store *MemoryStore) AppendAgentStep(_ context.Context, runID string, step model.AgentStep) (model.AgentRun, error)

func (*MemoryStore) CompleteAgentRun

func (store *MemoryStore) CompleteAgentRun(_ context.Context, run model.AgentRun) (model.AgentRun, error)

func (*MemoryStore) CreateAgentRun

func (store *MemoryStore) CreateAgentRun(_ context.Context, run model.AgentRun) (model.AgentRun, error)

func (*MemoryStore) CreateResearchRun

func (store *MemoryStore) CreateResearchRun(_ context.Context, run model.ResearchRun) (model.ResearchRun, error)

func (*MemoryStore) CreateTask

func (store *MemoryStore) CreateTask(_ context.Context, task model.Task) (model.Task, error)

func (*MemoryStore) GetAgentRun

func (store *MemoryStore) GetAgentRun(_ context.Context, id string) (model.AgentRun, error)

func (*MemoryStore) GetResearchRun

func (store *MemoryStore) GetResearchRun(_ context.Context, id string) (model.ResearchRun, error)

func (*MemoryStore) GetTask

func (store *MemoryStore) GetTask(_ context.Context, id string) (model.Task, error)

func (*MemoryStore) PromoteAgentArtifact added in v0.1.1

func (store *MemoryStore) PromoteAgentArtifact(_ context.Context, runID string, promotion model.AgentPromotion) (model.AgentRun, error)

func (*MemoryStore) UpdateTask

func (store *MemoryStore) UpdateTask(_ context.Context, task model.Task) (model.Task, error)

type ResearchRunStore

type ResearchRunStore interface {
	CreateResearchRun(context.Context, model.ResearchRun) (model.ResearchRun, error)
	GetResearchRun(context.Context, string) (model.ResearchRun, error)
}

type SQLiteConfigStore

type SQLiteConfigStore struct {
	// contains filtered or unexported fields
}

func NewSQLiteConfigStore

func NewSQLiteConfigStore(db *sql.DB) *SQLiteConfigStore

func (*SQLiteConfigStore) GetAppSetting

func (store *SQLiteConfigStore) GetAppSetting(ctx context.Context, key string) (string, string, error)

func (*SQLiteConfigStore) GetRuntimeFlag

func (store *SQLiteConfigStore) GetRuntimeFlag(ctx context.Context, key string) (bool, string, error)

func (*SQLiteConfigStore) SetAppSetting

func (store *SQLiteConfigStore) SetAppSetting(ctx context.Context, key string, value string, valueType string) error

func (*SQLiteConfigStore) SetRuntimeFlag

func (store *SQLiteConfigStore) SetRuntimeFlag(ctx context.Context, key string, enabled bool, description string) error

type TaskStore

type TaskStore interface {
	CreateTask(context.Context, model.Task) (model.Task, error)
	GetTask(context.Context, string) (model.Task, error)
	UpdateTask(context.Context, model.Task) (model.Task, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL