requestModeration

fun requestModeration(moderatingModel: ERROR CLASS: Symbol not found for LLModel?? = null, executorService: ExecutorService? = null): ERROR CLASS: Symbol not found for ModerationResult(source)

Sends a moderation request to the moderation model.

Return

the moderation result

Parameters

moderatingModel

an optional model to be used for moderation; if null, the default model is used

executorService

an optional executor service for managing the execution context; if null, the default dispatcher is used