# ChatGptMessage.Role property

Gets or sets the role (source) of the message author.

```csharp
public string Role { get; set; }
```

## Remarks

Valid values are: system, userassistant and function.

## See Also

* class [ChatGptRoles](../ChatGptRoles.md)
* class [ChatGptMessage](../ChatGptMessage.md)
* namespace [ChatGptNet.Models](../../ChatGptNet.md)

<!-- DO NOT EDIT: generated by xmldocmd for ChatGptNet.dll -->
