Skip to content

docs: document LLM-as-judge guardrail validator [AL-469]#1805

Merged
apetraru-uipath merged 1 commit into
mainfrom
docs/AL-469-llm-as-judge-guardrail
Jul 9, 2026
Merged

docs: document LLM-as-judge guardrail validator [AL-469]#1805
apetraru-uipath merged 1 commit into
mainfrom
docs/AL-469-llm-as-judge-guardrail

Conversation

@apetraru-uipath

Copy link
Copy Markdown
Contributor

What changed?

Documents the llm_as_judge guardrail validator (added in AL-470) in the core guardrails docs (docs/core/guardrails.md):

  • New ### LLM-as-judge subsection under Built-in Validators — a decorator (@guardrail(validator=LLMAsJudgeValidator(...))) example plus a parameter reference: guardrail_text (≤ 4000 chars), model, threshold (0 strictest … 6 most lenient, default 2), and optional positive_examples / negative_examples (≤ 2 each, ≤ 1000 chars).
  • Added LLMAsJudgeValidator to the Execution Stages table (PRE_AND_POST row).
  • Added an API Reference mkdocstrings block for LLMAsJudgeValidator.

Companion PR documents the middleware form in uipath-langchain-python.

How has this been tested?

  • Verified the example imports resolve: from uipath.platform.guardrails import LLMAsJudgeValidator, BlockAction, GuardrailExecutionStage, guardrail.
  • Verified the mkdocstrings target module resolves: uipath.platform.guardrails.decorators.validators.llm_as_judge.LLMAsJudgeValidator.
  • Checked markdown structure (balanced code fences, correct heading/anchor).

Are there any breaking changes?

None — documentation only.

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings July 9, 2026 13:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Documents the LLMAsJudgeValidator guardrail validator in the core guardrails documentation, aligning the docs with the existing implementation in uipath.platform.guardrails.decorators.validators.llm_as_judge.

Changes:

  • Adds LLMAsJudgeValidator to the PRE_AND_POST supported validators list in the Execution Stages table.
  • Introduces a new LLM-as-judge built-in validator section with a decorator usage example and parameter reference.
  • Adds an mkdocstrings API reference block for uipath.platform.guardrails.decorators.validators.llm_as_judge.LLMAsJudgeValidator.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Add an "LLM-as-judge" section to the core guardrails docs: a decorator example
plus the guardrail_text/model/threshold/examples parameters and their limits.
Include it in the Execution Stages table (PRE_AND_POST) and add an API Reference
mkdocstrings block for LLMAsJudgeValidator.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@apetraru-uipath apetraru-uipath force-pushed the docs/AL-469-llm-as-judge-guardrail branch from 489b025 to deb3ad0 Compare July 9, 2026 13:53
@sonarqubecloud

sonarqubecloud Bot commented Jul 9, 2026

Copy link
Copy Markdown

@apetraru-uipath apetraru-uipath merged commit 68ac610 into main Jul 9, 2026
95 checks passed
@apetraru-uipath apetraru-uipath deleted the docs/AL-469-llm-as-judge-guardrail branch July 9, 2026 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants