List Conversations
List Conversations
Path Parameters
Query Parameters
The number of entries in the result set to skip.
The maximum number of results to return. The service may return fewer than this value. If unspecified, the service will choose a sensible default. The maximum allowed value is 100.
- 200
OK
Schema
- Array [
- Array [
- Array [
- ]
- ]
- ]
conversations object[] required
The returned list of Conversations.
The unique ID of this conversation.
turns object[] required
The messages in this conversation.
The unique ID of the message.
The time the message was sent.
Possible values: [user
, assistant
]
The sender of the message. Messages sent via the API are user
messages; messages generated by an agent are assistant
messages.
messages object[] required
The typed message fragments.
Possible values: [text
]
The message text.
Possible values: [in-progress
, done
]
Indicates whether content within this fragment is still streaming. Note that this may be in-progress
even if message-level state
is not, which indicates that this particular fragment was incomplete at the time the message generation stopped.
Additional user- or agent-provided metadata.
Possible values: [functionCall
]
The name of the function that was requested.
The arguments of the requested function call.
Additional user- or agent-provided metadata.
Possible values: [functionResponse
]
The name of the function that was invoked.
The result of invoking the function.
Indicates whether the function invocation failed.
Additional user- or agent-provided metadata.
Possible values: [in-progress
, done
, stopped
, error
]
For agent-generated messages, indicates the status of the generation. User-sent messages are always done
.
Indicates details of the error for agent-generated messages in the error
state.
For agent-generated messages, indicates the user message that the message was in reply to.
pageInfo object required
Information about the current page of results.
The number of results requested.
The offset specified in the request.
The total number of results available.
{
"conversations": [
{
"id": "string",
"turns": [
{
"id": "string",
"timestamp": "2024-03-07T22:56:08.570Z",
"role": "user",
"messages": [
{
"kind": "text",
"content": "Hello!"
},
{
"kind": "functionCall",
"name": "queryKnowledgeBase",
"args": {
"query": "Why is the sky blue?"
}
},
{
"kind": "functionResponse",
"name": "queryKnowledgeBase",
"response": "{\n \"kind\": \"docs\",\n \"results\": []\n}"
}
],
"state": "in-progress",
"errorDetail": "string",
"inReplyToId": "string"
}
]
}
],
"pageInfo": {
"requestedPageSize": 0,
"requestedOffset": 0,
"totalResultCount": 0
}
}