Enum Role
- Namespace
- ModelContextProtocol.Protocol
- Assembly
- ModelContextProtocol.dll
Represents the type of role in the Model Context Protocol conversation.
[JsonConverter(typeof(CustomizableJsonStringEnumConverter<Role>))]
public enum Role
Fields
[JsonStringEnumMemberName("assistant")] Assistant = 1
Corresponds to the AI assistant in the conversation.
[JsonStringEnumMemberName("user")] User = 0
Corresponds to a human user in the conversation.