MetadataOverride
Namespace: LLama.Abstractions
An override for a single key/value pair in model metadata
public sealed class MetadataOverride : System.IEquatable`1[[LLama.Abstractions.MetadataOverride, LLamaSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]
Inheritance Object → MetadataOverride
Implements IEquatable<MetadataOverride>
Properties
Key
Get the key being overriden by this override
public string Key { get; }
Property Value
Constructors
MetadataOverride(String, Int32)
Create a new override for an int key
public MetadataOverride(string key, int value)
Parameters
key
String
value
Int32
MetadataOverride(String, Single)
Create a new override for a float key
public MetadataOverride(string key, float value)
Parameters
key
String
value
Single
MetadataOverride(String, Boolean)
Create a new override for a boolean key
public MetadataOverride(string key, bool value)
Parameters
key
String
value
Boolean
Methods
WriteValue(LLamaModelMetadataOverride&)
internal void WriteValue(LLamaModelMetadataOverride& dest)
Parameters
dest
LLamaModelMetadataOverride&
WriteValue(Utf8JsonWriter)
internal void WriteValue(Utf8JsonWriter writer)
Parameters
writer
Utf8JsonWriter
ToString()
public string ToString()
Returns
GetHashCode()
public int GetHashCode()
Returns
Equals(Object)
public bool Equals(object obj)
Parameters
obj
Object
Returns
Equals(MetadataOverride)
public bool Equals(MetadataOverride other)
Parameters
other
MetadataOverride
Returns
<Clone>$()
public MetadataOverride <Clone>$()