更新Custom Agent。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
rdsai:UpdateCustomAgent |
update |
*全部资源
|
无 | 无 |
请求语法
POST HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| CustomAgentId |
string |
是 |
AgentId。 |
ebe44453-3b41-4c74-94d1-01d088d7**** |
| Name |
string |
否 |
专属 Agent 名称。 |
查询实例列表Agent |
| SystemPrompt |
string |
否 |
系统提示。 |
我是您用来查询实例列表的专属Agent |
| EnableTools |
boolean |
否 |
是否启用工具。 |
true |
| Tools |
array |
否 |
工具信息。 |
|
|
string |
否 |
工具详情。 |
[describe_db_instances,describe_db_instance_attribute] |
|
| SkillIds |
array |
否 |
||
|
string |
否 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
对象。 |
||
| EnableTools |
string |
是否启用工具。 |
true |
| Id |
string |
AgentId。 |
82cf3d62-0add-47bd-869f-877131f7**** |
| Name |
string |
专属 Agent 名称。 |
查询实例列表Agent |
| RequestId |
string |
请求 Id。 |
FE9C65D7-930F-57A5-A207-8C396329**** |
| Skills |
array<object> |
关联的技能详情列表 |
|
|
object |
|||
| Description |
string |
||
| Id |
string |
||
| Name |
string |
||
| SkillType |
string |
||
| SystemPrompt |
string |
系统提示。 |
我是您用来查询实例列表的专属Agent |
| Tools |
array |
工具信息。 |
|
|
string |
工具详情。 |
[describe_db_instances,describe_db_instance_attribute] |
示例
正常返回示例
JSON格式
{
"EnableTools": "true",
"Id": "82cf3d62-0add-47bd-869f-877131f7****",
"Name": "查询实例列表Agent",
"RequestId": "FE9C65D7-930F-57A5-A207-8C396329****",
"Skills": [
{
"Description": "",
"Id": "",
"Name": "",
"SkillType": ""
}
],
"SystemPrompt": "我是您用来查询实例列表的专属Agent",
"Tools": [
"[describe_db_instances,describe_db_instance_attribute]\n"
]
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidParameter | The provided parameter is invalid. | 无效的参数。 |
| 403 | SkillNotBelongToUser | One or more skills are not accessible to the current user. | 当前用户无权访问一个或多个技能。 |
| 404 | CustomAgentNotFound | The custom agent was not found or is not accessible. | 自定义智能体不存在或当前用户无权访问。 |
| 409 | CustomAgentNameDuplicated | A custom agent with the same name already exists. | 已存在同名的自定义 Agent。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。