Commit Graph

1 Commits

Author SHA1 Message Date
Joao Moura
aee571b775 feat: add support for agents to invoke Flows as tools
Agents can now declare flows=[MyFlow] and invoke them as regular tools.
Each Flow class is wrapped as a FlowTool(BaseTool) — the agent decides
WHEN to use it (via tool selection), the Flow handles HOW (deterministic
execution).

- Add flows field to Agent
- Add FlowTool and create_flow_tools in tools/flow_tool.py
- Export from crewai.__init__
- 14 tests

No dependency changes. No memory changes. Just the flow-tool feature.
2026-04-27 05:10:38 -07:00