OpenAIFunction Class
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.
Represents a function that can be passed to the OpenAI API
public sealed class OpenAIFunction
type OpenAIFunction = class
Public NotInheritable Class OpenAIFunction
- Inheritance
-
OpenAIFunction
Properties
Description |
Gets a description of the function. |
FullyQualifiedName |
Gets the fully-qualified name of the function. |
FunctionName |
Gets the name of the function. |
NameSeparator |
Gets the separator used between the plugin name and the function name, if a plugin name is present. |
Parameters |
Gets a list of parameters to the function, if any. |
PluginName |
Gets the name of the plugin with which the function is associated, if any. |
ReturnParameter |
Gets the return parameter of the function, if any. |
Methods
ToFunctionDefinition() |
Converts the OpenAIFunction representation to the OpenAI SDK's OpenAI.Chat.ChatTool representation. |