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

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