OpenAIKernelFunctionMetadataExtensions.ToOpenAIFunction 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.
Convert a KernelFunctionMetadata to an OpenAIFunctionParameter.
public static Microsoft.SemanticKernel.Connectors.OpenAI.OpenAIFunction ToOpenAIFunction (this Microsoft.SemanticKernel.KernelFunctionMetadata metadata);
static member ToOpenAIFunction : Microsoft.SemanticKernel.KernelFunctionMetadata -> Microsoft.SemanticKernel.Connectors.OpenAI.OpenAIFunction
<Extension()>
Public Function ToOpenAIFunction (metadata As KernelFunctionMetadata) As OpenAIFunction
Parameters
- metadata
- KernelFunctionMetadata
The KernelFunctionMetadata object to convert.
Returns
An OpenAIFunction object.