Spaces:
Sleeping
Sleeping
Update tools/PythonCalcTool.py
Browse files- tools/PythonCalcTool.py +1 -3
tools/PythonCalcTool.py
CHANGED
|
@@ -3,9 +3,7 @@ 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 |
-
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."}
|
|
|
|
| 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. This tool is used for **all mathematical calculations, complex logic processing, and numerical comparisons (e.g., comparing probabilities or finding maximum values)."
|
|
|
|
|
|
|
| 7 |
)
|
| 8 |
inputs = {
|
| 9 |
"code": {"type": "string", "description": "Python code that sets a variable 'result' with the answer."}
|