From efec91579ab1847e1dc9bc44f46b319c65bd039d Mon Sep 17 00:00:00 2001 From: Ariel Frischer Date: Thu, 13 Feb 2025 20:09:47 -0800 Subject: [PATCH] refactor(ciayn_agent.py): remove unnecessary raise statement and debug log to clean up code --- ra_aid/agents/ciayn_agent.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ra_aid/agents/ciayn_agent.py b/ra_aid/agents/ciayn_agent.py index 14caba3..077d01c 100644 --- a/ra_aid/agents/ciayn_agent.py +++ b/ra_aid/agents/ciayn_agent.py @@ -144,11 +144,7 @@ class CiaynAgent: if code.endswith("```"): code = code[:-3].strip() - raise ToolExecutionError( - "err", base_message=msg, tool_name="ripgrep_search" - ) - - logger.debug(f"_execute_tool: stripped code: {code}") + # logger.debug(f"_execute_tool: stripped code: {code}") # if the eval fails, try to extract it via a model call if validate_function_call_pattern(code):