Share via


OpenAIFunction.ToFunctionDefinition Method

Definition

Overloads

ToFunctionDefinition()
Obsolete.

Converts the OpenAIFunction representation to the OpenAI SDK's OpenAI.Chat.ChatTool representation.

ToFunctionDefinition(Boolean)

Converts the OpenAIFunction representation to the OpenAI SDK's OpenAI.Chat.ChatTool representation.

ToFunctionDefinition()

Caution

Use the overload that takes a boolean parameter instead.

Converts the OpenAIFunction representation to the OpenAI SDK's OpenAI.Chat.ChatTool representation.

[System.Obsolete("Use the overload that takes a boolean parameter instead.")]
public OpenAI.Chat.ChatTool ToFunctionDefinition();
[<System.Obsolete("Use the overload that takes a boolean parameter instead.")>]
member this.ToFunctionDefinition : unit -> OpenAI.Chat.ChatTool
Public Function ToFunctionDefinition () As ChatTool

Returns

OpenAI.Chat.ChatTool

A OpenAI.Chat.ChatTool containing all the function information.

Attributes

Applies to

ToFunctionDefinition(Boolean)

Converts the OpenAIFunction representation to the OpenAI SDK's OpenAI.Chat.ChatTool representation.

public OpenAI.Chat.ChatTool ToFunctionDefinition(bool allowStrictSchemaAdherence);
member this.ToFunctionDefinition : bool -> OpenAI.Chat.ChatTool
Public Function ToFunctionDefinition (allowStrictSchemaAdherence As Boolean) As ChatTool

Parameters

allowStrictSchemaAdherence
Boolean

Returns

OpenAI.Chat.ChatTool

A OpenAI.Chat.ChatTool containing all the function information.

Applies to