Skip to main content

CommentRelevanceResult

Represents the result of comment relevance analysis.

import type { CommentRelevanceResult } from "@respectify/client";

Fields

on_topic

On-topic analysis result

result.on_topic: OnTopicResult

banned_topics

Banned topics analysis result

result.banned_topics: BannedTopicsResult

Sub-types

OnTopicResult

Represents whether a comment is on-topic.

FieldTypeDescription
reasoningstringExplanation of the relevance analysis
on_topicbooleanWhether the comment is on-topic
confidencenumber // 0.0-1.0Confidence level (0.0=low, 1.0=high)

BannedTopicsResult

Represents analysis of banned topics in a comment.

FieldTypeDescription
reasoningstringExplanation of the banned topics analysis
banned_topicsstring[]List of banned topics detected
quantity_on_banned_topicsnumber // 0.0-1.0Proportion discussing banned topics (0.0=none, 1.0=entirely)
confidencenumber // 0.0-1.0Confidence level (0.0=low, 1.0=high)