ProjectResponsesClient.GetProjectResponsesAsync Method

Definition

Asynchronously gets project responses, optionally filtered by agent or conversation.

public virtual System.ClientModel.AsyncCollectionResult<OpenAI.Responses.ResponseResult> GetProjectResponsesAsync(Azure.AI.Extensions.OpenAI.AgentReference agent = default, string conversationId = default, int? limit = default, string order = default, string after = default, string before = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetProjectResponsesAsync : Azure.AI.Extensions.OpenAI.AgentReference * string * Nullable<int> * string * string * string * System.Threading.CancellationToken -> System.ClientModel.AsyncCollectionResult<OpenAI.Responses.ResponseResult>
override this.GetProjectResponsesAsync : Azure.AI.Extensions.OpenAI.AgentReference * string * Nullable<int> * string * string * string * System.Threading.CancellationToken -> System.ClientModel.AsyncCollectionResult<OpenAI.Responses.ResponseResult>
Public Overridable Function GetProjectResponsesAsync (Optional agent As AgentReference = Nothing, Optional conversationId As String = Nothing, Optional limit As Nullable(Of Integer) = Nothing, Optional order As String = Nothing, Optional after As String = Nothing, Optional before As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncCollectionResult(Of ResponseResult)

Parameters

agent
AgentReference

The agent used to filter the returned responses.

conversationId
String

The conversation ID used to filter the returned responses.

limit
Nullable<Int32>

The maximum number of responses to return.

order
String

The order used to sort returned responses.

after
String

The response ID after which results should be returned.

before
String

The response ID before which results should be returned.

cancellationToken
CancellationToken

The cancellation token that can be used to cancel the operation.

Returns

AsyncCollectionResult<OpenAI.Responses.ResponseResult>

The project responses.

Applies to