Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/loud-views-camp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@inkeep/agents-core": patch
"@inkeep/agents-manage-ui": patch
"@inkeep/agents-api": patch
---

Add duplicate agent functionality with full sub-agent and relationship copying
131 changes: 131 additions & 0 deletions agents-api/__snapshots__/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -3036,6 +3036,38 @@
},
"type": "object"
},
"DuplicateAgentRequest": {
"properties": {
"newAgentId": {
"description": "Unique identifier for the new duplicated agent (2-256 chars, URL-safe)",
"maxLength": 255,
"minLength": 2,
"pattern": "^[a-zA-Z0-9\\-_.]+$",
"type": "string"
},
"newAgentName": {
"description": "Name for the duplicated agent. Defaults to \"{originalName} (Copy)\" if not provided.",
"maxLength": 255,
"minLength": 1,
"type": "string"
}
},
"required": [
"newAgentId"
],
"type": "object"
},
"DuplicateAgentResponse": {
"properties": {
"data": {
"$ref": "#/components/schemas/Agent"
}
},
"required": [
"data"
],
"type": "object"
},
"ErrorResponse": {
"properties": {
"details": {
Expand Down Expand Up @@ -12422,6 +12454,105 @@
]
}
},
"/manage/tenants/{tenantId}/projects/{projectId}/agents/{agentId}/duplicate": {
"post": {
"operationId": "duplicate-agent",
"parameters": [
{
"description": "Tenant identifier",
"in": "path",
"name": "tenantId",
"required": true,
"schema": {
"$ref": "#/components/schemas/TenantIdPathParam"
}
},
{
"description": "Project identifier",
"in": "path",
"name": "projectId",
"required": true,
"schema": {
"$ref": "#/components/schemas/ProjectIdPathParam"
}
},
{
"description": "Agent identifier",
"in": "path",
"name": "agentId",
"required": true,
"schema": {
"$ref": "#/components/schemas/AgentIdPathParam"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DuplicateAgentRequest"
}
}
}
},
"responses": {
"201": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DuplicateAgentResponse"
}
}
},
"description": "Agent duplicated successfully"
},
"400": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
},
"description": "Invalid request body"
},
"403": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
},
"description": "Insufficient permissions"
},
"404": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
},
"description": "Agent not found"
},
"409": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
},
"description": "Agent with new ID already exists"
}
},
"summary": "Duplicate Agent",
"tags": [
"Agents"
]
}
},
"/manage/tenants/{tenantId}/projects/{projectId}/agents/{agentId}/full": {
"get": {
"operationId": "get-full-agent-definition",
Expand Down
Loading
Loading