Skip to main content

SpamDetectionResult

Represents the result of spam detection analysis.

from respectify.schemas import SpamDetectionResult

Fields​

reasoning​

Explanation of the spam analysis

result.reasoning: str

is_spam​

Whether the comment is detected as spam

result.is_spam: bool

confidence​

Confidence in the verdict (0.0=uncertain, 1.0=certain the verdict is correct)

Constraints: ge=0.0, le=1.0

result.confidence: float # 0.0-1.0