Update app.py
#9
by
yeyuanlin
- opened
app.py
CHANGED
@@ -72,6 +72,10 @@ class SpyAgent(BasicAgent):
|
|
72 |
else:
|
73 |
raise NotImplementedError
|
74 |
|
|
|
|
|
|
|
|
|
75 |
def llm_caller(self, prompt):
|
76 |
client = OpenAI(
|
77 |
api_key=os.getenv('API_KEY'),
|
|
|
72 |
else:
|
73 |
raise NotImplementedError
|
74 |
|
75 |
+
def init_cot_memory(self):
|
76 |
+
self.cot_memory = deepcopy(self.memory)
|
77 |
+
self.cot_memory.clear()
|
78 |
+
|
79 |
def llm_caller(self, prompt):
|
80 |
client = OpenAI(
|
81 |
api_key=os.getenv('API_KEY'),
|