mirror of
https://github.com/The-Pocket/PocketFlow-Tutorial-Codebase-Knowledge.git
synced 2026-08-29 08:34:31 +08:00
Update flow.py
This commit is contained in:
@@ -14,10 +14,10 @@ def create_tutorial_flow():
|
||||
|
||||
# Instantiate nodes
|
||||
fetch_repo = FetchRepo()
|
||||
identify_abstractions = IdentifyAbstractions(max_retries=3, wait=10)
|
||||
analyze_relationships = AnalyzeRelationships(max_retries=3, wait=10)
|
||||
order_chapters = OrderChapters(max_retries=3, wait=10)
|
||||
write_chapters = WriteChapters(max_retries=3, wait=10) # This is a BatchNode
|
||||
identify_abstractions = IdentifyAbstractions(max_retries=5, wait=20)
|
||||
analyze_relationships = AnalyzeRelationships(max_retries=5, wait=20)
|
||||
order_chapters = OrderChapters(max_retries=5, wait=20)
|
||||
write_chapters = WriteChapters(max_retries=5, wait=20) # This is a BatchNode
|
||||
combine_tutorial = CombineTutorial()
|
||||
|
||||
# Connect nodes in sequence based on the design
|
||||
@@ -30,4 +30,4 @@ def create_tutorial_flow():
|
||||
# Create the flow starting with FetchRepo
|
||||
tutorial_flow = Flow(start=fetch_repo)
|
||||
|
||||
return tutorial_flow
|
||||
return tutorial_flow
|
||||
|
||||
Reference in New Issue
Block a user