import type { ChatTurnMessage } from '../types.js';

export default function formatChatHistoryAsString(history: ChatTurnMessage[]): string {
  return history
    .map((m) => `${m.role === 'assistant' ? 'AI' : 'User'}: ${m.content}`)
    .join('\n');
}
