fix: add config parameter to PortfolioAnalyzer constructor

Required by the configurable log directory and config passthrough
from TradingAgentsGraph that were applied via GitHub suggestions.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Robin Lindbladh 2026-03-24 21:08:14 +01:00
parent f3d49335d1
commit 5ac72567be
1 changed files with 3 additions and 1 deletions

View File

@ -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,