refactor(ciayn_agent.py): remove unnecessary raise statement and debug log to clean up code

This commit is contained in:
Ariel Frischer 2025-02-13 20:09:47 -08:00
parent 15ce534f8f
commit efec91579a
1 changed files with 1 additions and 5 deletions

View File

@ -144,11 +144,7 @@ class CiaynAgent:
if code.endswith("```"): if code.endswith("```"):
code = code[:-3].strip() code = code[:-3].strip()
raise ToolExecutionError( # logger.debug(f"_execute_tool: stripped code: {code}")
"err", base_message=msg, tool_name="ripgrep_search"
)
logger.debug(f"_execute_tool: stripped code: {code}")
# if the eval fails, try to extract it via a model call # if the eval fails, try to extract it via a model call
if validate_function_call_pattern(code): if validate_function_call_pattern(code):