moderate

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

Moderates the given prompt using the specified language model. This method is not supported by the Google API and will throw an exception when invoked.

Return

This method does not return a result as moderation is not supported by the Google API.

Parameters

prompt

The prompt to be evaluated for moderation.

model

The language model to use for moderation.

Throws

Always thrown since moderation is not supported.