PersistentAI API Documentation / @persistent-ai/fireflow-types / buildLLMInputSchema
Function: buildLLMInputSchema()
buildLLMInputSchema(
toolDef):ToolInputSchema
Defined in: packages/fireflow-types/src/tool/schema-builder.ts:22
Builds an LLM-ready input schema by filtering out pre-filled ports.
When a node is used as a tool in a flow, some of its input ports may already have values from incoming edges. These pre-filled ports should NOT appear in the schema sent to the LLM — the LLM should only provide values for ports that aren't already connected.
Parameters
toolDef
The full tool definition with port metadata
Returns
A filtered ToolInputSchema excluding pre-filled ports