Safely append a dialog turn to the conversation
(self, dialog_turn)
| 32 | self.dialog_turns = [] |
| 33 | |
| 34 | def append_dialog_turn(self, dialog_turn): |
| 35 | """Safely append a dialog turn to the conversation""" |
| 36 | if not hasattr(self, 'dialog_turns'): |
| 37 | self.dialog_turns = [] |
| 38 | self.dialog_turns.append(dialog_turn) |
| 39 | |
| 40 | # Import other adalflow components |
| 41 | from adalflow.components.retriever.faiss_retriever import FAISSRetriever |
nothing calls this directly
no outgoing calls
no test coverage detected