Using an LLM as a judge to evaluate a C# agent with Claude
Some qualities of an answer, such as whether it is useful, only become apparent when read, so a second model can read the response and assign it a score. Agent Framework 1.24 adds an EvaluateAsync extension that runs an agent against a set of questions and passes the answers to either code-based checks or Microsoft.Extensions.AI.Evaluation quality evaluators. The example uses a kitchen assistant that answers dinner questions, with Claude Haiku 5.5 acting as the judge, and the judge is first validated against hand-written answers. The author stresses that the scores are best read as comparisons between runs rather than absolute verdicts. The approach is aimed at developers who have already given agents tools and tested them with pass rates.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in