AgentClassSkill<TSelf> Constructor
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.
Initializes a new instance of the AgentClassSkill<TSelf> class.
protected AgentClassSkill(Func<System.Text.Json.JsonElement?,Microsoft.Extensions.AI.AIFunctionArguments>? argumentMarshaler = default);
new Microsoft.Agents.AI.AgentClassSkill<'Self (requires 'Self :> Microsoft.Agents.AI.AgentClassSkill<'Self>)> : Func<Nullable<System.Text.Json.JsonElement>, Microsoft.Extensions.AI.AIFunctionArguments> -> Microsoft.Agents.AI.AgentClassSkill<'Self (requires 'Self :> Microsoft.Agents.AI.AgentClassSkill<'Self>)>
Protected Sub New (Optional argumentMarshaler As Func(Of Nullable(Of JsonElement), AIFunctionArguments) = Nothing)
Parameters
- argumentMarshaler
- Func<Nullable<JsonElement>,AIFunctionArguments>
Optional argument marshaler applied to all scripts in this skill.
When null, the default marshaler is used which expects arguments as a JSON object.