106
const subagent = tc.content?.find((c): c is ToolResultSubagentContent => c.type === ToolResultContentType.Subagent);
107
if (subagent) {
109
>
id: generateUuid(),
110
>
parentId,
111
>
timestamp: nextTimestamp(),
112
>
type: 'subagent.started',
113
>
data: {
114
>
toolCallId: tc.toolCallId,
115
>
agentName: subagent.agentName ?? subagent.title,
116
>
agentDisplayName: subagent.title,
117
>
agentDescription: subagent.description ?? '',
118
>
},
119
>
});
120
>
}
121
push({
122
id: generateUuid(),