ChatCompletion
Namespace: LLama.OldVersion
Caution
The entire LLama.OldVersion namespace will be removed
public class ChatCompletion : System.IEquatable`1[[LLama.OldVersion.ChatCompletion, LLamaSharp, Version=0.5.0.0, Culture=neutral, PublicKeyToken=null]]
Inheritance Object → ChatCompletion
Implements IEquatable<ChatCompletion>
Properties
Id
public string Id { get; set; }
Property Value
Object
public string Object { get; set; }
Property Value
Created
public int Created { get; set; }
Property Value
Model
public string Model { get; set; }
Property Value
Choices
public ChatCompletionChoice[] Choices { get; set; }
Property Value
Usage
public CompletionUsage Usage { get; set; }
Property Value
Constructors
ChatCompletion(String, String, Int32, String, ChatCompletionChoice[], CompletionUsage)
public ChatCompletion(string Id, string Object, int Created, string Model, ChatCompletionChoice[] Choices, CompletionUsage Usage)
Parameters
Id String
Object String
Created Int32
Model String
Choices ChatCompletionChoice[]
Usage CompletionUsage
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(ChatCompletion)
public bool Equals(ChatCompletion other)
Parameters
other ChatCompletion
Returns
<Clone>$()
public ChatCompletion <Clone>$()
Returns
Deconstruct(String&, String&, Int32&, String&, ChatCompletionChoice[]&, CompletionUsage&)
public void Deconstruct(String& Id, String& Object, Int32& Created, String& Model, ChatCompletionChoice[]& Choices, CompletionUsage& Usage)
Parameters
Id String&
Object String&
Created Int32&
Model String&
Choices ChatCompletionChoice[]&
Usage CompletionUsage&