Output-Schema / JSON Extractor Prompt
让模型稳定输出可解析 JSON:字段定义、枚举、缺失处理、禁止额外文本。
Extract structured data from the text below and output ONLY valid JSON matching this schema, no markdown, no commentary: { "title": string | null, // <= 80 chars, original language "category": one of ["A","B","C","D"], "sentiment": "positive" | "neutral" | "negative", "confidence": number 0..1, // your certainty on all fields "entities": [{"name": string, "type": "person|org|product|date|other"}], "action_required": boolean, "reason": string // one sentence justifying sentiment/action } Rules: null when information is absent — never guess; "category" must use exact enum values; if text fits two categories choose primary and note second in reason; numbers parse as JSON numbers; escape quotes/newlines properly; output a single JSON object. Text: """{{...}}"""
自动翻译
自动翻译中…