update_sql_template
Update existing SQL templates to correct SQL, add validation markers, execution flow steps, and sanitized examples for reliable reuse.
Instructions
更新已有模板的字段(如补充验证标记、修正 SQL、补充执行过程伪代码)。
execution_flow: 执行过程伪代码([INPUT]/[STEP]/QUERY/ASSERT/CONDITION/ACTION), 为存量高频数据修复模板渐进式补充,指导大模型分步执行。
example_case: 脱敏示例(输入参数 → 中间结果 → 最终 SQL 的完整轨迹)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| category | No | ||
| doc_type | No | ||
| keywords | No | ||
| scenario | No | ||
| sql_text | No | ||
| verified | No | ||
| core_tables | No | ||
| template_id | Yes | ||
| template_no | No | ||
| verified_at | No | ||
| example_case | No | ||
| placeholders | No | ||
| execution_flow | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |