> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hitheo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 列出预设模板

> 仪表盘在护栏空状态下提供的只读蓝图。

返回四个精心策划的预设模板：`pii-safe`、`strict-json`、`cost-conscious` 和 `enterprise-default`。预设是只读的——应用某个预设只是一次普通的[创建策略](/api-reference/guardrails/create-policy)调用，只不过用该预设的 `rules` 数组作为初始值。

根据严格的显式启用（opt-in）约定，获取或应用预设永远不会自动将其绑定到某个 API 密钥。

## 身份验证

需要携带具备 `billing` API 密钥权限范围的 Bearer 令牌。

## 请求示例

<CodeGroup>
  ```bash curl theme={null}
  curl https://www.hitheo.ai/api/v1/guardrail-policies/presets \
    -H "Authorization: Bearer $THEO_API_KEY"
  ```

  ```typescript SDK theme={null}
  const presets = await theo.guardrails.presets.list();
  const enterprise = presets.find((p) => p.id === "enterprise-default")!;

  const policy = await theo.guardrails.policies.create({
    name: "Production defaults",
    rules: enterprise.rules,
  });
  ```
</CodeGroup>

## 响应

每个预设都包含 `id`、`name`、`tagline`、`description` 和 `rules`。目前提供的四个预设分别是：

* **pii-safe** —— 对输入进行 PII（个人身份信息）遮蔽。
* **strict-json** —— 提示注入拒绝 + 输出端 JSON 修复。
* **cost-conscious** —— 对输入和输出两个阶段都设置硬性长度上限（约 4K 令牌）。
* **enterprise-default** —— 完整组合：PII 遮蔽 + 注入拒绝 + 长度上限 + 不当言论标记 + JSON 修复。

```json theme={null}
{
  "presets": [
    {
      "id": "pii-safe",
      "name": "PII-safe",
      "tagline": "Redact email / phone / SSN / credit-card / DL before the model sees them.",
      "description": "Sensible default for compliance-sensitive teams. ...",
      "rules": [
        {
          "guardrail_id": "pii_redactor",
          "phase": "input",
          "verdict": "redact",
          "config": {},
          "enabled": true,
          "rule_order": 0
        }
      ]
    }
  ]
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.