ResponseExtensions.SetInstructions Method

Definition

Overloads

Name Description
SetInstructions(ResponseObject, IList<Item>)

Sets the Instructions property from a list of Item objects.

SetInstructions(ResponseObject, String)

Sets the Instructions property from a plain text string.

SetInstructions(ResponseObject, IList<Item>)

Source:
ResponseExtensions.cs

Sets the Instructions property from a list of Item objects.

public static void SetInstructions(this Azure.AI.AgentServer.Responses.Models.ResponseObject response, System.Collections.Generic.IList<Azure.AI.AgentServer.Responses.Models.Item> items);
static member SetInstructions : Azure.AI.AgentServer.Responses.Models.ResponseObject * System.Collections.Generic.IList<Azure.AI.AgentServer.Responses.Models.Item> -> unit
<Extension()>
Public Sub SetInstructions (response As ResponseObject, items As IList(Of Item))

Parameters

response
ResponseObject

The response.

items
IList<Item>

The instruction items.

Exceptions

response or items is null.

Applies to

SetInstructions(ResponseObject, String)

Source:
ResponseExtensions.cs

Sets the Instructions property from a plain text string.

public static void SetInstructions(this Azure.AI.AgentServer.Responses.Models.ResponseObject response, string instructions);
static member SetInstructions : Azure.AI.AgentServer.Responses.Models.ResponseObject * string -> unit
<Extension()>
Public Sub SetInstructions (response As ResponseObject, instructions As String)

Parameters

response
ResponseObject

The response.

instructions
String

The instruction text.

Exceptions

response or instructions is null.

Applies to