Open History to see the last commit
1---
2id: SubagentForward
3title: SubagentForward
4---
5
6Defined in: packages/ai/src/activities/chat/agents/bound.ts:88
7
8The fields a child `chat()` needs, in one spread:
9`chat({ adapter, messages, ...ctx.forward })`.
10
11## Properties
12
13### abortController
14
15```ts
16abortController: AbortController;
17```
18
19Defined in: packages/ai/src/activities/chat/agents/bound.ts:99
20
21Aborts when the parent run or the subagent group stops.
22
23***
24
25### parentRunId
26
27```ts
28parentRunId: string;
29```
30
31Defined in: packages/ai/src/activities/chat/agents/bound.ts:91
32
33***
34
35### parentSubagentRunId?
36
37```ts
38optional parentSubagentRunId?: string;
39```
40
41Defined in: packages/ai/src/activities/chat/agents/bound.ts:96
42
43The subagentRunId of the child that started this one, for a nested child.
44
45***
46
47### promptCache?
48
49```ts
50optional promptCache?: PromptCacheRetention;
51```
52
53Defined in: packages/ai/src/activities/chat/agents/bound.ts:101
54
55The prompt cache retention of the parent call, when it has one.
56
57***
58
59### resume?
60
61```ts
62optional resume?: RunAgentResumeItem[];
63```
64
65Defined in: packages/ai/src/activities/chat/agents/bound.ts:97
66
67***
68
69### runId
70
71```ts
72runId: string;
73```
74
75Defined in: packages/ai/src/activities/chat/agents/bound.ts:90
76
77***
78
79### subagentName
80
81```ts
82subagentName: string;
83```
84
85Defined in: packages/ai/src/activities/chat/agents/bound.ts:94
86
87The agent name. Middleware reads it as `ctx.subagentName`.
88
89***
90
91### subagentRunId
92
93```ts
94subagentRunId: string;
95```
96
97Defined in: packages/ai/src/activities/chat/agents/bound.ts:92
98
99***
100
101### threadId
102
103```ts
104threadId: string;
105```
106
107Defined in: packages/ai/src/activities/chat/agents/bound.ts:89