Spaces:
Runtime error
Runtime error
Update app.py
Browse filesThe added missing argument description for the calculator tool.
app.py
CHANGED
|
@@ -32,7 +32,11 @@ def get_domain_ip(domain:str)-> str: #it's important to specify the return type
|
|
| 32 |
|
| 33 |
@tool
|
| 34 |
def calculator(a: int, b: int) -> int:
|
| 35 |
-
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
return a * b
|
| 37 |
|
| 38 |
print(calculator_tool.to_string())
|
|
|
|
| 32 |
|
| 33 |
@tool
|
| 34 |
def calculator(a: int, b: int) -> int:
|
| 35 |
+
"""This tool multiplies two integers ('a' and 'b').
|
| 36 |
+
Args:
|
| 37 |
+
a: an integer
|
| 38 |
+
b: an integer
|
| 39 |
+
"""
|
| 40 |
return a * b
|
| 41 |
|
| 42 |
print(calculator_tool.to_string())
|