Open History to see the last commit
Defined in: packages/ai/src/activities/chat/agents/route.ts:8
Type Parameters#
TAgents#
TAgents extends ReadonlyArray<DefinedAgent>
Properties#
then?#
optional then?: readonly TAgents[number]["name"][];
Defined in: packages/ai/src/activities/chat/agents/route.ts:22
Agents that run after the other selected agents. The lead group starts
together. The then agents then run one after another in list order, and
each reads the text so far. Used only when the router picks at least one
agent from each group. Otherwise pick returns { names, order }.
when?#
optional when?: { [K in string]: string };
Defined in: packages/ai/src/activities/chat/agents/route.ts:15
Question text for every agent. The key is the agent name. Omit this and each question uses that agent's description.