SELECT id, created_at, message_type, sender_type, content
FROM messages
WHERE sender_type = 'ai'
ORDER BY created_at DESC
LIMIT 10;
