22 lines
962 B
Markdown
22 lines
962 B
Markdown
# AuthorRole
|
|
|
|
Namespace: LLama.Common
|
|
|
|
Role of the message author, e.g. user/assistant/system
|
|
|
|
```csharp
|
|
public enum AuthorRole
|
|
```
|
|
|
|
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>
|
|
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)
|
|
|
|
## Fields
|
|
|
|
| Name | Value | Description |
|
|
| --- | --: | --- |
|
|
| Unknown | -1 | Role is unknown |
|
|
| System | 0 | Message comes from a "system" prompt, not written by a user or language model |
|
|
| User | 1 | Message comes from the user |
|
|
| Assistant | 2 | Messages was generated by the language model |
|