Returns messages suitable for sending to an AI provider.
List<AIMessage> get activeMessages => UnmodifiableListView(_messages);