moderate

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

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

Return

A ModerationResult representing the result of the moderation process.

Parameters

prompt

The Prompt containing the content to be moderated.

model

The LLModel to use for moderation, including its ID and provider information.

Throws

If no client is found for the model's provider.