From f91ffc650884ac65a79aaa9c97f419fa02dd4ac8 Mon Sep 17 00:00:00 2001 From: avimakk Date: Fri, 6 Mar 2026 18:45:28 -0500 Subject: [PATCH] fix: pass max_debate_rounds and max_risk_discuss_rounds config to ConditionalLogic --- tradingagents/graph/trading_graph.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tradingagents/graph/trading_graph.py b/tradingagents/graph/trading_graph.py index 44ecca0c..6e0cad6b 100644 --- a/tradingagents/graph/trading_graph.py +++ b/tradingagents/graph/trading_graph.py @@ -105,7 +105,10 @@ class TradingAgentsGraph: self.tool_nodes = self._create_tool_nodes() # Initialize components - self.conditional_logic = ConditionalLogic() + self.conditional_logic = ConditionalLogic( + max_debate_rounds=self.config.get("max_debate_rounds", 1), + max_risk_discuss_rounds=self.config.get("max_risk_discuss_rounds", 1), + ) self.graph_setup = GraphSetup( self.quick_thinking_llm, self.deep_thinking_llm,