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.

feat: don't error for unsupported content types (#5140)

cthomas4f52aab65205
diff --git a/letta/schemas/message.py b/letta/schemas/message.py
index a10d59e31..b36bc1b47 100644
--- a/letta/schemas/message.py
+++ b/letta/schemas/message.py
@@ -1416,7 +1416,8 @@ class Message(BaseMessage):
native_part["thought_signature"] = content.signature
native_google_content_parts.append(native_part)
else:
- raise ValueError(f"Unsupported content type: {content.type}")
+ # silently drop other content types
+ pass
if native_google_content_parts:
parts = native_google_content_parts