feat: create unregister shield API endpoint

This commit is contained in:
r3v5 2025-07-22 12:28:18 +01:00
parent 9e6860b9cf
commit ac6034ed1e
No known key found for this signature in database
GPG key ID: 7758B9F272DE67D9
13 changed files with 135 additions and 1 deletions

View file

@ -52,6 +52,9 @@ class BedrockSafetyAdapter(Safety, ShieldsProtocolPrivate):
f"Shield {shield.provider_resource_id} with version {shield.params['guardrailVersion']} not found in Bedrock"
)
async def unregister_shield(self, identifier: str) -> None:
pass
async def run_shield(
self, shield_id: str, messages: list[Message], params: dict[str, Any] = None
) -> RunShieldResponse: