File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ Its YAML definition is:
2121name : " Write a Recipe"
2222description : " A workflow for writing a recipe."
2323
24- flow :
24+ actors :
2525 create_list_of_ingredients :
2626 generator : anthropic://claude
2727
3535 generator : openai://gpt-4o
3636` ` `
3737
38- Each element of the ` flow ` array is an agent that will be executed in the order specified.
38+ Each element in the ` actors ` array represents an agent that will be executed sequentially in the specified order .
3939
4040**create_list_of_ingredients.yml**
4141
Original file line number Diff line number Diff line change 11name : " Write a Recipe"
22description : " A workflow for writing a recipe."
33
4- flow :
4+ actors :
55 create_list_of_ingredients :
66 generator : openai/gpt-4o-mini
77 # anthropic/claude-3-5-sonnet
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ class Actor(BaseModel):
122122
123123 name : str
124124 description : str
125- flow : dict [str , Actor ]
125+ actors : dict [str , Actor ]
126126
127127 @staticmethod
128128 def is_workflow (input_path : pathlib .Path ) -> bool :
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ def from_path(
7676 root_path = input_path if input_path .is_dir () else input_path .parent
7777
7878 actors = []
79- for actor_name , actor in workflow .flow .items ():
79+ for actor_name , actor in workflow .actors .items ():
8080 # determine actor task file
8181 task_file_path = (root_path / actor_name ).with_suffix (".yml" )
8282 if not task_file_path .exists ():
You can’t perform that action at this time.
0 commit comments