Spaces:
Sleeping
Sleeping
enhance tool
Browse files
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
|
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:
|