ResponseExtensions.GetInstructionItems(ResponseObject) Method

Definition

Expands the Instructions BinaryData into a typed list of Item objects. A plain string is wrapped as a single ItemMessage with Developer role and the instruction text.

public static System.Collections.Generic.List<Azure.AI.AgentServer.Responses.Models.Item> GetInstructionItems(this Azure.AI.AgentServer.Responses.Models.ResponseObject response);
static member GetInstructionItems : Azure.AI.AgentServer.Responses.Models.ResponseObject -> System.Collections.Generic.List<Azure.AI.AgentServer.Responses.Models.Item>
<Extension()>
Public Function GetInstructionItems (response As ResponseObject) As List(Of Item)

Parameters

response
ResponseObject

The response.

Returns

A list of instruction items, or an empty list if instructions is null.

Exceptions

response is null.

Applies to