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
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue