Skip to content

Commit da7a751

Browse files
authored
Merge branch 'main' into nova_reel_java_example
2 parents 3fc9500 + 83877ad commit da7a751

File tree

50 files changed

+1559
-286
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+1559
-286
lines changed

.doc_gen/metadata/bedrock-runtime_metadata.yaml

Lines changed: 54 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,6 @@ bedrock-runtime_Converse_Ai21LabsJurassic2:
7272
- description: Send a text message to AI21 Labs Jurassic-2, using Bedrock's Converse API.
7373
snippet_tags:
7474
- python.example_code.bedrock-runtime.Converse_Ai21LabsJurassic2
75-
JavaScript:
76-
versions:
77-
- sdk_version: 3
78-
github: javascriptv3/example_code/bedrock-runtime
79-
excerpts:
80-
- description: Send a text message to AI21 Labs Jurassic-2, using Bedrock's Converse API.
81-
snippet_tags:
82-
- javascript.v3.bedrock-runtime.Converse_Ai21LabsJurassic2
8375
services:
8476
bedrock-runtime: {Converse}
8577

@@ -108,6 +100,10 @@ bedrock-runtime_Converse_AmazonNovaText:
108100
- description: Send a text message to Amazon Nova, using Bedrock's Converse API.
109101
snippet_tags:
110102
- javascript.v3.bedrock-runtime.Converse_AmazonNovaText
103+
- description: Send a conversation of messages to Amazon Nova using Bedrock's Converse API with a tool configuration.
104+
genai: some
105+
snippet_tags:
106+
- Bedrock.ConverseTool.javascriptv3.SendConverseRequest
111107
Kotlin:
112108
versions:
113109
- sdk_version: 1
@@ -189,6 +185,22 @@ bedrock-runtime_Scenario_ToolUse:
189185
synopsis: "build a typical interaction between an application, a generative AI model, and connected tools or APIs to mediate interactions between the AI and the outside world. It uses the example of connecting an external weather API to the AI model so it can provide real-time weather information based on user input."
190186
category: Scenarios
191187
languages:
188+
Java:
189+
versions:
190+
- sdk_version: 2
191+
github: javav2/example_code/bedrock-runtime
192+
excerpts:
193+
- description: "The primary execution of the scenario flow. This scenario orchestrates the conversation between the user, the &BR; Converse API, and a weather tool."
194+
snippet_tags:
195+
- bedrock.converseTool.javav2.scenario
196+
- description: "The weather tool used by the demo. This file defines the tool specification and implements the logic to retrieve weather data using from the Open-Meteo API."
197+
genai: some
198+
snippet_tags:
199+
- bedrock.converseTool.javav2.weathertool
200+
- description: "The Converse API action with a tool configuration."
201+
genai: some
202+
snippet_tags:
203+
- bedrockruntime.java2.converse.main
192204
.NET:
193205
versions:
194206
- sdk_version: 3
@@ -206,6 +218,15 @@ bedrock-runtime_Scenario_ToolUse:
206218
genai: some
207219
snippet_tags:
208220
- Bedrock.ConverseTool.dotnetv3.SendConverseRequest
221+
JavaScript:
222+
versions:
223+
- sdk_version: 3
224+
github: javascriptv3/example_code/bedrock-runtime/scenarios/converse_tool_scenario
225+
excerpts:
226+
- description: "The primary execution of the scenario flow. This scenario orchestrates the conversation between the user, the &BR; Converse API, and a weather tool."
227+
genai: some
228+
snippet_tags:
229+
- Bedrock.ConverseTool.javascriptv3.Scenario
209230
Python:
210231
versions:
211232
- sdk_version: 3
@@ -739,14 +760,6 @@ bedrock-runtime_InvokeModel_Ai21LabsJurassic2:
739760
snippet_tags:
740761
- gov2.bedrock-runtime.InvokeModelWrapper.struct
741762
- gov2.bedrock-runtime.InvokeJurassic2
742-
JavaScript:
743-
versions:
744-
- sdk_version: 3
745-
github: javascriptv3/example_code/bedrock-runtime
746-
excerpts:
747-
- description: Use the Invoke Model API to send a text message.
748-
snippet_files:
749-
- javascriptv3/example_code/bedrock-runtime/models/ai21LabsJurassic2/invoke_model.js
750763
PHP:
751764
versions:
752765
- sdk_version: 3
@@ -1484,6 +1497,22 @@ bedrock-runtime_Scenario_ToolUseDemo_AmazonNova:
14841497
synopsis: "build a typical interaction between an application, a generative AI model, and connected tools or APIs to mediate interactions between the AI and the outside world. It uses the example of connecting an external weather API to the AI model so it can provide real-time weather information based on user input."
14851498
category: Amazon Nova
14861499
languages:
1500+
Java:
1501+
versions:
1502+
- sdk_version: 2
1503+
github: javav2/example_code/bedrock-runtime
1504+
excerpts:
1505+
- description: "The primary execution of the scenario flow. This scenario orchestrates the conversation between the user, the &BR; Converse API, and a weather tool."
1506+
snippet_tags:
1507+
- bedrock.converseTool.javav2.scenario
1508+
- description: "The weather tool used by the demo. This file defines the tool specification and implements the logic to retrieve weather data using from the Open-Meteo API."
1509+
genai: some
1510+
snippet_tags:
1511+
- bedrock.converseTool.javav2.weathertool
1512+
- description: "The Converse API action with a tool configuration."
1513+
genai: some
1514+
snippet_tags:
1515+
- bedrockruntime.java2.converse.main
14871516
.NET:
14881517
versions:
14891518
- sdk_version: 3
@@ -1501,6 +1530,15 @@ bedrock-runtime_Scenario_ToolUseDemo_AmazonNova:
15011530
genai: some
15021531
snippet_tags:
15031532
- Bedrock.ConverseTool.dotnetv3.SendConverseRequest
1533+
JavaScript:
1534+
versions:
1535+
- sdk_version: 3
1536+
github: javascriptv3/example_code/bedrock-runtime/scenarios/converse_tool_scenario
1537+
excerpts:
1538+
- description: "The primary execution of the scenario flow. This scenario orchestrates the conversation between the user, the &BR; Converse API, and a weather tool."
1539+
genai: some
1540+
snippet_tags:
1541+
- Bedrock.ConverseTool.javascriptv3.Scenario
15041542
services:
15051543
bedrock-runtime: {Converse}
15061544

.doc_gen/metadata/sns_metadata.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ sns_ListTopics:
311311
github: swift/example_code/sns/basics
312312
excerpts:
313313
- snippet_tags:
314+
- swift.sns.import
314315
- swift.sns.ListTopics
315316
SAP ABAP:
316317
versions:
@@ -549,6 +550,7 @@ sns_CreateTopic:
549550
github: swift/example_code/sns
550551
excerpts:
551552
- snippet_tags:
553+
- swift.sns.import
552554
- swift.sns.CreateTopic
553555
SAP ABAP:
554556
versions:
@@ -638,6 +640,7 @@ sns_DeleteTopic:
638640
github: swift/example_code/sns
639641
excerpts:
640642
- snippet_tags:
643+
- swift.sns.import
641644
- swift.sns.DeleteTopic
642645
SAP ABAP:
643646
versions:
@@ -783,6 +786,7 @@ sns_Publish:
783786
github: swift/example_code/sns
784787
excerpts:
785788
- snippet_tags:
789+
- swift.sns.import
786790
- swift.sns.Publish
787791
SAP ABAP:
788792
versions:
@@ -1113,9 +1117,11 @@ sns_Subscribe:
11131117
excerpts:
11141118
- description: Subscribe an email address to a topic.
11151119
snippet_tags:
1120+
- swift.sns.import
11161121
- swift.sns.SubscribeEmail
11171122
- description: Subscribe a phone number to a topic to receive notifications by SMS.
11181123
snippet_tags:
1124+
- swift.sns.import
11191125
- swift.sns.SubscribeSMS
11201126
SAP ABAP:
11211127
versions:
@@ -1196,6 +1202,7 @@ sns_Unsubscribe:
11961202
github: swift/example_code/sns
11971203
excerpts:
11981204
- snippet_tags:
1205+
- swift.sns.import
11991206
- swift.sns.Unsubscribe
12001207
SAP ABAP:
12011208
versions:

.doc_gen/metadata/sqs_metadata.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ sqs_CreateQueue:
183183
excerpts:
184184
- description:
185185
snippet_tags:
186+
- swift.sqs.import
186187
- swift.sqs.CreateQueue
187188
services:
188189
sqs: {CreateQueue}
@@ -349,6 +350,7 @@ sqs_ListQueues:
349350
excerpts:
350351
- description:
351352
snippet_tags:
353+
- swift.sqs.import
352354
- swift.sqs.ListQueues
353355
services:
354356
sqs: {ListQueues}
@@ -452,6 +454,7 @@ sqs_DeleteQueue:
452454
excerpts:
453455
- description:
454456
snippet_tags:
457+
- swift.sqs.import
455458
- swift.sqs.DeleteQueue
456459
services:
457460
sqs: {DeleteQueue}
@@ -709,6 +712,7 @@ sqs_ReceiveMessage:
709712
excerpts:
710713
- description:
711714
snippet_tags:
715+
- swift.sqs.import
712716
- swift.sqs.ReceiveMessage
713717
services:
714718
sqs: {ReceiveMessage}
@@ -834,6 +838,7 @@ sqs_DeleteMessageBatch:
834838
excerpts:
835839
- description:
836840
snippet_tags:
841+
- swift.sqs.import
837842
- swift.sqs.DeleteMessageBatch
838843
services:
839844
sqs: {DeleteMessageBatch}
@@ -914,6 +919,7 @@ sqs_GetQueueAttributes:
914919
excerpts:
915920
- description:
916921
snippet_tags:
922+
- swift.sqs.import
917923
- swift.sqs.GetQueueAttributes
918924
services:
919925
sqs: {GetQueueAttributes}
@@ -1018,6 +1024,7 @@ sqs_SetQueueAttributes:
10181024
excerpts:
10191025
- description:
10201026
snippet_tags:
1027+
- swift.sqs.import
10211028
- swift.sqs.SetQueueAttributes
10221029
Java:
10231030
versions:

.doc_gen/validation.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
allow_list:
22
# Git commits
3+
- "cad7e7ba2c59a54837212e789a5304b9108fac47"
34
- "cd5e746ec203c8c3c61647e0886a8df8c1e78e41"
45
- "725feb26d6f73bc1d83dbbe075ae8ea991efb245"
56
- "e9772d140489982e0e3704fea5ee93d536f1e275"

.tools/base_requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ pathspec==0.11.2
55
PyYAML==6.0.1
66
requests==2.32.0
77
types-PyYAML==6.0.12.12
8-
yamale==4.0.4
8+
yamale==4.0.4

.tools/readmes/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
jinja2>=3.0.3
22
pyyaml>=5.3.1
33
typer==0.15.1
4-
aws-doc-sdk-examples-tools @ git+https://github.com/awsdocs/aws-doc-sdk-examples-tools
4+
aws-doc-sdk-examples-tools @ git+https://github.com/awsdocs/aws-doc-sdk-examples-tools

.tools/readmes/requirements_freeze.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ typer==0.15.1
2929
types-PyYAML==6.0.12.12
3030
typing_extensions==4.12.2
3131
urllib3==2.3.0
32-
yamale==4.0.4
32+
yamale==4.0.4

.tools/readmes/runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def writeme(
7878
typer.Option(
7979
help="Save a copy of the original README as the 'saved_readme' value specified in config.py ({config.saved_readme})."
8080
),
81-
] = True,
81+
] = False,
8282
verbose: Annotated[
8383
bool, typer.Option(help="When set, output verbose debugging info.")
8484
] = False,

.tools/test/stacks/plugin/typescript/package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.tools/test/stacks/plugin/typescript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"@aws-cdk/aws-lambda-event-sources": "^1.204.0",
2727
"@aws-cdk/aws-s3": "^1.204.0",
2828
"@aws-cdk/core": "^1.204.0",
29-
"aws-cdk-lib": "2.184.0",
29+
"aws-cdk-lib": "2.189.0",
3030
"constructs": "^10.0.0",
3131
"source-map-support": "^0.5.21",
3232
"yaml": "^2.4.2"

applications/photo-asset-manager/cdk/package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

applications/photo-asset-manager/cdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"dependencies": {
1919
"@aws-cdk/aws-cloudformation": "^1.196.0",
2020
"@aws-sdk/client-cloudformation": "^3.621.0",
21-
"aws-cdk-lib": "^2.186.0",
21+
"aws-cdk-lib": "^2.189.0",
2222
"constructs": "^10.0.0"
2323
}
2424
}

0 commit comments

Comments
 (0)