Skip to content

Commit 1928395

Browse files
yasmewadadwsingh
authored andcommitted
Update the prompts trait namespace to smithy.ai and update references.
1 parent e31ceab commit 1928395

File tree

14 files changed

+22
-19
lines changed

14 files changed

+22
-19
lines changed

examples/mcp-server/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ dependencies {
1010
val smithyJavaVersion: String by project
1111

1212
smithyBuild("software.amazon.smithy.java:plugins:$smithyJavaVersion")
13-
implementation("software.amazon.smithy.java:mcp-traits:$smithyJavaVersion")
13+
implementation("software.amazon.smithy.java:smithy-ai-traits:$smithyJavaVersion")
1414
implementation("software.amazon.smithy.java:mcp-server:$smithyJavaVersion")
1515
implementation("software.amazon.smithy.java:server-proxy:$smithyJavaVersion")
1616
implementation("software.amazon.smithy.java:server-netty:$smithyJavaVersion")

examples/mcp-server/smithy-build.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"service": "smithy.example.mcp#EmployeeService",
77
"namespace": "software.amazon.smithy.java.example.server.mcp",
88
"headerFile": "license.txt",
9-
"runtimeTraits": ["smithy.api#documentation", "smithy.api#examples", "amazon.smithy.llm#prompts" ]
9+
"runtimeTraits": ["smithy.api#documentation", "smithy.api#examples", "smithy.ai#prompts" ]
1010
}
1111
}
1212
}

examples/mcp-server/src/main/resources/software/amazon/smithy/java/example/server/mcp/main.smithy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ $version: "2"
33
namespace smithy.example.mcp
44

55
use aws.protocols#restJson1
6-
use amazon.smithy.llm#prompts
6+
use smithy.ai#prompts
77

88
@restJson1
99
@prompts({

examples/mcp-traits-example/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ service UserService {
4545
```smithy
4646
namespace com.example
4747
48-
use amazon.smithy.llm#prompts
48+
use smithy.ai#prompts
4949
5050
@prompts({
5151
search_users: {

examples/mcp-traits-example/build.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ dependencies {
88
val smithyVersion: String by project
99

1010
// Include the mcp-traits module for the @prompts trait
11-
smithyBuild(project(":mcp:mcp-traits"))
12-
implementation(project(":mcp:mcp-traits"))
11+
implementation(project(":smithy-ai-traits"))
1312

1413
// Standard Smithy dependencies
1514
smithyBuild("software.amazon.smithy.java:plugins:$smithyJavaVersion")

examples/mcp-traits-example/model/main.smithy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace com.example
22

3-
use amazon.smithy.llm#prompts
3+
use smithy.ai#prompts
44

55
@prompts({
66
search_users: { description: "Search for users in the system by various criteria", template: "Search for users where {{searchCriteria}}. Use pagination with limit={{limit}} if many results expected.", arguments: SearchUsersInput, preferWhen: "User wants to find specific users or browse user lists" }

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[versions]
22
junit5 = "5.13.4"
33
hamcrest = "3.0"
4-
smithy = "1.60.3"
4+
smithy = "1.61.0"
55
jmh = "0.7.3"
66
test-logger-plugin = "4.0.0"
77
spotbugs = "6.0.22"

mcp/mcp-server/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dependencies {
1616
implementation(project(":codecs:json-codec", configuration = "shadow"))
1717
implementation(project(":mcp:mcp-schemas"))
1818
implementation(project(":mcp:mcp-bundle-api"))
19-
implementation(project(":mcp:mcp-traits"))
19+
implementation(project(":smithy-ai-traits"))
2020
testRuntimeOnly(libs.smithy.aws.traits)
2121
testRuntimeOnly(project(":aws:client:aws-client-awsjson"))
2222
}

mcp/mcp-server/src/test/java/software/amazon/smithy/java/mcp/server/McpServerTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ private void writeNotification(String method, Document params) {
660660
661661
namespace smithy.test
662662
663-
use amazon.smithy.llm#prompts
663+
use smithy.ai#prompts
664664
665665
/// A TestService
666666
@aws.protocols#awsJson1_0
@@ -752,7 +752,7 @@ private void writeNotification(String method, Document params) {
752752
753753
namespace smithy.test.args
754754
755-
use amazon.smithy.llm#prompts
755+
use smithy.ai#prompts
756756
use aws.protocols#awsJson1_0
757757
758758
@awsJson1_0
@@ -780,7 +780,7 @@ private void writeNotification(String method, Document params) {
780780
781781
namespace smithy.test.edge
782782
783-
use amazon.smithy.llm#prompts
783+
use smithy.ai#prompts
784784
use aws.protocols#awsJson1_0
785785
786786
@awsJson1_0

mcp/mcp-server/src/test/resources/prompts/basic-prompt.smithy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace com.example
22

3-
use amazon.smithy.llm#prompts
3+
use smithy.ai#prompts
44

55
@prompts({
66
test_prompt: {

0 commit comments

Comments
 (0)