Tesvia commited on
Commit
893911f
·
verified ·
1 Parent(s): 790cac2

Upload tools.py

Browse files
Files changed (1) hide show
  1. tools.py +2 -2
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[Dict[str, str]]:
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) -> List[Dict[str, str]]:
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: