跳到正文
原文
OpenRouter Blog·· 4 小时前精选AI 评分58

OpenRouter 教程:用 Agent SDK 在 TypeScript 里搭建常驻 AI Agent

How to Build Your Own Always-On AI Agent

AI 导读

OpenRouter 发布教程,用 @openrouter/agent 0.11.0 在 TypeScript 中搭建一个定时监控 Hacker News 的常驻 AI Agent,自动筛选新故事并写入摘要。

推荐理由

原文给出完整可运行的 TypeScript 代码和实测单次成本,读者可据此搭一个带预算上限的定时监控 Agent。

来源:OpenRouter Blog · openrouter.ai