Skip to main content

Input

Type: Object The data type that LLMPromptBuilderNode accepts as input

Output

Type: String The data type that LLMPromptBuilderNode outputs

Examples

const promptBuilderNode = new LLMPromptBuilderNode({
id: 'prompt-builder',
messages: [
{ role: 'system', content: 'You are a helpful assistant.' },
{ role: 'user', content: '{{user_question}}' }
],
responseFormat: 'text'
});

Constructors

Interfaces


Constructors

constructor

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

Parameters

props
LLMPromptBuilderNodeProps
Configuration for the LLM prompt builder node.

Returns

LLMPromptBuilderNode

Interfaces

LLMPromptBuilderNodeProps

Configuration interface for LLMPromptBuilderNode creation.

Properties

messages?: MessageTemplate[] List of message templates tools?: Tool[] List of available tools for function calling toolChoice?: object Tool choice configuration responseFormat?: "text" | "json" | "json_schema" Response format specification (‘text’, ‘json’, ‘json_schema’)