class RubyLLM::Moderation

A Moderation holds the result of screening text for potentially harmful content with a provider moderation model. Most code obtains one through RubyLLM.moderate.

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