Sampling structuredOutput #385
Replies: 1 comment 2 replies
-
Great idea. Some initial thoughts on this:
Either way, we are proposing a breaking change for Sampling so now would be a good time to get this in - and I can imagine using this a lot. ( Updated modelcontextprotocol/modelcontextprotocol#198. Also tagging @ibuildthecloud. [edit] - I think the principle I am going for is to not burden the Protocol with the nuances of LLM APIs and structured outputs. So maybe just add |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Pre-submission Checklist
Your Idea
I think when we request a sampling, we should be able to specify the return output. Here's all the stuff I have to do because sampling doesn't have this in the spec currently:
https://github.com/epicweb-dev/mcp-fundamentals/blob/fbf4689e4634fd13684728ba21000b59451ab5f8/exercises/05.sampling/02.solution.advanced/src/sampling.ts#L48-L78
TL;DR, it's a bunch of zod schema stuff. Also if this was supported then maybe examples would be unnecessary as well. That would be nice.
Scope
Beta Was this translation helpful? Give feedback.
All reactions