SanteriVtj commited on
Commit
c5fd713
·
verified ·
1 Parent(s): 0fc7150

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +11 -10
agent.py CHANGED
@@ -52,13 +52,14 @@ def modulus(a: int, b: int) -> int:
52
  """
53
  return a % b
54
 
55
- agent = CodeAgent(
56
- tools=[
57
- multiply,
58
- add,
59
- subtract,
60
- divide,
61
- modulus
62
- ],
63
- model=InferenceClientModel()
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
+ )