Skip to content

MetadataOverrideConverter

Namespace: LLama.Abstractions

A JSON converter for MetadataOverride

1
public class MetadataOverrideConverter : System.Text.Json.Serialization.JsonConverter`1[[LLama.Abstractions.MetadataOverride, LLamaSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]

Inheritance Object → JsonConverter → JsonConverter<MetadataOverride> → MetadataOverrideConverter

Properties

HandleNull

1
public bool HandleNull { get; }

Property Value

Boolean

Constructors

MetadataOverrideConverter()

1
public MetadataOverrideConverter()

Methods

Read(Utf8JsonReader&, Type, JsonSerializerOptions)

1
public MetadataOverride Read(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options)

Parameters

reader Utf8JsonReader&

typeToConvert Type

options JsonSerializerOptions

Returns

MetadataOverride

Write(Utf8JsonWriter, MetadataOverride, JsonSerializerOptions)

1
public void Write(Utf8JsonWriter writer, MetadataOverride value, JsonSerializerOptions options)

Parameters

writer Utf8JsonWriter

value MetadataOverride

options JsonSerializerOptions