Skip to content

armgit / letta

Public Imported from GitHub
0

Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.

fix: tool_name unreachable bug (#1803)

cthomasb0faff1ae90c
diff --git a/letta/llm_api/google_ai_client.py b/letta/llm_api/google_ai_client.py
index 5f1b95d00..72e56139e 100644
--- a/letta/llm_api/google_ai_client.py
+++ b/letta/llm_api/google_ai_client.py
@@ -56,6 +56,9 @@ class GoogleAIClient(LLMClientBase):
tool_names = [t.function.name for t in tool_objs]
# Convert to the exact payload style Google expects
tools = self.convert_tools_to_google_ai_format(tool_objs)
+ else:
+ tool_names = []
+
contents = self.add_dummy_model_messages(
[m.to_google_ai_dict() for m in messages],
)