Validate a list of messages to ensure they have the required fields and the correct data types for the chat()
function.
Examples
validate_messages(create_messages(
create_message("Be friendly", "system"),
create_message("Hello")
))
#> [1] TRUE