appendPrompt
Appends a prompt to the AI agent node configuration.
The prompt is constructed using the provided body lambda, which operates on a PromptBuilder. Optionally, a name can be provided to identify the prompt configuration node.
Return
An instance of AIAgentNodeBase configured with the specified prompt.
Parameters
name
An optional name to identify the configuration node. Defaults to null if not specified.
body
A lambda function that defines the prompt using the PromptBuilder.