The 4 analysts (market, news, social, fundamentals) now detect a ChatClaudeAgent LLM and dispatch to an SDK-native runner: LangChain @tool functions are wrapped as in-process MCP tools via create_sdk_mcp_server, and the SDK owns the iterative tool-calling loop. Claude returns the final report in one call, so the analyst node outputs an AIMessage with no tool_calls and the existing conditional edges route straight to the message-clear step. Together with the Shape A provider this lets a Claude Max subscription drive the full TradingAgents graph without an Anthropic API key. Other providers continue to take the original bind_tools + LangGraph ToolNode path unchanged. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| TODO.md | ||
| __init__.py | ||
| anthropic_client.py | ||
| azure_client.py | ||
| base_client.py | ||
| claude_agent_client.py | ||
| factory.py | ||
| google_client.py | ||
| mcp_tool_adapter.py | ||
| model_catalog.py | ||
| openai_client.py | ||
| validators.py | ||