ResponsesProvider.GetItemsAsync Method

Definition

Retrieves output items by their identifiers (batch lookup). Items not found are returned as null entries.

public abstract System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Azure.AI.AgentServer.Responses.Models.OutputItem?>> GetItemsAsync(System.Collections.Generic.IEnumerable<string> itemIds, Azure.AI.AgentServer.Core.IsolationContext isolation, System.Threading.CancellationToken cancellationToken = default);
abstract member GetItemsAsync : seq<string> * Azure.AI.AgentServer.Core.IsolationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Azure.AI.AgentServer.Responses.Models.OutputItem>>
Public MustOverride Function GetItemsAsync (itemIds As IEnumerable(Of String), isolation As IsolationContext, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IEnumerable(Of OutputItem))

Parameters

itemIds
IEnumerable<String>

The item identifiers to look up.

isolation
IsolationContext

The platform isolation context. Use Empty when not applicable.

cancellationToken
CancellationToken

A token to cancel the operation.

Returns

Output items matching the requested IDs (null for missing).

Applies to