You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

llama.oldversion.chatcompletionchoice.md 3.3 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. # ChatCompletionChoice
  2. Namespace: LLama.OldVersion
  3. #### Caution
  4. The entire LLama.OldVersion namespace will be removed
  5. ---
  6. ```csharp
  7. public class ChatCompletionChoice : System.IEquatable`1[[LLama.OldVersion.ChatCompletionChoice, LLamaSharp, Version=0.5.0.0, Culture=neutral, PublicKeyToken=null]]
  8. ```
  9. Inheritance [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object) → [ChatCompletionChoice](./llama.oldversion.chatcompletionchoice.md)<br>
  10. Implements [IEquatable&lt;ChatCompletionChoice&gt;](https://docs.microsoft.com/en-us/dotnet/api/system.iequatable-1)
  11. ## Properties
  12. ### **Index**
  13. ```csharp
  14. public int Index { get; set; }
  15. ```
  16. #### Property Value
  17. [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)<br>
  18. ### **Message**
  19. ```csharp
  20. public ChatCompletionMessage Message { get; set; }
  21. ```
  22. #### Property Value
  23. [ChatCompletionMessage](./llama.oldversion.chatcompletionmessage.md)<br>
  24. ### **FinishReason**
  25. ```csharp
  26. public string FinishReason { get; set; }
  27. ```
  28. #### Property Value
  29. [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
  30. ## Constructors
  31. ### **ChatCompletionChoice(Int32, ChatCompletionMessage, String)**
  32. ```csharp
  33. public ChatCompletionChoice(int Index, ChatCompletionMessage Message, string FinishReason)
  34. ```
  35. #### Parameters
  36. `Index` [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)<br>
  37. `Message` [ChatCompletionMessage](./llama.oldversion.chatcompletionmessage.md)<br>
  38. `FinishReason` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
  39. ## Methods
  40. ### **ToString()**
  41. ```csharp
  42. public string ToString()
  43. ```
  44. #### Returns
  45. [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
  46. ### **PrintMembers(StringBuilder)**
  47. ```csharp
  48. protected bool PrintMembers(StringBuilder builder)
  49. ```
  50. #### Parameters
  51. `builder` [StringBuilder](https://docs.microsoft.com/en-us/dotnet/api/system.text.stringbuilder)<br>
  52. #### Returns
  53. [Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean)<br>
  54. ### **GetHashCode()**
  55. ```csharp
  56. public int GetHashCode()
  57. ```
  58. #### Returns
  59. [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)<br>
  60. ### **Equals(Object)**
  61. ```csharp
  62. public bool Equals(object obj)
  63. ```
  64. #### Parameters
  65. `obj` [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object)<br>
  66. #### Returns
  67. [Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean)<br>
  68. ### **Equals(ChatCompletionChoice)**
  69. ```csharp
  70. public bool Equals(ChatCompletionChoice other)
  71. ```
  72. #### Parameters
  73. `other` [ChatCompletionChoice](./llama.oldversion.chatcompletionchoice.md)<br>
  74. #### Returns
  75. [Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean)<br>
  76. ### **&lt;Clone&gt;$()**
  77. ```csharp
  78. public ChatCompletionChoice <Clone>$()
  79. ```
  80. #### Returns
  81. [ChatCompletionChoice](./llama.oldversion.chatcompletionchoice.md)<br>
  82. ### **Deconstruct(Int32&, ChatCompletionMessage&, String&)**
  83. ```csharp
  84. public void Deconstruct(Int32& Index, ChatCompletionMessage& Message, String& FinishReason)
  85. ```
  86. #### Parameters
  87. `Index` [Int32&](https://docs.microsoft.com/en-us/dotnet/api/system.int32&)<br>
  88. `Message` [ChatCompletionMessage&](./llama.oldversion.chatcompletionmessage&.md)<br>
  89. `FinishReason` [String&](https://docs.microsoft.com/en-us/dotnet/api/system.string&)<br>