PromptTemplateRenderRequest
A dry run of one Prompt template with synthetic inputs (1.55.0). A body that does not parse is 422 validation_failed with template_invalid; a version the template lacks is 404 not_found.
An object with 9 fields.
Fields
| Field | Type | Required | Description |
|---|---|---|---|
call | PromptRenderCallInput | no | |
constants | map of PromptConstantValue | no | Organization constants for this render; those of the Organization layer the render resolves when omitted. display_name is the Organization name. |
retrieval | map of boolean | no | Whether each Knowledge binding returned passages for this request, by handle: true renders the first branch of its retrieval slot, false or absent the second. |
slots | map of PromptSlotValue | no | Synthetic slot values; an unset slot renders empty or its default(). |
state | string | no | The active state, the state root. |
time_now | RequestTimestamp | no | The time.now root; the request instant when omitted. |
variables | map of VariableValue | no | Synthetic values of the declared variables. A value of an undeclared name is variable_unknown, of the wrong type variable_type; an optional variable without a value renders empty and is named in missing_values. |
variant | PromptVariantKey | no | The variant to render; default when omitted, and default for a key the template lacks. |
version | integer | no | The version to render; the draft when omitted. |
Used by
The operations whose parameters, request body or responses name this shape directly.