feat(examples): add validated Foundry-native custom evaluation - #352
Draft
Chang Liu (changliu2) wants to merge 1 commit into
Draft
Chang Liu (changliu2) wants to merge 1 commit into
Chang Liu (changliu2) wants to merge 1 commit into
Conversation
Add Agent, Trace, and precomputed Dataset routes that compile ASSERT boolean judge dimensions into versioned Foundry prompt evaluators. Preserve artifact lineage, sanitize uploaded evidence, and never read scores.jsonl. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
github-actions
Bot
requested a review
from Aaron Aspinwall (AaronAspinwall123)
September 20, 2026 12:18
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.
Summary
Adds a Foundry-native evaluation adapter under
examples/langgraph-foundry-hosted/evaluation/.The example supports:
invoke_agenttraces at turn or conversation level;test_set.jsonl+inference_set.jsonldatasets.Each route compiles the resolved boolean ASSERT judge dimensions into versioned
Foundry custom prompt evaluators.
Safety and correctness
scores.jsonl.URLs, and Windows/Unix absolute paths before upload.
identity/hash differs despite a matching test-case ID.
truemeans a bad event; Foundrytruemeans the criterion passed.resolution.
the full SHA-256 in lineage metadata.
DefaultAzureCredential, creates fresh evaluation definitions, andnever deletes cloud assets.
Historical lineage
This carries forward the strict validation, deterministic joins, hashing,
evaluator-version drift checks, dry-run behavior, fake clients, and no-delete
lessons from #267. That PR uploaded precomputed ASSERT
scores and reasons; this adapter does not use that architecture. It recompiles
the ASSERT judge contract and runs it as Foundry custom evaluators.
Validation
azure-ai-projects 2.7.0andopenai 3.13.0.compileall,git diff --check, dependency resolution, dry runs, andadversarial secret/path scans passed.
evaluation runs.
Preview boundaries
Conversation simulation and conversation trace evaluation use Foundry preview
contracts. Scenario output retains full lineage in the source dataset and run
metadata, although the downloadable simulated item currently exposes only a
subset of custom source fields.