Skip to content

Commit 4a27f5d

Browse files
committed
Update to tool scenario.
1 parent a906575 commit 4a27f5d

File tree

5 files changed

+23
-167
lines changed

5 files changed

+23
-167
lines changed

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

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

31+
3132
/// <summary>
3233
/// Sends a Converse request to the Amazon Bedrock Converse API.
3334
/// </summary>

dotnetv3/Bedrock-runtime/Scenarios/ConverseToolScenario/MessageThread1.txt

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

dotnetv3/Bedrock-runtime/Scenarios/ConverseToolScenario/MessageThread2.txt

Lines changed: 0 additions & 60 deletions
This file was deleted.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"toolSpec": {
3+
"name": "Weather_Tool",
4+
"description": "Get the current weather for a given location, based on its WGS84 coordinates.",
5+
"inputSchema": {
6+
"json": {
7+
"type": "object",
8+
"properties": {
9+
"latitude": {
10+
"type": "string",
11+
"description": "Geographical WGS84 latitude of the location."
12+
},
13+
"longitude": {
14+
"type": "string",
15+
"description": "Geographical WGS84 longitude of the location."
16+
}
17+
},
18+
"required": [ "latitude", "longitude" ]
19+
}
20+
}
21+
}
22+
}

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

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

0 commit comments

Comments
 (0)