mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-05 12:21:52 +00:00
nuke safety/list_shields, we don't need it now
This commit is contained in:
parent
bc394882a0
commit
484dc2e4f5
3 changed files with 2 additions and 51 deletions
|
@ -37,16 +37,8 @@ class RunShieldResponse(BaseModel):
|
|||
violation: Optional[SafetyViolation] = None
|
||||
|
||||
|
||||
@json_schema_type
|
||||
class ListShieldsResponse(BaseModel):
|
||||
shields: List[str] = None
|
||||
|
||||
|
||||
class Safety(Protocol):
|
||||
@webmethod(route="/safety/run_shield")
|
||||
async def run_shield(
|
||||
self, shield: str, messages: List[Message], params: Dict[str, Any] = None
|
||||
) -> RunShieldResponse: ...
|
||||
|
||||
@webmethod(route="/safety/list_shields")
|
||||
async def list_shields(self) -> ListShieldsResponse: ...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue