- BasicAgent.py +3 -3
- CustomAgent.py +1 -1
BasicAgent.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
class BasicAgent:
|
| 2 |
def __init__(self):
|
| 3 |
-
self.
|
| 4 |
print("BasicAgent initialized.")
|
| 5 |
def __call__(self, question: str) -> str:
|
| 6 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 7 |
-
print(f"Agent returning fixed answer: {self.
|
| 8 |
-
return self.
|
|
|
|
| 1 |
class BasicAgent:
|
| 2 |
def __init__(self):
|
| 3 |
+
self._fixed_answer = "This is a default answer."
|
| 4 |
print("BasicAgent initialized.")
|
| 5 |
def __call__(self, question: str) -> str:
|
| 6 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 7 |
+
print(f"Agent returning fixed answer: {self._fixed_answer}")
|
| 8 |
+
return self._fixed_answer
|
CustomAgent.py
CHANGED
|
@@ -3,5 +3,5 @@ from BasicAgent import BasicAgent
|
|
| 3 |
|
| 4 |
class CustomAgent(BasicAgent):
|
| 5 |
def __init__(self):
|
| 6 |
-
self.
|
| 7 |
print("CustomAgent initialized.")
|
|
|
|
| 3 |
|
| 4 |
class CustomAgent(BasicAgent):
|
| 5 |
def __init__(self):
|
| 6 |
+
self._fixed_answer = "This is a custom default answer."
|
| 7 |
print("CustomAgent initialized.")
|