ResponseContext.GetInputItemsAsync(Boolean, CancellationToken) Method

Definition

Resolves and returns the input items for the current request. Inline items are returned as their Item subtypes; item references are optionally resolved via the provider and converted to Item subtypes. Results are cached after the first call for each resolveReferences mode.

public virtual System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Azure.AI.AgentServer.Responses.Models.Item>> GetInputItemsAsync(bool resolveReferences = true, System.Threading.CancellationToken cancellationToken = default);
abstract member GetInputItemsAsync : bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Azure.AI.AgentServer.Responses.Models.Item>>
override this.GetInputItemsAsync : bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Azure.AI.AgentServer.Responses.Models.Item>>
Public Overridable Function GetInputItemsAsync (Optional resolveReferences As Boolean = true, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IReadOnlyList(Of Item))

Parameters

resolveReferences
Boolean

When true (the default), ItemReferenceParam items are resolved via the provider and returned as their concrete Item subtype. When false, item references are left as ItemReferenceParam in the returned list.

cancellationToken
CancellationToken

A token to cancel the operation.

Returns

The resolved input items.

Applies to