xarical commited on
Commit
f0f4b2c
·
1 Parent(s): fffd8eb
Files changed (2) hide show
  1. BasicAgent.py +3 -3
  2. CustomAgent.py +1 -1
BasicAgent.py CHANGED
@@ -1,8 +1,8 @@
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
 
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.__fixed_answer = "This is a custom default answer."
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.")