optionEdge commited on
Commit
7557d12
Β·
verified Β·
1 Parent(s): 34a1163

Update BasicAgent.py

Browse files
Files changed (1) hide show
  1. 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
- 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 str(answer)
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?",