[AI39-3] Design Patent Infringement Search - Get Stage Execution Result
Retrieve the full result of a stage. Use generate_report for the final report; optional data.report_export is provided when the report completes and export succeeds. Top-level status=true does not mean the stage executed successfully; inspect data.stage_status. Jurisdiction filtering is passed through vector prefilters, so its absence from search_request.q does not prove that no filter was applied. Zero candidates does not mean no risk. Request example (parameters in URL query, no request body): ```http GET /api/mcp/task/stage/result?task_id=task_0123456789ab&stage=generate_report&image_mode=base64 ``` Success response example: ```json { "code": 0, "success": true, "data": { "stage": "generate_report", "stage_status": "completed", "result_data": {}, "execution_duration": 10.5, "retry_count": 0, "error_message": null, "report_export": { "download_url": "https://example.com/report.docx?signature=example", "file_name": "mcp_design_fto_report_task_0123456789ab_cn_1789610400000.docx" } }, "status": true } ``` Failure response example: ```json { "code": 1, "success": false, "message": "Stage结果不存在: task_id=task_0123456789ab, stage=generate_report", "status": false } ``` Replace example task IDs, URLs and the Base64 placeholder with real values. The result_data example omits business content. Example message values illustrate API text and are not guaranteed to be translated according to lang.
Request Parameters
List of parameters supported by this API endpoint
| Name | Type | Example | Description |
|---|---|---|---|
Required | string | task_0123456789ab | [Required] Task ID returned by submission. Example: "task_0123456789ab" |
Required | string | generate_report | [Required] Stage: convert_lineart, image_search, rerank or generate_report. Example: "generate_report" |
| string | base64 | [Optional] Image mode for report export; defaults to base64. Example: "base64" |
Error Codes
List of possible error codes returned by this endpoint
Business Errors
| Error Code | Description |
|---|---|
68300004 | Invalid parameter! |
68300005 | Search api failure! |
68300006 | Analytic basic access error! |
68300007 | Bad request! |
68300008 | Service error, please try again later! |
68300010 | The file does not comply with upload specifications! |
Platform Errors
| Error Code | Description |
|---|---|
67200001 | API call exceeds the total limit set by the platform! |
67200002 | Quota exceeds the limit! |
67200003 | Access token expired or authentication error! |
67200004 | No permission or API package quota has exceeded the limit! |
67200005 | Insufficient balance, call failed! |
67200006 | This client has expired and call failed! |
67200007 | Exceeded the call limit, call failed! |
HTTP Status Codes
| Status Code | Description |
|---|---|
0 | Success |
422 | Request validation failed: status=false, code=1, with detail retained. |
Performance Metrics
Expected performance characteristics for this endpoint
Normal Response Time
5000 ms
Max Response Time
10000 ms