2.7 KiB
2.7 KiB
EmbeddingUsage
Namespace: LLama.OldVersion
Caution
The entire LLama.OldVersion namespace will be removed
public class EmbeddingUsage : System.IEquatable`1[[LLama.OldVersion.EmbeddingUsage, LLamaSharp, Version=0.5.0.0, Culture=neutral, PublicKeyToken=null]]
Inheritance Object → EmbeddingUsage
Implements IEquatable<EmbeddingUsage>
Properties
PromptTokens
public int PromptTokens { get; set; }
Property Value
TotalTokens
public int TotalTokens { get; set; }
Property Value
Constructors
EmbeddingUsage(Int32, Int32)
public EmbeddingUsage(int PromptTokens, int TotalTokens)
Parameters
PromptTokens
Int32
TotalTokens
Int32
Methods
ToString()
public string ToString()
Returns
PrintMembers(StringBuilder)
protected bool PrintMembers(StringBuilder builder)
Parameters
builder
StringBuilder
Returns
GetHashCode()
public int GetHashCode()
Returns
Equals(Object)
public bool Equals(object obj)
Parameters
obj
Object
Returns
Equals(EmbeddingUsage)
public bool Equals(EmbeddingUsage other)
Parameters
other
EmbeddingUsage
Returns
<Clone>$()
public EmbeddingUsage <Clone>$()
Returns
Deconstruct(Int32&, Int32&)
public void Deconstruct(Int32& PromptTokens, Int32& TotalTokens)
Parameters
PromptTokens
Int32&
TotalTokens
Int32&