Skip to content

.NET: Foundry Evals integration for .NET#4914

Draft
alliscode wants to merge 1 commit intomicrosoft:mainfrom
alliscode:af-foundry-evals-dotnet
Draft

.NET: Foundry Evals integration for .NET#4914
alliscode wants to merge 1 commit intomicrosoft:mainfrom
alliscode:af-foundry-evals-dotnet

Conversation

@alliscode
Copy link
Member

This pull request introduces a new sample, FoundryAgents_Evaluations_Step03_AllPatterns, which demonstrates all evaluation patterns available in the Agent Framework for .NET. It also updates the existing FoundryAgents_Evaluations_Step02_SelfReflection sample to use the new Azure AI Foundry project endpoints and simplifies the evaluator setup. The changes primarily focus on showcasing evaluation capabilities, including function evaluators, built-in checks, MEAI quality evaluators, Foundry (cloud-based) evaluators, mixed evaluators, pre-existing response evaluation, and conversation split strategies.

Addition of comprehensive evaluation sample:

  • Added a new sample project FoundryAgents_Evaluations_Step03_AllPatterns with a detailed Program.cs demonstrating all major evaluation patterns (function evaluators, built-in checks, MEAI, Foundry, mixed, pre-existing response evaluation, and conversation split strategies), including a custom conversation splitter. [1] [2]
  • Added a README (README.md) for the new sample, summarizing its purpose, prerequisites, key types, and usage instructions.

Updates to existing self-reflection evaluation sample:

  • Updated environment variable names and initialization in Program.cs to use Azure AI Foundry project endpoints and deployment names, simplifying the evaluator setup to derive everything from the project endpoint.
  • Removed the direct dependency on Azure.AI.OpenAI in the .csproj file, relying instead on Azure.AI.Projects and related packages.
  • Updated namespaces in Program.cs to use Azure.AI.Projects.OpenAI instead of Azure.AI.OpenAI.

Contribution Checklist

  • The code builds clean without any errors or warnings
  • The PR follows the Contribution Guidelines
  • All unit tests pass, and I have added new tests where possible
  • Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR.

Add evaluation framework with local and Foundry-hosted evaluator support:

- EvalItem/EvalCheck/EvalChecks core types with IConversationSplitter
- IAgentEvaluator interface and MeaiEvaluatorAdapter for MEAI bridge
- FunctionEvaluator and LocalEvaluator for custom evaluation functions
- FoundryEvals provider for Azure AI Foundry hosted evaluations
- EvaluateAsync extension methods with expected values support
- WorkflowEvaluationExtensions for multi-agent workflow evaluation
- Unit tests and evaluation samples

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@markwallace-microsoft markwallace-microsoft added documentation Improvements or additions to documentation .NET workflows Related to Workflows in agent-framework labels Mar 25, 2026
@github-actions github-actions bot changed the title Foundry Evals integration for .NET .NET: Foundry Evals integration for .NET Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation .NET workflows Related to Workflows in agent-framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants