mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-07-01 13:18:10 +00:00
* Add declarative Flow CLI support Currently, declarative flows can be loaded by the runtime, but the CLI still treats them as an experimental definition file instead of a first-class Flow project shape. With this PR, `crewai create flow --declarative` scaffolds a YAML-backed Flow project, and `crewai run`, `crewai flow kickoff`, and `crewai flow plot` can run against the configured definition. This also lets crew actions reference reusable crew definition files or folders and override their inputs from the Flow definition, so declarative flows can compose existing declarative crews without inlining everything. * Address code review comments
16 lines
226 B
YAML
16 lines
226 B
YAML
schema: crewai.flow/v1
|
|
name: {{flow_name}}
|
|
description: A declarative CrewAI Flow.
|
|
|
|
state:
|
|
type: dict
|
|
default:
|
|
topic: AI agents
|
|
|
|
methods:
|
|
start:
|
|
start: true
|
|
do:
|
|
call: expression
|
|
expr: state.topic
|