代码编辑器公司 Cursor 正式推出全面可用(Generally Available)的 Agent SDK,这是一个允许软件团队以代码形式定义、构建和部署自动化 AI Agent 的开发框架 1。该 SDK 旨在解决现有 Agent 工具与工作流不匹配的问题 1。开发者可以通过 TypeScript 函数和 Markdown 提示词来定义和管理 AI Agent,支持版本控制和常规软件项目流程 1。SDK 内置评估(evals)和事件重放功能,用于确保关键工作流的执行正确性 1。
在部署方面,Agent SDK 提供 agent-sdk deploy 命令可将 Agent 一键部署到 Cursor 基础设施,也支持在本地 Node 进程中运行 1。示例代码中使用的模型 ID 为 "composer-2.5" 1。已有实际案例表明其应用价值:PGA Tour 使用 Agent SDK 为其“软件开发工厂”构建所有组件 1;Cursor 内部团队利用 Agent SDK 在约一天时间内构建了名为 kb-reviewer 的 Agent,用于检查 Pull Request 是否符合团队记录的经验教训 1。
Code editor company Cursor has officially released its Agent SDK, a development framework now generally available that enables software teams to define, build, and deploy automated AI agents as code 1. The tool addresses mismatches between existing agent utilities and workflow requirements by allowing developers to manage agents using standard software project practices, including version control, TypeScript functions, and Markdown prompts 1. To ensure the reliability of critical workflows, the SDK incorporates built-in evaluation features and event replay capabilities 1.
The framework offers flexible deployment options, supporting both execution within local Node processes and one-click deployment to Cursor’s infrastructure via the agent-sdk deploy command 1. Real-world applications of the SDK include the PGA Tour, which utilized it to construct all components of its "software development factory" 1. Internally, Cursor’s engineering team leveraged the tool to create a knowledge base review agent named kb-reviewer in approximately one day 1. This internal agent checks pull requests against documented team lessons learned, with example code indicating the use of the model ID "composer-2.5" 1.
评论
还没有评论,欢迎留下第一条。