compute_result
Retrieve the result of a Compute task by providing the task ID. Optionally, set a timeout in seconds to wait for completion.
Instructions
Get the result of a Compute task.
Without a timeout, this does a single non-blocking check. With a timeout, it polls with exponential backoff until the task completes or the timeout is reached.
Args: task_id: UUID of the task. timeout: Maximum seconds to wait. If None, checks once without blocking.
Returns: Dict with 'status' ('success', 'failed', or 'pending') and either 'result' (the function's return value) or 'exception'.
Examples: compute_result("task-uuid") compute_result("task-uuid", timeout=300)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"task_id": "<task_id>"
},
"name": "compute_result"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | ||
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||