Loading lesson page...
AI From Scratch/Lesson 11/~75 minutes
MCP Sampling — Server-Requested LLM Completions and Agent Loops
Most MCP servers are dumb executors: take arguments, run code, return content. Sampling lets a server flip direction: it asks the client's LLM to make a decision. This enables server-hosted agent loops without the server owning any model c...
BuildPython (stdlibsampling harness)