Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
penguine-ip committed Jan 10, 2025
1 parent c8abb7a commit f359df1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions deepeval/guardrails/base_guard.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class BaseDecorativeGuard(ABC):
success: Optional[bool] = None
evaluation_model: Optional[str] = None
error: Optional[str] = None
latency: Optional[float] = None
guard_type: GuardType

@property
Expand Down
2 changes: 1 addition & 1 deletion deepeval/guardrails/guardrails.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def guard_input(self, input: str):
"Access denied: You need Enterprise access on Confident AI to use deepeval's guardrails."
)

def guard_response(self, input: str, response: str):
def guard_output(self, input: str, response: str):
if len(self.guards) == 0:
raise TypeError(
"Guardrails cannot guard LLM responses when no guards are provided."
Expand Down

0 comments on commit f359df1

Please sign in to comment.