From 907bc8022a2e9ad44e0b8eca6c5f05cb2bc13dc1 Mon Sep 17 00:00:00 2001 From: makk9 <117951691+makk9@users.noreply.github.com> Date: Sun, 15 Mar 2026 12:31:59 -0400 Subject: [PATCH] fix: pass debate round config to ConditionalLogic (#361) * fix: pass max_debate_rounds and max_risk_discuss_rounds config to ConditionalLogic * use config values --- 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..7944e5f5 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["max_debate_rounds"], + max_risk_discuss_rounds=self.config["max_risk_discuss_rounds"], + ) self.graph_setup = GraphSetup( self.quick_thinking_llm, self.deep_thinking_llm,