Skip to content

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

FireFlowToolDefinition

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

Licensed under BUSL-1.1