From the course: Claude with Amazon Bedrock by Anthropic

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Defining prompts

Defining prompts

The last major focus we're going to have inside of our MCP server is going to be on prompts. Once again, just like we did with resources, we're going to implement a small feature inside of our project. And we're going to use this feature to understand what prompts are all about, just like we did with resources a moment ago. Let me tell you about the feature we're going to add into our program. We're going to add in support for slash commands. So for example, I want to have a format command. I've got some screenshots over here of how it's going to work. Whenever a user types in a slash, we're going to list out some number of commands that are supported by our application. For right now, we're going to have just one command, called format. So if I type in just slash, I should see a little autocomplete right here, and the only autocomplete option should be format. If I then select format, I should be prompted to add in some document ID after it. So one of our different document names…

Contents