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.completionchoice.md 3.6 kB

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