bstraehle commited on
Commit
cc767f8
·
verified ·
1 Parent(s): 94131a8

Delete tools.py

Browse files
Files changed (1) hide show
  1. tools.py +0 -75
tools.py DELETED
@@ -1,75 +0,0 @@
1
- # Automatic function calling
2
- # https://ai.google.dev/gemini-api/docs/function-calling
3
-
4
- from crewai.tools import tool
5
- #from crewai_tools import StagehandTool
6
-
7
- # Arithmetic functions
8
-
9
- @tool("Addition Tool")
10
- def add(a: float, b: float) -> float:
11
- """Add two numbers.
12
-
13
- Args:
14
- a: First number
15
- b: Second number
16
-
17
- Returns:
18
- Result number
19
- """
20
- return a + b
21
-
22
- @tool("Subtraction Tool")
23
- def subtract(a: float, b: float) -> float:
24
- """Subtract two numbers.
25
-
26
- Args:
27
- a: First number
28
- b: Second number
29
-
30
- Returns:
31
- Result number
32
- """
33
- return a - b
34
-
35
- @tool("Multiplication Tool")
36
- def multiply(a: float, b: float) -> float:
37
- """Multiply two numbers.
38
- Args:
39
- a: First number
40
- b: Second number
41
-
42
- Returns:
43
- Result number
44
- """
45
- return a * b
46
-
47
- @tool("Division Tool")
48
- def divide(a: float, b: float) -> float:
49
- """Divide two numbers.
50
-
51
- Args:
52
- a: First number
53
- b: Second number
54
-
55
- Returns:
56
- Result number
57
- """
58
- if b == 0:
59
- raise ValueError("Cannot divide by zero.")
60
- return a / b
61
-
62
- @tool("Modulus Tool")
63
- def modulus(a: float, b: float) -> float:
64
- """Get the modulus of two numbers.
65
-
66
- Args:
67
- a: First number
68
- b: Second number
69
-
70
- Returns:
71
- Result number
72
- """
73
- return a % b
74
-
75
- # TODO: Other functions