Documentation
¶
Overview ¶
Package tasklist owns the bounded update_plan contract and its durable projection from assistant tool calls.
Index ¶
Constants ¶
View Source
const ( // ToolName is the application-owned task progress tool. ToolName = "update_plan" MaxItems = 64 MaxStepBytes = 512 MaxExplanationBytes = 4 << 10 MaxUpdateBytes = 64 << 10 )
Variables ¶
This section is empty.
Functions ¶
func ValidateSnapshot ¶
ValidateSnapshot validates either a full in-process Snapshot or a redacted count-only event projection whose Items slice is nil.
Types ¶
type Item ¶
type Item struct {
Step string `json:"step" description:"Concise task step"`
Status Status `json:"status" description:"Task status: pending, in_progress, or completed"`
}
Item is one complete replacement entry supplied by the model.
type Snapshot ¶
type Snapshot struct {
Items []Item `json:"items,omitempty"`
Completed int `json:"completed"`
InProgress int `json:"in_progress"`
Total int `json:"total"`
}
Snapshot is the clone-safe task progress projection consumed by frontends.
func FromUpdate ¶
FromUpdate builds a detached progress snapshot.
type Update ¶
type Update struct {
Explanation string `json:"explanation,omitempty" description:"Optional concise reason for this update"`
Plan []Item `json:"plan" description:"Complete ordered task list"`
}
Update replaces the complete current task list.
Click to show internal directories.
Click to hide internal directories.