zed/docs/src
Gunner Kwon 5d3f275cbf
bedrock: Add Guardrail configuration support (#50084)
## 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>
2026-05-11 17:43:54 +00:00
..
ai bedrock: Add Guardrail configuration support (#50084) 2026-05-11 17:43:54 +00:00
business docs: Restructure nav and add Zed Business section (#51915) 2026-05-06 16:07:12 +00:00
collaboration docs: Update actions format (#54869) 2026-05-07 06:55:11 +00:00
development docs: Update actions format (#54869) 2026-05-07 06:55:11 +00:00
extensions docs: Update actions format (#54869) 2026-05-07 06:55:11 +00:00
languages docs: Update actions format (#54869) 2026-05-07 06:55:11 +00:00
migrate docs: Update actions format (#54869) 2026-05-07 06:55:11 +00:00
reference docs: Update actions format (#54869) 2026-05-07 06:55:11 +00:00
all-actions.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
appearance.md docs: Update actions format (#54869) 2026-05-07 06:55:11 +00:00
authentication.md docs: Update actions format (#54869) 2026-05-07 06:55:11 +00:00
command-palette.md docs: Update actions format (#54869) 2026-05-07 06:55:11 +00:00
completions.md Remove Supermaven-related code from Zed (#50537) 2026-03-02 22:18:49 +00:00
configuring-languages.md docs: Update actions format (#54869) 2026-05-07 06:55:11 +00:00
configuring-zed.md docs: Update actions format (#54869) 2026-05-07 06:55:11 +00:00
debugger.md docs: Remove Preview callouts for stable release (#50736) 2026-03-04 15:10:13 -05:00
dev-containers.md docs: Add AI SEO frontmatter (#48559) 2026-02-11 13:10:31 -08:00
development.md Improve documentation for ETW profiling (#50426) 2026-02-28 23:03:49 -05:00
diagnostics.md docs: Add AI SEO frontmatter (#48559) 2026-02-11 13:10:31 -08:00
editing-code.md docs: SEO content improvements for AI section (#49128) 2026-02-13 13:05:57 -08:00
environment.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
extensions.md Remove text thread and slash command crates (#52757) 2026-03-31 17:55:05 +02:00
finding-navigating.md Fix bad GitHub merge queue merge (#54721) 2026-04-23 23:47:30 +00:00
getting-started.md docs: Remove Preview callouts for stable release (#50736) 2026-03-04 15:10:13 -05:00
git.md docs: Add headings to worktree page (#55185) 2026-04-29 11:38:07 +00:00
globs.md docs: Remove Preview callouts for stable release (#50119) 2026-02-25 14:16:54 -06:00
helix.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
icon-themes.md docs: Update actions format (#54869) 2026-05-07 06:55:11 +00:00
installation.md docs: Add AI SEO frontmatter (#48559) 2026-02-11 13:10:31 -08:00
key-bindings.md docs: Update actions format (#54869) 2026-05-07 06:55:11 +00:00
languages.md bash: Add built-in language server support (#52811) 2026-05-06 22:38:44 +00:00
linux.md docs: Update actions format (#54869) 2026-05-07 06:55:11 +00:00
macos.md docs: Update actions format (#54869) 2026-05-07 06:55:11 +00:00
modelines.md Add vim/emacs modeline support (#49267) 2026-03-25 03:15:51 +00:00
multibuffers.md docs: Update actions format (#54869) 2026-05-07 06:55:11 +00:00
outline-panel.md docs: Update actions format (#54869) 2026-05-07 06:55:11 +00:00
performance.md docs: Center and re-flow perf images (#53004) 2026-04-02 10:24:43 -06:00
project-panel.md Fix bad GitHub merge queue merge (#54721) 2026-04-23 23:47:30 +00:00
quick-start.md docs: Reorganize introduction (#41387) 2025-10-28 17:39:40 -03:00
remote-development.md docs: Document Git worktrees (#55119) 2026-04-28 22:55:21 +00:00
repl.md docs: Update actions format (#54869) 2026-05-07 06:55:11 +00:00
roles.md docs: Add roles page under Account & Privacy section (#51413) 2026-03-13 10:48:54 -07:00
running-testing.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
semantic-tokens.md docs: Update actions format (#54869) 2026-05-07 06:55:11 +00:00
snippets.md docs: Remove outdated reference to simple-completion-language-server (#50732) 2026-03-04 18:45:52 +00:00
soc2.md docs: Restructure nav and add Zed Business section (#51915) 2026-05-06 16:07:12 +00:00
SUMMARY.md docs: Restructure nav and add Zed Business section (#51915) 2026-05-06 16:07:12 +00:00
tab-switcher.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
tasks.md docs: Update actions format (#54869) 2026-05-07 06:55:11 +00:00
telemetry.md docs: Restructure nav and add Zed Business section (#51915) 2026-05-06 16:07:12 +00:00
terminal.md docs: Update actions format (#54869) 2026-05-07 06:55:11 +00:00
themes.md docs: Update actions format (#54869) 2026-05-07 06:55:11 +00:00
toolchains.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
troubleshooting.md feedback: Add action for listing installed extensions (#48664) 2026-04-16 07:45:38 +00:00
uninstall.md docs: Update guide to remove user data on macOS when uninstalling Zed (#52631) 2026-03-31 05:35:04 +00:00
update.md docs: Update actions format (#54869) 2026-05-07 06:55:11 +00:00
vim.md docs: Update actions format (#54869) 2026-05-07 06:55:11 +00:00
visual-customization.md Handle hiding cursor on keyboard input at GPUI level (#55664) 2026-05-04 22:51:56 +00:00
windows.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
worktree-trust.md docs: Update actions format (#54869) 2026-05-07 06:55:11 +00:00