565
}
566
case 'skill.invoked': {
568
>
const parentToolCallId = resolveParentToolCallId(e.agentId, undefined);
569
>
const builder = targetBuilderFor(parentToolCallId)
570
?? (parentBuilder = newTurnBuilder(generateUuid(), ''));
572
parentTurnState = TurnState.Cancelled;
573
}
575
>
kind: ResponsePartKind.ToolCall,
576
>
toolCall: {
577
>
status: ToolCallStatus.Completed,
578
>
toolCallId: synth.toolCallId,
579
>
toolName: synth.toolName,
580
>
displayName: synth.displayName,
581
>
invocationMessage: synth.invocationMessage,
582
>
success: true,
583
>
pastTenseMessage: synth.pastTenseMessage,
584
>
confirmed: ToolCallConfirmationReason.NotNeeded,
585
>
} satisfies ToolCallCompletedState,
586
>
});
587
>
break;
588
>
}
589
case 'abort': {
590
const parentToolCallId = resolveParentToolCallId(e.agentId, undefined);