nodeLLMModerateMessage

fun AIAgentSubgraphBuilderBase<*, *>.nodeLLMModerateMessage(name: String? = null, moderatingModel: LLModel? = null, includeCurrentPrompt: Boolean = false): AIAgentNodeDelegate<Message, ModeratedMessage>(source)

A node that moderates only a single input message using a specified language model.

Parameters

name

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

moderatingModel

The optional language model to be used for moderation. If null, a default or previously defined model will be applied.

includeCurrentPrompt

Should current prompt be included in the moderation requests or only the input message.