翻篇收录说明
翻篇网页快照

eve | AI SDK

https://ai-sdk.dev/docs/agents/eve

最近抓取:2026-12-04 02:37:21(北京时间)

最近内容变化:2026-11-30 23:25:02(北京时间)

这是最近一次有效抓取的文本快照,不含网页脚本、图片和动态交互内容。实际网页可能已更新。

访问原网页

页面简介

Build production AI agents with eve, an open-source agent framework for durable, long-running work that is built on the AI SDK.

正文摘录

AgentsMenueveCopy for LLMView MarkdownAsk AI about this pageeve is an open-source agent framework for durable, long-running work. Build, govern, and evolve enterprise-grade agents that scale — with channels, durable runs, approvals, and testing built in. eve is built on the AI SDK: defineTool uses the same shape as tool(): a description, an inputSchema (Zod, any Standard Schema, or a JSON Schema object), and an execute function. defineAgent accepts an AI Gateway model ID such as openai/gpt-6-luna-fast, or any AI SDK LanguageModel from a provider package. Options like reasoning map to the AI SDK's model settings. A Chat SDK channel connects any Chat SDK adapter to your agent. Built for Production Channels — Multiplayer and single-player chat across Slack, Teams, iMessage, WhatsApp, and the web. Channels are a framework primitive. Durable runs — Checkpoints every step. Survives crashes, restarts, and days-long waits. Runs on crons, too. Agentic or deterministic — Fully agentic loops, deterministic workflows, or both in one run. You choose per task. Human in the loop — Pause for approval. Resume durably when it arrives. Any provider — Swap models with a one-line edit. Provider fallback included. Route different models to different tasks. Per-user capabilities — Skills, schedules, memory, and tools resolved per user at runtime. MCP, OpenAPI, and subagents — Connect to services over MCP and OpenAPI, or delegate to focused subagents. Credentials stay in the runtime. Testing — Test agent behavior before and after every change. Quick Start Create a new agent project: npx eve@latest init my-agent This creates a my-agent directory, installs its dependencies, initializes Git, and starts the interactive terminal UI. To add an agent to an existing project, pass a path: cd myapp npx eve@latest init . Like the ai package, eve bundles its full documentation, so coding agents can read it locally from node_modules/eve/docs. See Coding Agents for the same workflow with the AI SDK. A Minimal Example An eve agent lives in an agent/ directory. Replace the system prompt in agent/instructions.md: agent/instructions.mdYou are a concise weather demo assistant. Tell users that the weather data is mocked. Add a tool at agent/tools/get_weather.ts. The filename is the tool name the model sees: agent/tools/get_weather.tsimport { defineTool } from 'eve/tools'; import { z } from 'zod'; export default defineTool({ description: 'Return mock weather data for a city.', inputSchema: z.object({ city: z.string().min(1) }), async execute({ city }) { return { city, condition: 'Sunny', temperatureF: 72 }; }, }); Choose the model in agent/agent.ts: agent/agent.tsimport { defineAgent } from 'eve'; export default defineAgent({ model: 'openai/gpt-6-luna-fast', reasoning: 'high', }); When to Choose eve The AI SDK gives you the primitives; eve is the production framework around them. Use eve when you want a complete production agent — durable, long-running work across channels, schedules, and approvals — without assembling those pieces yourself. Use ToolLoopAgent when you are assembling your own model-and-tools loop inside an application. Use WorkflowAgent from @ai-sdk/workflow when you need durable, resumable execution with explicit workflow steps. Use Chat SDK when you are adding an agent to chat platforms. Next Steps eve documentation — the full project layout and guides eve on GitHub — source code and discussions PreviousChat PlatformsNextOverview