PersistentAI API Documentation / @persistent-ai/fireflow-types / populateNodeValues
Function: populateNodeValues()
populateNodeValues(
node,toolDef,llmInput):void
Defined in: packages/fireflow-types/src/tool/node-from-tool.ts:352
Populates node port values from schema defaults and LLM-provided input. Orchestrates the value-setting process in phases.
Parameters
node
BaseNodeCompositional
The node to populate
toolDef
Tool definition with input schema (for defaults)
llmInput
Record<string, any>
Input values from the LLM's tool_use block
Returns
void
Throws
Error if required values missing or type mismatches