(self, memory_id: str, actor: User)
| 854 | return passages |
| 855 | |
| 856 | def delete_archival_memory(self, memory_id: str, actor: User): |
| 857 | # TODO check if it exists first, and throw error if not |
| 858 | # TODO: need to also rebuild the prompt here |
| 859 | passage = self.passage_manager.get_passage_by_id(passage_id=memory_id, actor=actor) |
| 860 | |
| 861 | # delete the passage |
| 862 | self.passage_manager.delete_passage_by_id(passage_id=memory_id, actor=actor) |
| 863 | |
| 864 | # rebuild system prompt and force |
| 865 | self.agent_manager.rebuild_system_prompt(agent_id=passage.agent_id, actor=actor, force=True) |
| 866 | |
| 867 | def get_agent_recall( |
| 868 | self, |
no test coverage detected