diff --git a/tradingagents/graph/portfolio_analysis.py b/tradingagents/graph/portfolio_analysis.py index e03e8f5b..2af2a2bf 100644 --- a/tradingagents/graph/portfolio_analysis.py +++ b/tradingagents/graph/portfolio_analysis.py @@ -16,13 +16,15 @@ class PortfolioAnalyzer: owns the portfolio-level prompt, comparison logic, and logging. """ - def __init__(self, deep_thinking_llm: BaseChatModel): + def __init__(self, deep_thinking_llm: BaseChatModel, config: Dict[str, Any]): """Initialize with the deep thinking LLM for comparative analysis. Args: deep_thinking_llm: The LLM instance used for the portfolio summary. + config: The configuration dictionary for the application. """ self.deep_thinking_llm = deep_thinking_llm + self.config = config def analyze( self,