Helper function to validate AWS credentials and create an AWS client.
Check if the thinking parameter is enabled in the request.
Trim trailing whitespace from final AIMessage content.
Base class for Nova system tools.
System tools are built-in tools provided by Nova models that execute server-side within the Bedrock API. Unlike custom tools, system tools don't require client-side implementation ā the model invokes them internally, and results are returned as part of the response.
This class extends BaseTool so that system tools are accepted by
LangGraph's ToolNode and create_react_agent. During normal
operation, _run is never called because the Bedrock API returns
system tool results as server_tool_use / server_tool_result
content blocks, which do not appear in AIMessage.tool_calls.
Bedrock chat model integration built on the Bedrock converse API.
This implementation will eventually replace the existing ChatBedrock implementation once the Bedrock converse API has feature parity with older Bedrock API. Specifically the converse API does not yet support custom Bedrock models.