Skip to content

@sqlrooms/ai / getChatMessageAttachments

Function: getChatMessageAttachments() ​

getChatMessageAttachments(message): FileUIPart[]

Returns the file parts attached to a UI message.

Parameters ​

ParameterType
messageUIMessage<unknown, UIDataTypes, UITools> | undefined

Returns ​

FileUIPart[]