NovaGroundingTool(
self,
)Helper for Nova's web grounding system tool.
The nova_grounding tool enables the model to search the web for current information. The model autonomously decides when to invoke the tool and processes the results.
Note:
Requires bedrock:InvokeTool IAM permission.
Example:
from langchain_aws import ChatBedrockConverse from langchain_aws.tools import NovaGroundingTool
model = ChatBedrockConverse(model="amazon.nova-2-lite-v1:0") model_with_search = model.bind_tools([NovaGroundingTool()]) response = model_with_search.invoke("What's the latest news?")