PersistentAI API Documentation / @persistent-ai/fireflow-nodes / convertAPIPartToMessagePart
Function: convertAPIPartToMessagePart()
convertAPIPartToMessagePart(
part):GeminiMessagePart
Defined in: packages/fireflow-nodes/src/nodes/ai/gemini/gemini-part-converters.ts:382
Convert Gemini API Part to GeminiMessagePart format (internal helper). Preserves ALL fields EXACTLY as returned from the API for proper multi-turn continuity.
CRITICAL: Only copies thought if TRUE, never sets thought: false.
Parameters
part
Part
The API Part to convert
Returns
GeminiMessagePart with all fields preserved (including inlineData as-is)