nodeUpdatePrompt

inline fun <T> AIAgentSubgraphBuilderBase<*, *>.nodeUpdatePrompt(name: String? = null, noinline body: PromptBuilder.() -> Unit): AIAgentNodeDelegate<T, T>(source)

Deprecated

Use nodeAppendPrompt instead

Replace with

nodeAppendPrompt(name, body)

A node that adds messages to the LLM prompt using the provided prompt builder. The input is passed as it is to the output.

Parameters

name

Optional node name, defaults to delegate's property name.

body

Lambda to modify the prompt using PromptBuilder.