Freigeben über


ConversationItemsClient.ListItems(String, CancellationToken) Method

Definition

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.

Applies to