Vercel 为 libfx 智能体引入持久化执行
Harness durability in https://t.co/OL0LzGtvAw.
Vercel CEO Guillermo Rauch 宣布,libfx 的 createFxAgent() 现已支持持久化,可在本地或云端通过文件、Postgres 或 Vercel Workflows 运行,兼容 Node.js 与 Bun。libfx 新增持久化适配器 API,在 Vercel 上借助持久化工作流与队列基础设施,1 行代码即可获得可靠性;进程在工具调用中途崩溃可从断点恢复。该能力后续将扩展到 Pi、OpenCode 及自定义 harness。
查看原帖fx v0.0.14 libfx 现已开箱即用地支持持久化。在本地、Vercel 和 DIY 环境中使用相同的 API。 - 会话可在崩溃、重新部署和超时后继续存活 - 借助 ChatGPT 和 Grok 订阅为云端智能体提供支持 - libfx 支持自定义提供商和本地模型 - 在一个应用中运行多个 libfx 智能体 - 对每个 libfx 会话拥有更多控制权 - 为 libfx 的公共 API 提供 TypeScript 类型 - 已移植到 Zig 0.17 - 多项错误修复和安全改进 https://t.co/uYJQ5g790g
查看原文
fx v0.0.14 libfx is now durable out of the box. Same API on local, Vercel and DIY. - Sessions survive crashes, redeploys & timeouts - Power cloud agents with ChatGPT & Grok subscriptions - Custom providers & local model support in libfx - Run multiple libfx agents in one app - More control over each libfx session - TypeScript types for libfx's public APIs - Ported to Zig 0.17 - Multiple bug fixes & security improvements https://t.co/uYJQ5g790g
正文
The same 𝚌𝚛𝚎𝚊𝚝𝚎𝙵𝚡𝙰𝚐𝚎𝚗𝚝() is now *durable* on your laptop or in the cloud, via files, Postgres, or Vercel Workflows. Node.js or Bun.
Agents need long-running compute. But they also need to tolerate restarts, redeploys, timeouts, crashes…
Concretely, if a user sends a prompt and then throws their phone into a black hole, we ensure that turn runs to completion. If the process crashes mid-tool-call, it resumes from there.
To this end, 𝚕𝚒𝚋𝚏𝚡 introduces a simple durability adapter API. On Vercel, it leverages all the infra we built for durable workflows and queues, giving you reliability with 1LOC.
This is a critical aspect of production-grade agents (and something all @eve agents also get out of the box). Next, we'll show you how we bring the same durability to Pi, OpenCode, and even your own custom harnesses.