nodeLLMModerateMessage
fun nodeLLMModerateMessage(name: String? = null, moderatingModel: LLModel? = null, includeCurrentPrompt: Boolean = false): AIAgentNodeDelegate<Message, ModeratedMessage>(source)
A node that runs content moderation on an incoming Message using the LLM.
Parameters
name
Optional node name, defaults to delegate's property name.
moderatingModel
An optional LLModel to use for moderation; defaults to the agent's current model.
includeCurrentPrompt
If true, the full current prompt context is included alongside the message when running moderation; otherwise only the single message is sent.