Skip to content

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

FireFlowToolDefinition

The full tool definition with port metadata

Returns

ToolInputSchema

A filtered ToolInputSchema excluding pre-filled ports

Licensed under BUSL-1.1