Skip to content

Commit 9a9b674

Browse files
committed
Address comments
1 parent 7518d71 commit 9a9b674

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

docs/source-2.0/additional-specs/ai-traits.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Each prompt template definition consists of the following components:
4747

4848

4949
Template Placeholder Syntax
50-
============================
50+
===========================
5151

5252
Prompt templates use ``{{parameterName}}`` syntax to reference parameters from the associated ``arguments`` structure. This can be useful to reference and interpolate members of arguments when accepting user input for prompts in Model Context Protocol (MCP) servers.
5353

@@ -118,7 +118,7 @@ Service-level vs operation-level prompts
118118
119119
120120
Use cases for prompts
121-
=======================
121+
=====================
122122

123123
Service authors can define sophisticated workflows by defining prompts to orchestrate multiple API calls and format results.
124124

@@ -157,9 +157,8 @@ Prompts can guide LLMs to perform complex workflows using existing operations:
157157
destinationLocation: String
158158
}
159159
160-
161160
A complete example
162-
=====================
161+
==================
163162

164163
The following example demonstrates creative prompt templates that enhance the user experience with a weather service:
165164

@@ -223,11 +222,10 @@ The following example demonstrates creative prompt templates that enhance the us
223222
location2: String
224223
}
225224
226-
227225
Integration with Model Context Protocol
228226
=======================================
229227

230-
The ``smithy.ai#prompts`` trait is designed to work with Model Context Protocol (MCP) servers. MCP servers can use the metadata defined in the trait to generate _prompts:https://modelcontextprotocol.io/specification/2025-06-18/server/prompts as defined in the Model Context Protocol (MCP) specification.
228+
The ``smithy.ai#prompts`` trait is designed to work with Model Context Protocol (MCP) servers. MCP servers can use the metadata defined in the trait to generate `prompts`_ as defined in the Model Context Protocol (MCP) specification.
231229

232230
See also
233231
- `MCP Server Example`_ for a complete implementation of an MCP server using Smithy
@@ -237,3 +235,4 @@ See also
237235
.. _MCP Server Example: https://github.com/smithy-lang/smithy-java/tree/main/examples/mcp-server
238236
.. _MCP Traits Example: https://github.com/smithy-lang/smithy-java/tree/main/examples/mcp-traits-example
239237
.. _MCP Server Model: https://github.com/smithy-lang/smithy-java/blob/main/examples/mcp-server/src/main/resources/software/amazon/smithy/java/example/server/mcp/main.smithy
238+
.. _Prompts: https://modelcontextprotocol.io/specification/2025-06-18/server/prompts

0 commit comments

Comments
 (0)