Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

GoogleChecksAisafetyV1alphaClassifyContentRequestPolicyConfig

import type { GoogleChecksAisafetyV1alphaClassifyContentRequestPolicyConfig } from "https://googleapis.deno.dev/v1/checks:v1alpha.ts";

List of policies to classify against.

interface GoogleChecksAisafetyV1alphaClassifyContentRequestPolicyConfig {
policyType?:
| "POLICY_TYPE_UNSPECIFIED"
| "DANGEROUS_CONTENT"
| "PII_SOLICITING_RECITING"
| "HARASSMENT"
| "SEXUALLY_EXPLICIT"
| "HATE_SPEECH"
| "MEDICAL_INFO"
| "VIOLENCE_AND_GORE"
| "OBSCENITY_AND_PROFANITY";
threshold?: number;
}

§Properties

§
policyType?: "POLICY_TYPE_UNSPECIFIED" | "DANGEROUS_CONTENT" | "PII_SOLICITING_RECITING" | "HARASSMENT" | "SEXUALLY_EXPLICIT" | "HATE_SPEECH" | "MEDICAL_INFO" | "VIOLENCE_AND_GORE" | "OBSCENITY_AND_PROFANITY"
[src]

Required. Type of the policy.

§
threshold?: number
[src]

Optional. Score threshold to use when deciding if the content is violative or non-violative. If not specified, the default 0.5 threshold for the policy will be used.