Workflows
Workflows dictate how Tasks are executed within a Crew. They define the order, logic, and decision-making structure.
Defines the method by which tasks are executed within a Crew.
Source code in fsdk/anote-sdk.py
__init__(workflow_type='sequential', manager_agent=None, allow_parallel=False)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
workflow_type |
str
|
e.g., 'sequential', 'hierarchical', or 'parallel'. |
'sequential'
|
manager_agent |
Agent
|
Used in hierarchical workflows. |
None
|
allow_parallel |
bool
|
If True, tasks may run concurrently. |
False
|
Source code in fsdk/anote-sdk.py
Description: Workflows define how Tasks are executed within a Crew. Common patterns include:
Workflows Fields
- workflow_type: e.g.,
"sequential"
,"hierarchical"
, or"parallel"
. - manager_agent: Used in hierarchical workflows (Agent object, optional).
- allow_parallel: If
True
, tasks may run concurrently.
Example 1:
workflow_example = {
"workflow_type": "sequential",
"manager_agent": None,
"allow_parallel": False
}
Common Workflow Types
-
Sequential: Tasks run one after another in a predefined order. Good for simple, linear processes.
-
Hierarchical: Involves a "manager" agent that oversees or delegates Tasks to subordinate agents. Useful when tasks must be dynamically created or delegated.
-
Consensual (Planned): Focuses on collaborative decision-making among agents. Agents vote or debate to reach a consensus.
Example 2: