Skip to content

Conversation

akingscote
Copy link

Issue196

Description of changes:
I've added sample examples of using strands hooks to integrate with three different third-party guardrails:

  • Llama Firewall
  • Guardrails AI
  • NVIDIA NeMO

Related discussion can be found here.

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

@manoj-selvakumar5
Copy link
Collaborator

Hi @akingscote - Could you please resolve the conflicts?

@akingscote
Copy link
Author

@manoj-selvakumar5 Done :)

Copy link

github-actions bot commented Oct 3, 2025

Latest scan for commit: eea669c | Updated: 2025-10-03 19:15:18 UTC

✅ Security Scan Report (PR Files Only)

Scanned Files

  • 02-samples/16-third-party-guardrails/01-llama-firewall/README.md
  • 02-samples/16-third-party-guardrails/01-llama-firewall/guardrail.py
  • 02-samples/16-third-party-guardrails/01-llama-firewall/main.py
  • 02-samples/16-third-party-guardrails/01-llama-firewall/requirements.txt
  • 02-samples/16-third-party-guardrails/02-guardrailai/README.md
  • 02-samples/16-third-party-guardrails/02-guardrailai/guardrail.py
  • 02-samples/16-third-party-guardrails/02-guardrailai/main.py
  • 02-samples/16-third-party-guardrails/02-guardrailai/requirements.txt
  • 02-samples/16-third-party-guardrails/03-nvidia-nemo/README.md
  • 02-samples/16-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.

print(resp)

# this will be blocked
resp = agent("Actually I dont care, f**k you")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please update line 35 with a non-profane toxic example? that would still trigger the guardrail

Copy link
Collaborator

@manoj-selvakumar5 manoj-selvakumar5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution! Could you please move these to 03-integrations folder? These examples fits better in the integrations folder since the 02-samples folder contains only end-to-end examples

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.

2 participants