validate_messages | R Documentation |
Validate a list of messages to ensure they have the required fields and the correct data types for the chat()
function.
validate_messages(messages)
messages |
A list of messages, each of list class. |
TRUE if all messages are valid, otherwise warning messages are printed and FALSE is returned.
validate_messages(create_messages(
create_message("Be friendly", "system"),
create_message("Hello")
))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.