Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: anthropic inner thoughts bug (#1432)
cthomas3af09f22346a
diff --git a/letta/llm_api/anthropic_client.py b/letta/llm_api/anthropic_client.pyindex 402ba8a64..bab45f9c7 100644--- a/letta/llm_api/anthropic_client.py+++ b/letta/llm_api/anthropic_client.py@@ -89,7 +89,7 @@ class AnthropicClient(LLMClientBase):# Add inner thoughts kwargif len(tools_for_request) > 0 and self.llm_config.put_inner_thoughts_in_kwargs:tools_with_inner_thoughts = add_inner_thoughts_to_functions(- functions=[t.function for t in tools_for_request],+ functions=[t.function.model_dump() for t in tools_for_request],inner_thoughts_key=INNER_THOUGHTS_KWARG,inner_thoughts_description=INNER_THOUGHTS_KWARG_DESCRIPTION,)