moderateBlocking
Moderates the content of a given message with attachments using a specified LLM.
This method evaluates the content of the message and its attachments to determine if it complies with content guidelines. The moderation is performed using the provided LLM, which analyzes the content and returns a detailed moderation result.
Return
A ModerationResult containing information about the moderation outcome, including flagged categories, scores, and whether the content is classified as harmful.
Parameters
The LLM that will be used to perform the moderation.
Moderates the content of a prompt using an already-resolved model.
Return
A ModerationResult describing the moderation outcome.
Parameters
The prompt whose content is to be moderated.
The ResolvedModel returned by resolveModel.