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)