{"version":3,"file":"judge-config.type.mjs","names":[],"sources":["../../../../../../../ai/src/agent/judge-config.type.ts"],"sourcesContent":["/**\n * Default number of repair re-asks the judge preset performs when the\n * model's first verdict fails to parse / validate. Two attempts balances\n * resilience against latency — a corrupted-JSON judge usually recovers on\n * the first re-ask, and a model that still can't comply after two tries is\n * unlikely to on a third.\n */\nexport const JUDGE_DEFAULT_REPAIR_ATTEMPTS = 2;\n\n/**\n * Fine-grained configuration for the judge-safe agent preset. The boolean\n * shorthand (`judge: true`) is equivalent to `judge: {}` — every field\n * below falls back to its resilient default.\n *\n * The preset targets structured-output *judges* (LLM-as-judge graders,\n * verdict classifiers) running on models that emit malformed JSON under\n * load — notably the Amazon Nova family, which wraps verdicts in fenced\n * blocks, prepends prose, or trails commentary. It trades strictness for\n * resilience (see {@link AgentConfig.judge}).\n */\nexport type JudgeConfig = {\n  /**\n   * How many repair re-asks to perform when the verdict fails to parse or\n   * validate. Defaults to {@link JUDGE_DEFAULT_REPAIR_ATTEMPTS}. Still\n   * bounded by the agent's `maxTrips` cap, so a stuck model can never loop\n   * forever. Set `0` to disable repair while keeping the lenient parser and\n   * never-throw guarantee.\n   */\n  repairAttempts?: number;\n};\n"],"mappings":";;;;;;;;AAOA,MAAa,gCAAgC"}