function normalizeText(value) {
    if (typeof value !== 'string')
        return null;
    const trimmed = value.trim();
    return trimmed.length > 0 ? trimmed : null;
}
export function describeActionForVoiceTool(spec) {
    return (normalizeText(spec.inputHints?.description) ??
        normalizeText(spec.description) ??
        normalizeText(spec.inputHints?.title) ??
        normalizeText(spec.title) ??
        'Voice action');
}
//# sourceMappingURL=actionVoiceToolSummary.js.map