AGENT SKILL

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-framework surface (Foundry evals + tracing). Model for any judge/eval step: gpt-5.1 (never gpt-4o / gpt-4.1).
  • Endpoints/models from .env; az login for auth.

Concepts a learner should grasp

  1. Why evaluate: agents are non-deterministic — you need repeatable metrics (groundedness, relevance, coherence, safety) to know whether a change helped or hurt.
  2. Observability vs evaluation: tracing captures what happened on each run (spans, tool calls, tokens); evaluation scores those runs against criteria.
  3. 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.md
  • MIGRATION-GUIDE.md (current SDK patterns)

04 同仓库更多 Skills

microsoft
microsoft/Building-AI-Agents-From-Zero-To-Production

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.

Skill与智能体开发
★ 198
microsoft
microsoft/Building-AI-Agents-From-Zero-To-Production

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.

Skill与智能体开发
★ 198
microsoft
microsoft/Building-AI-Agents-From-Zero-To-Production

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.

Skill与智能体开发
★ 198
microsoft
microsoft/Building-AI-Agents-From-Zero-To-Production

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.

Skill与智能体开发
★ 198
microsoft
microsoft/Building-AI-Agents-From-Zero-To-Production

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).

Skill与智能体开发
★ 198