# 13.3 法律：合同审查智能体

## 13.3.1 场景背景

法务部门每天需要审查大量商业合同，检查是否包含高风险条款（如无限连带责任、不合理的管辖地）。

## 13.3.2 上下文设计挑战

1. **超长文本**：合同动辄几十页，甚至上百页。
2. **逻辑依赖**：条款之间存在引用关系（“见第 5.1 条”），切片容易打断逻辑。
3. **严谨推理**：需要进行复杂的逻辑判断，而非简单的文本匹配。

## 13.3.3 解决方案

### 条款级切片

不按字符数切分，而是按合同条款结构切分。保留条款编号（Article 1.2）作为元数据。

### 引用展开

并在预处理阶段，识别文本中的引用关系。如果第 10 条引用了第 5 条，将第 5 条的摘要附在第 10 条的 Chunk 中，使每个 Chunk 逻辑自洽。

### 思维链上下文引导

在 Prompt 中提供审查清单（Checklist）和推理范例：

```markdown
审查目标：寻找是否有"单方面解约权"条款。
思考步骤：
1. 遍历所有包含"解除"、"终止"关键词的条款。
2. 分析触发条件是双方协商还是单方主张。
3. 若为单方，是否仅限于违约情况？若无条件单方解约，标记为高风险。
```

## 13.3.4 效果

在教学示例中，智能体适合承担初筛和证据整理：按预设风险清单定位条款、标注引用位置、提示需要律师复核的交叉条款。真实覆盖率必须基于具体法域、合同类型、风险 taxonomy、黄金标注和人工复核结果评估，不能把示例结果当成法律意见或效果承诺。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://yeasy.gitbook.io/context_engineering_guide/di-si-bu-fen-gong-cheng-shi-zhan-yu-wei-lai-yan-jin/13_cases/13.3_legal.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
