Skip to main content

Module workflow_tool

Module workflow_tool 

Source
Expand description

Named workflow registry + the run_workflow tool (option C, tier 3).

The flow/ combinators are developer-authored Rust — the LLM cannot write a workflow at runtime. So the agent reaches workflows the Claude-Code way: a developer pre-registers named recipes, and the agent picks one by name plus args via the run_workflow tool. A recipe drives the flow/ combinators (agent, parallel, pipeline) and returns a text result — the structured, repeatable fan-out that plain delegate_task lacks (multi-stage pipeline, shared budget, journal/resume).

Modules§

recipes
Built-in recipes.

Structs§

RunWorkflowTool
The run_workflow tool: the agent picks a recipe by name + args.
WorkflowRecipe
A named, agent-invocable workflow recipe.
WorkflowRegistry
Registry of recipes the RunWorkflowTool exposes.

Functions§

default_registry
A default registry for the TUI entry agent: the built-in recipes.

Type Aliases§

RecipeRun
The async body of a recipe: given a built WorkflowCtx and the LLM-supplied args, drive flow/ combinators and return a text result.