mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-16 06:53:47 +00:00
right naming
This commit is contained in:
parent
19d57b4d82
commit
04a2965967
10 changed files with 50 additions and 17 deletions
|
@ -54,8 +54,12 @@ class BedrockSafetyAdapter(Safety, ShieldsProtocolPrivate):
|
|||
)
|
||||
|
||||
async def run_shield(
|
||||
self, shield: Shield, messages: List[Message], params: Dict[str, Any] = None
|
||||
self, shield_id: str, messages: List[Message], params: Dict[str, Any] = None
|
||||
) -> RunShieldResponse:
|
||||
shield = await self.shield_store.get_shield(shield_id)
|
||||
if not shield:
|
||||
raise ValueError(f"Shield {shield_id} not found")
|
||||
|
||||
"""This is the implementation for the bedrock guardrails. The input to the guardrails is to be of this format
|
||||
```content = [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue