查询异步任务
AI-generatedSummary
Queries the status and result of an asynchronous AI task using its task ID.
Inputs
- taskId (required) — The ID of the asynchronous task to query.
- advancedOptions — Optional advanced parameters. Only overrideApiKey is applied for this operation; other options (temperature, maxTokens, topP, overrideApiBase, actualModel) are not used in the asyncQuery code path.
Output shape
The raw JSON response from GET /async-result/{taskId}. If the response includes a choices array, it is transformed into a standard format with content, output, and role fields; otherwise the response body is returned as-is. API errors throw a NodeOperationError.
The node resolves the base URL per provider/credentials logic. The API key is taken from advancedOptions.overrideApiKey, falling back to credentials.zhipuApiKey, then an empty string.
Examples
Example 1: Check status of an async generation task.
Provide the taskId; optionally override the API key via advancedOptions.