KernelFunctionMetadata Constructors
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
KernelFunctionMetadata(KernelFunctionMetadata) |
Initializes a KernelFunctionMetadata as a copy of another KernelFunctionMetadata. |
KernelFunctionMetadata(String) |
Initializes the KernelFunctionMetadata for a function with the specified name. |
KernelFunctionMetadata(KernelFunctionMetadata)
Initializes a KernelFunctionMetadata as a copy of another KernelFunctionMetadata.
public KernelFunctionMetadata (Microsoft.SemanticKernel.KernelFunctionMetadata metadata);
new Microsoft.SemanticKernel.KernelFunctionMetadata : Microsoft.SemanticKernel.KernelFunctionMetadata -> Microsoft.SemanticKernel.KernelFunctionMetadata
Public Sub New (metadata As KernelFunctionMetadata)
Parameters
- metadata
- KernelFunctionMetadata
Exceptions
The metadata
was null.
Remarks
This creates a shallow clone of metadata
. The new instance's Parameters and ReturnParameter properties will return the same objects as in the original instance.
Applies to
KernelFunctionMetadata(String)
Initializes the KernelFunctionMetadata for a function with the specified name.
public KernelFunctionMetadata (string name);
new Microsoft.SemanticKernel.KernelFunctionMetadata : string -> Microsoft.SemanticKernel.KernelFunctionMetadata
Public Sub New (name As String)
Parameters
- name
- String
The name of the function.
Exceptions
The name
was null.
An invalid name was supplied.