1089
});
1090
}
1092
>
type: ActionType.ChatToolCallComplete,
1093
>
turnId: activeTurn.id,
1094
>
toolCallId: toolCall.toolCallId,
1095
>
result: {
1096
>
success: false,
1097
>
pastTenseMessage: `${toolCall.displayName} failed`,
1098
>
...(mayRetryWithReplacementClient ? { content: [{ type: ToolResultContentType.Text, text: `The client that was running ${toolCall.displayName} disconnected, but another active client now provides ${toolCall.displayName}. You may try calling the tool again.` }] } : {}),
1099
>
error: { message: `Client ${clientId} disconnected before completing ${toolCall.displayName}` },
1100
>
},
1101
>
});
1102
>
}
1103
>
}
1104
1105
// ---- Requests (expect a response) ---------------------------------------