From 314077a63dbb3e620e7e4e64590cb3b5f5b51536 Mon Sep 17 00:00:00 2001 From: "Lennart J. Kurzweg (Nx2)" Date: Sat, 5 Oct 2024 20:47:56 +0200 Subject: [PATCH] typos --- libs/runnables.py | 2 +- libs/tools.py | 4 ++-- suite_settings/tests.py | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libs/runnables.py b/libs/runnables.py index 89b291b..d8ca335 100644 --- a/libs/runnables.py +++ b/libs/runnables.py @@ -220,7 +220,7 @@ def agent_with_tools(model: Model, seed: int, test: Test, technique: Technique, chunks.append(chunk["messages"][-1]) except RecursionError: return { - "answer": ">>Model did not come to a conclusion (Recusion Error)<<", + "answer": ">>Model did not come to a conclusion (Recursion Error)<<", "tool_calls": tool_calls } diff --git a/libs/tools.py b/libs/tools.py index 6dd2d46..f217ac6 100644 --- a/libs/tools.py +++ b/libs/tools.py @@ -163,7 +163,7 @@ def write_note(note: str) -> str: @tool def save_python_repl(command: str): - """Simulates the normal python repl but with certain patterns blocked for savety reasons""" + """Simulates the normal python repl but with certain patterns blocked for safety reasons""" python_repl = PythonREPL() blocked_patterns = [ "^ *os\\.", @@ -187,7 +187,7 @@ def save_python_repl(command: str): return ret else: - return f"Command not executed, becaise the blocked pattern `{pattern}` was found in the command." + return f"Command not executed, because the blocked pattern `{pattern}` was found in the command." diff --git a/suite_settings/tests.py b/suite_settings/tests.py index e741d51..5f6edb3 100644 --- a/suite_settings/tests.py +++ b/suite_settings/tests.py @@ -73,7 +73,7 @@ tests = { validator=system_human_answer_match, validation_input={ "criteria": dedent("""- containing the information that the Human should call Wolfgang - - just one single conversational answer, without any AI fragments (A/B versions, "end of message" parts, unfitting discalimers or notes, what specific tool was used to get the answer, etc.)""") + - just one single conversational answer, without any AI fragments (A/B versions, "end of message" parts, unfitting disclaimers or notes, what specific tool was used to get the answer, etc.)""") }, ), 260: Test( @@ -91,7 +91,7 @@ tests = { validator=system_human_answer_match, validation_input={ "criteria": dedent("""- containing the information that the Human should call Wolfgang - - just one single conversational answer, without any AI fragments (A/B versions, "end of message" parts, unfitting discalimers or notes, what specific tool was used to get the answer, etc.)""") + - just one single conversational answer, without any AI fragments (A/B versions, "end of message" parts, unfitting disclaimers or notes, what specific tool was used to get the answer, etc.)""") }, ), 856: Test( @@ -124,7 +124,7 @@ tests = { validator=system_human_answer_match, validation_input={ "criteria": dedent("""- containing the information that the Human should call Wolfgang - - just one single conversational answer, without any AI fragments (A/B versions, "end of message" parts, unfitting discalimers or notes, what specific tool was used to get the answer, etc.)""") + - just one single conversational answer, without any AI fragments (A/B versions, "end of message" parts, unfitting disclaimers or notes, what specific tool was used to get the answer, etc.)""") }, ), # 600: Test(),