ResponseExtensions.SetToolChoice Method

Definition

Overloads

Name Description
SetToolChoice(ResponseObject, ToolChoiceOptions)

Sets the ToolChoice property from a ToolChoiceOptions enum value (string shorthand).

SetToolChoice(ResponseObject, ToolChoiceParam)

Sets the ToolChoice property from a typed ToolChoiceParam object.

SetToolChoice(ResponseObject, ToolChoiceOptions)

Source:
ResponseExtensions.cs

Sets the ToolChoice property from a ToolChoiceOptions enum value (string shorthand).

public static void SetToolChoice(this Azure.AI.AgentServer.Responses.Models.ResponseObject response, Azure.AI.AgentServer.Responses.Models.ToolChoiceOptions toolChoice);
static member SetToolChoice : Azure.AI.AgentServer.Responses.Models.ResponseObject * Azure.AI.AgentServer.Responses.Models.ToolChoiceOptions -> unit
<Extension()>
Public Sub SetToolChoice (response As ResponseObject, toolChoice As ToolChoiceOptions)

Parameters

response
ResponseObject

The response.

toolChoice
ToolChoiceOptions

The tool choice option to set.

Exceptions

response is null.

Applies to

SetToolChoice(ResponseObject, ToolChoiceParam)

Source:
ResponseExtensions.cs

Sets the ToolChoice property from a typed ToolChoiceParam object.

public static void SetToolChoice(this Azure.AI.AgentServer.Responses.Models.ResponseObject response, Azure.AI.AgentServer.Responses.Models.ToolChoiceParam toolChoice);
static member SetToolChoice : Azure.AI.AgentServer.Responses.Models.ResponseObject * Azure.AI.AgentServer.Responses.Models.ToolChoiceParam -> unit
<Extension()>
Public Sub SetToolChoice (response As ResponseObject, toolChoice As ToolChoiceParam)

Parameters

response
ResponseObject

The response.

toolChoice
ToolChoiceParam

The tool choice to set.

Exceptions

response or toolChoice is null.

Applies to