diff --git a/tradingagents/dataflows/interface.py b/tradingagents/dataflows/interface.py index 0b45f3ab..e65f226d 100644 --- a/tradingagents/dataflows/interface.py +++ b/tradingagents/dataflows/interface.py @@ -725,4 +725,4 @@ def get_fundamentals(ticker, curr_date): search_provider = SearchProviderFactory.create_provider(config) query = f"Search for fundamental analysis data and financial metrics for {ticker} stock from the month before {curr_date} to the month of {curr_date}. Look for earnings reports, financial ratios like PE, PS, cash flow, revenue growth, analyst ratings, and any fundamental analysis discussions. Please present key metrics in a structured format." return search_provider.search(query, ticker, curr_date) - \ No newline at end of file + diff --git a/tradingagents/graph/trading_graph.py b/tradingagents/graph/trading_graph.py index f25d7932..3c0cbb30 100644 --- a/tradingagents/graph/trading_graph.py +++ b/tradingagents/graph/trading_graph.py @@ -173,9 +173,9 @@ class TradingAgentsGraph: continue message = chunk["messages"][-1] - # 중복 메시지 필터링 + if message.content and message.content.strip(): - # FINAL PROPOSAL 중복 방지 + if "FINAL TRANSACTION PROPOSAL:" in message.content: if not hasattr(self, '_final_printed'): message.pretty_print()