Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

SubagentLimits.md

57 lines975 Bytes

1---
2id: SubagentLimits
3title: SubagentLimits
4---
5​
6Defined in: packages/ai/src/activities/chat/agents/limits.ts:5
7​
8Limits for a whole subagent tree. The root run makes one budget, and every
9child shares it, so a child cannot reset it.
10​
11## Properties
12​
13### maxCalls?
14​
15```ts
16optional maxCalls?: number;
17```
18​
19Defined in: packages/ai/src/activities/chat/agents/limits.ts:11
20​
21How many children the whole tree may start.
22​
23***
24​
25### maxConcurrent?
26​
27```ts
28optional maxConcurrent?: number;
29```
30​
31Defined in: packages/ai/src/activities/chat/agents/limits.ts:9
32​
33How many children one run may have running at once.
34​
35***
36​
37### maxDepth?
38​
39```ts
40optional maxDepth?: number;
41```
42​
43Defined in: packages/ai/src/activities/chat/agents/limits.ts:7
44​
45How deep the tree may grow. The root run is depth 0.
46​
47***
48​
49### timeoutMs?
50​
51```ts
52optional timeoutMs?: number;
53```
54​
55Defined in: packages/ai/src/activities/chat/agents/limits.ts:13
56​
57How long one child may run. Never later than its parent's own deadline.