alekn commited on
Commit
38669c9
·
verified ·
1 Parent(s): 88511f2

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +5 -13
agent.py CHANGED
@@ -17,18 +17,10 @@ agent = CodeAgent(
17
  model=model,
18
  tools=all_tools,
19
  #prompt_templates=prompts,
20
- additional_authorized_imports=['numpy', 'pandas'],
 
 
 
 
21
  add_base_tools=True
22
  )
23
-
24
- # --- Basic Agent Definition ---
25
- # ----- THIS IS WERE YOU CAN BUILD WHAT YOU WANT ------
26
-
27
- class BasicAgent:
28
- def __init__(self):
29
- print("BasicAgent initialized.")
30
- def __call__(self, question: str) -> str:
31
- print(f"Agent received question (first 50 chars): {question[:50]}...")
32
- fixed_answer = "This is a default answer."
33
- print(f"Agent returning fixed answer: {fixed_answer}")
34
- return fixed_answer
 
17
  model=model,
18
  tools=all_tools,
19
  #prompt_templates=prompts,
20
+ additional_authorized_imports=['numpy',
21
+ 'pandas',
22
+ 'subprocess',
23
+ 'scipy',
24
+ 'csv'],
25
  add_base_tools=True
26
  )