Skip to content

MetadataOverride

Namespace: LLama.Abstractions

An override for a single key/value pair in model metadata

1
public sealed class MetadataOverride : System.IEquatable`1[[LLama.Abstractions.MetadataOverride, LLamaSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]

Inheritance ObjectMetadataOverride
Implements IEquatable<MetadataOverride>

Properties

Key

Get the key being overriden by this override

1
public string Key { get; }

Property Value

String

Constructors

MetadataOverride(String, Int32)

Create a new override for an int key

1
public MetadataOverride(string key, int value)

Parameters

key String

value Int32

MetadataOverride(String, Single)

Create a new override for a float key

1
public MetadataOverride(string key, float value)

Parameters

key String

value Single

MetadataOverride(String, Boolean)

Create a new override for a boolean key

1
public MetadataOverride(string key, bool value)

Parameters

key String

value Boolean

Methods

WriteValue(LLamaModelMetadataOverride&)

1
internal void WriteValue(LLamaModelMetadataOverride& dest)

Parameters

dest LLamaModelMetadataOverride&

WriteValue(Utf8JsonWriter)

1
internal void WriteValue(Utf8JsonWriter writer)

Parameters

writer Utf8JsonWriter

ToString()

1
public string ToString()

Returns

String

GetHashCode()

1
public int GetHashCode()

Returns

Int32

Equals(Object)

1
public bool Equals(object obj)

Parameters

obj Object

Returns

Boolean

Equals(MetadataOverride)

1
public bool Equals(MetadataOverride other)

Parameters

other MetadataOverride

Returns

Boolean

<Clone>$()

1
public MetadataOverride <Clone>$()

Returns

MetadataOverride