Sborole commited on
Commit
23cce1a
·
verified ·
1 Parent(s): fa54f6e

Update tools/PythonCalcTool.py

Browse files
Files changed (1) hide show
  1. tools/PythonCalcTool.py +3 -1
tools/PythonCalcTool.py CHANGED
@@ -3,7 +3,9 @@ from smolagents import Tool
3
  class PythonCalcTool(Tool):
4
  name = "python_calc"
5
  description = (
6
- "Can use a normal calculator for probability questions. If needed Execute Python code to compute numeric answers for calculation problems. Use tool to solve math, physics, or distance/time problems."
 
 
7
  )
8
  inputs = {
9
  "code": {"type": "string", "description": "Python code that sets a variable 'result' with the answer."}
 
3
  class PythonCalcTool(Tool):
4
  name = "python_calc"
5
  description = (
6
+ "Can use a normal calculator for probability questions. If needed Execute Python code to compute numeric answers for calculation problems. Use tool to solve math, physics, or distance/time problems.
7
+ This tool is used for **all mathematical calculations, complex logic processing, and numerical comparisons (e.g., comparing probabilities or finding maximum values).**
8
+ "
9
  )
10
  inputs = {
11
  "code": {"type": "string", "description": "Python code that sets a variable 'result' with the answer."}