Spaces:
Sleeping
Sleeping
Upload tools.py
Browse files
tools.py
CHANGED
@@ -56,7 +56,7 @@ def python_run(code: str) -> str:
|
|
56 |
# 2. --------------------------------------------------------------------
|
57 |
@function_tool
|
58 |
@log_tool_call
|
59 |
-
def load_spreadsheet(path: str, sheet: str | int | None = None) -> list[
|
60 |
"""Read .csv, .xls or .xlsx from disk and return rows as list of dictionaries.
|
61 |
|
62 |
Args:
|
@@ -144,7 +144,7 @@ def image_ocr(path: str) -> str:
|
|
144 |
# 6. --------------------------------------------------------------------
|
145 |
@function_tool
|
146 |
@log_tool_call
|
147 |
-
def duckduckgo_search(query: str, max_results: int = 5) ->
|
148 |
"""Search DuckDuckGo and return a list of result dicts with title, href and body.
|
149 |
|
150 |
Args:
|
|
|
56 |
# 2. --------------------------------------------------------------------
|
57 |
@function_tool
|
58 |
@log_tool_call
|
59 |
+
def load_spreadsheet(path: str, sheet: str | int | None = None) -> list[dict]:
|
60 |
"""Read .csv, .xls or .xlsx from disk and return rows as list of dictionaries.
|
61 |
|
62 |
Args:
|
|
|
144 |
# 6. --------------------------------------------------------------------
|
145 |
@function_tool
|
146 |
@log_tool_call
|
147 |
+
def duckduckgo_search(query: str, max_results: int = 5) -> list[dict]:
|
148 |
"""Search DuckDuckGo and return a list of result dicts with title, href and body.
|
149 |
|
150 |
Args:
|