Spaces:
Runtime error
Runtime error
Update agent.py
Browse files
agent.py
CHANGED
@@ -7,8 +7,8 @@ def add(a: int, b: int) -> int:
|
|
7 |
This tool adds two integers together and returns an integer.
|
8 |
|
9 |
args:
|
10 |
-
a:
|
11 |
-
b:
|
12 |
"""
|
13 |
return a + b
|
14 |
|
@@ -18,8 +18,8 @@ def subtract(a: int, b: int) -> int:
|
|
18 |
This tool subtracts two integers and returns an integer.
|
19 |
|
20 |
args:
|
21 |
-
a:
|
22 |
-
b:
|
23 |
"""
|
24 |
return a - b
|
25 |
|
@@ -29,8 +29,8 @@ def multiply(a: int, b: int) -> int:
|
|
29 |
This tool multiplies two integers together and returns an integer.
|
30 |
|
31 |
args:
|
32 |
-
a:
|
33 |
-
b:
|
34 |
"""
|
35 |
return a * b
|
36 |
|
@@ -40,8 +40,8 @@ def divide(a: int, b: int) -> int:
|
|
40 |
This tool divides two integers together and returns a float.
|
41 |
|
42 |
args:
|
43 |
-
a:
|
44 |
-
b:
|
45 |
"""
|
46 |
if b == 0:
|
47 |
raise ValueError("Cannot divide by zero.")
|
@@ -52,8 +52,8 @@ def modulo(a: int, b: int) -> float:
|
|
52 |
This tool returns the modulus of two integers
|
53 |
|
54 |
args:
|
55 |
-
a:
|
56 |
-
b:
|
57 |
"""
|
58 |
return a % b
|
59 |
|
|
|
7 |
This tool adds two integers together and returns an integer.
|
8 |
|
9 |
args:
|
10 |
+
a: first int
|
11 |
+
b: second int
|
12 |
"""
|
13 |
return a + b
|
14 |
|
|
|
18 |
This tool subtracts two integers and returns an integer.
|
19 |
|
20 |
args:
|
21 |
+
a: first int
|
22 |
+
b: second int
|
23 |
"""
|
24 |
return a - b
|
25 |
|
|
|
29 |
This tool multiplies two integers together and returns an integer.
|
30 |
|
31 |
args:
|
32 |
+
a: first int
|
33 |
+
b: second int
|
34 |
"""
|
35 |
return a * b
|
36 |
|
|
|
40 |
This tool divides two integers together and returns a float.
|
41 |
|
42 |
args:
|
43 |
+
a: first int
|
44 |
+
b: second int
|
45 |
"""
|
46 |
if b == 0:
|
47 |
raise ValueError("Cannot divide by zero.")
|
|
|
52 |
This tool returns the modulus of two integers
|
53 |
|
54 |
args:
|
55 |
+
a: first int
|
56 |
+
b: second int
|
57 |
"""
|
58 |
return a % b
|
59 |
|