Versions in this module Expand all Collapse all v1 v1.5.0 Oct 12, 2026 Changes in this version + const DraftFormatJSON + const DraftFormatYAML + func BuildNodePrompt(node Node, inputs map[string]NodeResult) string + func Validate(def Definition) error + type Definition struct + Description string + Name string + Nodes []Node + func LoadFile(path string) (Definition, error) + func NormalizeDefinition(def Definition) Definition + type DraftOptions struct + Definition Definition + Format string + type DraftResult struct + Content string + Definition Definition + Diagnostics []string + Format string + func Draft(options DraftOptions) (DraftResult, error) + type Executor interface + ExecuteNode func(ctx context.Context, node Node, inputs map[string]NodeResult) (string, error) + type ExecutorFunc func(ctx context.Context, node Node, inputs map[string]NodeResult) (string, error) + func (f ExecutorFunc) ExecuteNode(ctx context.Context, node Node, inputs map[string]NodeResult) (string, error) + type Node struct + Agent string + ID string + Kind string + MaxTurns int + Needs []string + OutputFormat string + Prompt string + Routes []string + type NodeResult struct + Agent string + Duration time.Duration + EndedAt time.Time + Error string + ID string + Output string + StartedAt time.Time + Success bool + type Options struct + MaxParallel int + type Result struct + Duration time.Duration + EndedAt time.Time + Name string + Order []string + Results map[string]NodeResult + StartedAt time.Time + Success bool + func Run(ctx context.Context, def Definition, executor Executor, options Options) (Result, error)