diff --git a/autogpt_platform/backend/backend/api/features/chat/sdk/service.py b/autogpt_platform/backend/backend/api/features/chat/sdk/service.py index 123657f828..19cb3ff99e 100644 --- a/autogpt_platform/backend/backend/api/features/chat/sdk/service.py +++ b/autogpt_platform/backend/backend/api/features/chat/sdk/service.py @@ -120,7 +120,9 @@ def _cleanup_sdk_tool_results(cwd: str) -> None: # Security check 3: Validate project_dir is under ~/.claude/projects project_dir = os.path.normpath(project_dir) if not project_dir.startswith(claude_projects): - logger.warning(f"[SDK] Rejecting cleanup for escaped project path: {project_dir}") + logger.warning( + f"[SDK] Rejecting cleanup for escaped project path: {project_dir}" + ) return results_dir = os.path.join(project_dir, "tool-results") diff --git a/autogpt_platform/frontend/src/app/api/openapi.json b/autogpt_platform/frontend/src/app/api/openapi.json index 172419d27e..f14ebf764b 100644 --- a/autogpt_platform/frontend/src/app/api/openapi.json +++ b/autogpt_platform/frontend/src/app/api/openapi.json @@ -7022,29 +7022,24 @@ "input_schema": { "additionalProperties": true, "type": "object", - "title": "Input Schema" + "title": "Input Schema", + "description": "Full JSON schema for block inputs" }, "output_schema": { "additionalProperties": true, "type": "object", - "title": "Output Schema" + "title": "Output Schema", + "description": "Full JSON schema for block outputs" }, "required_inputs": { "items": { "$ref": "#/components/schemas/BlockInputFieldInfo" }, "type": "array", "title": "Required Inputs", - "description": "List of required input fields for this block" + "description": "List of input fields for this block" } }, "type": "object", - "required": [ - "id", - "name", - "description", - "categories", - "input_schema", - "output_schema" - ], + "required": ["id", "name", "description", "categories"], "title": "BlockInfoSummary", "description": "Summary of a block for search results." }, @@ -7090,7 +7085,7 @@ "usage_hint": { "type": "string", "title": "Usage Hint", - "default": "To execute a block, call run_block with block_id set to the block's 'id' field and input_data containing the required fields from input_schema." + "default": "To execute a block, call run_block with block_id set to the block's 'id' field and input_data containing the fields listed in required_inputs." } }, "type": "object",