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: remove char limit on name (#1185)

Sarah Wooders94cb86f7feea
diff --git a/letta/schemas/agent.py b/letta/schemas/agent.py
index 7f51d068f..44e6ecf6a 100644
--- a/letta/schemas/agent.py
+++ b/letta/schemas/agent.py
@@ -175,11 +175,6 @@ class CreateAgent(BaseModel, validate_assignment=True): #
# don't check if not provided
return name
- # TODO: this check should also be added to other model (e.g. User.name)
- # Length check
- if not (1 <= len(name) <= 50):
- raise ValueError("Name length must be between 1 and 50 characters.")
-
# Regex for allowed characters (alphanumeric, spaces, hyphens, underscores)
if not re.match("^[A-Za-z0-9 _-]+$", name):
raise ValueError("Name contains invalid characters.")