跳到主要内容Skip to main content

护栏Guardrails

Guardrails

  • 智能体Agents
  • 第三段 · 用深Stage 3 · Going Deeper
  • 引用核验 2026-11-03refs checked 2026-11-03
解决什么问题What problem it solves

限制模型能做什么、不能做什么,防止它跑偏或做危险操作。Constrain what the model may and may not do, so it does not drift or take dangerous actions.

这是什么What it is

在输入和输出两侧加的一层检查规则,可以是关键词、权限、也可以是另一个模型判断。

A layer of checks on the input and output side — keywords, permissions, or another model's judgement.

为什么需要知道Why it matters

给 Agent 配了写文件和跑命令的能力,就必须配护栏。这是能力与风险的直接交换。If you give an agent the ability to write files and run commands, you must give it guardrails. This is a direct trade of capability for risk.

出处Sources
  • OpenHands 的受限模式OpenHands Restricted Mode ↗
用这个术语做任务Use this term in a task

别停在定义:去任务手册看按什么顺序做、验收什么;或者按你手头的任务,筛 3 个工具候选。Don’t stop at the definition: use the task handbook for the order and checks, or filter three tool candidates for the job at hand.

任务手册 →Task handbooks → · 按任务筛 3 个候选 →Filter three candidates →