safety API cleanup part 1

Sample adapter implementation for Bedrock implementation of Guardrails
This commit is contained in:
Ashwin Bharambe 2024-09-20 10:57:26 -07:00
parent 90a59fd89b
commit 93e4ef3829
7 changed files with 130 additions and 78 deletions

View file

@ -0,0 +1,12 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.
from pydantic import BaseModel
class BedrockSafetyRequestProviderData(BaseModel):
aws_api_key: str
# other AWS specific keys you may need