alekn commited on
Commit
88b462f
·
verified ·
1 Parent(s): 67321fe

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +16 -0
agent.py CHANGED
@@ -1 +1,17 @@
1
  from tools import alltools
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  from tools import alltools
2
+
3
+ # Loads system prompt from the file
4
+ with open("system_prompt.txt", "r", encoding="utf-8") as f:
5
+ system_prompt = f.read()
6
+
7
+ # --- Basic Agent Definition ---
8
+ # ----- THIS IS WERE YOU CAN BUILD WHAT YOU WANT ------
9
+
10
+ class BasicAgent:
11
+ def __init__(self):
12
+ print("BasicAgent initialized.")
13
+ def __call__(self, question: str) -> str:
14
+ print(f"Agent received question (first 50 chars): {question[:50]}...")
15
+ fixed_answer = "This is a default answer."
16
+ print(f"Agent returning fixed answer: {fixed_answer}")
17
+ return fixed_answer