right naming

This commit is contained in:
Dinesh Yeduguru 2024-11-07 22:24:45 -08:00
parent 19d57b4d82
commit 04a2965967
10 changed files with 50 additions and 17 deletions

View file

@ -48,10 +48,13 @@ class MetaReferenceSafetyImpl(Safety, ShieldsProtocolPrivate):
async def run_shield(
self,
shield: Shield,
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")
shield_impl = self.get_shield_impl(shield)