docs: document LLM-as-judge guardrail validator [AL-469]#1805
Merged
Conversation
Contributor
There was a problem hiding this comment.
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
LLMAsJudgeValidatorto thePRE_AND_POSTsupported 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>
489b025 to
deb3ad0
Compare
|
valentinabojan
approved these changes
Jul 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



What changed?
Documents the
llm_as_judgeguardrail validator (added in AL-470) in the core guardrails docs (docs/core/guardrails.md):@guardrail(validator=LLMAsJudgeValidator(...))) example plus a parameter reference:guardrail_text(≤ 4000 chars),model,threshold(0 strictest … 6 most lenient, default 2), and optionalpositive_examples/negative_examples(≤ 2 each, ≤ 1000 chars).LLMAsJudgeValidatorto the Execution Stages table (PRE_AND_POSTrow).LLMAsJudgeValidator.Companion PR documents the middleware form in
uipath-langchain-python.How has this been tested?
from uipath.platform.guardrails import LLMAsJudgeValidator, BlockAction, GuardrailExecutionStage, guardrail.uipath.platform.guardrails.decorators.validators.llm_as_judge.LLMAsJudgeValidator.Are there any breaking changes?
None — documentation only.
🤖 Generated with Claude Code