Share via


ChatCompletionsFunctionToolCall Constructors

Definition

Overloads

ChatCompletionsFunctionToolCall(String, FunctionCall)

Initializes a new instance of ChatCompletionsFunctionToolCall.

ChatCompletionsFunctionToolCall(String, String, String)

Initializes a new instance of ChatCompletionsFunctionToolCall.

ChatCompletionsFunctionToolCall(String, FunctionCall)

Source:
ChatCompletionsFunctionToolCall.cs

Initializes a new instance of ChatCompletionsFunctionToolCall.

public ChatCompletionsFunctionToolCall (string id, Azure.AI.OpenAI.FunctionCall function);
new Azure.AI.OpenAI.ChatCompletionsFunctionToolCall : string * Azure.AI.OpenAI.FunctionCall -> Azure.AI.OpenAI.ChatCompletionsFunctionToolCall
Public Sub New (id As String, function As FunctionCall)

Parameters

id
String

The ID of the tool call.

function
FunctionCall

The details of the function invocation requested by the tool call.

Exceptions

id or function is null.

Applies to

ChatCompletionsFunctionToolCall(String, String, String)

Source:
ChatCompletionsFunctionToolCall.cs

Initializes a new instance of ChatCompletionsFunctionToolCall.

public ChatCompletionsFunctionToolCall (string id, string name, string arguments);
new Azure.AI.OpenAI.ChatCompletionsFunctionToolCall : string * string * string -> Azure.AI.OpenAI.ChatCompletionsFunctionToolCall
Public Sub New (id As String, name As String, arguments As String)

Parameters

id
String

The ID of the function tool call.

name
String

The name of the function that is called by the tool.

arguments
String

The arguments to the function that is called by the tool.

Remarks

This constructor is intended for use with ChatRequestAssistantMessage when constructing request messages for conversation history from accumulated streaming tool call updates.

Applies to