mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-23 20:31:51 +00:00
chore(api): add mypy coverage to meta_reference_agent_instance
Signed-off-by: Mustafa Elbehery <melbeher@redhat.com>
This commit is contained in:
parent
81109a0f72
commit
1d52c303d1
3 changed files with 105 additions and 81 deletions
|
|
@ -28,8 +28,8 @@ class ShieldRunnerMixin:
|
|||
output_shields: list[str] | None = None,
|
||||
):
|
||||
self.safety_api = safety_api
|
||||
self.input_shields = input_shields
|
||||
self.output_shields = output_shields
|
||||
self.input_shields = input_shields or []
|
||||
self.output_shields = output_shields or []
|
||||
|
||||
async def run_multiple_shields(self, messages: list[Message], identifiers: list[str]) -> None:
|
||||
async def run_shield_with_span(identifier: str):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue