From a6e16beca94cdc90db7e4d9019a97faad405710a Mon Sep 17 00:00:00 2001 From: Adel Janbeih <153122094+degghvz@users.noreply.github.com> Date: Sun, 22 Mar 2026 13:44:28 +0100 Subject: [PATCH] feat: add thinking_config to AnthropicClient whitelist Updated the allowed_keys tuple to permit thinking_config parameters. This ensures that the extended reasoning budget defined in the trading graph is actually passed to the Anthropic API. --- tradingagents/llm_clients/anthropic_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tradingagents/llm_clients/anthropic_client.py b/tradingagents/llm_clients/anthropic_client.py index 8539c752..67ce5f74 100644 --- a/tradingagents/llm_clients/anthropic_client.py +++ b/tradingagents/llm_clients/anthropic_client.py @@ -16,7 +16,7 @@ class AnthropicClient(BaseLLMClient): """Return configured ChatAnthropic instance.""" llm_kwargs = {"model": self.model} - for key in ("timeout", "max_retries", "api_key", "max_tokens", "callbacks", "http_client", "http_async_client"): + for key in ("timeout", "max_retries", "api_key", "max_tokens", "callbacks", "http_client", "http_async_client", "thinking_config"): if key in self.kwargs: llm_kwargs[key] = self.kwargs[key]