Anchorage API reference
    Preparing search index...
    • Deny when the gated text exceeds maxChars. Defaults to the output phase and the answer channel — reasoning does NOT count toward an answer cap. Cap another channel with an explicit second instance, e.g. maxTextLength(50_000, { channels: ['reasoning'] }).

      Parameters

      • maxChars: number
      • options: {
            channels?: readonly OutputChannel[];
            name?: string;
            phases?: readonly PolicyPhase[];
        } = {}

      Returns PolicyEvaluator