Skip to content

Commit 66d5277

Browse files
committed
Updates to READMEs.
1 parent 98167fd commit 66d5277

File tree

2 files changed

+46
-2
lines changed

2 files changed

+46
-2
lines changed

python/example_code/bedrock-runtime/README.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ python -m pip install -r requirements.txt
3838
> see [Model access](https://docs.aws.amazon.com/bedrock/latest/userguide/model-access.html).
3939
>
4040
<!--custom.prerequisites.end-->
41+
### Scenarios
42+
43+
Code examples that show you how to accomplish a specific task by calling multiple
44+
functions within the same service.
45+
46+
- [Tool use with the Converse API](cross-model-scenarios/tool_use_demo/tool_use_demo.py)
47+
4148
### AI21 Labs Jurassic-2
4249

4350
- [Converse](models/ai21_labs_jurassic2/converse.py#L4)
@@ -122,6 +129,24 @@ Mistral AI.
122129

123130

124131

132+
#### Tool use with the Converse API
133+
134+
This example shows you how to 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.
135+
136+
137+
<!--custom.scenario_prereqs.bedrock-runtime_Scenario_ToolUse.start-->
138+
<!--custom.scenario_prereqs.bedrock-runtime_Scenario_ToolUse.end-->
139+
140+
Start the example by running the following at a command prompt:
141+
142+
```
143+
python cross-model-scenarios/tool_use_demo/tool_use_demo.py
144+
```
145+
146+
147+
<!--custom.scenarios.bedrock-runtime_Scenario_ToolUse.start-->
148+
<!--custom.scenarios.bedrock-runtime_Scenario_ToolUse.end-->
149+
125150
### Tests
126151

127152
⚠ Running tests might result in charges to your AWS account.
@@ -148,4 +173,4 @@ in the `python` folder.
148173

149174
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
150175

151-
SPDX-License-Identifier: Apache-2.0
176+
SPDX-License-Identifier: Apache-2.0

rustv1/examples/bedrock-runtime/README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ For prerequisites, see the [README](../../README.md#Prerequisites) in the `rustv
2828

2929
<!--custom.prerequisites.start-->
3030
<!--custom.prerequisites.end-->
31+
### Scenarios
32+
33+
Code examples that show you how to accomplish a specific task by calling multiple
34+
functions within the same service.
35+
36+
- [Tool use with the Converse API](src/bin/tool-use.rs)
37+
3138
### Anthropic Claude
3239

3340
- [Converse](src/bin/converse.rs#L43)
@@ -48,6 +55,18 @@ For prerequisites, see the [README](../../README.md#Prerequisites) in the `rustv
4855

4956

5057

58+
#### Tool use with the Converse API
59+
60+
This example shows you how to 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.
61+
62+
63+
<!--custom.scenario_prereqs.bedrock-runtime_Scenario_ToolUse.start-->
64+
<!--custom.scenario_prereqs.bedrock-runtime_Scenario_ToolUse.end-->
65+
66+
67+
<!--custom.scenarios.bedrock-runtime_Scenario_ToolUse.start-->
68+
<!--custom.scenarios.bedrock-runtime_Scenario_ToolUse.end-->
69+
5170
### Tests
5271

5372
⚠ Running tests might result in charges to your AWS account.
@@ -74,4 +93,4 @@ in the `rustv1` folder.
7493

7594
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
7695

77-
SPDX-License-Identifier: Apache-2.0
96+
SPDX-License-Identifier: Apache-2.0

0 commit comments

Comments
 (0)