Spaces:
Sleeping
Sleeping
Update BasicAgent.py
Browse files- BasicAgent.py +3 -3
BasicAgent.py
CHANGED
@@ -24,10 +24,10 @@ class newAgent:
|
|
24 |
# add_base_tools=True already gives you search, python, etc.
|
25 |
self.agent = CodeAgent(tools=[], model=model, add_base_tools=True)
|
26 |
|
27 |
-
|
28 |
"""ONE question in β ONE pure-text answer out."""
|
29 |
-
|
30 |
-
return
|
31 |
|
32 |
#agent.run(
|
33 |
# "At what temperature and for how long should I bake French baguettes made with type 65 flour?",
|
|
|
24 |
# add_base_tools=True already gives you search, python, etc.
|
25 |
self.agent = CodeAgent(tools=[], model=model, add_base_tools=True)
|
26 |
|
27 |
+
def __call__(self, question: str) -> str:
|
28 |
"""ONE question in β ONE pure-text answer out."""
|
29 |
+
β Replace .run with whatever method actually returns the answer string.
|
30 |
+
return answer
|
31 |
|
32 |
#agent.run(
|
33 |
# "At what temperature and for how long should I bake French baguettes made with type 65 flour?",
|