AiMessageRole

References
public enum AiMessageRole
Role of a single message in an AI conversation. Mirrors the standard system/user/assistant/tool roles used by all major LLM provider APIs.

Enum values

NameValueDescription
System0The fixed instructions for the model (pre-prompt).
User1A message authored by the human user.
Assistant2A message authored by the model. Carries either text or a tool call.
Tool3The result of executing a tool the model invoked.