mirror of
https://github.com/msoedov/agentic_security.git
synced 2026-07-09 21:18:36 +02:00
feat(Report chart):
This commit is contained in:
@@ -31,8 +31,7 @@ REFUSAL_MARKS = [
|
||||
|
||||
|
||||
def check_refusal(response: str, refusal_phrases: list = REFUSAL_MARKS) -> bool:
|
||||
"""
|
||||
Check if the response contains any phrases indicating refusal to answer.
|
||||
"""Check if the response contains any phrases indicating refusal to answer.
|
||||
|
||||
Args:
|
||||
- response (str): The response from the language model.
|
||||
|
||||
Reference in New Issue
Block a user