llmModerateMessage
fun llmModerateMessage(name: String? = null, moderatingModel: ERROR CLASS: Symbol not found for LLModel??, includeCurrentPrompt: Boolean): AIAgentNodeBase<ERROR CLASS: Symbol not found for Message, ModeratedMessage>(source)
A node that moderates a message using the LLM.
Parameters
name
Optional node name, defaults to delegate's property name.
moderatingModel
Optional LLModel to use for moderation. If null, uses the agent's current model.
includeCurrentPrompt
If true, includes the current prompt in the moderation request.