KernelParameterMetadata 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
| KernelParameterMetadata(KernelParameterMetadata) |
Initializes a KernelParameterMetadata as a copy of another KernelParameterMetadata. |
| KernelParameterMetadata(String) |
Initializes the KernelParameterMetadata for a parameter with the specified name. |
| KernelParameterMetadata(KernelParameterMetadata, JsonSerializerOptions) |
Initializes a KernelParameterMetadata as a copy of another KernelParameterMetadata. |
| KernelParameterMetadata(String, JsonSerializerOptions) |
Initializes the KernelParameterMetadata for a parameter with the specified name. |
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
- metadata
- KernelParameterMetadata
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.