|
@@ -3201,6 +3201,14 @@ Inner Join Sys_Department as d With(Nolock) On u.DepId=d.Id Where m.Id={0} ", _m
|
|
|
1. **职能推导**:基于 [SourceEntity] 的名称,自动识别其在所属领域的具体行政职能与政策影响力。
|
|
1. **职能推导**:基于 [SourceEntity] 的名称,自动识别其在所属领域的具体行政职能与政策影响力。
|
|
|
2. **战略对齐**:将其职能与全球大趋势(如:Sustainable Urbanization, Digital Transformation, Carbon Neutrality)挂钩,作为邮件第二段的叙事背景。
|
|
2. **战略对齐**:将其职能与全球大趋势(如:Sustainable Urbanization, Digital Transformation, Carbon Neutrality)挂钩,作为邮件第二段的叙事背景。
|
|
|
|
|
|
|
|
|
|
+# [RICH_TEXT_STANDARDS_FOR_QUILL]
|
|
|
|
|
+- **Prohibited Tags**: 绝对禁止包含 <html>, <body>, <head>, <!DOCTYPE>, <hr>, <style>。
|
|
|
|
|
+- **Whitelisted Tags**: 仅允许使用 <h3> (用于主题), <p> (用于段落), <ul>, <li>, <strong>, <br>。
|
|
|
|
|
+- **Structural Integrity**:
|
|
|
|
|
+ - 严禁出现裸露文本,所有段落必须由 <p> 包裹。
|
|
|
|
|
+ - 列表必须使用标准 <ul><li> 嵌套结构。
|
|
|
|
|
+- **No Markdown**: 严禁在 Content 中出现 ###, **, --- 等 Markdown 符号。
|
|
|
|
|
+
|
|
|
# Reference Model (Few-Shot Example)
|
|
# Reference Model (Few-Shot Example)
|
|
|
在生成时,请严格参考以下范例的【语气】、【五段式结构】和【外交辞令】:
|
|
在生成时,请严格参考以下范例的【语气】、【五段式结构】和【外交辞令】:
|
|
|
- Subject: Official Study Visit Inquiry – [Delegation Name] ([Date])
|
|
- Subject: Official Study Visit Inquiry – [Delegation Name] ([Date])
|
|
@@ -3231,23 +3239,24 @@ Inner Join Sys_Department as d With(Nolock) On u.DepId=d.Id Where m.Id={0} ", _m
|
|
|
# Constraints & Standards
|
|
# Constraints & Standards
|
|
|
- **Tone**: Formal, Strategic, and Executive (庄重、具战略高度、执行力强)。
|
|
- **Tone**: Formal, Strategic, and Executive (庄重、具战略高度、执行力强)。
|
|
|
- **Naming Protocol**: 附件引用统一使用 `JointVisitAgenda`, `StrategicInquiryBrief` (PascalCase)。
|
|
- **Naming Protocol**: 附件引用统一使用 `JointVisitAgenda`, `StrategicInquiryBrief` (PascalCase)。
|
|
|
|
|
+- **Escaping**: 必须对 HTML 内部的所有双引号进行严格转义(\""),确保 JSON 字符串合法。
|
|
|
- **Output Format**: 仅输出一个合规的 JSON 数组,不包含任何解释性文字。
|
|
- **Output Format**: 仅输出一个合规的 JSON 数组,不包含任何解释性文字。
|
|
|
- **Field Mapping**:
|
|
- **Field Mapping**:
|
|
|
- `Guid`: 原样保留。
|
|
- `Guid`: 原样保留。
|
|
|
- `NameCn`: 原样保留。
|
|
- `NameCn`: 原样保留。
|
|
|
- `Scope`: 原样保留。
|
|
- `Scope`: 原样保留。
|
|
|
- `Subject`: 动态生成的英文主题。
|
|
- `Subject`: 动态生成的英文主题。
|
|
|
- - `Content`: 包含 Markdown 格式符号(`###`, `**`, `*`, `---`)的英文正文。
|
|
|
|
|
|
|
+ - `Content`: 包含 QUILL的英文正文。
|
|
|
|
|
|
|
|
# JSON Structure Template
|
|
# JSON Structure Template
|
|
|
[
|
|
[
|
|
|
- {{
|
|
|
|
|
|
|
+ {{{{
|
|
|
""Guid"": ""ID"",
|
|
""Guid"": ""ID"",
|
|
|
""NameCn"": ""Entity Name"",
|
|
""NameCn"": ""Entity Name"",
|
|
|
- ""Scope"": ""Scope Description"",
|
|
|
|
|
- ""Subject"": ""Dynamic English Subject"",
|
|
|
|
|
- ""Content"": ""### Subject\n\n**Dear...**\n\nBody content with *Markdown*...\n\n--- \n\nClosing.""
|
|
|
|
|
- }}
|
|
|
|
|
|
|
+ ""Scope"": ""Original Scope Description"",
|
|
|
|
|
+ ""Subject"": ""Dynamic English Subject Line"",
|
|
|
|
|
+ ""Content"": ""<h3>Subject: ...</h3><p>Dear Leadership Team of <strong>[Target]</strong>,</p><p>On behalf of <strong>[SourceEntity]</strong>, I am writing to propose...</p><ul><li><strong>Focus Area:</strong> Technical analysis of...</li></ul><p>Sincerely,<br><strong>Office of the Chief Liaison</strong><br>[SourceEntity]</p>""
|
|
|
|
|
+ }}}}
|
|
|
]";
|
|
]";
|
|
|
|
|
|
|
|
string response = string.Empty;
|
|
string response = string.Empty;
|