chore: surface the templates rest endpoint (#4412)

* chore: surface the templates rest endpoint

* chore: fix python server stuff

---------

Co-authored-by: Shubham Naik <shub@memgpt.ai>
This commit is contained in:
Shubham Naik
2025-09-04 08:48:46 -07:00
committed by GitHub
parent 9e20a76d2a
commit a65400af84
2 changed files with 2 additions and 9 deletions

View File

@@ -5,6 +5,7 @@ from letta.server.rest_api.routers.v1.folders import router as folders_router
from letta.server.rest_api.routers.v1.groups import router as groups_router
from letta.server.rest_api.routers.v1.health import router as health_router
from 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_router
from letta.server.rest_api.routers.v1.jobs import router as jobs_router
from letta.server.rest_api.routers.v1.llms import router as llm_router
from 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,

View File

@@ -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.