> For the complete documentation index, see [llms.txt](https://tinyhumans.gitbook.io/openhuman/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tinyhumans.gitbook.io/openhuman/zh/kai-fa/embed/faq.md). Agents can also search and read this documentation through its [MCP server](https://tinyhumans.gitbook.io/openhuman/~gitbook/mcp).

# 嵌入常见问题

关于常见的宿主、生命周期、特性和提供方选择的答案。

## 我可以创建多个运行时吗？

普通的嵌入进程只支持一个 `运行时`；第二次构建会返回 `AlreadyRunning`。将代理添加到现有运行时。多用户主机使用 `ProfileRuntime` ，并且需要一个专用于该模式的进程。参见 [运行时](https://tinyhumans.gitbook.io/openhuman/zh/kai-fa/embed/concepts/runtime.md) 和 [配置文件](https://tinyhumans.gitbook.io/openhuman/zh/kai-fa/embed/concepts/profiles-saas.md).

## 代理克隆是独立的代理吗？

不是。它只是同一代理实例、上下文和状态的另一个句柄。注册一个不同的 `AgentSpec` ID 以创建一个独立代理。运行时凭据仍然是共享的，因此仅靠代理 ID 无法隔离已认证的客户。

## 精简是否意味着更少的依赖？

`RuntimeBuilder::lean()` 选择更小的运行时表面。Cargo 仍会编译已启用的 gate；请使用 `--no-default-features` 以及显式命名的 gate 来进行图缩减。该 [编译矩阵](https://tinyhumans.gitbook.io/openhuman/zh/kai-fa/embed/api-reference/capability-matrix.md) 会报告一个固定的默认构建，而 [精简指南](https://tinyhumans.gitbook.io/openhuman/zh/kai-fa/embed/guides/lean-headless.md) 会将这些控制项分开说明。

## 为什么 MCP 或 skills 方法会消失，而报告却说它们已被编译？

该报告描述的是核心 Cargo gate。命名的 Embed gate 也会控制外观导出。启用 Embed 的 `mcp` 或 `skills` feature，以启用其 setter/重新导出，即使核心默认项已经编译了实现。 `渠道` 在 Embed 默认项中被命名。

## 我可以在不使用 HTTP 的情况下提供进程内模型吗？

可以： `Provider::custom` 采用原生 `ChatModel<()>` 约定。提供方可以添加有序的回退链和显式的工作负载角色固定。 [提供方](https://tinyhumans.gitbook.io/openhuman/zh/kai-fa/embed/concepts/providers.md) 描述了回退在可见输出后停止的规则。

## 每次代理轮次都需要后端吗？

显式的 BYOK/本地/原生提供方可以独立于托管推理运行。托管集成、语音、计费或其他后端接口需要已安装的后端传输和凭据。使用 [TinyHumans 层](https://tinyhumans.gitbook.io/openhuman/zh/kai-fa/embed/integrations/tinyhumans-managed.md) 来处理托管调用；仅使用 Embed 会报告后端不可用。

## 旧句柄可以控制具有相同 ID 的替换项吗？

不能。移除会将取消、回调和轮询句柄绑定到原始生命周期。在拆除/清除完成之前，它会保留该 ID；之后旧句柄不能决定替换审批或发送替换轮次。丢弃句柄并不会清除其已持久化的 home。

## 为什么提示词或工具的更改没有影响恢复的线程？

恢复的会话会重用已记录的系统消息和工具声明。若提示词/工具目录已更改，请启动新会话。压缩会保留之前的生成；它不会重写旧对话。参见 [轮次和会话](https://tinyhumans.gitbook.io/openhuman/zh/kai-fa/embed/concepts/turns-sessions.md).

## 完整的构建器选项列表在哪里？

[RuntimeBuilder 设置项](https://tinyhumans.gitbook.io/openhuman/zh/kai-fa/embed/api-reference/builder-setters.md) 是根据实际被消费的公共 setter 生成的，并附带源签名。Host/weight 预设和非 setter 方法则有意通过 [API 参考](https://tinyhumans.gitbook.io/openhuman/zh/kai-fa/embed/api-reference.md).
