Skip to content

PersistentAI API Documentation / @persistent-ai/fireflow-nodes / convertAPIPartToMessagePartWithVfs

Function: convertAPIPartToMessagePartWithVfs()

convertAPIPartToMessagePartWithVfs(part, vfsUploader): Promise<GeminiMessagePart>

Defined in: packages/fireflow-nodes/src/nodes/ai/gemini/gemini-part-converters.ts:462

Convert Gemini API Part to GeminiMessagePart format, uploading binary content to VFS. If the part contains inlineData (base64 images), uploads to VFS and replaces with vfsFile reference. Non-binary parts are passed through unchanged.

Parameters

part

Part

The API Part to convert

vfsUploader

VfsFileUploader

Function to upload binary data to VFS, returns ff:// URI

Returns

Promise<GeminiMessagePart>

GeminiMessagePart with vfsFile references instead of inlineData for binary content

Licensed under BUSL-1.1