Doc system test

Answer validation

How a typed or supplied answer is checked by the template's own validator before it is accepted.

Meta block front matter of this doc
namespaces
  • durian.cloud/cyanprint/prompting
type
algorithm
code
  • sulfone.iridium/cyanprompt/src/domain/services/template/validate.rs
  • sulfone.helium/sdks/node/src/domain/template/service.ts

The CLI calls /api/template/validate with the answers so far and the new value. The template replays to that question and runs its validator; an error text means invalid. Headless mode validates every supplied answer the walk reaches, and keeps only the answers to questions the template asked.

Where it lives

  • sulfone.iridium/cyanprompt/src/domain/services/template/validate.rs
  • sulfone.helium/sdks/node/src/domain/template/service.ts

Stub: summary only.