Lists the history records of a session.
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 conversation round limit. Specifies the number of most recent N rounds of conversation records to return. The value must be a positive integer. This parameter is mutually exclusive with pagination parameters. When this parameter is specified, pagination parameters are ignored. |
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 page size. Maximum value: 100. Default value: 20. |
20 |
| Order |
string |
No |
The sort order. Valid values:
Default value: DESC. |
DESC |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
7B117AF5-*************** |
| Dialogues |
array<object> |
The list of conversation records. |
|
|
array<object> |
|||
| DialogueId |
string |
The unique ID of this dialogue entry. |
19de81b3b3d94abda22**** |
| RoundId |
string |
The conversation round ID. |
f27f9b9be28642a88e18**** |
| Producer |
string |
The producer of this message. Valid values:
Valid values:
|
user |
| Text |
string |
The text content of the dialogue. |
Hello |
| ReasoningText |
string |
The deep thinking text. |
I am thinking |
| AttachedFileList |
array<object> |
The list of attachments. Contains information about file attachments referenced in the conversation. |
|
|
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 when this dialogue entry was produced, in milliseconds. |
1734511087000 |
| Type |
string |
The type of this message. Valid values: Voice call:
Text conversation:
|
announcement |
| Source |
string |
The source of this message. Valid values:
|
chat |
| NodeId |
string |
The node ID. Identifies the flow node that generated this dialogue entry, used to trace which processing node produced the conversation. |
e01-cn-to345ikn62o |
| Extend |
string |
The extended information. A JSON-formatted extension field used to store additional 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": "Hello",
"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.