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