(self, prompt)
| 54 | return prompts |
| 55 | |
| 56 | def addToHistory(self, prompt): |
| 57 | if len(self.conversation_history) % 2 == 0: |
| 58 | template = HumanMessagePromptTemplate.from_template(prompt) |
| 59 | else: |
| 60 | template = AIMessagePromptTemplate.from_template(prompt) |
| 61 | |
| 62 | self.conversation_history.append(template) |
| 63 | |
| 64 | def feedback(self, **kwargs): |
| 65 | return LLMChain( |