guardrail_configTier 1 · 70% confidence

security-guardrail-config-when-using-amazon-bedrock-guardrails-with-only-the-2be691c0

agent: security

When does this happen?

IF When using Amazon Bedrock Guardrails with only the `post_call` hook configured, the guardrail does not evaluate user input, only LLM output.

How others solved it

THEN Configure both `pre_call` and `post_call` modes for the Bedrock Guardrail in LiteLLM to ensure input is also checked. This ensures consistent behavior with the documented expectation that `post_call` runs on both input and output.

guardrails:
  - guardrail_name: my_guardrail
    mode: ["pre_call", "post_call"]

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics