> 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/concepts.md). Agents can also search and read this documentation through its [MCP server](https://tinyhumans.gitbook.io/openhuman/~gitbook/mcp).

# 概念

Embed 公共 API 背后的所有权和生命周期规则。

先从 Runtime 和 agents 开始，了解哪些设置是共享的。然后跟踪一个请求的生命周期，经过提供方选择、工具、审批及其持久会话。范围表区分了 Runtime 的组成与主机必须按 agent 或 profile 隔离的状态。

* [运行时](https://tinyhumans.gitbook.io/openhuman/zh/kai-fa/embed/concepts/runtime.md)：Runtime 拥有一个已初始化的核心，以及其 agents 共享的进程级资源。
* [Runtime 默认值](https://tinyhumans.gitbook.io/openhuman/zh/kai-fa/embed/concepts/runtime-defaults.md)：Runtime 默认值构成新注册 agents 的起点；显式的 agent 设置会覆盖它们。
* [Agents](https://tinyhumans.gitbook.io/openhuman/zh/kai-fa/embed/concepts/agents.md)：Agent 在共享的 Runtime 上结合了一个身份、派生上下文以及独立配置的工具/模型行为。
* [访问与审批](https://tinyhumans.gitbook.io/openhuman/zh/kai-fa/embed/concepts/access-approvals.md)：Access 配置回合身份和权限策略；由主机决定搁置请求如何接收 निर्णय。
* [提供方](https://tinyhumans.gitbook.io/openhuman/zh/kai-fa/embed/concepts/providers.md)：提供方提供一条路由或原生 ChatModel 实现，并支持 agent 覆盖以及可选的有序回退。
* [轮次与会话](https://tinyhumans.gitbook.io/openhuman/zh/kai-fa/embed/concepts/turns-sessions.md)：一次 turn 是一个原生模型/工具循环；一个 session 是使后续轮次成为一次对话的持久身份。
* [工具](https://tinyhumans.gitbook.io/openhuman/zh/kai-fa/embed/concepts/tools.md)：工具目录只暴露允许的执行面；主机工具使用与内置工具相同的原生 Tool 合同。
* [MCP](https://tinyhumans.gitbook.io/openhuman/zh/kai-fa/embed/concepts/mcp.md)：MCP 服务器为一个 agent 添加远程工具发现和执行能力，并带有显式的服务器配置和工具允许列表。
* [技能](https://tinyhumans.gitbook.io/openhuman/zh/kai-fa/embed/concepts/skills.md)：技能是从 agent 自己的主目录中发现的、复制而来的指令和资源包。
* [记忆](https://tinyhumans.gitbook.io/openhuman/zh/kai-fa/embed/concepts/memory.md)：类型化的 memory 门面会在学习、检索或遗忘记录之前先绑定命名空间。
* [Cron](https://tinyhumans.gitbook.io/openhuman/zh/kai-fa/embed/concepts/cron.md)：Cron 提供持久的命名作业、显式的立即运行执行，以及面向已注册 agents 的作业历史。
* [通道](https://tinyhumans.gitbook.io/openhuman/zh/kai-fa/embed/concepts/channels.md)：通道监听器将外部消息绑定到一个已注册的 agent，并将传输生命周期保持在主机控制之下。
* [配置文件与 SaaS](https://tinyhumans.gitbook.io/openhuman/zh/kai-fa/embed/concepts/profiles-saas.md)：ProfileRuntime 按工作区、凭据、对话和事件流隔离已认证用户。
* [补全器](https://tinyhumans.gitbook.io/openhuman/zh/kai-fa/embed/concepts/completer.md)：Completer 在不启动 Runtime 或进入 agent 工具循环的情况下发送无状态模型请求。
* [Hooks 与缝合点](https://tinyhumans.gitbook.io/openhuman/zh/kai-fa/embed/concepts/hooks-seams.md)：主机缝合点替代基础设施端口；hooks 观察或控制选定的 turn 和工具边界。
* [可观测性](https://tinyhumans.gitbook.io/openhuman/zh/kai-fa/embed/concepts/observability.md)：Runtime 元数据事件跟踪生命周期和审批；turn 流携带每轮进度和最终结果。
* [测试](https://tinyhumans.gitbook.io/openhuman/zh/kai-fa/embed/concepts/testing.md)：确定性的本地提供方和显式观测可在不连接真实推理或后端服务的情况下证明行为。
* [错误](https://tinyhumans.gitbook.io/openhuman/zh/kai-fa/embed/concepts/errors.md)：类型化错误区分构建可用性、预期的领域状态、主机设置失败以及已移除的 agent 实例。
