624
}
625
if (isTaskCompleteTool(info.toolName)) {
626
>
const summary = getTaskCompleteMarkdown(info.parameters, completion?.error?.message ?? completion?.result?.content);
mapSessionEvents.ts
627
>
if (summary) {
628
>
builder.responseParts.push({
629
>
kind: ResponsePartKind.Markdown,
630
>
id: generateUuid(),
631
>
content: summary,
632
>
});
633
>
}
634
>
if (!parentToolCallId && completion?.success && builder === parentBuilder && !parentTurnAborted) {
635
>
parentTurnState = TurnState.Complete;
636
>
}
637
>
continue;
638
>
}
639
builder.responseParts.push(makeCompletedToolCallPart(
640
completion ?? { toolCallId: request.toolCallId, success: true },