Spaces:
Running
Running
File size: 267 Bytes
67dbb33 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
from abc import abstractmethod
import weave
class Guardrail(weave.Model):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
@abstractmethod
@weave.op()
def guard(self, prompt: str, **kwargs) -> list[str]:
pass
|