addMessage

Adds a message to the thread.

Parameters

message

The message to add

Throws

if the message is not a user message, or if any of the metadata keys or values are too long