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.common.authorrole.md 962 B

123456789101112131415161718192021
  1. # AuthorRole
  2. Namespace: LLama.Common
  3. Role of the message author, e.g. user/assistant/system
  4. ```csharp
  5. public enum AuthorRole
  6. ```
  7. Inheritance [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object) → [ValueType](https://docs.microsoft.com/en-us/dotnet/api/system.valuetype) → [Enum](https://docs.microsoft.com/en-us/dotnet/api/system.enum) → [AuthorRole](./llama.common.authorrole.md)<br>
  8. Implements [IComparable](https://docs.microsoft.com/en-us/dotnet/api/system.icomparable), [IFormattable](https://docs.microsoft.com/en-us/dotnet/api/system.iformattable), [IConvertible](https://docs.microsoft.com/en-us/dotnet/api/system.iconvertible)
  9. ## Fields
  10. | Name | Value | Description |
  11. | --- | --: | --- |
  12. | Unknown | -1 | Role is unknown |
  13. | System | 0 | Message comes from a "system" prompt, not written by a user or language model |
  14. | User | 1 | Message comes from the user |
  15. | Assistant | 2 | Messages was generated by the language model |