Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: patch key error (unclear if we should fatally error here, or jus… (#1690)
Charles Packer819e1d2baec3
diff --git a/letta/llm_api/google_ai_client.py b/letta/llm_api/google_ai_client.pyindex c927ed3fa..5f1b95d00 100644--- a/letta/llm_api/google_ai_client.py+++ b/letta/llm_api/google_ai_client.py@@ -318,17 +318,16 @@ class GoogleAIClient(LLMClientBase):for t in tools]- # Correct casing + add inner thoughts if needed+ # Add inner thoughts if neededfor func in function_list:- func["parameters"]["type"] = "OBJECT"- for param_name, param_fields in func["parameters"]["properties"].items():- param_fields["type"] = param_fields["type"].upper()+ # Note: Google AI API used to have weird casing requirements, but not any more+# Add inner thoughtsif self.llm_config.put_inner_thoughts_in_kwargs:from letta.local_llm.constants import INNER_THOUGHTS_KWARG, INNER_THOUGHTS_KWARG_DESCRIPTIONfunc["parameters"]["properties"][INNER_THOUGHTS_KWARG] = {- "type": "STRING",+ "type": "string","description": INNER_THOUGHTS_KWARG_DESCRIPTION,}func["parameters"]["required"].append(INNER_THOUGHTS_KWARG)