service

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidInput = errors.New("invalid input")

Functions

This section is empty.

Types

type Service

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

func New

func New(tasks store.TaskStore, researchRuns store.ResearchRunStore) *Service

func NewWithAgentRuns

func NewWithAgentRuns(tasks store.TaskStore, researchRuns store.ResearchRunStore, agentRuns store.AgentRunStore) *Service

func (*Service) AppendAgentStep

func (svc *Service) AppendAgentStep(ctx context.Context, runID string, input model.AppendAgentStepInput) (model.AgentRun, error)

func (*Service) CompleteAgentRun

func (svc *Service) CompleteAgentRun(ctx context.Context, runID string, input model.CompleteAgentRunInput) (model.AgentRun, error)

func (*Service) CompleteTask

func (svc *Service) CompleteTask(ctx context.Context, id string) (model.Task, error)

func (*Service) CreateAgentRun

func (svc *Service) CreateAgentRun(ctx context.Context, input model.CreateAgentRunInput) (model.AgentRun, error)

func (*Service) CreateResearchRun

func (svc *Service) CreateResearchRun(ctx context.Context, input model.CreateResearchRunInput) (model.ResearchRun, error)

func (*Service) CreateTask

func (svc *Service) CreateTask(ctx context.Context, input model.CreateTaskInput) (model.Task, error)

func (*Service) FailTask

func (svc *Service) FailTask(ctx context.Context, id string) (model.Task, error)

func (*Service) GetAgentRun

func (svc *Service) GetAgentRun(ctx context.Context, id string) (model.AgentRun, error)

func (*Service) GetResearchRun

func (svc *Service) GetResearchRun(ctx context.Context, id string) (model.ResearchRun, error)

func (*Service) GetTask

func (svc *Service) GetTask(ctx context.Context, id string) (model.Task, error)

func (*Service) PromoteAgentArtifact added in v0.1.1

func (svc *Service) PromoteAgentArtifact(ctx context.Context, runID string, input model.PromoteAgentArtifactInput) (model.AgentRun, error)

func (*Service) SetPolicyRecorder added in v0.1.12

func (svc *Service) SetPolicyRecorder(recorder *agentactivity.Recorder)

func (*Service) StartTask

func (svc *Service) StartTask(ctx context.Context, id string) (model.Task, error)

Jump to

Keyboard shortcuts

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