DeleteAgent - 删除 Agent
更新时间:
复制 MD 格式
删除指定的 Agent。
接口说明
创建者可以删除自己创建的 Agent。
删除后,该 Agent 不再可查询、更新或运行。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
ada:DeleteAgent |
delete |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| Name |
string |
是 |
要删除的 Agent 名称。 |
code-review-agent |
请求示例
{
"Name": "code-review-agent"
}
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
删除 Agent 的返回结果。 |
||
| Success |
boolean |
Agent 是否已成功删除。成功响应固定返回 |
true |
| RequestId |
string |
请求 ID,用于链路追踪和问题排查。 |
0A1B2C3D-4E5F-6789-ABCD-EF0123456789 |
正常返回示例
{
"Success": true,
"RequestId": "0A1B2C3D-4E5F-6789-ABCD-EF0123456789"
}
示例
正常返回示例
JSON格式
{
"Success": true,
"RequestId": "0A1B2C3D-4E5F-6789-ABCD-EF0123456789"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter is invalid. | |
| 401 | Unauthenticated | Authentication required. | |
| 500 | InternalError | Internal server error. | |
| 403 | Agent.Forbidden | You are not authorized to operate the specified Agent. | |
| 503 | ServiceUnavailable | The service is not ready or temporarily unavailable. | |
| 504 | ServiceTimeout | A required service timed out. | |
| 504 | Agent.OperationResultUnknown | The Agent operation result is unknown. |
变更历史
该文章对您有帮助吗?