diff --git a/dotnetv3/Bedrock-runtime/Scenarios/ConverseToolScenario/ConverseToolScenario.cs b/dotnetv3/Bedrock-runtime/Scenarios/ConverseToolScenario/ConverseToolScenario.cs index f220fd4c3d6..bba501c584e 100644 --- a/dotnetv3/Bedrock-runtime/Scenarios/ConverseToolScenario/ConverseToolScenario.cs +++ b/dotnetv3/Bedrock-runtime/Scenarios/ConverseToolScenario/ConverseToolScenario.cs @@ -36,6 +36,7 @@ The script interacts with a foundation model on Amazon Bedrock to provide weathe private static string system_prompt = @" You are a weather assistant that provides current weather data for user-specified locations using only the Weather_Tool, which expects latitude and longitude. Infer the coordinates from the location yourself. + If the user specifies a state, country, or region, infer the locations of cities within that state. If the user provides coordinates, infer the approximate location and refer to it in your response. To use the tool, you strictly apply the provided tool specification. diff --git a/scenarios/features/bedrock_converse_tool/README.md b/scenarios/features/bedrock_converse_tool/README.md index 3e8cb087dcf..e2f72836e18 100644 --- a/scenarios/features/bedrock_converse_tool/README.md +++ b/scenarios/features/bedrock_converse_tool/README.md @@ -19,8 +19,6 @@ This example illustrates a typical interaction between a generative AI model, an ![img.png](toolscenario.png) -![img.png](toolscenario.png) - ### Resources No additional resources are needed for this scenario. diff --git a/scenarios/features/bedrock_converse_tool/SPECIFICATION.md b/scenarios/features/bedrock_converse_tool/SPECIFICATION.md index 474980999a9..ead669b454f 100644 --- a/scenarios/features/bedrock_converse_tool/SPECIFICATION.md +++ b/scenarios/features/bedrock_converse_tool/SPECIFICATION.md @@ -15,6 +15,7 @@ For an introduction, see the [README.md](README.md). ### Table of contents - [User Input](#user-input) +- [Model Selection](#model-selection) - [Example Output](#example-output) - [Errors](#errors) - [Metadata](#metadata) @@ -32,13 +33,17 @@ This process can be repeated as needed until a maximum number of recursions (5). 3. The application then uses the Weather_Tool to retrieve the current weather data for those coordinates, and appends that response as a tool response to the conversation. The conversation is sent back to the model. 4. The model responds with either a final response, or a request for more information. The process repeats. 5. The application prints the final response. -1. Any off topic requests should be handled according to the system prompt. This prompt is provided below. +1. Any off-topic requests should be handled according to the system prompt. This prompt is provided below. 1. The user can type 'x' to exit the application. +#### Model Selection +Default to model "amazon.nova-lite-v1:0". + #### System prompt ``` You are a weather assistant that provides current weather data for user-specified locations using only the Weather_Tool, which expects latitude and longitude. Infer the coordinates from the location yourself. +If the user specifies a state, country, or region, infer the locations of cities within that state. If the user provides coordinates, infer the approximate location and refer to it in your response. To use the tool, you strictly apply the provided tool specification.