Documentation
¶
Index ¶
- Constants
- func NewTaskID(name string) string
- func ValidateTask(task *Task, existing []*Task) error
- type DAG
- func (d *DAG) AddTask(task *Task) error
- func (d *DAG) AllTasks() []*Task
- func (d *DAG) GetAncestors(id string) []*Task
- func (d *DAG) GetReadyTasks() []*Task
- func (d *DAG) GetTask(id string) *Task
- func (d *DAG) GetTree(rootID string) *TreeNode
- func (d *DAG) HasCycle() bool
- func (d *DAG) RemoveTask(id string) error
- func (d *DAG) RestoreTask(id string) error
- func (d *DAG) Search(query, statusFilter string, limit, offset int, includeArchived bool) []*Task
- func (d *DAG) UpdateTask(task *Task) error
- type DocReference
- type Task
- type TreeNode
Constants ¶
View Source
const ( StatusPending = "pending" StatusInProgress = "in_progress" StatusCompleted = "completed" StatusFailed = "failed" StatusOnHold = "on_hold" )
Variables ¶
This section is empty.
Functions ¶
func ValidateTask ¶
Types ¶
type DAG ¶
type DAG struct {
// contains filtered or unexported fields
}
func (*DAG) GetAncestors ¶ added in v0.1.1
func (*DAG) GetReadyTasks ¶
func (*DAG) RemoveTask ¶
func (*DAG) RestoreTask ¶
func (*DAG) UpdateTask ¶
type DocReference ¶
type Task ¶
type Task struct {
ID string `json:"id"`
Name string `json:"name"`
Description string `json:"description,omitempty"`
Status string `json:"status"`
Archived bool `json:"archived"`
Dependencies []string `json:"dependencies"`
DocReferences []DocReference `json:"doc_references,omitempty"`
PromptTemplate string `json:"prompt_template,omitempty"`
ResultSummary string `json:"result_summary,omitempty"`
CreatedAt *time.Time `json:"created_at,omitempty"`
UpdatedAt *time.Time `json:"updated_at,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.