AWS nova documentation change
Summary
Added example code snippet showing user query structure
Security assessment
Change adds example code but does not address security concerns
Diff
diff --git a/nova/latest/userguide/tool-use.md index 9bc703e7a..058b70c04 100644 --- a/nova/latest/userguide/tool-use.md +++ b/nova/latest/userguide/tool-use.md @@ -35 +35 @@ User query -The first step in the tool calling workflow is the user query to Amazon Nova for the result of a math equation - 10 times 5. This query is sent as the prompt to Amazon Nova along with a tool specification that represents the calculator +The first step in the tool calling workflow is the user query to Amazon Nova for the result of a math equation - 10 times 5. This query is sent as the prompt to Amazon Nova along with a tool specification that represents the calculator. @@ -37,0 +38,7 @@ The first step in the tool calling workflow is the user query to Amazon Nova for + user_query = "10*5" + + messages = [{ + "role": "user", + "content": [{"text": user_query}] + }] +