CompletionChoice
Namespace: LLama.Types
public class CompletionChoice : System.IEquatable`1[[LLama.Types.CompletionChoice, LLamaSharp, Version=0.2.0.0, Culture=neutral, PublicKeyToken=null]]
Inheritance Object → CompletionChoice
Implements IEquatable<CompletionChoice>
Properties
Text
public string Text { get; set; }
Property Value
Index
public int Index { get; set; }
Property Value
Logprobs
public CompletionLogprobs Logprobs { get; set; }
Property Value
FinishReason
public string FinishReason { get; set; }
Property Value
Constructors
CompletionChoice(String, Int32, CompletionLogprobs, String)
public CompletionChoice(string Text, int Index, CompletionLogprobs Logprobs, string FinishReason)
Parameters
Text String
Index Int32
Logprobs CompletionLogprobs
FinishReason String
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(CompletionChoice)
public bool Equals(CompletionChoice other)
Parameters
other CompletionChoice
Returns
<Clone>$()
public CompletionChoice <Clone>$()
Returns
Deconstruct(String&, Int32&, CompletionLogprobs&, String&)
public void Deconstruct(String& Text, Int32& Index, CompletionLogprobs& Logprobs, String& FinishReason)
Parameters
Text String&
Index Int32&
Logprobs CompletionLogprobs&
FinishReason String&