mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-23 16:03:56 +00:00
chore(api): add mypy coverage to meta_reference_safety
Signed-off-by: Mustafa Elbehery <melbeher@redhat.com>
This commit is contained in:
parent
daf660c4ea
commit
fa5b080318
2 changed files with 3 additions and 3 deletions
|
|
@ -24,8 +24,8 @@ class ShieldRunnerMixin:
|
|||
def __init__(
|
||||
self,
|
||||
safety_api: Safety,
|
||||
input_shields: list[str] = None,
|
||||
output_shields: list[str] = None,
|
||||
input_shields: list[str] | None = None,
|
||||
output_shields: list[str] | None = None,
|
||||
):
|
||||
self.safety_api = safety_api
|
||||
self.input_shields = input_shields
|
||||
|
|
@ -37,6 +37,7 @@ class ShieldRunnerMixin:
|
|||
return await self.safety_api.run_shield(
|
||||
shield_id=identifier,
|
||||
messages=messages,
|
||||
params={},
|
||||
)
|
||||
|
||||
responses = await asyncio.gather(*[run_shield_with_span(identifier) for identifier in identifiers])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue