From d1931c308fd9cbfed5e7672e0131b23438482ccd Mon Sep 17 00:00:00 2001 From: David Tseng Date: Mon, 23 Mar 2026 13:53:17 +0800 Subject: [PATCH] fix: add raw_output to signal processing fallback Preserves the LLM's natural language output in the fallback JSON when JSON parsing fails, for debugging and manual review. Co-Authored-By: Claude Opus 4.6 (1M context) --- tradingagents/prediction_market/graph/signal_processing.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tradingagents/prediction_market/graph/signal_processing.py b/tradingagents/prediction_market/graph/signal_processing.py index c675ec61..b202fbf3 100644 --- a/tradingagents/prediction_market/graph/signal_processing.py +++ b/tradingagents/prediction_market/graph/signal_processing.py @@ -68,4 +68,5 @@ Respond with ONLY valid JSON, no other text. Example: "edge": None, "position_size": None, "confidence": None, + "raw_output": result, })