Home

Instruction Message

This is a type used in Stencila Schema for the user- or system-authored message associated with an Instruction.

It exists so instruction input can include structured parts such as text and media, rather than being limited to a plain string. This aligns instruction workflows with the richer messaging model used elsewhere in Stencila.

Key properties include structured message parts and any metadata needed for prompt rendering or model interaction.

Analogues

The following external types, elements, or nodes are similar to a InstructionMessage:

  • multimodal chat message: Close analogue for a message combining text and file-like attachments, though Stencila uses a document-oriented instruction context.

Properties

The InstructionMessage type has these properties:

NameDescriptionTypeInherited from
roleThe role of the message in the conversation.MessageRole-
contentThe content of the message as inline nodes.Inline*-
filesFiles attached to the message.File*-
authorsThe authors of the message.Author*-
provenanceA summary of the provenance of the messages and content within the instruction.ProvenanceCount*-
idThe identifier for this item.StringEntity

Related

The InstructionMessage type is related to these types:

Bindings

The InstructionMessage type is represented in:


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

© 2026 Stencila