From 985973ca6b6153abf3ee53a4dd633cfa2ac3a85b Mon Sep 17 00:00:00 2001 From: zachary62 Date: Tue, 15 Apr 2025 19:04:10 -0400 Subject: [PATCH] minor update for reliability --- cookbook/pocketflow-thinking/flow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbook/pocketflow-thinking/flow.py b/cookbook/pocketflow-thinking/flow.py index bef6893..3ec7b87 100644 --- a/cookbook/pocketflow-thinking/flow.py +++ b/cookbook/pocketflow-thinking/flow.py @@ -3,8 +3,8 @@ from nodes import ChainOfThoughtNode def create_chain_of_thought_flow(): # Create a ChainOfThoughtNode - cot_node = ChainOfThoughtNode() - # max_retries=3, wait=10 + cot_node = ChainOfThoughtNode(max_retries=3, wait=10) + # Connect the node to itself for the "continue" action cot_node - "continue" >> cot_node