OpenRouter Agent SDK 新增 human-in-the-loop 工具类型
📊 核心数据与事实(2026-05-08):
OpenRouter 的 Agent SDK 新增第四种工具类型 human-in-the-loop(HITL),通过 onToolCalled 钩子按输入决定自动执行还是暂停等待人工确认,安装命令为 npm install @openrouter/agent。
• 原文实测切片:callModel ({ model: 'openai/gpt-4o' , input: 'Pay $500 to Acme Corp for the May invoice' , tools: [approvePayment] as const , state, });
• 原文实测切片:Use HITL when some calls can proceed automatically and others need a human (think: “approve this payment if it’s under $100”).
💡 对独立开发者的启发:
1/ 供给端造工具的门槛已被 AI 和开源抹平,独立开发者真正的护城河是「找准垂直业务场景 + 做好分发」。
2/ 面对新模型或开源组件先看三件事:许可证是否商用安全、API/推理边际成本降了多少、能不能直接嵌进现有变现工作流。
3/ 别去卷通用开发者轮子,把底层新能力包装成面向具体行业人群(电商、创作者、中小商家)傻瓜式交付结果的产品。
📅 日期:2026-05-08(北京时间)
📰 信息源出处:OpenRouter Blog(openrouter.ai)
🔗 原文:https://openrouter.ai/blog/tutorials/human-in-the-loop-tools/
📡 归档:https://billionare.me/items/pkuptmeei2ya0qh9laffgl6gk
社媒成稿工作台 · 一键复制
飞书同步推送 · 含数据/日期/出处/启发OpenRouter Agent SDK 新增 human-in-the-loop 工具类型 📊 核心数据与事实(2026-05-08): OpenRouter 的 Agent SDK 新增第四种工具类型 human-in-the-loop(HITL),通过 onToolCalled 钩子按输入决定自动执行还是暂停等待人工确认,安装命令为 npm install @openrouter/agent。 • 原文实测切片:callModel ({ model: 'openai/gpt-4o' , input: 'Pay $500 to Acme Corp for the May invoice' , tools: [approvePayment] as const , state, }); • 原文实测切片:Use HITL when some calls can proceed automatically and others need a human (think: “approve this payment if it’s under $100”). 💡 对独立开发者的启发: 1/ 供给端造工具的门槛已被 AI 和开源抹平,独立开发者真正的护城河是「找准垂直业务场景 + 做好分发」。 2/ 面对新模型或开源组件先看三件事:许可证是否商用安全、API/推理边际成本降了多少、能不能直接嵌进现有变现工作流。 3/ 别去卷通用开发者轮子,把底层新能力包装成面向具体行业人群(电商、创作者、中小商家)傻瓜式交付结果的产品。 📅 日期:2026-05-08(北京时间) 📰 信息源出处:OpenRouter Blog(openrouter.ai) 🔗 原文:https://openrouter.ai/blog/tutorials/human-in-the-loop-tools/ 📡 归档:https://billionare.me/items/pkuptmeei2ya0qh9laffgl6gk