db620d33df
CodeQL / Analyze (csharp) (push) Waiting to run
CodeQL / Analyze (python) (push) Waiting to run
dotnet-build-and-test / dotnet-test-functions (push) Has been cancelled
dotnet-build-and-test / paths-filter (push) Has been cancelled
dotnet-build-and-test / dotnet-build (Debug, windows-latest, net9.0) (push) Has been cancelled
dotnet-build-and-test / dotnet-build (Release, ubuntu-latest, net10.0) (push) Has been cancelled
dotnet-build-and-test / dotnet-build (Release, ubuntu-latest, net8.0) (push) Has been cancelled
dotnet-build-and-test / dotnet-build (Release, windows-latest, net472) (push) Has been cancelled
dotnet-build-and-test / dotnet-test (Release, integration, true, ubuntu-latest, net10.0) (push) Has been cancelled
dotnet-build-and-test / dotnet-test (Release, integration, true, windows-latest, net472) (push) Has been cancelled
dotnet-build-and-test / dotnet-foundry-hosted-it (push) Has been cancelled
dotnet-build-and-test / dotnet-build-and-test-check (push) Has been cancelled
dotnet-build-and-test / Integration Test Report (push) Has been cancelled
Evaluation - Workflow Expected Outputs
This sample demonstrates evaluating a multi-agent workflow's final answer against a golden expected output using Foundry's reference-based Similarity evaluator.
What this sample demonstrates
- Building a small researcher → editor workflow
- Running the workflow and obtaining a
Run - Calling
run.EvaluateAsync(evaluator, expectedOutput: ...)to attach a ground-truth answer to the overall workflow item - Using
FoundryEvals.Similarity, which requires aground_truthvalue per item
The expectedOutput value is stamped onto the overall EvalItem.ExpectedOutput
and is surfaced to Foundry as ground_truth in the JSONL payload sent to the
Evals API.
Prerequisites
- .NET 10 SDK or later
- Azure authentication available to
DefaultAzureCredential(for local development, runaz login)
Set the following environment variables:
$env:FOUNDRY_PROJECT_ENDPOINT="https://your-foundry-service.services.ai.azure.com/api/projects/your-foundry-project"
$env:FOUNDRY_MODEL="gpt-4o-mini"
Run the sample
cd dotnet/samples/03-workflows/Evaluation
dotnet run --project .\Evaluation_WorkflowExpectedOutputs