moderate

open suspend override fun moderate(prompt: Prompt, model: LLModel): ModerationResult(source)

Moderates the provided multi-modal content using the specified model.

This legacy extension point is kept open for existing subclasses. New subclasses should prefer overriding the ResolvedModel-based overload. If this method is overridden without calling super, resolveModel is bypassed.


open suspend override fun moderate(prompt: Prompt, model: ResolvedModel): ModerationResult(source)

Moderates the provided multi-modal content using the specified resolved model. Preferred extension point for subclasses that want to preserve this executor's model-resolution flow.

Return

A ModerationResult representing the result of the moderation process.

Parameters

prompt

The Prompt containing the content to be moderated.

model

The resolved LLModel to use for moderation.