Skip to content

Conversation

itskyf
Copy link
Contributor

@itskyf itskyf commented Oct 6, 2025

Selective Bedrock Guardrail

  • The plugin now runs the guardrail only on the latest user message when guardrailConfig is set.
  • Since guardrails are charged per token, guard the latest user message will reduce the cost.

Typing for aioboto3

  • Added types-aioboto3[bedrock-runtime] to the dev dependencies for better IDE support and type hints.
  • It’s used only in TYPE_CHECKING, I try to not change any logic.

@itskyf itskyf force-pushed the feat/bedrock-guardrails branch from 3abbeed to 53e5076 Compare October 7, 2025 02:13
@itskyf itskyf force-pushed the feat/bedrock-guardrails branch from 2e3d080 to 445b739 Compare October 14, 2025 07:44
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.

2 participants