Home

Message Role

This is an enumeration used in Stencila Schema for message roles in conversational or instruction contexts.

It exists so user, assistant, system, and related message roles can be represented consistently across chats, prompts, and model interactions.

See ChatMessage and related messaging types for where this enumeration is used.

Members

The MessageRole type has these members:

MemberDescription
SystemA system message
UserA user message
ModelA message from a model

Bindings

The MessageRole type is represented in:


This documentation was generated from MessageRole.yaml by docs_types.rs.

© 2026 Stencila