pub fn last_assistant_index(messages: &[Message]) -> Option<usize>
Find the index of the last assistant message.