Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
chore: surface the templates rest endpoint (#4412)
Shubham Naika65400af8418
diff --git a/letta/server/rest_api/routers/v1/__init__.py b/letta/server/rest_api/routers/v1/__init__.pyindex 5d3463d1e..ba62cef52 100644--- a/letta/server/rest_api/routers/v1/__init__.py+++ b/letta/server/rest_api/routers/v1/__init__.py@@ -5,6 +5,7 @@ from letta.server.rest_api.routers.v1.folders import router as folders_routerfrom letta.server.rest_api.routers.v1.groups import router as groups_routerfrom letta.server.rest_api.routers.v1.health import router as health_routerfrom letta.server.rest_api.routers.v1.identities import router as identities_router+from letta.server.rest_api.routers.v1.internal_templates import router as internal_templates_routerfrom letta.server.rest_api.routers.v1.jobs import router as jobs_routerfrom letta.server.rest_api.routers.v1.llms import router as llm_routerfrom letta.server.rest_api.routers.v1.messages import router as messages_router@@ -25,6 +26,7 @@ ROUTERS = [agents_router,groups_router,identities_router,+ internal_templates_router,llm_router,blocks_router,jobs_router,diff --git a/letta/server/rest_api/routers/v1/internal_templates.py b/letta/server/rest_api/routers/v1/internal_templates.pyindex 795f6a42e..2ab86fb3c 100644--- a/letta/server/rest_api/routers/v1/internal_templates.py+++ b/letta/server/rest_api/routers/v1/internal_templates.py@@ -16,9 +16,6 @@ async def create_group(group: InternalTemplateGroupCreate = Body(...),server: "SyncServer" = Depends(get_letta_server),actor_id: Optional[str] = Header(None, alias="user_id"),- x_project: Optional[str] = Header(- None, alias="X-Project", description="The project slug to associate with the group (cloud only)."- ), # Only handled by next js middleware):"""Create a new multi-agent group with the specified configuration.@@ -35,9 +32,6 @@ async def create_agent(agent: InternalTemplateAgentCreate = Body(...),server: "SyncServer" = Depends(get_letta_server),actor_id: Optional[str] = Header(None, alias="user_id"),- x_project: Optional[str] = Header(- None, alias="X-Project", description="The project slug to associate with the agent (cloud only)."- ), # Only handled by next js middleware):"""Create a new agent with template-related fields.@@ -54,9 +48,6 @@ async def create_block(block: InternalTemplateBlockCreate = Body(...),server: "SyncServer" = Depends(get_letta_server),actor_id: Optional[str] = Header(None, alias="user_id"),- x_project: Optional[str] = Header(- None, alias="X-Project", description="The project slug to associate with the block (cloud only)."- ), # Only handled by next js middleware):"""Create a new block with template-related fields.