From 1eb32ff8079297c778c04be66419eb14a3566304 Mon Sep 17 00:00:00 2001 From: Collin Dutter Date: Fri, 20 Dec 2024 11:32:46 -0800 Subject: [PATCH] Rename variable to remove from diff --- griptape/tasks/prompt_task.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/griptape/tasks/prompt_task.py b/griptape/tasks/prompt_task.py index 1bc4f349b..4ed313bf0 100644 --- a/griptape/tasks/prompt_task.py +++ b/griptape/tasks/prompt_task.py @@ -92,9 +92,9 @@ def prompt_stack(self) -> PromptStack: stack = PromptStack(tools=self.tools) memory = self.structure.conversation_memory if self.structure is not None else None - system_message = self.generate_system_template(self) - if system_message: - stack.add_system_message(system_message) + system_template = self.generate_system_template(self) + if system_template: + stack.add_system_message(system_template) stack.add_user_message(self.input) @@ -139,7 +139,7 @@ def prompt_stack(self) -> PromptStack: if memory is not None: # inserting at index 1 to place memory right after system prompt - memory.add_to_prompt_stack(self.prompt_driver, stack, 1 if system_message else 0) + memory.add_to_prompt_stack(self.prompt_driver, stack, 1 if system_template else 0) return stack