Skip to content

Conversation

@manoj-selvakumar5
Copy link
Collaborator

Description

Third-party guardrail integrations for Strands Agents including NVIDIA NeMo, GuardRails AI, and Llama Firewall.

Attribution

This PR builds upon the excellent work by @akingscote in #136.

Changes from original PR:

  • Moved from 02-samples/ to 03-integrations/
  • Fixed documentation typos
  • Replaced profane example with non-profane example
  • Updated references in README files

All core implementation and examples credit to @akingscote.

Supersedes #136

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

akingscote and others added 9 commits November 11, 2025 19:01
Resolves directory numbering conflict with upstream samples.
The number 16 is already used by lambda-error-analysis-agent,
so renumbering to 19 which is the next available slot.
- Moved 02-samples/19-third-party-guardrails to 03-integrations/third-party-guardrails
- Removed entry 19 from 02-samples README
- Added new integration entry to 03-integrations README
- Removed Python cache files before move
- README.md: 'recommended use' -> 'recommended to use', 'way to extracting' -> 'way to extract'
- 01-llama-firewall/README.md: 'wiill' -> 'will'
- 03-nvidia-nemo/README.md: 'seperately' -> 'separately', 'nvivida' -> 'nvidia', 'guardrai' -> 'guardrail'
- Changed line 35 from profanity to a non-profane toxic example
- Example still triggers the toxic language guardrail as intended
- Makes the code example more appropriate for documentation
@github-actions
Copy link

github-actions bot commented Nov 11, 2025

Latest scan for commit: ddb7292 | Updated: 2025-11-12 14:31:08 UTC

✅ Security Scan Report (PR Files Only)

Scanned Files

  • 03-integrations/third-party-guardrails/01-llama-firewall/README.md
  • 03-integrations/third-party-guardrails/01-llama-firewall/guardrail.py
  • 03-integrations/third-party-guardrails/01-llama-firewall/main.py
  • 03-integrations/third-party-guardrails/01-llama-firewall/requirements.txt
  • 03-integrations/third-party-guardrails/02-guardrailai/README.md
  • 03-integrations/third-party-guardrails/02-guardrailai/guardrail.py
  • 03-integrations/third-party-guardrails/02-guardrailai/main.py
  • 03-integrations/third-party-guardrails/02-guardrailai/requirements.txt
  • 03-integrations/third-party-guardrails/03-nvidia-nemo/README.md
  • 03-integrations/third-party-guardrails/03-nvidia-nemo/guardrail.py
  • ... and 7 more files

Security Scan Results

Critical High Medium Low Info
0 0 0 0 0

Threshold: High

No security issues detected in your changes. Great job!

This scan only covers files changed in this PR.

@akingscote
Copy link
Contributor

Thanks for sorting this out @manoj-selvakumar5

I did do a little writeup on my blog about them if thats useful at all -> https://akingscote.co.uk/posts/aws-strands-agents-guardrail-integration/

akshseh
akshseh previously approved these changes Nov 12, 2025
@akshseh akshseh enabled auto-merge (squash) November 12, 2025 14:29
@akshseh akshseh merged commit 9284852 into strands-agents:main Nov 12, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants