Interface: BinaryBlock
@providerprotocol/ai / @providerprotocol/ai / BinaryBlock
Interface: BinaryBlock
Section titled “Interface: BinaryBlock”Defined in: src/types/content.ts:370
Binary content block for arbitrary data.
A generic block type for data that doesn’t fit other categories.
Example
Section titled “Example”const binaryBlock: BinaryBlock = { type: 'binary', data: pdfBytes, mimeType: 'application/pdf', metadata: { filename: 'document.pdf', pages: 10 }};Properties
Section titled “Properties”data:
Uint8Array
Defined in: src/types/content.ts:375
Raw binary data
metadata?
Section titled “metadata?”
optionalmetadata:Record<string,unknown>
Defined in: src/types/content.ts:381
Additional metadata about the binary content
mimeType
Section titled “mimeType”mimeType:
string
Defined in: src/types/content.ts:378
MIME type of the data
type:
"binary"
Defined in: src/types/content.ts:372
Discriminator for binary blocks