class RubyLLM::Moderation

A Moderation holds the result of screening text or images for potentially harmful content. Most code obtains one through RubyLLM.moderate.

result = RubyLLM.moderate("This is a safe message about Ruby programming")
result.flagged?  # => false

RubyLLM.moderate(with: "profile.png").flagged?