ConversationItemsClient.ListItems(String, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Lists conversation items for the specified conversation.
public virtual System.Collections.Generic.IReadOnlyList<Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemResource> ListItems(string conversationId, System.Threading.CancellationToken cancellationToken = default);
abstract member ListItems : string * System.Threading.CancellationToken -> System.Collections.Generic.IReadOnlyList<Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemResource>
override this.ListItems : string * System.Threading.CancellationToken -> System.Collections.Generic.IReadOnlyList<Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemResource>
Public Overridable Function ListItems (conversationId As String, Optional cancellationToken As CancellationToken = Nothing) As IReadOnlyList(Of ItemResource)
Parameters
- conversationId
- String
The conversation ID.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
Conversation items ordered by the service response.
Exceptions
Thrown when the service returns an error response.