huytofu92 commited on
Commit
26a59c8
·
1 Parent(s): 7021ba9

enhance tool

Browse files
Files changed (1) hide show
  1. tools.py +2 -2
tools.py CHANGED
@@ -266,9 +266,9 @@ def get_dataframe_groupby(data: pd.DataFrame, column: any, operation: Literal["m
266
  raise ValueError("operation must be one of the following: mean, sum, count, min, max, median, std, var")
267
 
268
  @tool
269
- def read_python_file(file_path: str) -> str:
270
  """
271
- Read and return the contents of a Python file.
272
  Args:
273
  file_path: Path to the Python file to read
274
  Returns:
 
266
  raise ValueError("operation must be one of the following: mean, sum, count, min, max, median, std, var")
267
 
268
  @tool
269
+ def read_python_file_from_path(file_path: str) -> str:
270
  """
271
+ Read and return the contents of a Python file from a given path.
272
  Args:
273
  file_path: Path to the Python file to read
274
  Returns: