CreateResponseExtensions.GetInputExpanded(CreateResponse) 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.
Expands the Input BinaryData into a typed list of
Item objects. A plain string input is wrapped as a single
ItemMessage with User role and text content.
Array elements without a "type" discriminator default to
ItemMessage deserialization.
public static System.Collections.Generic.List<Azure.AI.AgentServer.Responses.Models.Item> GetInputExpanded(this Azure.AI.AgentServer.Responses.Models.CreateResponse request);
static member GetInputExpanded : Azure.AI.AgentServer.Responses.Models.CreateResponse -> System.Collections.Generic.List<Azure.AI.AgentServer.Responses.Models.Item>
<Extension()>
Public Function GetInputExpanded (request As CreateResponse) As List(Of Item)
Parameters
- request
- CreateResponse
The create-response request.
Returns
A list of deserialized input items, or an empty list if input is null.
Exceptions
request is null.
The input data could not be parsed. The inner exception contains the parse error details.
Message: "Failed to convert input items".