Samuel Thomas commited on
Commit
bac87c8
·
1 Parent(s): 0f3a132

modify excel tool

Browse files
Files changed (1) hide show
  1. tools.py +4 -6
tools.py CHANGED
@@ -579,10 +579,8 @@ class ExcelReaderTool(BaseTool):
579
 
580
  name: str = "excel_reader"
581
  description: str = (
582
- "Reads an Excel file from the specified file path and returns the entire "
583
- "Use for running math operations on a table of data"
584
- "table from Sheet1 in a format that can be easily processed by an LLM. "
585
- "Input should be a file path to an Excel file (.xlsx or .xls)."
586
  )
587
  args_schema: Type[BaseModel] = ExcelReaderInput
588
 
@@ -688,8 +686,8 @@ class ExcelReaderTool(BaseTool):
688
 
689
  # Step 4: Format the results as dollars
690
  formatted_totals = {
691
- 'Food': f"${food_total:,.2f}",
692
- 'Drink': f"${drink_total:,.2f}"
693
  }
694
 
695
  # Step 5: Convert to string for display (optional)
 
579
 
580
  name: str = "excel_reader"
581
  description: str = (
582
+ "Reads an Excel file from the specified file path "
583
+ "Use for running math operations on a table of sales data from a fast-food restaurant chain ONLY,"
 
 
584
  )
585
  args_schema: Type[BaseModel] = ExcelReaderInput
586
 
 
686
 
687
  # Step 4: Format the results as dollars
688
  formatted_totals = {
689
+ 'Food': f"{food_total:.2f}",
690
+ 'Drink': f"{drink_total:.2f}"
691
  }
692
 
693
  # Step 5: Convert to string for display (optional)