---
title: "Multiple conversations"
slug: plugins/unity/Samples~/MultipleConversations
---

<a id="multiple-conversations"></a>

Attach `MultipleConversationsExample` and `AstralRuntimeInitializer` to a
GameObject. Configure a generation model before starting the two independent NPC
conversations through one model executor.

Each conversation owns its native slot and stream buffer. The coroutine polls
every active slot once per frame, so one quiet NPC does not block the others.
`Cancel` uses generic request references, and teardown releases conversations
before the shared model.

Set `modelPath` and `backendName` for a real generation model. Keep
`maxBatchTokens` within the model's configured batch capacity.

Source: [View the pinned source](https://github.com/Cosmin-B/astral-runtime/blob/f2d13b77c70624ede5bc06823d4a794a4b955e10/plugins/unity/Samples~/MultipleConversations/README.md) · [Edit this source](https://github.com/Cosmin-B/astral-runtime/edit/main/plugins/unity/Samples~/MultipleConversations/README.md)
