VocalDocscontracts 1.65.0

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

FieldTypeRequiredDescription
declarationsarray of PromptDeclarationDiffyesThe declarations, constants and allowed terms that differ.
from_versionintegeryes
lint_addedarray of PromptLintFindingyesThe findings the to side has and the from side lacks, by code and path.
lint_resolvedarray of PromptLintFindingyesThe findings the from side has and the to side lacks, by code and path.
object"prompt_template_diff"yes
prompt_template_idPromptTemplateIdyes
to_revisioninteger or nullyesThe draft revision compared to when to_version is null; null otherwise.
to_versioninteger or nullyesThe version compared to, or null for the draft.
variantsarray of PromptVariantDiffyesEvery variant key of either side, default first.

Used by

The operations whose parameters, request body or responses name this shape directly.