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: typo in conditional checking `is not "None"` instead of `!= "None"` (#2589)

Kian Jonesad3503f0ee66
diff --git a/letta/groups/helpers.py b/letta/groups/helpers.py
index 99f57b661..148a3a3b5 100644
--- a/letta/groups/helpers.py
+++ b/letta/groups/helpers.py
@@ -107,7 +107,7 @@ def stringify_message(message: Message, use_assistant_name: bool = False) -> str
elif message.role == "tool":
if message.content:
content = json.loads(message.content[0].text)
- if content["message"] is not "None" and content["message"] is not None:
+ if str(content["message"]) != "None":
return f"{assistant_name}: Tool call returned {content['message']}"
return None
elif message.role == "system":