SpamDetectionResult
Represents the result of spam detection analysis.
- Python
- PHP
- JSON
from respectify.schemas import SpamDetectionResult
use Respectify\Schemas\SpamDetectionResult;
Types are returned as JSON objects in API responses.
Fields
reasoning
Explanation of the spam analysis
- Python
- PHP
- JSON
result.reasoning: str
$result->reasoning: string
"reasoning": "string"
is_spam
Whether the comment is detected as spam
- Python
- PHP
- JSON
result.is_spam: bool
$result->isSpam: bool
"is_spam": true
confidence
Confidence level (0.0=low, 1.0=high)
Constraints: ge=0.0, le=1.0
- Python
- PHP
- JSON
result.confidence: float # 0.0-1.0
$result->confidence: float
"confidence": 0.5