Adding Bedrock Guardrails integration #176
Open
+56
−13
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue #, if available:
129 - opened by another person. Slightly modified environment variable names from the original issue.
Description of changes:
Added Guardrail support. You can now enable/disable guardrails through an environment variable and also specify the guardrail and version to use via environment variables.
Added ENV variables:
ENABLE_GUARDRAIL (set to true to enable guardrail integration)
GUARDRAIL_IDENTIFIER (set to ARN of guardrail)
GUARDRAIL_VERSION (set to version of guardrail e.g. 1)
Please double check my work - we have been running this with good success so far, but that doesn't mean we have covered all cases.
Thank you for this repo - this has allowed us to move forward quickly!
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.