Freigeben über


CreateResponseExtensions.GetInputExpanded(CreateResponse) Method

Definition

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".

Applies to