Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: patch summarizer bug for Anthropic (#1389)
Charles Packerd3dcd043d36a
diff --git a/letta/llm_api/llm_api_tools.py b/letta/llm_api/llm_api_tools.pyindex 90b2838d2..82d0aea65 100644--- a/letta/llm_api/llm_api_tools.py+++ b/letta/llm_api/llm_api_tools.py@@ -372,7 +372,11 @@ def create(# Force tool callingtool_call = None- if force_tool_call is not None:+ if functions is None:+ # Special case for summarization path+ tools = None+ tool_choice = None+ elif force_tool_call is not None:# tool_call = {"type": "function", "function": {"name": force_tool_call}}tool_choice = {"type": "tool", "name": force_tool_call}tools = [{"type": "function", "function": f} for f in functions if f["name"] == force_tool_call]