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: reduce the default tool return to something more sane [LET-4180] (#4383)

Charles Packerdd1a9a0b7c1c
diff --git a/letta/constants.py b/letta/constants.py
index 6a2c85418..3cd7ae0ba 100644
--- a/letta/constants.py
+++ b/letta/constants.py
@@ -340,7 +340,7 @@ CORE_MEMORY_BLOCK_CHAR_LIMIT: int = 20000
# Function return limits
FUNCTION_RETURN_CHAR_LIMIT = 50000 # ~300 words
-BASE_FUNCTION_RETURN_CHAR_LIMIT = 1000000 # very high (we rely on implementation)
+BASE_FUNCTION_RETURN_CHAR_LIMIT = 50000 # same as regular function limit
FILE_IS_TRUNCATED_WARNING = "# NOTE: This block is truncated, use functions to view the full content."
MAX_PAUSE_HEARTBEATS = 360 # in min