eve-compat
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseDeploy eve projects on Zavu
在Zavu上部署eve项目
Zavu compiles an eve-layout project into a first-class Zavu agent. The user's
files are never edited: becomes the system prompt,
each becomes a tool named , and Zod
objects are converted to JSON Schema automatically.
agent/instructions.mdagent/tools/<name>.ts<name>inputSchemaZavu会将eve-layout项目编译为一等Zavu Agent。用户的文件不会被修改:会成为system prompt,每个会成为名为的工具,Zod的对象会自动转换为JSON Schema。
agent/instructions.mdagent/tools/<name>.ts<name>inputSchemaCommands
命令
sh
undefinedsh
undefinedImport from GitHub and deploy in one step (also works for Zavu-native repos):
从GitHub导入并一步完成部署(同样适用于Zavu原生仓库):
npx zavudev import owner/repo --sender sndr_123
npx zavudev import owner/repo#branch --root apps/agent # monorepo / branch
npx zavudev import owner/repo --sender sndr_123
npx zavudev import owner/repo#branch --root apps/agent # 单体仓库 / 指定分支
Private repos: set GITHUB_TOKEN in the environment (sent only to GitHub).
私有仓库:在环境中设置GITHUB_TOKEN(仅发送给GitHub)。
Deploy a local eve project (detected by agent/instructions.md):
部署本地eve项目(通过agent/instructions.md自动检测):
cd my-eve-agent && npx zavudev deploy --sender sndr_123
The sender can come from `--sender` (inlined at compile time) or the
`SENDER_ID` function secret (`npx zavudev fn secrets set SENDER_ID sndr_123`).
Without either, the agent deploys but stays disconnected until a sender is
attached in the dashboard.cd my-eve-agent && npx zavudev deploy --sender sndr_123
Sender信息可来自`--sender`参数(编译时内联)或`SENDER_ID`函数密钥(`npx zavudev fn secrets set SENDER_ID sndr_123`)。如果两者都未设置,Agent会完成部署但保持断开状态,直到在控制台中绑定Sender。What maps
映射关系
| eve | Zavu |
|---|---|
| system prompt (required) |
| agent model; non-string configs (provider instances, |
| tools, named by filename stem |
Zod / JSON Schema | JSON Schema |
| installed server-side; the |
| eve | Zavu |
|---|---|
| system prompt(必填) |
| Agent模型;非字符串配置(如提供商实例、 |
| 工具,按文件名主干命名 |
Zod / JSON Schema | JSON Schema |
| 在服务器端安装; |
What does NOT run on Zavu (always tell the user)
Zavu不支持的功能(务必告知用户)
The deploy prints a compatibility report; these produce explicit warnings:
- — unnecessary: Zavu senders are the channels.
agent/channels/ - — cron is not available on Zavu Functions yet.
agent/schedules/ - — not loaded at runtime; fold content into
agent/skills/or a knowledge base.instructions.md - ,
agent/subagents/,agent/sandbox/,agent/connections/— not supported. Agents that depend on them should run on eve's own runtime.evals/ - Tool gates and
approval— ignored per tool, with warnings.toModelOutput - options
agent.ts,reasoning,compaction,limits,modelOptions— ignored, with warnings.outputSchema
Tools run on every channel — plain text (SMS/WhatsApp/Telegram), voice, and
flow steps — with up to 5 tool rounds per reply. The one exception is
: a dry run never executes tools (that would fire real webhooks)
and says so in its warnings.
toolagents test部署过程会生成兼容性报告,以下情况会触发明确警告:
- — 无需使用:Zavu的Sender即为渠道。
agent/channels/ - — Zavu Functions目前不支持定时任务(cron)。
agent/schedules/ - — 运行时不会加载;请将内容合并到
agent/skills/或知识库中。instructions.md - 、
agent/subagents/、agent/sandbox/、agent/connections/— 不支持。依赖这些功能的Agent应运行在eve自身的运行时环境中。evals/ - 工具的校验和
approval— 会被忽略,并针对每个工具发出警告。toModelOutput - 中的
agent.ts、reasoning、compaction、limits、modelOptions选项 — 会被忽略,并发出警告。outputSchema
工具可在所有渠道运行——纯文本(SMS/WhatsApp/Telegram)、语音以及流程步骤——每次回复最多支持5轮工具调用。唯一例外是:试运行永远不会执行工具(避免触发真实Webhook),并会在警告中说明这一点。
toolagents testRequirements and troubleshooting
要求与故障排查
- Compiling an eve layout needs resolvable in the project (
esbuild).npm install -D esbuildadds and installs it automatically; onlynpx zavudev importskips that.--no-install - must be an object schema —
inputSchemaor a JSON Schema withz.object({...}). Exotic Zod types fall back to a permissive schema with a warning in the build logs.type: "object" - After deploying: for the agent id, then
npx zavudev agents listfor a dry run that delivers nothing and charges nothing.npx zavudev agents test <agentId> --message "hi" - Redeploy after edits with — the reconcile summary (
npx zavudev deploy/+/~/=) is the source of truth for what changed.-
- 编译eve布局需要项目中可解析到(执行
esbuild安装)。npm install -D esbuild会自动添加并安装它;仅当使用npx zavudev import参数时才会跳过此步骤。--no-install - 必须是对象模式——
inputSchema或带有z.object({...})的JSON Schema。特殊Zod类型会回退到宽松模式,并在构建日志中发出警告。type: "object" - 部署完成后:使用获取Agent ID,然后执行
npx zavudev agents list进行试运行,此操作不会发送消息也不会产生费用。npx zavudev agents test <agentId> --message "hi" - 修改后重新部署执行——协调摘要(
npx zavudev deploy/+/~/=)是变更内容的权威来源。-