KernelArguments 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
KernelArguments() |
Initializes a new instance of the KernelArguments class with the specified AI execution settings. |
KernelArguments(PromptExecutionSettings) |
Initializes a new instance of the KernelArguments class with the specified AI execution settings. |
KernelArguments(IEnumerable<PromptExecutionSettings>) |
Initializes a new instance of the KernelArguments class with the specified AI execution settings. |
KernelArguments(IDictionary<String,Object>, Dictionary<String,PromptExecutionSettings>) |
Initializes a new instance of the KernelArguments class that contains elements copied from the specified IDictionary<TKey,TValue>. |
KernelArguments()
Initializes a new instance of the KernelArguments class with the specified AI execution settings.
[System.Text.Json.Serialization.JsonConstructor]
public KernelArguments ();
Public Sub New ()
- Attributes
Applies to
KernelArguments(PromptExecutionSettings)
Initializes a new instance of the KernelArguments class with the specified AI execution settings.
public KernelArguments (Microsoft.SemanticKernel.PromptExecutionSettings? executionSettings);
new Microsoft.SemanticKernel.KernelArguments : Microsoft.SemanticKernel.PromptExecutionSettings -> Microsoft.SemanticKernel.KernelArguments
Public Sub New (executionSettings As PromptExecutionSettings)
Parameters
- executionSettings
- PromptExecutionSettings
The prompt execution settings.
Applies to
KernelArguments(IEnumerable<PromptExecutionSettings>)
Initializes a new instance of the KernelArguments class with the specified AI execution settings.
public KernelArguments (System.Collections.Generic.IEnumerable<Microsoft.SemanticKernel.PromptExecutionSettings>? executionSettings);
new Microsoft.SemanticKernel.KernelArguments : seq<Microsoft.SemanticKernel.PromptExecutionSettings> -> Microsoft.SemanticKernel.KernelArguments
Public Sub New (executionSettings As IEnumerable(Of PromptExecutionSettings))
Parameters
- executionSettings
- IEnumerable<PromptExecutionSettings>
The prompt execution settings.
Applies to
KernelArguments(IDictionary<String,Object>, Dictionary<String,PromptExecutionSettings>)
Initializes a new instance of the KernelArguments class that contains elements copied from the specified IDictionary<TKey,TValue>.
public KernelArguments (System.Collections.Generic.IDictionary<string,object?> source, System.Collections.Generic.Dictionary<string,Microsoft.SemanticKernel.PromptExecutionSettings>? executionSettings = default);
new Microsoft.SemanticKernel.KernelArguments : System.Collections.Generic.IDictionary<string, obj> * System.Collections.Generic.Dictionary<string, Microsoft.SemanticKernel.PromptExecutionSettings> -> Microsoft.SemanticKernel.KernelArguments
Public Sub New (source As IDictionary(Of String, Object), Optional executionSettings As Dictionary(Of String, PromptExecutionSettings) = Nothing)
Parameters
- source
- IDictionary<String,Object>
The IDictionary<TKey,TValue> whose elements are copied the new KernelArguments.
- executionSettings
- Dictionary<String,PromptExecutionSettings>
The prompt execution settings.
Remarks
If executionSettings
is non-null, it is used as the ExecutionSettings for this new instance. Otherwise, if the source is a KernelArguments, its ExecutionSettings are used.