Share via


KernelFunctionMetadata Constructors

Definition

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

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.

Applies to