Share via


OpenAIFunction.ToFunctionDefinition Method

Definition

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

public OpenAI.Chat.ChatTool ToFunctionDefinition ();
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.

Applies to