From ddbb7b8cddfc11e0039df708f08fdc73c72ba500 Mon Sep 17 00:00:00 2001 From: hmirin Date: Mon, 21 Aug 2023 01:14:45 +0900 Subject: [PATCH] fix template bug! & revert related test changes --- src/prompttrail/agent/template/core.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/prompttrail/agent/template/core.py b/src/prompttrail/agent/template/core.py index 8999075..8b67709 100644 --- a/src/prompttrail/agent/template/core.py +++ b/src/prompttrail/agent/template/core.py @@ -110,7 +110,6 @@ def _render(self, state: "State") -> Generator[Message, None, State]: message = StatefulMessage( content=rendered_content, sender=self.role, template_id=self.template_id ) - state.session_history.messages.append(message) # type: ignore # after_transform for after_transform_hook in self.after_transform: state = after_transform_hook.hook(state)