Agent Build智能体搭建 Tutor教程
Map地图 / Module模块 10 / labs/m10_*

Guardrails and verification护栏与验证

Deterministic checks on tool calls and on answers, each one written from a real failure.对工具调用和回答做确定性检查,每一条都源自一次真实的失败。

What it is and why it exists它是什么,为什么需要它

What是什么

Guardrails are code that inspects what the agent is about to do or say. Hooks check tool calls before they run. An answer guard checks the draft against the evidence gathered in this request.护栏是检查智能体即将做什么、说什么的代码。钩子在工具调用执行前做检查。回答护栏把草稿与本次请求收集到的证据进行比对。

Why为什么

Models produce fluent text whether or not it is supported. The reference agent once ran the right queries, got the right rows, and answered with an invented table. Only a check outside the model catches that.无论有没有依据,模型都能写出流畅的文字。参考智能体曾经执行了正确的查询、拿到了正确的数据,却给出了一张编造的表格。只有模型之外的检查才能发现这种情况。

How it works工作原理

Where it sits in the build order它在搭建顺序中的位置

Needs first前置模块

  • Harness engineeringHarness 工程The guard is a stage in the loop, after the draft and before the response. Hooks wrap tool execution. Both need the loop's plug points.护栏是循环中的一个阶段,在草稿之后、响应之前。钩子包裹工具执行。两者都需要循环提供的接入点。Build out of order不按顺序搭建 Stand in with:可用以下替代: Run the guard offline over logged answers.离线对已记录的回答运行护栏。
  • Tools and MCP工具与 MCPThe guard compares the answer with tool results. Tools must return values it can parse.护栏把回答与工具结果比对。工具必须返回它能解析的值。Build out of order不按顺序搭建 Stand in with:可用以下替代: A fixed evidence string.一段固定的证据字符串。

Unlocks解锁

  • Self-evolving agents自进化智能体The promotion gate is guard logic applied to stored knowledge, and it follows the same observe-first practice.晋升关卡是应用在已存储知识上的护栏逻辑,同样遵循先观察的做法。

In the reference build在参考系统中

Path路径Role作用
apps/agent-server/answer_guard.pyFigure, count, and name checks. Corrective and fallback messages. Stream gate.数字、计数和名称检查。纠正提示和兜底文本。流式输出闸门。
apps/agent-server/test_answer_guard.pyRegression tests, one per rule.回归测试,每条规则一个。
apps/agent-server/hooks/write_path_guard.pyBlocks writes outside an allowed folder.阻止写入允许目录之外的位置。

Process map流程图

What happens to a draft answer一份草稿回答会经历什么

  1. 1
    Draft草稿The model's answer, not yet shown to anyone.模型的回答,此时还没有展示给任何人。
  2. 2
    Should this turn be judged?这一轮需要判断吗?Skip when the user asked for a made-up example, or when no tools ran on a non-data turn.用户明确要求举个虚构的例子时跳过;非数据轮次且没有运行工具时也跳过。
  3. 3
    Extract figures提取数字Money amounts stated in the draft.草稿中陈述的金额。
  4. 4
    Compare with evidence与证据比对Strict on the first draft: any unsupported figure fails.对第一稿从严:只要有一个数字没有依据就不通过。
  5. 5
    Corrective retry纠正重试Name the unsupported figures and ask for a rewrite. Judge by majority.指出没有依据的数字,要求重写。按多数规则判断。
  6. 6
    Fallback兜底If the retry fails, return a plain statement with no figures.如果重试仍不通过,返回一段不含数字的说明。

Build steps搭建步骤

Follow them in order the first time. Each step names what it uses from earlier steps and what it leaves for later ones. Code is read from the lab files, and output is what the lab printed when it was run.第一次请按顺序做。每一步都写明它用到前面步骤的什么成果,又为后面的步骤留下什么。代码直接读取自 lab 文件,输出是 lab 实际运行时打印的内容。

  1. 1Start from logged failures从日志里的失败案例出发
  2. 2Write the grounding check编写依据检查
  3. 3Wrap the check in review(), with modes and exemptions用 review() 封装检查,加入模式和豁免
  4. 4Run in observe mode first先以观察模式运行
  5. 5Enforce: corrective retry, then fallback强制执行:先纠正重试,再兜底
  6. 6Add a pre-tool hook for writes为写操作加一个工具前置钩子
  7. 7Keep one regression test per rule每条规则保留一个回归测试
01Start from logged failures从日志里的失败案例出发
Why this step is here为什么这一步排在这里A guard written from imagination blocks the wrong things. Start with real answers that were wrong, so each rule has a case it must catch and you can find the cases it must allow.凭想象写的护栏会拦错东西。从真实的错误回答入手,这样每条规则都有它必须拦住的案例,你也能找到它必须放行的情况。

Do this操作

  1. Read the request log. Collect answers that stated something the tools did not return.阅读请求日志。收集那些陈述了工具未返回内容的回答。
  2. For each, write what kind of thing was invented: an amount, a count, a name.对每一条,写下被编造的是哪类内容:金额、数量还是名称。
  3. Also collect answers that correctly state numbers from nowhere: a requested example, a well-known threshold.同时收集那些数字虽无来源却完全合理的回答:用户要求的示例、众所周知的阈值。
You are done when完成标志You have at least one must-catch case and one must-allow case.你至少有一个“必须拦住”的案例和一个“必须放行”的案例。
Produces产出Two lists: must catch, must allow.两份清单:必须拦住的、必须放行的。
02Write the grounding check编写依据检查
Why this step is here为什么这一步排在这里The check is the core and has no dependencies, so it is written and tested alone before it touches the loop.这项检查是核心,而且没有任何依赖,所以先单独写好、测好,再接入循环。
Uses用到

Do this操作

  1. `claims()` extracts money figures from the answer.`claims()` 从回答中提取金额。
  2. `evidence_numbers()` collects numbers from tool and user messages only.`evidence_numbers()` 只从工具消息和用户消息里收集数字。
  3. `grounded()` accepts a figure that is in the evidence or is a sum or difference of two evidence numbers.`grounded()` 接受出现在证据中的数字,或两个证据数字的和或差。
  4. `check()` is strict by default, and uses a majority rule when asked.`check()` 默认从严,按要求时使用多数规则。
labs/m10_guard/guard.py · check
def claims(answer: str) -> list:
    """Every money figure the answer states."""
    return [_num(a or b) for a, b in MONEY.findall(answer)]


def evidence_numbers(messages: list) -> list:
    """Every number in tool results and in what the user said. The assistant's own
    earlier words are not evidence."""
    out = []
    for m in messages:
        if m.get("role") in ("tool", "user") and not str(m.get("content") or "").startswith("[harness]"):
            out += [_num(x) for x in NUMBER.findall(str(m.get("content") or ""))]
    return out


def grounded(value: float, ev: list) -> bool:
    """In the evidence as is, or the sum or difference of two evidence numbers."""
    near = lambda a, b: abs(a - b) <= 0.005 * max(1.0, abs(b))  # noqa: E731
    if any(near(value, e) for e in ev):
        return True
    small = sorted(set(ev))[:400]
    return any(near(value, a + b) or near(value, abs(a - b)) for i, a in enumerate(small) for b in small[i:])


def check(answer: str, messages: list, strict: bool = True) -> dict:
    ev = evidence_numbers(messages)
    stated = claims(answer)
    bad = [v for v in stated if not grounded(v, ev)]
    ok = not bad if strict else len(bad) * 2 <= len(stated)      # retry: majority rule
    return {"ok": ok, "stated": stated, "unsupported": bad}
run
python3 -m labs.m10_guard.demo
Recorded output / 记录的输出 · m10.demo
1 check: PASS | stated [219.0] | unsupported []
1 check: PASS | stated [455.0, 17.0] | unsupported []
1 check: FAIL | stated [312.4] | unsupported [312.4]
You are done when完成标志An exact figure passes, a derived total and difference pass, and an invented figure fails and is named.精确的数字通过;推算出的合计和差值通过;编造的数字不通过并被指出。
Produces产出`check()`: answer and messages to a verdict.`check()`:输入回答和消息,输出裁定。
03Wrap the check in review(), with modes and exemptions用 review() 封装检查,加入模式和豁免
Why this step is here为什么这一步排在这里The loop needs one function that also knows when not to judge. The exemptions come from your must-allow list.循环需要的是一个函数,它还得知道什么时候不该判断。豁免规则来自你的“必须放行”清单。

Do this操作

  1. Skip when the user asked for a made-up example.用户要求举虚构的例子时跳过。
  2. Skip when no tool ran and the turn is not a data turn. General talk may quote a threshold.没有运行工具且不是数据轮次时跳过。一般性的交谈可以引用某个阈值。
  3. Read a mode from the environment: enforce, observe, or off.从环境变量读取模式:enforce、observe 或 off。
  4. Return the verdict with a corrective message that names the figures, and a fallback text.返回裁定,并附上指出具体数字的纠正提示和兜底文本。
labs/m10_guard/guard.py · review
def review(messages: list, answer: str, skill: Optional[str] = None) -> dict:
    """What the loop calls. Returns ok, plus the corrective message and the fallback text."""
    mode = os.environ.get("GUARD_MODE", "enforce")             # enforce | observe | off
    used_tools = any(m.get("role") == "tool" for m in messages)
    data_turn = bool(skill and skill.startswith(DATA_SKILLS))
    retry = any(str(m.get("content") or "").startswith("[harness] These figures") for m in messages)
    verdict = check(answer, messages, strict=not retry)
    reason = None
    if mode == "off" or asks_for_example(messages):
        verdict["ok"], reason = True, "skipped"
    elif not used_tools and not data_turn:
        verdict["ok"], reason = True, "not a data turn"            # general knowledge may quote thresholds
    elif mode == "observe":
        reason, verdict["would_block"] = "observe", not verdict["ok"]
        verdict["ok"] = True
    figures = ", ".join(f"{v:,.2f}" for v in verdict["unsupported"])
    verdict["reason"] = reason
    verdict["corrective"] = (f"These figures are not in the evidence of this conversation: {figures}. "
                             "Rewrite the answer using only numbers the tools returned. "
                             "If the tools did not return a number, say so.")
    verdict["fallback"] = ("I ran the lookups but could not produce an answer whose figures all match the tool results. "
                           "Please ask again or narrow the question.")
    return verdict
Recorded output / 记录的输出 · m10.demo
4 requested example passes: True
5 no tools, general talk  : not a data turn
You are done when完成标志A requested example passes, and a turn with no tools is marked as not a data turn.用户要求的示例通过;没有工具的轮次被标记为非数据轮次。
Produces产出`review()`: the function the harness calls.`review()`:Harness 调用的函数。
04Run in observe mode first先以观察模式运行
Why this step is here为什么这一步排在这里Before the guard changes any answer, measure how often it would fire on real traffic and what it would wrongly block.在护栏改变任何回答之前,先测量它在真实流量上会触发多少次、会误拦什么。

Do this操作

  1. Set the mode to observe and attach the guard to the agent.把模式设为 observe,并把护栏接到智能体上。
  2. Let it log would-block decisions for a period.让它在一段时间内记录“本应拦截”的决定。
  3. Read each one. Add an exemption for every legitimate case.逐条查看。为每个合理的情况添加豁免。
Recorded output / 记录的输出 · m10.demo
3 observe mode : would_block = True -> answer left alone: B. Chen paid 312.40 dollars for lodging, ...
You are done when完成标志In observe mode the fabricated answer is left alone and `would_block` is True.观察模式下,编造的回答原样保留,`would_block` 为 True。
Produces产出A list of would-block cases reviewed by a person.一份经人工审阅的“本应拦截”案例清单。
05Enforce: corrective retry, then fallback强制执行:先纠正重试,再兜底
Why this step is here为什么这一步排在这里This joins the guard to the loop. It follows observation because now you know the guard's false positives.这一步把护栏接到循环上。它排在观察之后,因为此时你已经了解了护栏的误报情况。

Do this操作

  1. Pass `review` as the `guard` argument of the agent.把 `review` 作为智能体的 `guard` 参数传入。
  2. Run three models: honest, one that invents a figure once, one that keeps inventing.运行三种模型:诚实的、编造一次数字的、持续编造的。
  3. Read the three outcomes: pass, corrected on retry, fallback.看三种结果:通过、重试后被纠正、兜底。
python
from labs.m10_guard.guard import review

agent = Agent(registry, skills=router.match, guard=review)
Recorded output / 记录的输出 · m10.demo
2 honest model   : retried=False fallback=False -> The lodging cap is 220 dollars per night (policy NW-FIN-012, Section 3). B. Chen paid 21
2 fabricates once: retried=True fallback=False -> The lodging cap is 220 dollars per night (policy NW-FIN-012, Section 3). B. Chen paid 21
2 keeps inventing: retried=True fallback=True -> I ran the lookups but could not produce an answer whose figures all match the tool resul
You are done when完成标志The second line shows retried=True with a grounded answer. The third shows the fallback text.第二行显示 retried=True 且回答有依据。第三行显示兜底文本。
Produces产出An agent that cannot return an unsupported figure on a data turn.一个在数据轮次上无法返回无依据数字的智能体。
Feeds供给
06Add a pre-tool hook for writes为写操作加一个工具前置钩子
Why this step is here为什么这一步排在这里Hooks are the other half: they act before a tool runs. This one is independent of the answer guard and can be built at any point after the harness has its hook list.钩子是另一半:它们在工具运行之前起作用。这一个与回答护栏无关,只要 Harness 有了钩子列表,随时可以搭建。

Do this操作

  1. Resolve the target path, so `..` and symlinks are followed before the test.先解析目标路径,让 `..` 和符号链接在判断之前就被展开。
  2. Block when the resolved path is outside the allowed folder.解析后的路径在允许目录之外时,阻止操作。
  3. Return nothing for tools that do not write.对不执行写操作的工具,什么都不返回。
labs/m10_guard/hooks.py · hook
def write_path_guard(allowed_root: Path):
    """Build a hook that limits file writes to one folder. Return a reason to block, or None."""
    root = allowed_root.resolve()

    def hook(name: str, args: dict) -> Optional[str]:
        if name not in WRITE_TOOLS:
            return None
        target = (root / str(args.get("path", ""))).resolve()      # resolves ../ tricks and symlinks
        if root != target and root not in target.parents:
            return f"writes are limited to {root.name}/"
        return None
    return hook
Recorded output / 记录的输出 · m10.demo
6 write notes/summary.md       -> allowed
6 write ../../etc/passwd       -> writes are limited to m10/
6 write /tmp/elsewhere.txt     -> writes are limited to m10/
7 other tools untouched   -> allowed
You are done when完成标志A relative path inside the folder is allowed. A path that climbs out and an absolute path elsewhere are blocked.目录内的相对路径被允许。向上跳出目录的路径和指向别处的绝对路径被阻止。
Produces产出`write_path_guard()`: a hook factory.`write_path_guard()`:钩子工厂函数。
Feeds供给No later step consumes this directly.没有后续步骤直接使用它。
07Keep one regression test per rule每条规则保留一个回归测试
Why this step is here为什么这一步排在这里Last, because every rule now exists. A guard grows one rule at a time, and without tests a new rule breaks an old exemption.放在最后,因为此时所有规则都已存在。护栏是一条一条规则加出来的,没有测试的话,新规则会破坏旧的豁免。

Do this操作

  1. For each must-catch case, write a test that fails the guard.为每个“必须拦住”的案例写一个让护栏不通过的测试。
  2. For each must-allow case, write a test that passes it.为每个“必须放行”的案例写一个让护栏通过的测试。
  3. Run them before every change to the guard, and keep test traffic out of the production guard log. The lab guard writes no log, so the lab tests only the first part.每次修改护栏前都运行它们,并且不要让测试流量进入生产环境的护栏日志。lab 里的护栏不写日志,所以 lab 只测试前一部分。
labs/m10_guard/test_guard.py
"""Regression tests for the answer guard. One must-catch and one must-allow case per rule.

    python3 -m unittest labs.m10_guard.test_guard -v
"""
from __future__ import annotations

import os
import unittest

from labs.m10_guard.guard import check, review

EV = [{"role": "user", "content": "Did Chen exceed the cap?"},
      {"role": "tool", "content": '{"rows": [{"amount_usd": 219.0}, {"amount_usd": 236.0}], "total_usd": 455.0, "cap": 220}'}]


class Grounding(unittest.TestCase):
    def test_catch_invented_figure(self):
        self.assertFalse(check("Chen paid 312.40 dollars.", EV)["ok"])

    def test_allow_figure_from_tool(self):
        self.assertTrue(check("Chen paid 219.00 dollars, under the 220 dollar cap.", EV)["ok"])

    def test_allow_sum_and_difference(self):
        self.assertTrue(check("The stays total $455.00 and differ by $17.00.", EV)["ok"])


class RetryRule(unittest.TestCase):
    def test_catch_one_wrong_figure_on_first_draft(self):
        self.assertFalse(check("$219.00, $236.00 and $999.00.", EV, strict=True)["ok"])

    def test_allow_one_stubborn_figure_on_retry(self):
        self.assertTrue(check("$219.00, $236.00 and $999.00.", EV, strict=False)["ok"])


class Exemptions(unittest.TestCase):
    def test_allow_requested_example(self):
        msgs = [{"role": "user", "content": "Give me a made-up example with numbers."}] + EV[1:]
        self.assertTrue(review(msgs, "Say a trip costs 3,100 dollars.", "policy-citation")["ok"])

    def test_catch_same_text_when_no_example_was_asked(self):
        self.assertFalse(review(EV, "Say a trip costs 3,100 dollars.", "policy-citation")["ok"])

    def test_allow_general_talk_without_tools(self):
        self.assertTrue(review([{"role": "user", "content": "hi"}], "A typical cap might be $200.", None)["ok"])

    def test_catch_data_turn_without_tools(self):
        msgs = [{"role": "user", "content": "Who spent the most?"}]
        self.assertFalse(review(msgs, "Chen spent $4,410.00.", "expense-investigation")["ok"])


class Modes(unittest.TestCase):
    def tearDown(self):
        os.environ.pop("GUARD_MODE", None)

    def test_observe_records_but_does_not_block(self):
        os.environ["GUARD_MODE"] = "observe"
        v = review(EV, "Chen paid 312.40 dollars.", "expense-investigation")
        self.assertTrue(v["ok"])
        self.assertTrue(v["would_block"])

    def test_enforce_blocks(self):
        os.environ["GUARD_MODE"] = "enforce"
        self.assertFalse(review(EV, "Chen paid 312.40 dollars.", "expense-investigation")["ok"])


if __name__ == "__main__":
    unittest.main()
run
python3 -m labs.m10_guard.run_tests
Recorded output / 记录的输出 · m10.tests
ok   Exemptions.test_allow_general_talk_without_tools
ok   Exemptions.test_allow_requested_example
ok   Exemptions.test_catch_data_turn_without_tools
ok   Exemptions.test_catch_same_text_when_no_example_was_asked
ok   Grounding.test_allow_figure_from_tool
ok   Grounding.test_allow_sum_and_difference
ok   Grounding.test_catch_invented_figure
ok   Modes.test_enforce_blocks
ok   Modes.test_observe_records_but_does_not_block
ok   RetryRule.test_allow_one_stubborn_figure_on_retry
ok   RetryRule.test_catch_one_wrong_figure_on_first_draft
11 tests, 0 failed
You are done when完成标志11 tests pass: each rule has a case it must catch and a case it must allow.11 个测试全部通过:每条规则都有一个必须拦住的案例和一个必须放行的案例。
Produces产出A test file that grows with the guard.一个随护栏一起增长的测试文件。
Feeds供给No later step consumes this directly.没有后续步骤直接使用它。

How it works with the other parts它如何与其他部分协作

What went wrong in the real build真实搭建中踩过的坑

2026-10

An answer with no tool call passed unchecked没有工具调用的回答未经检查就通过了

What happened发生了什么
A follow-up question was answered with three invented totals and no query. The guard ran only when tools had been called.一个追问被直接回答了三个编造的合计数,没有执行任何查询。当时护栏只在调用过工具时才运行。
Fix修复
On data turns, check tool-free answers against the conversation so far.在数据轮次上,对没有调用工具的回答也要对照已有对话进行检查。
Lesson教训
Decide what the default is when a check has nothing to compare against.当检查没有可比对的对象时,默认行为是什么,要事先决定。
2026-10

The guard blocked a requested example护栏拦住了用户要求的示例

What happened发生了什么
A user asked for a made-up numeric example. The guard rejected the invented amounts and the user got an apology.用户要求举一个虚构的数字示例。护栏拒绝了这些虚构的金额,用户只得到一句道歉。
Fix修复
Detect explicit requests for examples and skip the figure check on that turn.识别明确要求举例的请求,在该轮跳过数字检查。
Lesson教训
Every guard needs a list of legitimate cases it must let through, with tests.每个护栏都需要一份必须放行的合理情况清单,并配上测试。
2026-10

Four right totals and one wrong one passed四个对的合计加一个错的,通过了

What happened发生了什么
A majority rule let through an answer with one wrong figure among four right ones.多数规则放过了一个四对一错的回答。
Fix修复
Judge the first draft strictly. Use the majority rule only on the retry.对第一稿从严判断。多数规则只用于重试。
Lesson教训
Strict first, lenient second: catch the single error, and do not turn one stubborn figure into a refusal.先严后宽:既要抓住单个错误,也不要因为一个纠正不过来的数字就把整个回答变成拒绝。
2026-10

Right figures from the wrong source数字是对的,来源是错的

What happened发生了什么
Once in six runs a spending question was answered from a web search while the data tools were never called. Every figure matched the web result, so the check passed.六次运行中有一次,一个支出问题是根据网页搜索回答的,数据工具根本没被调用。每个数字都与网页结果一致,所以检查通过了。
Fix修复
On a data turn, reject a first draft that cites figures after a web search and no data tool.在数据轮次上,如果第一稿只做了网页搜索、没有调用数据工具就引用数字,则拒绝。
Lesson教训
Grounded is not the same as grounded in the right source.“有依据”不等于“依据来自正确的来源”。

The same idea on other platforms同样的思路在其他平台上

Platform平台How this module maps本模块如何对应
DatabricksUnity Gateway applies guardrails at the endpoint. Groundedness checks like this one are custom code in your agent, or scorers such as RetrievalGroundedness run on traces.Unity Gateway 在端点层面应用护栏。像这样的依据检查需要你在智能体里自己写,或用 RetrievalGroundedness 这类 scorer 在 trace 上运行。
IBM watsonxwatsonx.governance provides guardrails and monitors. Domain checks go in a tool or a post-processing step you write.watsonx.governance 提供护栏和监控。业务领域的检查要放在工具里,或你自己写的后处理步骤里。
CodexSandbox and approval modes limit actions. Hooks and your own test commands act as checks on changes.沙箱和审批模式限制操作。钩子和你自己的测试命令充当对改动的检查。
CursorHooks can block or modify agent actions. Rules can require checks before completion.钩子可以阻止或修改智能体的操作。规则可以要求在完成前执行检查。
Claude Code / Agent SDKHooks run before and after tool use and can block. Permission modes limit actions. Output checks are code you add in hooks or in the SDK loop.钩子在工具使用前后运行,可以阻止操作。权限模式限制操作范围。输出检查是你在钩子或 SDK 循环里添加的代码。
Another machineThe guard is a pure Python module that takes an answer and messages. Portable as is.护栏是一个纯 Python 模块,输入回答和消息即可。可以原样移植。

Step-by-step guides per platform各平台的分步指南

Explain it back讲给自己听

Answer aloud first. Then open the answer and compare.先自己说一遍答案,再展开对照。

Why judge the first draft strictly and the retry by majority?为什么第一稿从严、重试按多数规则?
A strong answer参考答案A strict first pass catches a single wrong figure among right ones. A lenient retry keeps one stubborn figure from turning a usable answer into a refusal.第一遍从严,能抓住混在正确数字里的单个错误。重试从宽,避免一个纠正不过来的数字把可用的回答变成拒绝。
Why does every rule need an observe mode?为什么每条规则都需要观察模式?
A strong answer参考答案So you can measure how often it would fire on real traffic, and what it would wrongly block, before it changes any answer.这样可以在它改变任何回答之前,先测出它在真实流量上的触发频率,以及会误拦什么。
Why is the assistant's earlier text excluded from evidence?为什么助手之前说的话不算证据?
A strong answer参考答案If it counted, a figure invented in one turn would ground itself in the next. Evidence is what tools returned and what the user supplied.如果算证据,上一轮编造的数字到下一轮就成了自己的依据。证据只包括工具返回的内容和用户提供的内容。
What is the difference between a hook and the answer guard?钩子和回答护栏有什么区别?
A strong answer参考答案A hook runs before a tool call and can stop an action. The guard runs after the draft and can stop a statement. One protects the world from the agent, the other protects the reader.钩子在工具调用之前运行,可以阻止一个动作。护栏在草稿之后运行,可以阻止一句陈述。前者保护外部环境不受智能体影响,后者保护读者。

Terms术语

Grounded有依据Present in the evidence of this request, or derived from it by a simple rule.出现在本次请求的证据中,或可由简单规则从证据推出。
Data turn数据轮次A turn where a data skill was loaded, so figures are expected to come from tools.加载了数据类技能的轮次,其中的数字应当来自工具。
Observe mode观察模式The guard records what it would block and changes nothing.护栏只记录它本来会拦截什么,不改变任何结果。
Fallback兜底文本A fixed, figure-free reply used when a retry also fails.重试仍不通过时使用的、不含数字的固定回复。

From the live build来自实时构建

Recent changes and files the sync job filed under this module. These lines are in English as written in the build.同步任务归到本模块下的近期变更和文件。这些内容保留了构建系统中的英文原文。

Ask the tutor about this module就本模块向导师提问