Prompt operators
PublicThe Prompt family contains 2 operators. Compose prompt messages from templates and runtime variables.
Operators in this family
Section titled “Operators in this family”prompt.messages
Section titled “prompt.messages”Constructs a multi-turn chat message array for LLM consumption.
Version 1.0.0 · Semantics passthrough · Idempotent
Config
Section titled “Config”| Field | Type | Required | Default | Description |
|---|---|---|---|---|
messages | object[] | no | — |
Input ports
Section titled “Input ports”| Port | Type | Required | Description |
|---|---|---|---|
input | any | no | Dynamic Content |
Output ports
Section titled “Output ports”| Port | Type | Required | Description |
|---|---|---|---|
output | array | no | Messages |
prompt.template
Section titled “prompt.template”Renders a prompt string from a Handlebars/Jinja-style template.
Version 1.0.0 · Semantics passthrough · Idempotent
Config
Section titled “Config”| Field | Type | Required | Default | Description |
|---|---|---|---|---|
template | string | yes | — | Template string with {{variable}} placeholders. |
Input ports
Section titled “Input ports”| Port | Type | Required | Description |
|---|---|---|---|
input | any | no | Variables |
Output ports
Section titled “Output ports”| Port | Type | Required | Description |
|---|---|---|---|
output | string | no | Output |
Source schemas
Section titled “Source schemas”Every operator above is rendered from its JSON schema in /opt/glyph/schemas/operators/:
schemas/operators/prompt.messages.jsonschemas/operators/prompt.template.json