import { resolveOutputStyleContent } from '../services/output-style.js';
export function summarizeResult(text) {
    const normalized = text.trim().replace(/\s+/g, ' ');
    if (!normalized)
        return 'Completed agent execution';
    return normalized.length > 160 ? `${normalized.slice(0, 157)}...` : normalized;
}
export function appendOutputStyleToPrompt(prompt, outputStyle) {
    const style = resolveOutputStyleContent(outputStyle)?.trim();
    if (!style)
        return prompt;
    return [
        prompt.trimEnd(),
        '',
        'Output style instructions:',
        style,
    ].join('\n');
}
//# sourceMappingURL=agent-runtime-types.js.map