> For the complete documentation index, see [llms.txt](https://docs.convai.com/api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/core-concepts.md).

# 核心概念

“核心概念”部分解释了运行在场景中每个 Convai 角色之下的系统——负责管理连接的运行时层、管控每个角色生命周期的会话状态机、控制谁在何时发言的轮替系统，以及让你的场景对运行时发生的事情作出反应的事件组件。

从……开始 **运行时架构** 如果你刚接触 SDK 内部实现。需要配置某个特定系统或了解为什么 SDK 会以某种方式运行时，再阅读其他页面。

<table data-view="cards"><thead><tr><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>运行时架构</strong><br>运行时层、接口清单，以及你可以替换的内容。</td><td><a href="/pages/4cf766d486eec86e65f9c3e4e1a71435373ac7ec">/pages/4cf766d486eec86e65f9c3e4e1a71435373ac7ec</a></td></tr><tr><td><strong>会话生命周期</strong><br>状态机、按角色划分的会话、持久化和重连。</td><td><a href="/pages/1b034b7638b343540a3b205274bd08beaff9d15e">/pages/1b034b7638b343540a3b205274bd08beaff9d15e</a></td></tr><tr><td><strong>轮流发言模式</strong><br>免提与按键通话——逐一解释每个字段和策略。</td><td><a href="/pages/251e0bf7030a5f742a1182e15529c0604e3ee150">/pages/251e0bf7030a5f742a1182e15529c0604e3ee150</a></td></tr><tr><td><strong>语音活动检测</strong><br>服务器默认值与自定义检测阈值，在连接时确定。</td><td><a href="/pages/9e1663ddbf1fca5a96f17b81e99da40d8aee52e5">/pages/9e1663ddbf1fca5a96f17b81e99da40d8aee52e5</a></td></tr><tr><td><strong>事件系统</strong><br>中继组件、负载类型和订阅模式。</td><td><a href="/pages/0bd691fc4d8a06b0dbafd0f28b11f39be6f57f9a">/pages/0bd691fc4d8a06b0dbafd0f28b11f39be6f57f9a</a></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/core-concepts.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
