AgentClassSkill<TSelf> Constructor

Definition

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.

Applies to