functiongraph__CancelAsyncInvocation
Stops a specified asynchronous FunctionGraph invocation request by request ID, enabling forced cancellation for supported function configurations.
Instructions
[FUNCTIONGRAPH] -| 当前仅支持参数recursive为false且force为true的函数。 在1:N的函数做并发异步调用的场景下调用停止异步请求接口时,同一函数实例同时在执行的其他请求也会被一并停止并返回4208 function invocation canceled
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": {
"function_urn": "<function_urn>",
"project_id": "<project_id>",
"request_id": "<request_id>"
},
"name": "functiongraph__CancelAsyncInvocation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | 停止的类型 | |
| project_id | Yes | 租户项目 ID,获取方式请参见[获取项目ID](functiongraph_06_0260.xml)。 | |
| request_id | Yes | 被停止的请求id | |
| function_urn | Yes | 函数的URN,详细解释见FunctionGraph函数模型的描述。 |