Files
deepseek-harness/packages/code-runtime/README.zh.md
T

15 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# code-runtime/ — 代码执行能力家族
[English](README.md) | 中文
代码执行能力 seam(参见[能力 seam](../../.agents/notes/implemented/architecture/2026-06-13-capability-seams.md)):运行时 Service Definition,用于对宿主提供的异步绑定执行模型编写的程序,并捕获它打印和返回的内容;可替换的提供方;以及工具注册表的 [Code Mode](../core/tools/README.md) Consumer`tools: { mode: code }`,即 `run_code` 工具和按所加载运行时 `language` 生成的 SDK)。设计见 [Code Mode Agent Note](../../.agents/notes/implemented/feature/2026-06-15-code-mode.md)。这些全是**产品**包。
| 包 | 职责 | ctx key |
|---|---|---|
| [`code-runtime/`](code-runtime/README.md) | Service Definition 与共享词汇 | `ctx.codeRuntime` |
| [`code-runtime-worker/`](code-runtime-worker/README.md) | Worker 线程后端 | 注册 `ctx.codeRuntime` |
提供方在不改变 Consumer 的情况下注册该服务。子 README 负责语言、隔离和执行预算细节。
子系统参考——运行请求/结果、绑定命名空间、失败分类体系——见 [docs/subsystems/code-runtime.md](../../docs/subsystems/code-runtime.md)。