# ChatCompletion Namespace: LLama.OldVersion ```csharp public class ChatCompletion : System.IEquatable`1[[LLama.OldVersion.ChatCompletion, LLamaSharp, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null]] ``` Inheritance [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object) → [ChatCompletion](./llama.oldversion.chatcompletion.md)
Implements [IEquatable<ChatCompletion>](https://docs.microsoft.com/en-us/dotnet/api/system.iequatable-1) ## Properties ### **Id** ```csharp public string Id { get; set; } ``` #### Property Value [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)
### **Object** ```csharp public string Object { get; set; } ``` #### Property Value [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)
### **Created** ```csharp public int Created { get; set; } ``` #### Property Value [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)
### **Model** ```csharp public string Model { get; set; } ``` #### Property Value [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)
### **Choices** ```csharp public ChatCompletionChoice[] Choices { get; set; } ``` #### Property Value [ChatCompletionChoice[]](./llama.oldversion.chatcompletionchoice.md)
### **Usage** ```csharp public CompletionUsage Usage { get; set; } ``` #### Property Value [CompletionUsage](./llama.oldversion.completionusage.md)
## Constructors ### **ChatCompletion(String, String, Int32, String, ChatCompletionChoice[], CompletionUsage)** ```csharp public ChatCompletion(string Id, string Object, int Created, string Model, ChatCompletionChoice[] Choices, CompletionUsage Usage) ``` #### Parameters `Id` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)
`Object` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)
`Created` [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)
`Model` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)
`Choices` [ChatCompletionChoice[]](./llama.oldversion.chatcompletionchoice.md)
`Usage` [CompletionUsage](./llama.oldversion.completionusage.md)
## Methods ### **ToString()** ```csharp public string ToString() ``` #### Returns [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)
### **PrintMembers(StringBuilder)** ```csharp protected bool PrintMembers(StringBuilder builder) ``` #### Parameters `builder` [StringBuilder](https://docs.microsoft.com/en-us/dotnet/api/system.text.stringbuilder)
#### Returns [Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean)
### **GetHashCode()** ```csharp public int GetHashCode() ``` #### Returns [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)
### **Equals(Object)** ```csharp public bool Equals(object obj) ``` #### Parameters `obj` [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object)
#### Returns [Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean)
### **Equals(ChatCompletion)** ```csharp public bool Equals(ChatCompletion other) ``` #### Parameters `other` [ChatCompletion](./llama.oldversion.chatcompletion.md)
#### Returns [Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean)
### **<Clone>$()** ```csharp public ChatCompletion $() ``` #### Returns [ChatCompletion](./llama.oldversion.chatcompletion.md)
### **Deconstruct(String&, String&, Int32&, String&, ChatCompletionChoice[]&, CompletionUsage&)** ```csharp public void Deconstruct(String& Id, String& Object, Int32& Created, String& Model, ChatCompletionChoice[]& Choices, CompletionUsage& Usage) ``` #### Parameters `Id` [String&](https://docs.microsoft.com/en-us/dotnet/api/system.string&)
`Object` [String&](https://docs.microsoft.com/en-us/dotnet/api/system.string&)
`Created` [Int32&](https://docs.microsoft.com/en-us/dotnet/api/system.int32&)
`Model` [String&](https://docs.microsoft.com/en-us/dotnet/api/system.string&)
`Choices` [ChatCompletionChoice[]&](./llama.oldversion.chatcompletionchoice&.md)
`Usage` [CompletionUsage&](./llama.oldversion.completionusage&.md)