From 02b972cfc4923c9cd80bffa3e6b35bcfcd80540c Mon Sep 17 00:00:00 2001 From: anvyle Date: Thu, 9 Apr 2026 22:51:18 +0200 Subject: [PATCH] fix(backend/copilot): regenerate openapi.json with TaskDecompositionResponse schema The API schema was missing DecompositionStepModel and TaskDecompositionResponse after the merge. Regenerated with export-api-schema and formatted with prettier. Co-Authored-By: Claude Sonnet 4.6 --- .../frontend/src/app/api/openapi.json | 75 ++++++++++++++++++- 1 file changed, 74 insertions(+), 1 deletion(-) diff --git a/autogpt_platform/frontend/src/app/api/openapi.json b/autogpt_platform/frontend/src/app/api/openapi.json index 8dd9b5587f..de5c6fc2ed 100644 --- a/autogpt_platform/frontend/src/app/api/openapi.json +++ b/autogpt_platform/frontend/src/app/api/openapi.json @@ -1163,7 +1163,8 @@ { "$ref": "#/components/schemas/MCPToolsDiscoveredResponse" }, - { "$ref": "#/components/schemas/MCPToolOutputResponse" } + { "$ref": "#/components/schemas/MCPToolOutputResponse" }, + { "$ref": "#/components/schemas/TaskDecompositionResponse" } ], "title": "Response Getv2[Dummy] Tool Response Type Export For Codegen" } @@ -9212,6 +9213,40 @@ "enum": ["TOP_UP", "USAGE", "GRANT", "REFUND", "CARD_CHECK"], "title": "CreditTransactionType" }, + "DecompositionStepModel": { + "properties": { + "step_id": { + "type": "string", + "title": "Step Id", + "description": "Unique step identifier, e.g. 'step_1'" + }, + "description": { + "type": "string", + "title": "Description", + "description": "Human-readable step description" + }, + "action": { + "type": "string", + "title": "Action", + "description": "Action type: 'add_block', 'connect_blocks', 'configure', etc." + }, + "block_name": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Block Name", + "description": "Block being added, if applicable" + }, + "status": { + "type": "string", + "title": "Status", + "description": "Step status: pending, in_progress, completed, failed", + "default": "pending" + } + }, + "type": "object", + "required": ["step_id", "description", "action"], + "title": "DecompositionStepModel", + "description": "A single step in a decomposed agent-building plan." + }, "DeleteFileResponse": { "properties": { "deleted": { "type": "boolean", "title": "Deleted" } }, "type": "object", @@ -13722,6 +13757,44 @@ "required": ["recent_searches", "providers", "top_blocks"], "title": "SuggestionsResponse" }, + "TaskDecompositionResponse": { + "properties": { + "type": { + "$ref": "#/components/schemas/ResponseType", + "default": "task_decomposition" + }, + "message": { "type": "string", "title": "Message" }, + "session_id": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Session Id" + }, + "goal": { + "type": "string", + "title": "Goal", + "description": "The original user goal" + }, + "steps": { + "items": { "$ref": "#/components/schemas/DecompositionStepModel" }, + "type": "array", + "title": "Steps" + }, + "step_count": { + "type": "integer", + "title": "Step Count", + "description": "Number of steps (auto-derived from steps list)", + "default": 0 + }, + "requires_approval": { + "type": "boolean", + "title": "Requires Approval", + "default": true + } + }, + "type": "object", + "required": ["message", "goal", "steps"], + "title": "TaskDecompositionResponse", + "description": "Response for decompose_goal tool — shows the plan to the user." + }, "TimezoneResponse": { "properties": { "timezone": {