From 0f74540e048512c1f025b46bb2d33cd974034c66 Mon Sep 17 00:00:00 2001 From: Ali AL OGAILI Date: Tue, 24 Mar 2026 14:07:51 +0100 Subject: [PATCH] feat: add Chief Analyst as terminal node in LangGraph pipeline --- tradingagents/graph/setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tradingagents/graph/setup.py b/tradingagents/graph/setup.py index 0e9984a0..9878f39e 100644 --- a/tradingagents/graph/setup.py +++ b/tradingagents/graph/setup.py @@ -200,7 +200,11 @@ class GraphSetup: }, ) - workflow.add_edge("Risk Judge", END) + from tradingagents.agents.managers.chief_analyst import create_chief_analyst + chief_analyst_node = create_chief_analyst(self.deep_thinking_llm) + workflow.add_node("Chief Analyst", chief_analyst_node) + workflow.add_edge("Risk Judge", "Chief Analyst") + workflow.add_edge("Chief Analyst", END) # Compile and return return workflow.compile(checkpointer=checkpointer)