DeepSeek Harness 支出护栏与拦截钩子
Updated August 16, 2026 · first published August 16, 2026
在 Harness 架构中,预算护栏不是被动告警,而是在关键执行节点前的硬性拦截点。系统提供了两个原生瀑布钩子:
拦截点一:agent/pre-step
在向大模型发送推理请求之前触发。可在此校验任务剩余额度、累计 Token 限制,并在超支时强制阻断或升级为人工审批。
拦截点二:tools/pre-execute
在工具代码真正运行前触发。可在此对网络搜索、数据库写入等付费外部操作实施频次管控。
Related
Want this applied to your own LLM spend? FinOps LLM runs a free audit of your AI costs and shows where the savings are. Book free audit →