Open History to see the last commit
1---
2id: subagentHostMessageId
3title: subagentHostMessageId
4---
5
6```ts
7function subagentHostMessageId(runId): string;
8```
9
10Defined in: packages/ai/src/utilities/subagent-wire.ts:194
11
12The id of the parent assistant message that hosts a routed turn's cards.
13The persistence recorder writes that message, and a handoff run passes the
14same id so the stored thread keeps one copy.
15
16## Parameters
17
18### runId
19
20`string`
21
22## Returns
23
24`string`