moderate

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

Attempts to moderate the content of a given prompt using a specific language model. This method is not supported by the Anthropic API and will always throw an exception.

Return

This method does not return a value as it always throws an exception.

Parameters

prompt

The prompt to be moderated, containing messages and optional configuration parameters.

model

The language model to use for moderation.

Throws

Always thrown, as moderation is not supported by the Anthropic API.