import * as z from "zod/v4"; import { OpenEnum } from "../types/enums.js"; import { AlignmentRule, AlignmentRule$Outbound } from "./alignmentrule.js"; /** * `enforce`: a turn that breaks a rule is withheld, retried, and finally returned as an error. `audit`: every turn is evaluated and returned. Default `audit`. */ export declare const AlignmentPluginMode: { readonly Enforce: "enforce"; readonly Audit: "audit"; }; /** * `enforce`: a turn that breaks a rule is withheld, retried, and finally returned as an error. `audit`: every turn is evaluated and returned. Default `audit`. */ export type AlignmentPluginMode = OpenEnum; /** * Beta. States the listed rules to the model and evaluates every turn against them; the configuration, metadata, and error shapes may change. */ export type AlignmentPlugin = { id: "alignment"; /** * Whether the rules are stated to the model in a system message on every provider call. Default true. */ instruct?: boolean | undefined; /** * Provider calls made again after a blocked turn, in enforce mode. Default 1. */ maxRetries?: number | undefined; /** * `enforce`: a turn that breaks a rule is withheld, retried, and finally returned as an error. `audit`: every turn is evaluated and returned. Default `audit`. */ mode?: AlignmentPluginMode | undefined; /** * Rules the reply must follow. Each rule is evaluated on its own. */ rules: Array; /** * Probability at or above which a rule is broken, from 0.01 to 1. Default 0.7. */ threshold?: number | undefined; }; /** @internal */ export declare const AlignmentPluginMode$outboundSchema: z.ZodType; /** @internal */ export type AlignmentPlugin$Outbound = { id: "alignment"; instruct?: boolean | undefined; max_retries?: number | undefined; mode?: string | undefined; rules: Array; threshold?: number | undefined; }; /** @internal */ export declare const AlignmentPlugin$outboundSchema: z.ZodType; export declare function alignmentPluginToJSON(alignmentPlugin: AlignmentPlugin): string; //# sourceMappingURL=alignmentplugin.d.ts.map