OpenAIFunction.ToFunctionDefinition Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.