AIFunctionArguments 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
AIFunctionArguments() |
Initializes a new instance of the AIFunctionArguments class, and uses the default comparer for key comparisons. |
AIFunctionArguments(IDictionary<String,Object>) |
Initializes a new instance of the AIFunctionArguments class containing
the specified |
AIFunctionArguments(IEqualityComparer<String>) |
Initializes a new instance of the AIFunctionArguments class. |
AIFunctionArguments(IDictionary<String,Object>, IEqualityComparer<String>) |
Initializes a new instance of the AIFunctionArguments class containing
the specified |
AIFunctionArguments()
Initializes a new instance of the AIFunctionArguments class, and uses the default comparer for key comparisons.
public:
AIFunctionArguments();
public AIFunctionArguments();
Public Sub New ()
Remarks
The IEqualityComparer<T> is ordinal by default.
Applies to
AIFunctionArguments(IDictionary<String,Object>)
Initializes a new instance of the AIFunctionArguments class containing
the specified arguments
.
public:
AIFunctionArguments(System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^ arguments);
public AIFunctionArguments(System.Collections.Generic.IDictionary<string,object?>? arguments);
new Microsoft.Extensions.AI.AIFunctionArguments : System.Collections.Generic.IDictionary<string, obj> -> Microsoft.Extensions.AI.AIFunctionArguments
Public Sub New (arguments As IDictionary(Of String, Object))
Parameters
- arguments
- IDictionary<String,Object>
The arguments represented by this instance.
Remarks
The arguments
reference will be stored if the instance is already a Dictionary<TKey,TValue>, in which case all dictionary operations on this instance will be routed directly to that instance. If arguments
is not a dictionary, a shallow clone of its data will be used to populate this instance. A null
arguments
is treated as an empty parameters dictionary. The IEqualityComparer<T> is ordinal by default.
Applies to
AIFunctionArguments(IEqualityComparer<String>)
Initializes a new instance of the AIFunctionArguments class.
public:
AIFunctionArguments(System::Collections::Generic::IEqualityComparer<System::String ^> ^ comparer);
public AIFunctionArguments(System.Collections.Generic.IEqualityComparer<string>? comparer);
new Microsoft.Extensions.AI.AIFunctionArguments : System.Collections.Generic.IEqualityComparer<string> -> Microsoft.Extensions.AI.AIFunctionArguments
Public Sub New (comparer As IEqualityComparer(Of String))
Parameters
- comparer
- IEqualityComparer<String>
The IEqualityComparer<T> to use for key comparisons.
Applies to
AIFunctionArguments(IDictionary<String,Object>, IEqualityComparer<String>)
Initializes a new instance of the AIFunctionArguments class containing
the specified arguments
.
public:
AIFunctionArguments(System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^ arguments, System::Collections::Generic::IEqualityComparer<System::String ^> ^ comparer);
public AIFunctionArguments(System.Collections.Generic.IDictionary<string,object?>? arguments, System.Collections.Generic.IEqualityComparer<string>? comparer);
new Microsoft.Extensions.AI.AIFunctionArguments : System.Collections.Generic.IDictionary<string, obj> * System.Collections.Generic.IEqualityComparer<string> -> Microsoft.Extensions.AI.AIFunctionArguments
Public Sub New (arguments As IDictionary(Of String, Object), comparer As IEqualityComparer(Of String))
Parameters
- arguments
- IDictionary<String,Object>
The arguments represented by this instance.
- comparer
- IEqualityComparer<String>
The IEqualityComparer<T> to be used.
Remarks
The arguments
reference will be stored if the instance is already a Dictionary<TKey,TValue> with the same IEqualityComparer<T> or if arguments
is null
in which case all dictionary operations on this instance will be routed directly to that instance otherwise a shallow clone of the provided arguments
. A null
arguments
is will be treated as an empty parameters dictionary.