/** * Topical alignment guardrail module. * * This module provides a guardrail for ensuring content stays within a specified * business scope or topic domain. It uses an LLM to analyze text against a defined * context to detect off-topic or irrelevant content. */ import { z } from 'zod'; import type { CheckFn, GuardrailLLMContext } from '../types'; /** * Configuration for topical alignment guardrail. * * Extends LLMConfig with a required business scope for content checks. */ export declare const TopicalAlignmentConfig: z.ZodObject<{ model: z.ZodString; confidence_threshold: z.ZodDefault; include_reasoning: z.ZodDefault; max_turns: z.ZodDefault; system_prompt_details: z.ZodString; }, z.core.$strip>; export type TopicalAlignmentConfig = z.infer; /** * Context requirements for the topical alignment guardrail. */ export type TopicalAlignmentContext = GuardrailLLMContext; /** * Output schema for topical alignment analysis. */ export declare const TopicalAlignmentOutput: z.ZodObject<{ flagged: z.ZodBoolean; confidence: z.ZodNumber; }, z.core.$strip>; export type TopicalAlignmentOutput = z.infer; /** * Topical alignment guardrail. * * Checks that the content stays within the defined business scope using * an LLM to analyze text against a defined context. */ export declare const topicalAlignment: CheckFn; //# sourceMappingURL=topical-alignment.d.ts.map