Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
feat: mark include_relationships param as legacy in api (#6368)
cthomasb08dc5c4d8f5
diff --git a/fern/openapi.json b/fern/openapi.jsonindex d3f526652..24a8bafa4 100644--- a/fern/openapi.json+++ b/fern/openapi.json@@ -4053,9 +4053,11 @@}],"description": "Specify which relational fields (e.g., 'tools', 'sources', 'memory') to include in the response. If not provided, all relationships are loaded by default. Using this can optimize performance by reducing unnecessary joins.This is a legacy parameter, and no longer supported after 1.0.0 SDK versions.",+ "deprecated": true,"title": "Include Relationships"},- "description": "Specify which relational fields (e.g., 'tools', 'sources', 'memory') to include in the response. If not provided, all relationships are loaded by default. Using this can optimize performance by reducing unnecessary joins.This is a legacy parameter, and no longer supported after 1.0.0 SDK versions."+ "description": "Specify which relational fields (e.g., 'tools', 'sources', 'memory') to include in the response. If not provided, all relationships are loaded by default. Using this can optimize performance by reducing unnecessary joins.This is a legacy parameter, and no longer supported after 1.0.0 SDK versions.",+ "deprecated": true},{"name": "include",@@ -4736,9 +4738,11 @@}],"description": "Specify which relational fields (e.g., 'tools', 'sources', 'memory') to include in the response. If not provided, all relationships are loaded by default. Using this can optimize performance by reducing unnecessary joins.This is a legacy parameter, and no longer supported after 1.0.0 SDK versions.",+ "deprecated": true,"title": "Include Relationships"},- "description": "Specify which relational fields (e.g., 'tools', 'sources', 'memory') to include in the response. If not provided, all relationships are loaded by default. Using this can optimize performance by reducing unnecessary joins.This is a legacy parameter, and no longer supported after 1.0.0 SDK versions."+ "description": "Specify which relational fields (e.g., 'tools', 'sources', 'memory') to include in the response. If not provided, all relationships are loaded by default. Using this can optimize performance by reducing unnecessary joins.This is a legacy parameter, and no longer supported after 1.0.0 SDK versions.",+ "deprecated": true},{"name": "include",@@ -10517,9 +10521,11 @@}],"description": "Specify which relational fields (e.g., 'tools', 'sources', 'memory') to include in the response. If not provided, all relationships are loaded by default. Using this can optimize performance by reducing unnecessary joins.This is a legacy parameter, and no longer supported after 1.0.0 SDK versions.",+ "deprecated": true,"title": "Include Relationships"},- "description": "Specify which relational fields (e.g., 'tools', 'sources', 'memory') to include in the response. If not provided, all relationships are loaded by default. Using this can optimize performance by reducing unnecessary joins.This is a legacy parameter, and no longer supported after 1.0.0 SDK versions."+ "description": "Specify which relational fields (e.g., 'tools', 'sources', 'memory') to include in the response. If not provided, all relationships are loaded by default. Using this can optimize performance by reducing unnecessary joins.This is a legacy parameter, and no longer supported after 1.0.0 SDK versions.",+ "deprecated": true},{"name": "include",@@ -12539,9 +12545,11 @@}],"description": "Specify which relational fields (e.g., 'tools', 'sources', 'memory') to include in the response. If not provided, all relationships are loaded by default. Using this can optimize performance by reducing unnecessary joins.This is a legacy parameter, and no longer supported after 1.0.0 SDK versions.",+ "deprecated": true,"title": "Include Relationships"},- "description": "Specify which relational fields (e.g., 'tools', 'sources', 'memory') to include in the response. If not provided, all relationships are loaded by default. Using this can optimize performance by reducing unnecessary joins.This is a legacy parameter, and no longer supported after 1.0.0 SDK versions."+ "description": "Specify which relational fields (e.g., 'tools', 'sources', 'memory') to include in the response. If not provided, all relationships are loaded by default. Using this can optimize performance by reducing unnecessary joins.This is a legacy parameter, and no longer supported after 1.0.0 SDK versions.",+ "deprecated": true},{"name": "include",diff --git a/letta/server/rest_api/routers/v1/agents.py b/letta/server/rest_api/routers/v1/agents.pyindex 960d0944b..0d190cca6 100644--- a/letta/server/rest_api/routers/v1/agents.py+++ b/letta/server/rest_api/routers/v1/agents.py@@ -101,6 +101,7 @@ async def list_agents("Using this can optimize performance by reducing unnecessary joins.""This is a legacy parameter, and no longer supported after 1.0.0 SDK versions."),+ deprecated=True,),include: List[AgentRelationships] = Query([],@@ -815,6 +816,7 @@ async def retrieve_agent("Using this can optimize performance by reducing unnecessary joins.""This is a legacy parameter, and no longer supported after 1.0.0 SDK versions."),+ deprecated=True,),include: List[AgentRelationships] = Query([],diff --git a/letta/server/rest_api/routers/v1/blocks.py b/letta/server/rest_api/routers/v1/blocks.pyindex 390ea2206..10b984bb7 100644--- a/letta/server/rest_api/routers/v1/blocks.py+++ b/letta/server/rest_api/routers/v1/blocks.py@@ -186,6 +186,7 @@ async def list_agents_for_block("Using this can optimize performance by reducing unnecessary joins.""This is a legacy parameter, and no longer supported after 1.0.0 SDK versions."),+ deprecated=True,),include: List[AgentRelationships] = Query([],diff --git a/letta/server/rest_api/routers/v1/internal_blocks.py b/letta/server/rest_api/routers/v1/internal_blocks.pyindex d9f2b9885..052266b95 100644--- a/letta/server/rest_api/routers/v1/internal_blocks.py+++ b/letta/server/rest_api/routers/v1/internal_blocks.py@@ -149,6 +149,7 @@ async def list_agents_for_block("Using this can optimize performance by reducing unnecessary joins.""This is a legacy parameter, and no longer supported after 1.0.0 SDK versions."),+ deprecated=True,),include: List[str] = Query([],