/** * User-defined LLM guardrail for custom content moderation. * * This module provides a guardrail for implementing custom content checks using * Large Language Models (LLMs). It allows users to define their own system prompts * for content moderation, enabling flexible and domain-specific guardrail enforcement. */ import { z } from 'zod'; import type { CheckFn, GuardrailLLMContext } from '../types'; /** * Configuration schema for user-defined LLM moderation checks. * * Extends the base LLMConfig with a required field for custom prompt details. */ export declare const UserDefinedConfig: 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 UserDefinedConfig = z.infer; /** * Context requirements for the user-defined LLM guardrail. */ export type UserDefinedContext = GuardrailLLMContext; /** * User-defined LLM guardrail. * * Runs a user-defined guardrail based on a custom system prompt. * Allows for flexible content moderation based on specific requirements. */ export declare const userDefinedLLM: CheckFn; //# sourceMappingURL=user-defined-llm.d.ts.map