Skip to content

CompletionUsage

Namespace: LLama.Types

1
public class CompletionUsage : System.IEquatable`1[[LLama.Types.CompletionUsage, LLamaSharp, Version=0.2.0.0, Culture=neutral, PublicKeyToken=null]]

Inheritance ObjectCompletionUsage
Implements IEquatable<CompletionUsage>

Properties

PromptTokens

1
public int PromptTokens { get; set; }

Property Value

Int32

CompletionTokens

1
public int CompletionTokens { get; set; }

Property Value

Int32

TotalTokens

1
public int TotalTokens { get; set; }

Property Value

Int32

Constructors

CompletionUsage(Int32, Int32, Int32)

1
public CompletionUsage(int PromptTokens, int CompletionTokens, int TotalTokens)

Parameters

PromptTokens Int32

CompletionTokens Int32

TotalTokens Int32

Methods

ToString()

1
public string ToString()

Returns

String

PrintMembers(StringBuilder)

1
protected bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

Boolean

GetHashCode()

1
public int GetHashCode()

Returns

Int32

Equals(Object)

1
public bool Equals(object obj)

Parameters

obj Object

Returns

Boolean

Equals(CompletionUsage)

1
public bool Equals(CompletionUsage other)

Parameters

other CompletionUsage

Returns

Boolean

<Clone>$()

1
public CompletionUsage <Clone>$()

Returns

CompletionUsage

Deconstruct(Int32&, Int32&, Int32&)

1
public void Deconstruct(Int32& PromptTokens, Int32& CompletionTokens, Int32& TotalTokens)

Parameters

PromptTokens Int32&

CompletionTokens Int32&

TotalTokens Int32&