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: remove function overrides for `Block` object (#1816)

Sarah Wooders8f5d9b9e853d
diff --git a/letta/__init__.py b/letta/__init__.py
index a1170eb0b..93cdfd4ba 100644
--- a/letta/__init__.py
+++ b/letta/__init__.py
@@ -1,4 +1,4 @@
-__version__ = "0.1.17"
+__version__ = "0.1.7"
# import clients
from letta.client.admin import Admin
diff --git a/letta/schemas/block.py b/letta/schemas/block.py
index 3dd8d301d..b07172f49 100644
--- a/letta/schemas/block.py
+++ b/letta/schemas/block.py
@@ -46,15 +46,7 @@ class BaseBlock(LettaBase, validate_assignment=True):
return self
def __len__(self):
- return len(str(self))
-
- def __str__(self) -> str:
- if isinstance(self.value, list):
- return ",".join(self.value)
- elif isinstance(self.value, str):
- return self.value
- else:
- return ""
+ return len(self.value)
def __setattr__(self, name, value):
"""Run validation if self.value is updated"""