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.chatcompletionmessage.md 3.2 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. # ChatCompletionMessage
  2. Namespace: LLama.OldVersion
  3. #### Caution
  4. The entire LLama.OldVersion namespace will be removed
  5. ---
  6. ```csharp
  7. public class ChatCompletionMessage : System.IEquatable`1[[LLama.OldVersion.ChatCompletionMessage, LLamaSharp, Version=0.5.0.0, Culture=neutral, PublicKeyToken=null]]
  8. ```
  9. Inheritance [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object) → [ChatCompletionMessage](./llama.oldversion.chatcompletionmessage.md)<br>
  10. Implements [IEquatable&lt;ChatCompletionMessage&gt;](https://docs.microsoft.com/en-us/dotnet/api/system.iequatable-1)
  11. ## Properties
  12. ### **Role**
  13. ```csharp
  14. public ChatRole Role { get; set; }
  15. ```
  16. #### Property Value
  17. [ChatRole](./llama.oldversion.chatrole.md)<br>
  18. ### **Content**
  19. ```csharp
  20. public string Content { get; set; }
  21. ```
  22. #### Property Value
  23. [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
  24. ### **Name**
  25. ```csharp
  26. public string Name { get; set; }
  27. ```
  28. #### Property Value
  29. [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
  30. ## Constructors
  31. ### **ChatCompletionMessage(ChatRole, String, String)**
  32. ```csharp
  33. public ChatCompletionMessage(ChatRole Role, string Content, string Name)
  34. ```
  35. #### Parameters
  36. `Role` [ChatRole](./llama.oldversion.chatrole.md)<br>
  37. `Content` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
  38. `Name` [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(ChatCompletionMessage)**
  69. ```csharp
  70. public bool Equals(ChatCompletionMessage other)
  71. ```
  72. #### Parameters
  73. `other` [ChatCompletionMessage](./llama.oldversion.chatcompletionmessage.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 ChatCompletionMessage <Clone>$()
  79. ```
  80. #### Returns
  81. [ChatCompletionMessage](./llama.oldversion.chatcompletionmessage.md)<br>
  82. ### **Deconstruct(ChatRole&, String&, String&)**
  83. ```csharp
  84. public void Deconstruct(ChatRole& Role, String& Content, String& Name)
  85. ```
  86. #### Parameters
  87. `Role` [ChatRole&](./llama.oldversion.chatrole&.md)<br>
  88. `Content` [String&](https://docs.microsoft.com/en-us/dotnet/api/system.string&)<br>
  89. `Name` [String&](https://docs.microsoft.com/en-us/dotnet/api/system.string&)<br>