Versions in this module Expand all Collapse all v0 v0.0.41 Jul 27, 2026 Changes in this version + func Load(root *os.Root, runtimeDir string) (definitions map[string]*Definition, err error) + type AgentProgressFunc func(context.Context, AgentUpdate) error + type AgentRequest struct + Prompt string + Schema map[string]any + Worker Worker + type AgentRunFunc func(context.Context, AgentRequest, AgentThinkingFunc) (json.RawMessage, error) + type AgentThinkingFunc func(context.Context, string) error + type AgentUpdate struct + Activity string + CallID string + Label string + PhaseID string + type Definition struct + Description string + Name string + Phases []string + WorkerModels []string + type Description struct + Description string + Name string + type PhaseStatus string + const PhaseComplete + const PhaseError + const PhaseInProgress + const PhasePending + const PhaseSkipped + type PhaseUpdate struct + Complete int + Details string + Name string + PhaseID string + Running int + Scheduled int + Status PhaseStatus + type ProgressFunc func(context.Context, PhaseUpdate) error + type Result struct + Phases []PhaseUpdate + Silent bool + Text string + func Run(ctx context.Context, definition *Definition, request RunRequest, ...) (result Result, err error) + type RunRequest struct + Args string + Definition *Definition + RunID string + type Terminal string + const TerminalComplete + const TerminalFailed + const TerminalStopped + type Worker struct + Instructions string + Model string + Name string + Tools []string