mirror of
https://github.com/zed-industries/zed.git
synced 2026-05-26 07:24:46 +00:00
## Background: Amazon Bedrock Guardrails
AWS Bedrock Guardrails enables configurable safety and compliance
controls for generative AI applications:
- Evaluates both user inputs and model responses against policies.
:contentReference[oaicite:8]{index=8}
- Can block or filter content based on harmful categories, denied
topics, PII, or hallucination criteria.
:contentReference[oaicite:9]{index=9}
- Guardrails are applied during inference API calls by specifying
`guardrailIdentifier` and `guardrailVersion` in the request.
:contentReference[oaicite:10]{index=10}
Relevant AWS documentation:
- User Guide:
https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html
- How Guardrails Works:
https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-how.html
- API Reference (GuardrailConfiguration):
https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GuardrailConfiguration.html
Some AWS environments enforce IAM policies that require a guardrail to
be specified on every Bedrock API call (via a `StringEquals` condition
on `bedrock:GuardrailIdentifier`). Without this, Zed returns
`AccessDenied` and Bedrock models are completely unusable in those
environments.
This adds two optional settings, `guardrail_identifier` and
`guardrail_version`, to the Bedrock provider config. When set, a
`GuardrailStreamConfiguration` is attached to every `converse_stream`
request. When unset, behaviour is identical to before.
```json
{
"language_models": {
"bedrock": {
"guardrail_identifier": "arn:aws:bedrock:us-east-1:123456789012:guardrail/abc123",
"guardrail_version": "DRAFT"
}
}
}
```
`guardrail_version` defaults to `"DRAFT"` if omitted.
Release Notes:
- agent: Added `guardrail_identifier` and `guardrail_version` settings
for AWS Bedrock, enabling use in environments where IAM policies require
a guardrail on all model requests
---------
Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
|
||
|---|---|---|
| .. | ||
| ai | ||
| business | ||
| collaboration | ||
| development | ||
| extensions | ||
| languages | ||
| migrate | ||
| reference | ||
| all-actions.md | ||
| appearance.md | ||
| authentication.md | ||
| command-palette.md | ||
| completions.md | ||
| configuring-languages.md | ||
| configuring-zed.md | ||
| debugger.md | ||
| dev-containers.md | ||
| development.md | ||
| diagnostics.md | ||
| editing-code.md | ||
| environment.md | ||
| extensions.md | ||
| finding-navigating.md | ||
| getting-started.md | ||
| git.md | ||
| globs.md | ||
| helix.md | ||
| icon-themes.md | ||
| installation.md | ||
| key-bindings.md | ||
| languages.md | ||
| linux.md | ||
| macos.md | ||
| modelines.md | ||
| multibuffers.md | ||
| outline-panel.md | ||
| performance.md | ||
| project-panel.md | ||
| quick-start.md | ||
| remote-development.md | ||
| repl.md | ||
| roles.md | ||
| running-testing.md | ||
| semantic-tokens.md | ||
| snippets.md | ||
| soc2.md | ||
| SUMMARY.md | ||
| tab-switcher.md | ||
| tasks.md | ||
| telemetry.md | ||
| terminal.md | ||
| themes.md | ||
| toolchains.md | ||
| troubleshooting.md | ||
| uninstall.md | ||
| update.md | ||
| vim.md | ||
| visual-customization.md | ||
| windows.md | ||
| worktree-trust.md | ||