cpu高agent流式接口
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
sysom:CpuHighAgentStreamResponse |
none |
*全部资源
|
无 | 无 |
请求语法
POST /api/v1/highCpuAgent/streamResponse HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| body |
object |
否 |
请求 Body |
|
| llmParamString |
string |
否 |
对接 cpu high agent 服务的入参,参考标准 LLM 接口入参 dict,需要转化成 string 并传入 llmParamString 中 |
"llmParamString": "{\"messages\": [{\"role\": \"user\", \"content\": \"用户12345的机器i-67890,最近2分钟CPU使用率高,请结合最近2分钟的火焰图信息,分析原因\"}]}" |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| code |
string |
状态码
|
Success |
| data |
string |
返回数据 |
|
| message |
string |
错误信息
|
SysomOpenAPIAssumeRoleException: EntityNotExist.Role The role not exists: acs:ram::xxxxx:role/aliyunserviceroleforsysom |
| requestId |
string |
Id of the request |
2D693121-C925-5154-8DF6-C09A8B369822 |
示例
正常返回示例
JSON格式
{
"code": "Success",
"data": "",
"message": "SysomOpenAPIAssumeRoleException: EntityNotExist.Role The role not exists: acs:ram::xxxxx:role/aliyunserviceroleforsysom",
"requestId": "2D693121-C925-5154-8DF6-C09A8B369822\n"
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。