Skip to content

Commit a1ad65a

Browse files
committed
Adding to scenarios.
1 parent ae54a42 commit a1ad65a

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

.doc_gen/metadata/bedrock-runtime_metadata.yaml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,57 @@ bedrock-runtime_Converse_AmazonTitanText:
113113
services:
114114
bedrock-runtime: {Converse}
115115

116+
bedrock-runtime_Scenario_ToolUse:
117+
title: "A tool use example illustrating how to connect AI models on &BR; with a custom tool or API"
118+
title_abbrev: "Tool use with the Converse API"
119+
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."
120+
category: Scenarios
121+
languages:
122+
.NET:
123+
versions:
124+
- sdk_version: 3
125+
github: dotnetv3/Bedrock-runtime/Scenarios/ConverseToolScenario
126+
excerpts:
127+
- description: "The primary execution of the scenario flow. This scenario orchestrates the conversation between the user, the &BR; Converse API, and a weather tool."
128+
snippet_tags:
129+
- Bedrock.ConverseTool.dotnetv3.Scenario
130+
- 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."
131+
snippet_tags:
132+
- Bedrock.ConverseTool.dotnetv3.WeatherTool
133+
- description: "The Converse API action with a tool configuration."
134+
snippet_tags:
135+
- Bedrock.ConverseTool.dotnetv3.SendConverseRequest
136+
Python:
137+
versions:
138+
- sdk_version: 3
139+
github: python/example_code/bedrock-runtime
140+
excerpts:
141+
- description: "The primary execution script of the demo. This script orchestrates the conversation between the user, the &BR; Converse API, and a weather tool."
142+
snippet_files:
143+
- python/example_code/bedrock-runtime/cross-model-scenarios/tool_use_demo/tool_use_demo.py
144+
- 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."
145+
snippet_files:
146+
- python/example_code/bedrock-runtime/cross-model-scenarios/tool_use_demo/weather_tool.py
147+
Rust:
148+
versions:
149+
- sdk_version: 1
150+
github: rustv1/examples/bedrock-runtime
151+
excerpts:
152+
- description: "The primary scenario and logic for the demo. This orchestrates the conversation between the user, the &BR; Converse API, and a weather tool."
153+
snippet_tags:
154+
- rust.bedrock-runtime.Converse_AnthropicClaude.tool-use
155+
- 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."
156+
snippet_tags:
157+
- rust.bedrock-runtime.Converse_AnthropicClaude.tool-use.weather-tool
158+
- description: "Utilities to print the Message Content Blocks."
159+
snippet_tags:
160+
- rust.bedrock-runtime.Converse_AnthropicClaude.tool-use.user-interface
161+
- description: "Use statements, Error utility, and constants."
162+
snippet_tags:
163+
- rust.bedrock-runtime.Converse_AnthropicClaude.tool-use.supporting
164+
services:
165+
bedrock-runtime: {Converse}
166+
116167
bedrock-runtime_Converse_AnthropicClaude:
117168
title: Invoke Anthropic Claude on &BR; using Bedrock's Converse API
118169
title_abbrev: "Converse"

0 commit comments

Comments
 (0)