docs: add guardLatestUserMessage to TypeScript Bedrock guardrails#646
docs: add guardLatestUserMessage to TypeScript Bedrock guardrails#646
Conversation
There was a problem hiding this comment.
Assessment: Request Changes
The documentation changes achieve feature parity between Python and TypeScript for the guardLatestUserMessage option and are well-written. However, the PR includes a build artifact that must be removed before merging.
Review Details
- Critical:
build_output.log(141KB build artifact) was accidentally committed and must be removed - Documentation: Changes to
amazon-bedrock.mdxandamazon-bedrock.tsare correct and follow existing patterns
Please remove the build_output.log file and this PR will be ready to merge. 👍
Documentation Preview ReadyYour documentation preview has been successfully deployed! Preview URL: https://d3ehv1nix5p99z.cloudfront.net/pr-cms-646/docs/user-guide/quickstart/overview/ Updated at: 2026-03-19T22:37:19.978Z |
Documentation Preview FailedThe documentation deployment encountered an error. Please check the deployment logs for more details. |
Add documentation for the guardLatestUserMessage feature in the TypeScript SDK's BedrockModel guardrail configuration: - Add guardLatestUserMessage: true to TypeScript guardrails code example - Add explanatory note explaining the feature's purpose and benefits - Achieve feature parity with existing Python SDK documentation This feature allows guardrails to evaluate only the most recent user message instead of the entire conversation history, improving performance and reducing costs in multi-turn conversations. Resolves #643
b7adde0 to
c2bb39e
Compare
|
Assessment: Approve ✅ PR is in good shape. The documentation changes achieve feature parity with Python SDK and follow existing patterns. Verification
The CI preview deployment failure appears to be an infrastructure issue unrelated to the PR content. Ready to merge! 🎉 |
…rands-agents#646) Co-authored-by: Strands Agent <217235299+strands-agent@users.noreply.github.com>
Summary
This PR adds documentation for the
guardLatestUserMessagefeature in the TypeScript SDK's BedrockModel guardrail configuration, achieving feature parity with the existing Python SDK documentation.Changes
Files Modified
src/content/docs/user-guide/concepts/model-providers/amazon-bedrock.tsguardLatestUserMessage: trueoption to the guardrails code examplesrc/content/docs/user-guide/concepts/model-providers/amazon-bedrock.mdxWhat This Feature Does
The
guardLatestUserMessageoption allows guardrails to evaluate only the most recent user message instead of the entire conversation history. This provides:Verification
npm run build)Resolves #643