> 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/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:

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

The question should be specific, self-contained, and written in natural language.
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.
