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: toggle off stainless pagination for list endpoints that require id field [LET-5948] (#5804)

jnjpng678167720f17
diff --git a/fern/openapi.json b/fern/openapi.json
index f3ebc9a04..382d63f50 100644
--- a/fern/openapi.json
+++ b/fern/openapi.json
@@ -20258,10 +20258,8 @@
},
"id": {
"type": "string",
- "pattern": "^block-[a-fA-F0-9]{8}",
"title": "Id",
- "description": "The human-friendly ID of the Block",
- "examples": ["block-123e4567-e89b-12d3-a456-426614174000"]
+ "description": "The id of the block."
},
"created_by_id": {
"anyOf": [
@@ -20289,7 +20287,7 @@
}
},
"type": "object",
- "required": ["value"],
+ "required": ["value", "id"],
"title": "BlockResponse"
},
"BlockSchema": {
diff --git a/letta/schemas/block.py b/letta/schemas/block.py
index 32c28b3b3..487f22442 100644
--- a/letta/schemas/block.py
+++ b/letta/schemas/block.py
@@ -103,6 +103,10 @@ class Block(BaseBlock):
class BlockResponse(Block):
+ id: str = Field(
+ ...,
+ description="The id of the block.",
+ )
template_name: Optional[str] = Field(
None, description="(Deprecated) The name of the block template (if it is a template).", deprecated=True
)