ResponsesProvider.GetInputItemsAsync Method

Definition

Retrieves a paginated list of input items stored for a response.

public abstract System.Threading.Tasks.Task<Azure.AI.AgentServer.Responses.Models.AgentsPagedResultOutputItem> GetInputItemsAsync(string responseId, Azure.AI.AgentServer.Core.IsolationContext isolation, int limit = 20, bool ascending = false, string? after = default, string? before = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetInputItemsAsync : string * Azure.AI.AgentServer.Core.IsolationContext * int * bool * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.AI.AgentServer.Responses.Models.AgentsPagedResultOutputItem>
Public MustOverride Function GetInputItemsAsync (responseId As String, isolation As IsolationContext, Optional limit As Integer = 20, Optional ascending As Boolean = false, Optional after As String = Nothing, Optional before As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AgentsPagedResultOutputItem)

Parameters

responseId
String

The unique response identifier.

isolation
IsolationContext

The platform isolation context. Use Empty when not applicable.

limit
Int32

Maximum number of items to return (1–100, default 20).

ascending
Boolean

If true, return items in ascending order; otherwise descending.

after
String

Cursor: return items after this item ID.

before
String

Cursor: return items before this item ID.

cancellationToken
CancellationToken

A token to cancel the operation.

Returns

A paged result of output items.

Exceptions

Thrown when the response was never created.

Thrown when the response has been deleted.

Applies to