Commit Graph

3 Commits

Author SHA1 Message Date
陆张弛 24f53bc237 refactor(llm_clients): 重构工厂模式实现,添加动态导入和依赖检查
将硬编码的导入改为动态导入,并添加对缺失依赖的检查
为codex_oauth添加新的客户端支持
更新provider参数文档说明
2026-03-14 11:00:17 +08:00
Yijia Xiao 54cdb146d0
feat: add footer statistics tracking with LangChain callbacks
- Add StatsCallbackHandler for tracking LLM calls, tool calls, and tokens
- Integrate callbacks into TradingAgentsGraph and all LLM clients
- Dynamic agent/report counts based on selected analysts
- Fix report completion counting (tied to agent completion)
2026-02-03 22:27:20 +00:00
Yijia Xiao 79051580b8
feat: add multi-provider LLM support with factory pattern
- Add tradingagents/llm_clients/ with unified factory pattern
- Support OpenAI, Anthropic, Google, xAI, OpenRouter, Ollama, vLLM
- Replace direct LLM imports in trading_graph.py with create_llm_client()
- Handle provider-specific params (reasoning_effort, thinking_config)
2026-02-03 22:27:20 +00:00