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

code-execution 能力包

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

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

code-execution

packages/ai/code-execution

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

就绪

能力图谱

ai/code-execution
code-execution
工具策略
流式 UI
输出

执行账本

  1. 1
    输入
    packages/ai/code-execution/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 延迟
128 毫秒
事件/秒
637/秒
提供方
7
评测分
85
使用方式code-execution.ts
typescript
code-execution.ts
1import { codeExecution } from "@nebutra/code-execution";
2
3const result = await codeExecution.run({
4  tenantId: org.id,
5  // code-execution is part of the AI runtime — composable with other AI primitives.
6  input: payload,
7});