Module 2 · Designing servers agents use well · Lesson 5
Resources, prompts and asking for input
Expose read-only context as resources with cache hints, workflows as prompts the user picks, and ask the user to confirm an action through a multi round-trip request whose state the server signs.
By the end of this lesson you can
- Choose between a tool, a resource and a prompt by asking who decides when each one is used
- Expose resources and resource templates with cache hints, and link to them from tool results
- Write a prompt with completable arguments that carries a workflow without carrying untrusted text
- Ask the user to confirm an action through a multi round-trip request, and protect the state that request carries
- Explain why roots and sampling were deprecated, what replaces them, and which hosts support resources and prompts