Skip to content
全部能力
AI 运行时packages/ai

ai 能力面

把智能体循环、RAG、工具协议、沙箱执行和多模态流水线收束到应用外部。

打开文档
稳定性
稳定
作用域
全局
边界
packages/ai

ai

packages/ai

AI 运行时 · 工具注册表 · MCP 边界

就绪

能力图谱

ai/ai
3d pipeline
agent runtime
agents
ai
ai primitives
ai providers

执行账本

  1. 1
    输入
    packages/ai/request
  2. 2
    规划
    message reducer -> model turn
  3. 3
    工具策略
    tool schema · auth scope · rate limit
  4. 4
    流式 UI
    events -> UI state machine
  5. 5
    输出
    @nebutra/agents response envelope
p50 延迟
92 毫秒
事件/秒
459/秒
提供方
7
评测分
83
使用方式agent.ts
typescript
agent.ts
1import { Agent, tool } from "@nebutra/agents";
2import { z } from "zod";
3
4const agent = new Agent({
5  model: "claude-sonnet-4-6",
6  tools: {
7    search: tool({
8      description: "Search internal docs",
9      parameters: z.object({ query: z.string() }),
10      execute: async ({ query }) => searchDocs(query),
11    }),
12  },
13});
14
15const stream = await agent.stream({
16  prompt: "Find Q4 revenue trends",
17  maxSteps: 6,
18});
19
20for await (const event of stream) {
21  console.log(event.type, event.data);
22}
Three.js · GLTF 2.0
Mesh ingest
.obj.fbx.usd
Decimate
18k → 4k tris
x
Pack GLB
2.4 MB
cinema · atelier-canvas pipeline
3d-pipeline能力包

3d-pipeline

3D 资产生成 + 渲染 — 文生 mesh + USD 导出 + Three.js 预览;backend 走 GPU pool 路由。

查看
agent-runtime能力包

agent-runtime

更底层的 agent 执行 — message reducer、tool 调用、流式状态机;@nebutra/agents 在其之上封装。

查看
@nebutra/agents · unified surface
  • generateText({ model, prompt }) → { text }
  • streamText({ model, prompt }) → AsyncIterable
  • embed({ model, value }) → { embedding }
OpenAIAnthropicGoogleDeepSeek
provider-agnostic
agents能力包

agents

多步骤 agent 运行时 — Vercel AI SDK 为底、tool registry、流式 UI、MCP 接入;所有 Sailor agentic 能力的脚手架。

查看
5 primitives · 0 deps
Message={ role, content[] }
Tool={ name, params, execute }
StreamEvent="delta" | "tool_call" | ...
Actor={ id, type, tenantId }
consumed by @nebutra/agents
ai-primitives能力包

ai-primitives

所有 AI 包共享的辅助 — token 计数、prompt 模板、stream 解析、退避重试;不依赖具体 provider。

查看
Provider Matrix
12 providers · 41 models
ModelContext$/1M tok
claude-sonnet-4-61M$3
gpt-4o128K$5
deepseek-v364K$0.27
gemini-pro-2.52M$2.5
metadata only · runtime via @nebutra/agents
ai-providers能力包

ai-providers

Provider 元数据 — 每百万 token 单价、context window、模态;驱动模型选择与成本估算。

查看
ai-brushes
canvas
·background
·brushwork
·effects
layers · masks · ai-brushes
atelier-canvas能力包

atelier-canvas

无限设计画布 — 多人光标、图层面板、frame 导出;所有 atelier play 的绘制载体。

查看
audio pipeline
转写
降噪
母带
Whisper · RNNoise · FFmpeg
audio-pipeline能力包

audio-pipeline

音频处理链 — voice clone、降噪、转写、摘要;每段以 async iterator 串流。

查看
brand-genesis · aigenerated · 12s
  • p1
  • p2
  • p3
  • p4
  • p5
Aria Display+Inter Sans
  • Make work flow
  • Calm power

AI brand kit · 5 variations

brand-genesis能力包

brand-genesis

品牌生成流 — 选调色板 / 字组合 / 动效 preset,产出同步的 @nebutra/brand 覆写与 Figma 预览链接。

查看
browser-control能力包

browser-control

面向 agent 的无头浏览器驱动 — Vercel Agent Browser 优先,Playwright 兜底;截图 / 点击 / 输入 / 求值。

查看
intro ·b-roll ·interview ·cuts ·titles ·outro
2:14 / 4:32
Remotion · 4K · HDR
48 transitions · grading LUT
cinema能力包

cinema

Atelier 电影模式 — 全屏沉浸 + 计时场景播放;最适合 demo play 或排练 pitch。

查看
sandbox.runCommand
Node22 · isolate · egress-blocked
const total = orders
  .filter(o => o.status === 'paid')
  .reduce((s, o) => s + o.amount, 0)
→ 12,840
47ms 内执行完成
Vercel Sandbox · 安全执行不可信代码
code-execution能力包

code-execution

面向 agent 的沙箱代码执行 — JS / Python / shell;短生命周期容器、网络隔离、由 @nebutra/permissions 限权。

查看
  • packages/iam/auth/src/handler.ts:420.91
    export async function handler(req: Request)
    x
  • packages/iam/auth/src/middleware.ts:180.84
    const auth = await handler.verify(token)
    x
  • backends/gateway/src/auth.ts:70.78
    import { handler } from "@nebutra/auth"
    x
12,401 symbols · tree-sitter · 84ms
code-index能力包

code-index

面向 agent 的代码仓索引 — symbol graph、embedding、文件 watcher;agent 无需 grep 即可回答 "X 在哪定义"。

查看
cofounder match2,401 candidates
92% compatibility match
x
EngineeringSalesNYCYC alum
mutual interest · double-opt-in
cofounder-match能力包

cofounder-match

按技能 + 阶段匹配 cofounder — 短表单后输出排序候选,标注共同兴趣与可信引荐路径。

查看
content_store·12,401 chunks
pricing-2025.md48 chunks
embedded
eu-gdpr.pdf127 chunks
embedded
q4-revenue.csv12 chunks
embedded
1,536-dim embeddings·tenant-scoped
content-store能力包

content-store

Headless CMS 适配器 — Sanity / Strapi / Notion 统一为一个 ContentEntry<T> 读 API;驱动营销页面与产品文案。

查看
document pipeline
PDF· 上传
OCR· 47页
切块· 248
向量化
unstructured.io · multi-format
document-pipeline能力包

document-pipeline

PDF / docx / markdown 摄入 — chunk、表格感知抽取、embed、入 @nebutra/knowledge-base;纯图页用 OCR 回落。

查看
防护已开启
4 层
内容审核
今日 0 拦截
PII 脱敏
今日脱敏 12
注入检测
今日捕获 2
按主体限流
正常
OpenAI Moderation · 正则 + LLM 网关
ecosystem-safety能力包

ecosystem-safety

上线前安全自检 — license 扫描、依赖漏洞审计、违禁内容检测;在 play 进市场前暴露阻塞项。

查看
event-log能力包

event-log

通用事件日志原语 — append、查询、时间窗聚合;为 audit / analytics / trace-store 提供底层记录。

查看
policy.execution · 4 条规则
task.kind === "render"Vercel Sandbox
task.duration > 5minAWS Lambda
task.tenant === "internal"local-runner
defaultVercel Sandbox
逐任务评估 · 3ms p50
execution-policy能力包

execution-policy

决定 agent 任务路由到何处的策略规则 — render → Vercel Sandbox / 长任务 → Lambda / 内部 → local-runner。

查看
Lessons archive · 12 projects
  • idea·"Acme SaaS"2024-08no PMF
  • idea·"VR Yoga"2024-12pivot needed
  • idea·"AI Chef"2025-02competitor moved fast
private journal · postmortem template
founder-cemetery能力包

founder-cemetery

失败创业纪念馆 — 匿名化复盘 + 失败原因 tag;只读目录,作为高频失败模式 dashboard 的数据源。

查看
247,401 / 1,000,000 tokens· 24.7%
claude-sonnet-4-6
system4%
history6%
rag-context3%
prompt1%
buffer1%
truncation via reciprocal rank
12ms
generation-context能力包

generation-context

Token 预算的上下文窗口管理 — 系统 prompt、RAG、用户历史、scratchpad;窗口爆掉时决定淘汰策略。

查看
idea-plaza·1,247 ideas
+12 today
AI-native dataroom
8412
LLM observability
428
Edge embeddings store
284
public·double-opt-in collab
idea-plaza能力包

idea-plaza

公开 idea 广场 — 提交、点赞、评论;atelier play 在创始人问 "做什么" 时的种子池。

查看
Original
1024px
4.8 MB
Optimized
1024px WebP
240 KB
ResizeUpscaleCompress
Sharp · Vercel Image · WebP/AVIF
image-pipeline能力包

image-pipeline

图像生成 + 变换流水线 — provider 路由、水印 + 安全过滤、输出缓存、按租户 quota。

查看
knowledge-base能力包

knowledge-base

面向 RAG 的文档库 + indexer;监听 S3 / Notion / GitHub 源、调度重嵌入、把新鲜度暴露给 agent。

查看
graph
247 entities · 1,847 edges
Acme Corp
Project Atlas
OpenAI
Mira
owns
depends_on
employs
Cypher-compatible · typed edges
knowledge-graph能力包

knowledge-graph

基于 @nebutra/graph-model 的实体 + 关系存储;agent 可直接走 "客户 → 发票 → 产品",无需绕 SQL。

查看
knowledge-rag能力包

knowledge-rag

检索增强生成流水线 — chunk → embed → store → retrieve → rerank;vector store 可插拔。

查看
landing-builder能力包

landing-builder

积木式落地页生成器 — 拖动预设 section、原位改文案、一键发到子域名。

查看
gateway
247K reqs/day · 99.4% ok
OpenAI·248ms·$0.012·primary route
Anthropic·312ms·$0.018·fallback
DeepSeek·184ms·$0.003·cost-saver
route by latency · cost · capability
llm-gateway能力包

llm-gateway

LLM 调用的 provider 路由层 — 回退链、按租户 quota、响应缓存、用量计量统一接入。

查看
offline
local · sentence-transformers/all-MiniLM-L6-v2
12ms per chunk·CPU only
zero egress·privacy preserved
local-embedding能力包

local-embedding

基于 ONNX / WebGPU 的端侧 embedding;短文本、隐私敏感、provider 限流时省去往返。

查看
mcp.tool_catalog · 47 tools
  • search_docs · query corpus247ms
  • read_file · fs.read at path12ms
  • run_query · SQL on tenant DB84ms
  • fetch_url · HTTP get URL412ms
MCP 1.0 · stdio · streamable
mcp能力包

mcp

Model Context Protocol server 原语 — 注册 tool、暴露 resource、流式订阅;可作为 Sailor 内嵌或独立部署。

查看
Q4 企业级外联
运行中 · 47 位潜在客户
第 1 天 · 自我介绍
第 3 天 · 案例
第 7 天 · 邀约 Demo
第 14 天 · 跟进
已发 · 247/打开 · 38%/回复 · 12%
Apollo · LinkedIn · email
outreach-engine能力包

outreach-engine

Cold-outreach 调度器 — 名单去重、按 persona 撰写、SES/Resend 投递、自动识别回复;热回复回灌 @nebutra/agents。

查看
playbook·onboarding-saas-v2·v1.4.2
setup-database·12s
import-team·4s
seed-content·8s (running)
notify-adminpending
hot-reload·sandbox-safelive
x
play-loader能力包

play-loader

Atelier play 的热重载 loader — 沙箱 iframe、消息桥、保存即持久化。

查看
marketplace · 1,247 playbooks
  • Stripe Onboarding
    2.4k4.8
  • Slack Recap
    1.2k4.7
  • Notion Sync
    8474.6
  • Linear Triage
    4124.5
community-curated · MIT licensed
play-marketplace能力包

play-marketplace

可分享 atelier play 的市场壳 — 发现、评分、安装、署名。

查看
registry · 24 providers · 8 categories
Models:
OpenAIAnthropicGoogle
Embeddings:
CohereVoyagelocal
Vision:
OpenAIAnthropic
Voice:
ElevenLabsOpenAIAzure
typed metadata · zero runtime
provider-registry能力包

provider-registry

支持的所有 provider 权威目录 — billing / queue / search / LLM — 含能力矩阵与按区可用性。

查看
Imagehero3s · fade
VOaria voice8s
Captionskineticauto-sync
Remotion9:1660fps
reel能力包

reel

竖屏短视频原语 — 抓取 atelier 高光、走 TTS 流水线自动加字幕、发到社媒通道。

查看
sandbox.create
isolate
sandbox · node22 · 256MB · isolated
· network: egress-only· filesystem: tmpfs· timeout: 30s
运行
上次执行87ms
exit 0
Vercel Sandbox · 安全执行不可信代码
sandbox-runtime能力包

sandbox-runtime

Vercel Sandbox + Lambda + 本地 runner 适配器;execute() 统一入口,按策略规则选择。

查看
support-deflector能力包

support-deflector

内嵌 AI 客服层 — 从文档与历史工单回答,先省一轮人工;无法解决时携完整记录转人工。

查看
time-machine·247 versions·replay any
5m
18m
1h
4h
1d
3d
1w
2w
active · 4h ago
point-in-time recovery · CRDT-safe
time-machine能力包

time-machine

项目历史回看器 — 每次保存打 snapshot、可从任一历史帧拉新 play、双 snapshot 对比 diff。

查看
tool-registry·247 tools·12 categories
search_docsv1.4.2retrieval
send_emailv2.1.0comms
query_dbv1.8.1data
run_shellv0.9.4system
versioned · audited · per-tenant ACL
tool-registry能力包

tool-registry

运行时 tool catalog — schema、描述、安全等级;在 agent 之间热插拔,无需重新部署。

查看
~3 min processing · GPU
Source
1080p.mp4
Transcode
H.264 + AV1
Thumbnails
12 frames
HLS
240p..1080p
FFmpeg · CDN-ready · multi-bitrate
video-pipeline能力包

video-pipeline

长视频流水线 — 切片、字幕、b-roll、渲染;长阶段通过 queue 转给 backends/python。

查看
LIVE · 0:42
connected
Aria voice<120ms latency
OpenAI Realtime · WebRTC · push-to-talk
voice-realtime能力包

voice-realtime

实时语音回环 — 输入 ASR、模型流式、输出 TTS — 端到端 < 300ms;桥接 OpenAI Realtime + Deepgram + ElevenLabs。

查看