ResponseContext.GetInputItemsAsync(Boolean, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.