Workflows Module¶
Workflow orchestration for multi-step agent execution.
Classes¶
| Class | Description |
|---|---|
| Workflow | Abstract base class for workflows |
| ReActWorkflow | Built-in ReAct implementation |
| WorkflowConfig | Base workflow configuration |
| WorkflowHooks | Lifecycle callbacks |
Quick Example¶
from mamba_agents import Agent
from mamba_agents.workflows import ReActWorkflow, ReActConfig
agent = Agent("gpt-4o", tools=[read_file, run_bash])
workflow = ReActWorkflow(agent=agent, config=ReActConfig(max_iterations=10))
result = await workflow.run("Find bugs in the code")
print(result.output)