Freigeben über


ConversationItemsClient.ListItemsAsync(String, CancellationToken) Method

Definition

Lists conversation items for the specified conversation.

public virtual System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemResource>> ListItemsAsync(string conversationId, System.Threading.CancellationToken cancellationToken = default);
abstract member ListItemsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemResource>>
override this.ListItemsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemResource>>
Public Overridable Function ListItemsAsync (conversationId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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.

Applies to