JSON 字段校验JSON field validation
输出 schema 与校验报告;格式合法不等于事实正确。
Output schema and validation report; valid format does not mean factual correctness.
提示词效果未实测。Prompt effect has not been tested.
提示词是可复跑的模板,不是效果承诺。换模型、换版本、换输入都可能改变结果;用本页的检查点自己核对,并把官方出处当作机制依据而不是效果保证。A prompt is a re-runnable template, not a promise of results. Changing the model, version or input can change the outcome. Use the checkpoints on this page to verify it yourself, and treat the official sources as evidence of mechanism rather than a guarantee of effect.
任务与输入Task and inputs
生成结构化输出并校验字段。 输入:字段需求、样例 JSON、事实来源。
Output schema and validation report; valid format does not mean factual correctness. Inputs: Field requirements, sample JSON, and factual sources.
提示词本体The prompt
生成 JSON Schema 并校验样例。输出 schema、validation[]:field、valid、reason、fact_check。valid 只判格式/类型/必填;fact_check 单独回连来源,无依据标 unsupported。不得把 valid=true 写成内容正确。
占位符用 {字段} 标注,运行前替换为本次输入。
Generate a JSON Schema and validate the sample. Output schema and validation[] with field, valid, reason and fact_check. valid judges only format/type/required; fact_check separately links to sources and marks unsupported when absent. Do not equate valid=true with correct content.
Replace {field} placeholders with the current inputs before running.
预期输出形态Expected output shape
schema 与 validation[]。
schema and validation[].
检查点Checkpoints
- 格式与事实分开判定。
- unsupported 明确。
- schema 字段来自需求。
- Format and facts are judged separately.
- Unsupported items are explicit.
- Schema fields come from requirements.
失败分支Failure branches
- 样例缺字段:标 required 缺失。
- 事实无来源:标 unsupported。
- Sample missing fields: mark required absence.
- No factual source: mark unsupported.
出处与边界Sources and limits
提示词效果未实测。机制依据见出处;换模型、版本或输入会改变结果。
This site has not tested the effect of this prompt. See the sources for the mechanism; changing model, version or input can change the result.
出处Sources
| 来源Source | 链接URL |
|---|---|
| OpenAI Cookbook · Introduction to Structured Outputs(官方仓库 raw,2026-11-07 直抓 200)OpenAI Cookbook: Introduction to Structured Outputs (official repository raw, fetched 200 on 2026-11-07) | https://raw.githubusercontent.com/openai/openai-cookbook/main/examples/Structured_Outputs_Intro.ipynbhttps://raw.githubusercontent.com/openai/openai-cookbook/main/examples/Structured_Outputs_Intro.ipynb |
资料快照日期:2026-11-07;单项复核范围与日期见对应正文或来源记录。产品功能与条款可能变化,使用前请核对原始来源。Source snapshot: 2026-11-07; item-specific rechecks and their scope are recorded in the text or source notes. Features and terms may change; check the original sources before use.