Skip to main content
LLM prompt builder node that processes JSON input into formatted prompts. This node transforms structured JSON data into text prompts that can be used directly with LLM completion endpoints. Input: Object - The data type that LLMPromptBuilderNode accepts as input Output: String - The data type that LLMPromptBuilderNode outputs Example:
const promptBuilderNode = new LLMPromptBuilderNode({
  id: 'prompt-builder',
  messages: [
    { role: 'system', content: 'You are a helpful assistant.' },
    { role: 'user', content: '{{user_question}}' }
  ],
  responseFormat: 'text'
});

Constructor

new LLMPromptBuilderNode(
    props?: LLMPromptBuilderNodeProps
): LLMPromptBuilderNode
Creates a new LLMPromptBuilderNode instance.

Parameters

props (LLMPromptBuilderNodeProps) = {} Configuration for the LLM prompt builder node.

Returns

LLMPromptBuilderNode Overrides AbstractNode.constructor