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

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