AI Guard | Node.js SDK
AI Guard
constructor(token: string, config: PangeaConfig): AIGuardServiceCreates a new AIGuardService
with the given Pangea API token and
configuration.
const config = new PangeaConfig({ domain: "pangea_domain" });
const aiGuard = new AIGuardService("pangea_token", config);
Text guard (Beta)
guardText(request: TextGuardRequest): Promise<PangeaResponse<TextGuardResult>>Undocumented.
const response = await aiGuard.guardText({
text: "foobar",
});