开始使用免费开始使用

Sampling

Your MCP server's research tool has gathered a stack of Wikipedia articles. To turn that raw text into a polished summary it needs a language model — but you'd prefer the server not hold its own API key or pay for tokens.

What does sampling let your server do?

本练习是课程的一部分

Model Context Protocol: Advanced Topics

查看课程

动手互动练习

通过我们的互动练习之一,将理论转化为实践

开始练习