Share via


KernelParameterMetadata Constructors

Definition

Overloads

KernelParameterMetadata(KernelParameterMetadata)

Initializes a KernelParameterMetadata as a copy of another KernelParameterMetadata.

public KernelParameterMetadata(Microsoft.SemanticKernel.KernelParameterMetadata metadata);
new Microsoft.SemanticKernel.KernelParameterMetadata : Microsoft.SemanticKernel.KernelParameterMetadata -> Microsoft.SemanticKernel.KernelParameterMetadata
Public Sub New (metadata As KernelParameterMetadata)

Parameters

Exceptions

The metadata was null.

Remarks

This creates a shallow clone of metadata.

Applies to

KernelParameterMetadata(String)

Initializes the KernelParameterMetadata for a parameter with the specified name.

public KernelParameterMetadata(string name);
new Microsoft.SemanticKernel.KernelParameterMetadata : string -> Microsoft.SemanticKernel.KernelParameterMetadata
Public Sub New (name As String)

Parameters

name
String

The name of the parameter.

Exceptions

The name was null.

The name was empty or composed entirely of whitespace.

Applies to

KernelParameterMetadata(KernelParameterMetadata, JsonSerializerOptions)

Initializes a KernelParameterMetadata as a copy of another KernelParameterMetadata.

public KernelParameterMetadata(Microsoft.SemanticKernel.KernelParameterMetadata metadata, System.Text.Json.JsonSerializerOptions jsonSerializerOptions);
new Microsoft.SemanticKernel.KernelParameterMetadata : Microsoft.SemanticKernel.KernelParameterMetadata * System.Text.Json.JsonSerializerOptions -> Microsoft.SemanticKernel.KernelParameterMetadata
Public Sub New (metadata As KernelParameterMetadata, jsonSerializerOptions As JsonSerializerOptions)

Parameters

metadata
KernelParameterMetadata

The metadata to copy.

jsonSerializerOptions
JsonSerializerOptions

The JsonSerializerOptions to generate JSON schema.

Exceptions

The metadata was null.

Remarks

This creates a shallow clone of metadata.

Applies to

KernelParameterMetadata(String, JsonSerializerOptions)

Initializes the KernelParameterMetadata for a parameter with the specified name.

public KernelParameterMetadata(string name, System.Text.Json.JsonSerializerOptions jsonSerializerOptions);
new Microsoft.SemanticKernel.KernelParameterMetadata : string * System.Text.Json.JsonSerializerOptions -> Microsoft.SemanticKernel.KernelParameterMetadata
Public Sub New (name As String, jsonSerializerOptions As JsonSerializerOptions)

Parameters

name
String

The name of the parameter.

jsonSerializerOptions
JsonSerializerOptions

The JsonSerializerOptions to generate JSON schema.

Exceptions

The name was null.

The name was empty or composed entirely of whitespace.

Applies to