Phase 13: 工具与协议
本阶段包含 23 课时。
原始课程来源:AI Engineering from Scratch (MIT License)
- The Tool Interface — Why Agents Need Structured I/O
- Function Calling Deep Dive — OpenAI, Anthropic, Gemini
- Parallel Tool Calls and Streaming with Tools
- Structured Output — JSON Schema, Pydantic, Zod, Constrained Decoding
- Tool Schema Design — Naming, Descriptions, Parameter Constraints
- MCP Fundamentals — Primitives, Lifecycle, JSON-RPC Base
- Building an MCP Server — Python + TypeScript SDKs
- Building an MCP Client — Discovery, Invocation, Session Management
- MCP Transports — stdio vs Streamable HTTP vs SSE Migration
- MCP Resources and Prompts — Context Exposure Beyond Tools
- MCP Sampling — Server-Requested LLM Completions and Agent Loops
- Roots and Elicitation — Scoping and Mid-Flight User Input
- Async Tasks (SEP-1686) — Call-Now, Fetch-Later for Long-Running Work
- MCP Apps — Interactive UI Resources via
ui:// - MCP Security I — Tool Poisoning, Rug Pulls, Cross-Server Shadowing
- MCP Security II — OAuth 2.1, Resource Indicators, Incremental Scopes
- MCP Gateways and Registries — Enterprise Control Planes
- MCP Auth in Production — DCR, JWKS Rotation, Audience-Pinned Tokens on iii Primitives
- A2A — Agent-to-Agent Protocol
- OpenTelemetry GenAI — Tracing Tool Calls End-to-End
- LLM Routing Layer — LiteLLM, OpenRouter, Portkey
- Skills and Agent SDKs — Anthropic Skills, AGENTS.md, OpenAI Apps SDK
- Capstone — Build a Complete Tool Ecosystem