Returns the session history.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:ListAIAgentDialogues |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SessionId |
string |
Yes |
The session ID. |
f27f9b9be28642a88e18**** |
| RoundLimit |
string |
No |
The number of most recent dialogue rounds to return. This value must be a positive integer. This parameter is mutually exclusive with pagination parameters; if specified, it overrides them. |
5 |
| StartTime |
integer |
Yes |
The start Unix timestamp (inclusive), in milliseconds. |
0 |
| EndTime |
integer |
Yes |
The end Unix timestamp (inclusive), in milliseconds. |
17358082464030 |
| PageNumber |
integer |
No |
The page number. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of items per page. Maximum value: 100. Default value: 20. |
20 |
| Order |
string |
No |
The sort order. Valid values: |
DESC |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Response schema |
||
| RequestId |
string |
The request ID. |
7B117AF5-*************** |
| Dialogues |
array<object> |
A list of dialogues. |
|
|
array<object> |
|||
| DialogueId |
string |
The unique ID of the dialogue. |
19de81b3b3d94abda22**** |
| RoundId |
string |
The ID of the dialogue round. |
f27f9b9be28642a88e18**** |
| Producer |
string |
The producer of this message.
Valid values:
|
user |
| Text |
string |
The text content of the dialogue entry. |
你好 |
| ReasoningText |
string |
The agent's reasoning text, which can reveal its thought process. |
我在思考 |
| AttachedFileList |
array<object> |
A list of file attachments referenced in the dialogue. |
|
|
object |
|||
| Url |
string |
The URL of the attachment. |
https://media.w3.org/2010/05/sintel/trailer.mp3 |
| Id |
string |
The unique identifier of the attachment. |
7B117AF5-*************** |
| Format |
string |
The format of the attachment, such as mp3, wav, or pdf. |
mp3 |
| Type |
integer |
The attachment type, represented by a numeric value. The meaning of this value is defined by your business logic. |
1 |
| Name |
string |
The file name of the attachment. |
MusicDemix |
| Time |
integer |
The Unix timestamp (in milliseconds) when the dialogue entry was created. |
1734511087000 |
| Type |
string |
The type of the message. Valid values include: For a call:
For a chat:
|
announcement |
| Source |
string |
The source channel of the message. Valid values: chat: The message is from a text chat. call: The message is from a voice call. |
chat |
| NodeId |
string |
The ID of the workflow node that generated the dialogue entry, which you can use for tracing. |
e01-cn-to345ikn62o |
| Extend |
string |
A JSON-formatted string for extended information. Use this field to store custom data, such as sentiment labels or intent recognition results. |
{\"addTransferLock\":true} |
Examples
Success response
JSON format
{
"RequestId": "7B117AF5-***************",
"Dialogues": [
{
"DialogueId": "19de81b3b3d94abda22****",
"RoundId": "f27f9b9be28642a88e18****",
"Producer": "user",
"Text": "你好",
"ReasoningText": "我在思考",
"AttachedFileList": [
{
"Url": "https://media.w3.org/2010/05/sintel/trailer.mp3",
"Id": "7B117AF5-***************\n",
"Format": "mp3",
"Type": 1,
"Name": "MusicDemix"
}
],
"Time": 1734511087000,
"Type": "announcement",
"Source": "chat",
"NodeId": "e01-cn-to345ikn62o",
"Extend": "{\\\"addTransferLock\\\":true}"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.