Learn how to define messages in PromptL
<message>
Tag<message>
tag with a role
attribute:
<system>
: Equivalent to <message role="system">
.<user>
: Equivalent to <message role="user">
.<assistant>
: Equivalent to <message role="assistant">
.<tool>
: Equivalent to <message role="tool">
.text
content, but you can specify other types using the <content>
tag or its shorthand equivalents.
<content type="text">
or <content-text>
.<content type="image">
or <content-image>
. Add the image URL or base64-encoded string – depending on your provider’s requirements – as the content inside the tag.<content type="file">
or <content-file>
. Add the file URL or base64-encoded string – depending on your provider’s requirements – as the content inside the tag. Requires a MIME type mime
attribute to specify the file type.<content type="tool-call">
or <tool-call>
. Represents a tool invocation with attributes like id
, name
, and arguments
(optional). Only allowed inside assistant messages.