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.
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
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
A OpenAI.Chat.ChatTool containing all the function information.