Skip to content

feat(01-learn): add 18-input-output-guardrails tutorial#267

Open
SyedAn-Git wants to merge 3 commits into
strands-agents:mainfrom
SyedAn-Git:feat/18-input-output-guardrails
Open

feat(01-learn): add 18-input-output-guardrails tutorial#267
SyedAn-Git wants to merge 3 commits into
strands-agents:mainfrom
SyedAn-Git:feat/18-input-output-guardrails

Conversation

@SyedAn-Git

Copy link
Copy Markdown

Adds Input/Output Guardrails tutorial to python/01-learn/

Covers:

  • Input guardrails (BeforeInvocationEvent)
  • Output guardrails (AfterInvocationEvent) with BLOCK/REDACT
  • Custom content filters (regex, keyword, format compliance)
  • GuardrailPlugin (HookProvider pattern)
  • Tool call validation (BeforeToolCallEvent)
  • Error handling (fail-open vs fail-closed)

Tested on SageMaker Studio with strands-agents 1.40.0

@SyedAn-Git

Copy link
Copy Markdown
Author

@manoj-selvakumar5 Ready for review. This is the Input/Output Guardrails tutorial.

@SyedAn-Git

Copy link
Copy Markdown
Author

Pushed a fix commit (476e346) — inlined content filter classes directly into notebooks and added logger definitions so each notebook runs independently without cross-file dependencies. All 6 notebooks tested clean on SageMaker Studio.

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.

1 participant