ResponseExtensions.GetInstructionItems(ResponseObject) 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 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.