Skip to Content
Anuma SDKReactInternalFunctionsformatFileProcessingNotes

formatFileProcessingNotes

formatFileProcessingNotes(statuses: FileProcessingStatus[], options: object): string | null

Defined in: src/lib/processors/fileStatusNotes.ts:19 

One line per file the model did NOT get, saying why — e.g. [order.pdf could not be read: the file is larger than 10 MB].

Put these in the same <attached_files> part as the extracted contents so the model can tell the user exactly which attachment it could not read instead of guessing (“an unreadable image placeholder”). Returns null when every file was read.

Parameters

ParameterType

statuses

FileProcessingStatus[]

options

object

options.maxFileSizeBytes?

number

Returns

string | null

Last updated on