AgentClassSkill<TSelf>.SerializerOptions Property

Definition

Gets the JsonSerializerOptions used to marshal parameters and return values for scripts and resources.

protected virtual System.Text.Json.JsonSerializerOptions? SerializerOptions { get; }
member this.SerializerOptions : System.Text.Json.JsonSerializerOptions
Protected Overridable ReadOnly Property SerializerOptions As JsonSerializerOptions

Property Value

Remarks

Override this property to provide custom serialization options. This value is used by reflection-discovered scripts and resources, and also as a fallback by CreateScript(String, Delegate, String, JsonSerializerOptions) and CreateResource(String, Delegate, String, JsonSerializerOptions) when no explicit JsonSerializerOptions is passed to those methods. The default value is null, which causes DefaultOptions to be used.

Applies to