refactor(ciayn_agent.py): remove unnecessary raise statement and debug log to clean up code
This commit is contained in:
parent
15ce534f8f
commit
efec91579a
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue