OptionalfileHow the files are inserted relative to the files already pending in the message input.
Defaults to MessageInputFileInsertionType.APPEND.
OptionalfilesThe files to add to the pending files of the message input, for example taken from a file input (<input type="file">)
or constructed programmatically via new File(...).
The same validation as for manually selected files applies (allowed file types and maximum size).
If omitted, the pending files are left unchanged.
An empty array combined with MessageInputFileInsertionType.REPLACE removes all pending files.
OptionalmessageThe text to insert into the message input. If omitted, the value of the message input is left unchanged. An empty string combined with MessageInputTextInsertionType.REPLACE clears the message input.
OptionaltextHow the text is inserted relative to the current value of the message input. No separator is added between the current value and the inserted text.
Defaults to MessageInputTextInsertionType.APPEND.
Content to copy into the message input.
At least one of messageText and files must be set.