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.2 kB

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