Retrieves the historical chat records of Copilot.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sysom:GetCopilotHistory |
list |
*All Resource
|
None | None |
Request syntax
POST /api/v1/copilot/get_copilot_history HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| count |
integer |
Yes |
The number of historical chat records to request, generally fewer than 100. |
100 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| code |
string |
The error code. |
SysomOpenAPI.InvalidParameter |
| data |
array<object> |
The list of chat records. The length equals the requested number. If the actual chat records are fewer than the requested number, the actual number is returned. Format: [{"user":"","content":"".question,"time":""},{...}] |
|
|
object |
The response data. |
||
| content |
string |
The chat content text. |
The specific content replied by Copilot |
| time |
string |
The chat record time, of the string type. |
2024-09-02 10:02:39 |
| user |
string |
The role identifier. Valid values:
|
user copilot |
| message |
string |
The error message.
|
SysomOpenAPIAssumeRoleException: EntityNotExist.Role The role not exists: acs:ram::xxxxx:role/aliyunserviceroleforsysom |
| requestId |
string |
Id of the request |
2D693121-C925-5154-8DF6-C09A8B369822 |
Examples
Success response
JSON format
{
"code": "SysomOpenAPI.InvalidParameter",
"data": [
{
"content": "Specific content replied by Copilot",
"time": "2024-09-02 10:02:39",
"user": "user\ncopilot"
}
],
"message": "SysomOpenAPIAssumeRoleException: EntityNotExist.Role The role not exists: acs:ram::xxxxx:role/aliyunserviceroleforsysom",
"requestId": "2D693121-C925-5154-8DF6-C09A8B369822\n"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.