You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source-2.0/additional-specs/ai-traits.rst
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ Each prompt template definition consists of the following components:
47
47
48
48
49
49
Template Placeholder Syntax
50
-
============================
50
+
===========================
51
51
52
52
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.
53
53
@@ -118,7 +118,7 @@ Service-level vs operation-level prompts
118
118
119
119
120
120
Use cases for prompts
121
-
=======================
121
+
=====================
122
122
123
123
Service authors can define sophisticated workflows by defining prompts to orchestrate multiple API calls and format results.
124
124
@@ -157,9 +157,8 @@ Prompts can guide LLMs to perform complex workflows using existing operations:
157
157
destinationLocation: String
158
158
}
159
159
160
-
161
160
A complete example
162
-
=====================
161
+
==================
163
162
164
163
The following example demonstrates creative prompt templates that enhance the user experience with a weather service:
165
164
@@ -223,11 +222,10 @@ The following example demonstrates creative prompt templates that enhance the us
223
222
location2: String
224
223
}
225
224
226
-
227
225
Integration with Model Context Protocol
228
226
=======================================
229
227
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.
231
229
232
230
See also
233
231
- `MCP Server Example`_ for a complete implementation of an MCP server using Smithy
@@ -237,3 +235,4 @@ See also
237
235
.. _MCP Server Example: https://github.com/smithy-lang/smithy-java/tree/main/examples/mcp-server
.. _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
0 commit comments