agent-evaluation
Help a learner evaluate and observe an AI agent on Microsoft Foundry — quality/safety evaluators, tracing, and reading results. Use for Lesson 3 tasks: measuring agent performance, adding observability, or interpreting evaluation output.
- License 许可
- MIT
- 最近更新
- 2026-10-31
- Stars
- ★ 198
- Forks
- 72
01 前言 Front Matter
- name
- agent-evaluation
- description
- Help a learner evaluate and observe an AI agent on Microsoft Foundry — quality/safety evaluators, tracing, and reading results. Use for Lesson 3 tasks: measuring agent performance, adding observability, or interpreting evaluation output.
03 SKILL.md 正文
Agent evaluation & observability
Guidance for measuring and improving agents (Lesson 3).
Guardrails (always apply)
- Platform: Microsoft Foundry; framework: Microsoft Agent Framework.
- Use the evaluation/observability APIs from the current
agent-frameworksurface (Foundry evals + tracing). Model for any judge/eval step:gpt-5.1(nevergpt-4o/gpt-4.1). - Endpoints/models from
.env;az loginfor auth.
Concepts a learner should grasp
- Why evaluate: agents are non-deterministic — you need repeatable metrics (groundedness, relevance, coherence, safety) to know whether a change helped or hurt.
- Observability vs evaluation: tracing captures what happened on each run (spans, tool calls, tokens); evaluation scores those runs against criteria.
- Close the loop: trace → evaluate → adjust instructions/tools → re-evaluate.
How to help
- Point the learner at
lesson-3-agent-evals/and its README for the exact evaluator setup. - Encourage a small, fixed test set of prompts so results are comparable across runs.
- When an eval fails, look at the trace first (bad tool call? missing context? weak instructions?) before changing the model.
- Keep evaluation runs cheap: small datasets, and delete resources afterward (see cost & cleanup).
Validate
python -m py_compile <file>.py.- An evaluation run should produce per-criterion scores you can compare between versions.
References
lesson-3-agent-evals/README.mdMIGRATION-GUIDE.md(current SDK patterns)
04 同仓库更多 Skills
multi-agent-a2a
Help a learner compose agents as networked services using the open Agent-to-Agent (A2A) protocol — expose an agent as an A2A server and consume a remote agent as a peer. Use for Lesson 7 tasks: multi-agent orchestration and A2A client/server wiring.
microsoft-toolbox
Help a learner use Microsoft Toolbox to define tools once and govern them centrally, then consume a toolbox from an agent through a single MCP endpoint. Use for Lesson 6 tasks: tool discovery, registration, governance, and versioning.
mcp-integration
Help a learner give an agent tools through the Model Context Protocol (MCP) — both client-side MCP and Foundry Hosted MCP tools. Use when connecting an agent to an MCP server (e.g. the GitHub MCP server), adding a remote tool, or reasoning about MCP approval/governance.
hosted-agent-deployment
Help a learner deploy an agent to production as a Microsoft Foundry Hosted Agent, and decide when Capability Hosts are needed. Use for Lessons 4–5: hosted deployment, thread/memory persistence, bring-your-own storage, and enterprise governance.
foundry-agent-basics
Help a learner build their first AI agent with the Microsoft Agent Framework (MAF) on Microsoft Foundry. Use when the task is creating a basic agent, wiring up FoundryChatClient, choosing a model, running the DevUI, or understanding lesson 1–2 concepts (instructions, tools, threads).