Skip to content

Commit 1466c82

Browse files
committed
Adding scenario files.
1 parent 4a27f5d commit 1466c82

File tree

6 files changed

+1
-284
lines changed

6 files changed

+1
-284
lines changed

.doc_gen/metadata/bedrock-runtime_metadata.yaml

Lines changed: 1 addition & 127 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,6 @@ bedrock-runtime_Hello:
2121
- description:
2222
snippet_files:
2323
- javascriptv3/example_code/bedrock-runtime/hello.js
24-
25-
Python:
26-
versions:
27-
- sdk_version: 3
28-
github: python/example_code/bedrock-runtime
29-
sdkguide:
30-
excerpts:
31-
- description: Send a prompt to a model with the InvokeModel operation.
32-
snippet_tags:
33-
- bedrock-runtime.example_code.hello_bedrock_invoke.complete
34-
- description: Send a user message to a model with the Converse operation.
35-
snippet_tags:
36-
- bedrock-runtime.example_code.hello_bedrock_converse.complete
37-
3824
services:
3925
bedrock-runtime: {InvokeModel}
4026

@@ -83,26 +69,6 @@ bedrock-runtime_Converse_Ai21LabsJurassic2:
8369
services:
8470
bedrock-runtime: {Converse}
8571

86-
bedrock-runtime_Converse_AmazonNovaText:
87-
title: Invoke Amazon Nova on &BR; using Bedrock's Converse API
88-
title_abbrev: "Converse"
89-
synopsis: send a text message to Amazon Nova, using Bedrock's Converse API.
90-
category: Amazon Nova
91-
languages:
92-
Java:
93-
versions:
94-
- sdk_version: 2
95-
github: javav2/example_code/bedrock-runtime
96-
excerpts:
97-
- description: Send a text message to Amazon Nova using Bedrock's Converse API with the async Java client.
98-
snippet_tags:
99-
- bedrock-runtime.java2.ConverseAsync_AmazonNovaText
100-
- description: Send a text message to Amazon Nova, using Bedrock's Converse API.
101-
snippet_tags:
102-
- bedrock-runtime.java2.Converse_AmazonNovaText
103-
services:
104-
bedrock-runtime: {Converse}
105-
10672
bedrock-runtime_Converse_AmazonTitanText:
10773
title: Invoke Amazon Titan Text on &BR; using Bedrock's Converse API
10874
title_abbrev: "Converse"
@@ -147,60 +113,6 @@ bedrock-runtime_Converse_AmazonTitanText:
147113
services:
148114
bedrock-runtime: {Converse}
149115

150-
bedrock-runtime_Scenario_ToolUse:
151-
title: "A tool use example illustrating how to connect AI models on &BR; with a custom tool or API"
152-
title_abbrev: "Tool use with the Converse API"
153-
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."
154-
category: Scenarios
155-
languages:
156-
.NET:
157-
versions:
158-
- sdk_version: 3
159-
github: dotnetv3/Bedrock-runtime/Scenarios/ConverseToolScenario
160-
excerpts:
161-
- description: "The primary execution of the scenario flow. This scenario orchestrates the conversation between the user, the &BR; Converse API, and a weather tool."
162-
genai: some
163-
snippet_tags:
164-
- Bedrock.ConverseTool.dotnetv3.Scenario
165-
- 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."
166-
genai: some
167-
snippet_tags:
168-
- Bedrock.ConverseTool.dotnetv3.WeatherTool
169-
- description: "The Converse API action with a tool configuration."
170-
genai: some
171-
snippet_tags:
172-
- Bedrock.ConverseTool.dotnetv3.SendConverseRequest
173-
Python:
174-
versions:
175-
- sdk_version: 3
176-
github: python/example_code/bedrock-runtime
177-
excerpts:
178-
- description: "The primary execution script of the demo. This script orchestrates the conversation between the user, the &BR; Converse API, and a weather tool."
179-
snippet_files:
180-
- python/example_code/bedrock-runtime/cross-model-scenarios/tool_use_demo/tool_use_demo.py
181-
- description: "The weather tool used by the demo. This script defines the tool specification and implements the logic to retrieve weather data using from the Open-Meteo API."
182-
snippet_files:
183-
- python/example_code/bedrock-runtime/cross-model-scenarios/tool_use_demo/weather_tool.py
184-
Rust:
185-
versions:
186-
- sdk_version: 1
187-
github: rustv1/examples/bedrock-runtime
188-
excerpts:
189-
- description: "The primary scenario and logic for the demo. This orchestrates the conversation between the user, the &BR; Converse API, and a weather tool."
190-
snippet_tags:
191-
- rust.bedrock-runtime.Converse_AnthropicClaude.tool-use
192-
- description: "The weather tool used by the demo. This script defines the tool specification and implements the logic to retrieve weather data using from the Open-Meteo API."
193-
snippet_tags:
194-
- rust.bedrock-runtime.Converse_AnthropicClaude.tool-use.weather-tool
195-
- description: "Utilities to print the Message Content Blocks."
196-
snippet_tags:
197-
- rust.bedrock-runtime.Converse_AnthropicClaude.tool-use.user-interface
198-
- description: "Use statements, Error utility, and constants."
199-
snippet_tags:
200-
- rust.bedrock-runtime.Converse_AnthropicClaude.tool-use.supporting
201-
services:
202-
bedrock-runtime: {Converse}
203-
204116
bedrock-runtime_Converse_AnthropicClaude:
205117
title: Invoke Anthropic Claude on &BR; using Bedrock's Converse API
206118
title_abbrev: "Converse"
@@ -227,7 +139,6 @@ bedrock-runtime_Converse_AnthropicClaude:
227139
snippet_tags:
228140
- BedrockRuntime.dotnetv3.Converse_AnthropicClaude
229141
- description: Send a conversation of messages to Anthropic Claude, using Bedrock's Converse API with a tool configuration.
230-
genai: some
231142
snippet_tags:
232143
- Bedrock.ConverseTool.dotnetv3.SendConverseRequest
233144
Python:
@@ -393,23 +304,6 @@ bedrock-runtime_Converse_Mistral:
393304
bedrock-runtime: {Converse}
394305

395306
# Converse Stream
396-
bedrock-runtime_ConverseStream_AmazonNovaText:
397-
title: Invoke Amazon Nova on &BR; using Bedrock's Converse API with a response stream
398-
title_abbrev: "ConverseStream"
399-
synopsis: send a text message to Amazon Nova, using Bedrock's Converse API and process the response stream in real-time.
400-
category: Amazon Nova
401-
languages:
402-
Java:
403-
versions:
404-
- sdk_version: 2
405-
github: javav2/example_code/bedrock-runtime
406-
excerpts:
407-
- description: Send a text message to Amazon Nova using Bedrock's Converse API and process the response stream in real-time.
408-
snippet_tags:
409-
- bedrock-runtime.java2.ConverseStream_AmazonNovaText
410-
services:
411-
bedrock-runtime: {ConverseStream}
412-
413307
bedrock-runtime_ConverseStream_AmazonTitanText:
414308
title: Invoke Amazon Titan Text on &BR; using Bedrock's Converse API with a response stream
415309
title_abbrev: "ConverseStream"
@@ -1027,7 +921,7 @@ bedrock-runtime_InvokeModelWithResponseStream_AnthropicClaude:
1027921
excerpts:
1028922
- description: Use the Invoke Model API to send a text message and process the response stream in real-time.
1029923
snippet_tags:
1030-
- gov2.bedrock-runtime.InvokeModelWithResponseStreamWrapper.struct
924+
- gov2.bedrock-runtime.InvokeModelWrapper.struct
1031925
- gov2.bedrock-runtime.InvokeModelWithResponseStream
1032926
JavaScript:
1033927
versions:
@@ -1181,23 +1075,6 @@ bedrock-runtime_InvokeModelWithResponseStream_MistralAi:
11811075
bedrock-runtime: {InvokeModelWithResponseStream}
11821076

11831077
# Image Generation Models
1184-
bedrock-runtime_InvokeModel_AmazonNovaImageGeneration:
1185-
title: Invoke Amazon Nova Canvas on &BR; to generate an image
1186-
title_abbrev: "InvokeModel"
1187-
synopsis: invoke Amazon Nova Canvas on &BR; to generate an image.
1188-
category: Amazon Nova Canvas
1189-
languages:
1190-
Java:
1191-
versions:
1192-
- sdk_version: 2
1193-
github: javav2/example_code/bedrock-runtime
1194-
excerpts:
1195-
- description: Create an image with Amazon Nova Canvas.
1196-
snippet_tags:
1197-
- bedrock-runtime.java2.InvokeModel_AmazonNovaImageGeneration
1198-
services:
1199-
bedrock-runtime: {InvokeModel}
1200-
12011078
bedrock-runtime_InvokeModel_TitanImageGenerator:
12021079
title: Invoke Amazon Titan Image on &BR; to generate an image
12031080
title_abbrev: "InvokeModel"
@@ -1329,15 +1206,12 @@ bedrock-runtime_Scenario_ToolUseDemo_AnthropicClaude:
13291206
github: dotnetv3/Bedrock-runtime/Scenarios/ConverseToolScenario
13301207
excerpts:
13311208
- description: "The primary execution of the scenario flow. This scenario orchestrates the conversation between the user, the &BR; Converse API, and a weather tool."
1332-
genai: some
13331209
snippet_tags:
13341210
- Bedrock.ConverseTool.dotnetv3.Scenario
13351211
- 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."
1336-
genai: some
13371212
snippet_tags:
13381213
- Bedrock.ConverseTool.dotnetv3.WeatherTool
13391214
- description: "The Converse API action with a tool configuration."
1340-
genai: some
13411215
snippet_tags:
13421216
- Bedrock.ConverseTool.dotnetv3.SendConverseRequest
13431217
Python:

dotnetv3/Bedrock-runtime/Scenarios/ConverseToolScenario/BedrockActionsWrapper.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ public BedrockActionsWrapper(IAmazonBedrockRuntime bedrockClient, ILogger<Bedroc
2828
_logger = logger;
2929
}
3030

31-
3231
/// <summary>
3332
/// Sends a Converse request to the Amazon Bedrock Converse API.
3433
/// </summary>

dotnetv3/Bedrock-runtime/Scenarios/ConverseToolScenario/ToolSpec.json

Lines changed: 0 additions & 22 deletions
This file was deleted.

dotnetv4/Bedrock/BedrockExamples.sln

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{898AFE57
1111
EndProject
1212
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BedrockTests", "Tests\BedrockTests.csproj", "{5486426B-A8E8-4C6A-BEE2-83DD7CDB68A6}"
1313
EndProject
14-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Scenarios", "Scenarios", "{A3F7526C-B026-497B-A9A5-D503BB53EF72}"
15-
EndProject
16-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConverseToolScenario", "Scenarios\ConverseToolScenario\ConverseToolScenario.csproj", "{1CF238B1-BCA5-4615-9F43-36BC2D61E7C6}"
17-
EndProject
1814
Global
1915
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2016
Debug|Any CPU = Debug|Any CPU
@@ -29,18 +25,13 @@ Global
2925
{5486426B-A8E8-4C6A-BEE2-83DD7CDB68A6}.Debug|Any CPU.Build.0 = Debug|Any CPU
3026
{5486426B-A8E8-4C6A-BEE2-83DD7CDB68A6}.Release|Any CPU.ActiveCfg = Release|Any CPU
3127
{5486426B-A8E8-4C6A-BEE2-83DD7CDB68A6}.Release|Any CPU.Build.0 = Release|Any CPU
32-
{1CF238B1-BCA5-4615-9F43-36BC2D61E7C6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
33-
{1CF238B1-BCA5-4615-9F43-36BC2D61E7C6}.Debug|Any CPU.Build.0 = Debug|Any CPU
34-
{1CF238B1-BCA5-4615-9F43-36BC2D61E7C6}.Release|Any CPU.ActiveCfg = Release|Any CPU
35-
{1CF238B1-BCA5-4615-9F43-36BC2D61E7C6}.Release|Any CPU.Build.0 = Release|Any CPU
3628
EndGlobalSection
3729
GlobalSection(SolutionProperties) = preSolution
3830
HideSolutionNode = FALSE
3931
EndGlobalSection
4032
GlobalSection(NestedProjects) = preSolution
4133
{C47E3B3E-0040-4CB6-AB92-EF4395C1EB83} = {0DD1E95E-9EF2-4E43-86B3-F636736BE054}
4234
{5486426B-A8E8-4C6A-BEE2-83DD7CDB68A6} = {898AFE57-24C6-4D79-81C2-614873B38F62}
43-
{1CF238B1-BCA5-4615-9F43-36BC2D61E7C6} = {A3F7526C-B026-497B-A9A5-D503BB53EF72}
4435
EndGlobalSection
4536
GlobalSection(ExtensibilityGlobals) = postSolution
4637
SolutionGuid = {3D82D9F6-BE3C-40F1-9224-B8E4D746FC2E}

dotnetv4/Bedrock/Scenarios/ConverseToolScenario/ConverseToolScenario.cs

Lines changed: 0 additions & 104 deletions
This file was deleted.

dotnetv4/Bedrock/Scenarios/ConverseToolScenario/ConverseToolScenario.csproj

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)