PromptTemplateDiff
The difference between two versions of a Prompt template, or a version and the draft (1.55.0): a line diff per variant, the declaration changes and the change in lint findings. Configuration only; never a rendered value.
An object with 9 fields.
Fields
| Field | Type | Required | Description |
|---|---|---|---|
declarations | array of PromptDeclarationDiff | yes | The declarations, constants and allowed terms that differ. |
from_version | integer | yes | |
lint_added | array of PromptLintFinding | yes | The findings the to side has and the from side lacks, by code and path. |
lint_resolved | array of PromptLintFinding | yes | The findings the from side has and the to side lacks, by code and path. |
object | "prompt_template_diff" | yes | |
prompt_template_id | PromptTemplateId | yes | |
to_revision | integer or null | yes | The draft revision compared to when to_version is null; null otherwise. |
to_version | integer or null | yes | The version compared to, or null for the draft. |
variants | array of PromptVariantDiff | yes | Every variant key of either side, default first. |
Used by
The operations whose parameters, request body or responses name this shape directly.