You need to enable JavaScript to run this app.
文档中心
AgentKit

AgentKit

复制全文
下载 pdf
Sandbox Tool
DeleteSession - 删除工具会话实例
复制全文
下载 pdf
DeleteSession - 删除工具会话实例
删除工具的会话实例。​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action string 必选 示例值:DeleteSession​
要执行的操作,取值:DeleteSession。​
​
Version string 必选 示例值:2025-10-30​
API的版本,取值:2025-10-30。​
​
SessionId string 必选 示例值:s-3tigy72q3u3vj0x2****​
会话ID。​
​
ToolId string 可选 示例值:t-3tigy72q3u3vj0x2****​
工具ID。​
​
​
​
返回参数​
下方仅列出本接口特有的返回参数。更多信息请参见返回结构。​
SessionId string 示例值:s-3tigy72q3u3vj0x2****​
会话ID。​
​
​
​
请求示例​
​
POST https://agentkit.cn-beijing.volcengineapi.com?Action=DeleteSession&Version=2025-10-30 HTTP/1.1​
Content-Type: application/json​
{​
"ToolId": "t-ye6xzwchkwoaroxxxxxx",​
"SessionId": "s-ye6xzwchkwoaroxxxxxx"​
}​
​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "20251027144356FBC64212879D5D3A****",​
"Action": "DeleteSession",​
"Version": "2025-10-30",​
"Service": "agentkit",​
"Region": "cn-beijing"​
},​
"Result": {​
"SessionId": "s-ye7sfdm2o0c1kdto****"​
}​
}​
​
错误码​
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。​
​
状态码​
错误码​
错误信息​
说明​
400​
MissingParameter.SessionId​
The required parameter SessionId is not supplied.​
参数SessionId不能为空。​
400​
MissingParameter.ToolId​
The required parameter ToolId is not supplied.​
参数ToolId不能为空。​
404​
InvalidResource.NotFound​
The specified resource does not exist.​
指定资源不存在。​
​
​
最近更新时间:2026.07.21 19:16:37
这个页面对您有帮助吗?
有用
有用
无用
无用