Share via


OpenAIKernelFunctionMetadataExtensions.ToOpenAIFunction Method

Definition

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.

Applies to