import type * as ElevenLabs from "../index"; /** * Single custom guardrail configuration */ export interface CustomGuardrailConfig { isEnabled?: boolean; /** User-facing name for this guardrail */ name: string; /** Instruction describing what to block, e.g. 'don't talk about politics' */ prompt: string; executionMode?: ElevenLabs.GuardrailExecutionMode; /** LLM model to use for custom guardrail evaluation */ model?: ElevenLabs.CustomGuardrailConfigModel; /** How much recent history the guardrail sees before the reply it evaluates, counted in user messages (the agent replies between them are included too). The guardrail always gets a single transcript ending in the evaluated reply, marked 'AGENT [current reply]:'. 0 (default) adds no prior history (just that line); 1 adds the latest user message onward. */ historyMessageCount?: number; triggerAction?: ElevenLabs.CustomGuardrailConfigTriggerAction; }