Versions in this module Expand all Collapse all v1 v1.0.1 May 17, 2026 v1.0.0 May 17, 2026 Changes in this version + func Agent(name, prompt string) *agent + func Convergence(name, description string, within int) *convergence + func Goal(name, description string) *goal + func Sequence(name string) *sequence + func Validate(w *Workflow, rt *Runtime) error + type ConvergenceCapReached struct + Cap int + Convergence string + LastOutput string + func (e ConvergenceCapReached) Attrs() []slog.Attr + func (e ConvergenceCapReached) Err() error + func (e ConvergenceCapReached) Level() slog.Level + func (e ConvergenceCapReached) Name() string + type GoalEnded struct + Goal string + Output string + func (e GoalEnded) Attrs() []slog.Attr + func (e GoalEnded) Err() error + func (e GoalEnded) Level() slog.Level + func (e GoalEnded) Name() string + type GoalStarted struct + Description string + Goal string + func (e GoalStarted) Attrs() []slog.Attr + func (e GoalStarted) Err() error + func (e GoalStarted) Level() slog.Level + func (e GoalStarted) Name() string + type Kind string + type MCPManager interface + AllTools func() []mcp.ToolWithServer + CallTool func(ctx context.Context, server, tool string, args map[string]any) (*mcp.Result, error) + FindTool func(name string) (server string, found bool) + type Node interface + Children func() []Node + Kind func() Kind + Name func() string + type Override struct + MCP MCPManager + Model llm.Model + Policy policy.Lookup + SystemContext string + Tools *tools.Registry + type Parameter struct + Default string + Name string + type PostCheckpoint struct + ActualOutput string + Concerns []string + Deviations []string + MetCommitment bool + StepID string + Timestamp time.Time + Unexpected []string + type PreCheckpoint struct + Approach string + Assumptions []string + Confidence string + Instruction string + Interpretation string + PredictedOutput string + ScopeIn []string + ScopeOut []string + StepID string + StepKind string + Timestamp time.Time + type PreflightFailed struct + Failure error + Workflow string + func (e PreflightFailed) Attrs() []slog.Attr + func (e PreflightFailed) Err() error + func (e PreflightFailed) Level() slog.Level + func (e PreflightFailed) Name() string + type ReconcileResult struct + Escalate bool + StepID string + Triggers []string + type Runtime struct + Debug bool + Guard *contentguard.Guard + HumanCh chan string + MCP MCPManager + MaxReorientAttempts int + Model llm.Model + Policy policy.Lookup + Supervisor Supervisor + SystemContext string + Telemetry observe.EventSink + Tools *tools.Registry + type State struct + Failures map[string]int + Inputs map[string]string + Outputs map[string]string + func NewState(inputs map[string]string) *State + type Step interface + Execute func(ctx context.Context, rt *Runtime, state *State) error + type SubagentCompleted struct + Agent string + Failure error + Goal string + Output string + func (e SubagentCompleted) Attrs() []slog.Attr + func (e SubagentCompleted) Err() error + func (e SubagentCompleted) Level() slog.Level + func (e SubagentCompleted) Name() string + type SubagentSpawned struct + Agent string + Goal string + func (e SubagentSpawned) Attrs() []slog.Attr + func (e SubagentSpawned) Err() error + func (e SubagentSpawned) Level() slog.Level + func (e SubagentSpawned) Name() string + type SuperviseRequest struct + HumanRequired bool + Model llm.Model + OriginalGoal string + Post *PostCheckpoint + Pre *PreCheckpoint + Triggers []string + type SuperviseResult struct + Correction string + Question string + Reason string + StepID string + Verdict Verdict + type Supervisor interface + Reconcile func(pre *PreCheckpoint, post *PostCheckpoint) *ReconcileResult + Supervise func(ctx context.Context, req SuperviseRequest) (*SuperviseResult, error) + type Verdict string + const VerdictAskHuman + const VerdictContinue + const VerdictHalt + const VerdictReorient + type Workflow struct + func New(name string) *Workflow + func (w *Workflow) Add(sequences ...*sequence) *Workflow + func (w *Workflow) Children() []Node + func (w *Workflow) Execute(ctx context.Context, rt *Runtime, inputs map[string]string) (state *State, err error) + func (w *Workflow) Input(parameters ...Parameter) *Workflow + func (w *Workflow) Kind() Kind + func (w *Workflow) Name() string + func (w *Workflow) Scope(scope string) *Workflow + func (w *Workflow) Security(mode security.Mode) *Workflow + func (w *Workflow) Supervise() *Workflow + func (w *Workflow) SuperviseByHuman() *Workflow + type WorkflowEnded struct + Failure error + Workflow string + func (e WorkflowEnded) Attrs() []slog.Attr + func (e WorkflowEnded) Err() error + func (e WorkflowEnded) Level() slog.Level + func (e WorkflowEnded) Name() string + type WorkflowStarted struct + Workflow string + func (e WorkflowStarted) Attrs() []slog.Attr + func (e WorkflowStarted) Err() error + func (e WorkflowStarted) Level() slog.Level + func (e WorkflowStarted) Name() string