Skip to content

@sqlrooms/ai-core / getChatMessageAttachments

Function: getChatMessageAttachments()

getChatMessageAttachments(message): FileUIPart[]

Returns the file parts attached to a UI message.

Parameters

ParameterType
messageUIMessage<unknown, UIDataTypes, UITools> | undefined

Returns

FileUIPart[]