Skip to main content

MessageRole

Namespace: Wisej.AI

Assembly: Wisej.AI

Represents the role of a message within a smart session context.

public enum MessageRole : Enum

Fields

NameDescription
AssistantIndicates that the message is from an assistant.
SystemIndicates that the message is from the system.
ToolCallsIndicates that the message involves tool calls.
ToolResultsIndicates that the message contains tool results.
UserIndicates that the message is from a user.

Used By

NameDescription
MessageCollection.AddAdds a message with the specified role and content.
Message.RoleGets or sets the role associated with the message.