This pipeline demonstrates how to generate a function, invoke the tool, and retrieve results to identify India's neighboring countries.
-
Configure the JSON Generator Snap with the prompt in the Edit JSON field as follows:
-
Configure the Amazon Bedrock Function Generator Snap to define a function and provide the description as follows:
-
Configure the Amazon Bedrock Converse API Tool Calling Snap as follows to fetch the get_borders tool:
On validation, the Snap displays the toolUseID and the invoked tool in the second output.
Amazon Bedrock Converse API Tool Calling Configuration |
Amazon Bedrock Converse API Tool Calling Output |
|
|
-
Configure the HTTP Client Snap to fetch country data from the Restcountries API using the specified URL.
On validation, the Snap displays the related information for India.
HTTP Client Snap Configuration |
HTTP Client Snap Output |
|
|
-
Configure the Amazon Bedrock Function Result Generator Snap to fetch the results with the required tool.
On validation, the Snap displays the neighboring countries of India.
Amazon Bedrock Function Result Generator Snap Configuration |
Amazon Bedrock Function Result Generator Snap Output |
|
|
To successfully reuse pipelines:
- Download and import the pipeline into SnapLogic Platform.
- Configure Snap accounts, as applicable.
- Provide pipeline parameters, as applicable.