Documentation
¶
Index ¶
- type Handoff
- type JudgeFunc
- type PlanStep
- type Store
- func (s *Store) Activate(id string) error
- func (s *Store) AddHandoff(taskID string, handoff Handoff) error
- func (s *Store) Complete(taskID string) error
- func (s *Store) CompleteStep(taskID string, stepIdx int, outcome string) error
- func (s *Store) Create(id, name, description string, plan []PlanStep, maxWakeups int) (*Task, error)
- func (s *Store) Get(id string) *Task
- func (s *Store) List() []*Task
- func (s *Store) ListActive() []*Task
- type Task
- type TaskState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) CompleteStep ¶
func (*Store) ListActive ¶
type Task ¶
type Task struct {
ID string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
State TaskState `json:"state"`
Plan []PlanStep `json:"plan"`
Handoffs []Handoff `json:"handoffs"`
CreatedAt time.Time `json:"created_at"`
CompletedAt *time.Time `json:"completed_at,omitempty"`
WakeupCount int `json:"wakeup_count"`
MaxWakeups int `json:"max_wakeups"`
JudgeVerified bool `json:"judge_verified"`
JudgeResult string `json:"judge_result,omitempty"`
CheckpointRef string `json:"checkpoint_ref,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.