提示词
Audience: agent harness authors.
Steps:
1) Capture proposed tool + args summary + utterance + rules.
2) Parallel Nouls — one per hazard (destructiveness, exfil, scope_creep, injection_in_tool_result).
3) Code: per-hazard thresholds → allow / ask user / block.
Expected effect: stronger screening than one vague danger question (author-reported in community firewall studies).
Do not execute tools from inside the model.
需要授权:typesafe-sdkagent-runtime
它是怎么搭起来的
以下说明为英文原文(来自社区作者),提示词本身建议保留英文。
Insert a pre-execution gate. Sources: llm_guardrails cookbook · typesafe-ai-firewall · pi-warden · pi-jev. Measured claims (paired runs / hard-negative rates) are author-reported.
Prefer one Noul per hazard (exfil, irreversible, jailbreak, …) with per-threshold tables in code rather than one vague “is this safe?” question. Multi-hazard firewalls are author-reported improvements over single checks.
Sources (wave-2 deepen)
为什么它好用
Guardrails are cheap relative to the tool call they protect; probabilities beat essays.
本案例收集自公开的 Jev 社区,版权归原作者所有。提示词属于参考资料:运行前请先审阅内容, 并且不要让 bot 超出你实际授予的权限行事。