Update agent.py
Browse files
agent.py
CHANGED
|
@@ -52,13 +52,14 @@ def modulus(a: int, b: int) -> int:
|
|
| 52 |
"""
|
| 53 |
return a % b
|
| 54 |
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
)
|
|
|
|
|
|
| 52 |
"""
|
| 53 |
return a % b
|
| 54 |
|
| 55 |
+
def return_agent(question):
|
| 56 |
+
agent = CodeAgent(
|
| 57 |
+
tools=[
|
| 58 |
+
multiply,
|
| 59 |
+
add,
|
| 60 |
+
subtract,
|
| 61 |
+
divide,
|
| 62 |
+
modulus
|
| 63 |
+
],
|
| 64 |
+
model=InferenceClientModel()
|
| 65 |
+
)
|