@@ -35,20 +35,20 @@ class VanillaReplayStrategy(strategies.base.BaseReplayStrategy):
3535 def __init__ (
3636 self ,
3737 recording : models .Recording ,
38- replay_instructions : str = "" ,
38+ instructions : str = "" ,
3939 process_events : bool = PROCESS_EVENTS ,
4040 ) -> None :
4141 """Initialize the VanillaReplayStrategy.
4242
4343 Args:
4444 recording (models.Recording): The recording object.
45- replay_instructions (str): Natural language instructions
45+ instructions (str): Natural language instructions
4646 for how recording should be replayed.
4747 process_events (bool): Flag indicating whether to process the events.
4848 Defaults to True.
4949 """
5050 super ().__init__ (recording )
51- self .replay_instructions = replay_instructions
51+ self .instructions = instructions
5252 self .process_events = process_events
5353 self .action_history = []
5454 self .action_event_idx = 0
@@ -89,7 +89,7 @@ def get_next_action_event(
8989 window_event ,
9090 action_events ,
9191 self .action_history ,
92- self .replay_instructions ,
92+ self .instructions ,
9393 )
9494 if not action_event :
9595 raise StopIteration ()
@@ -161,7 +161,7 @@ def generate_action_event(
161161 current_window_event : models .WindowEvent ,
162162 recorded_actions : list [models .ActionEvent ],
163163 replayed_actions : list [models .ActionEvent ],
164- replay_instructions : str ,
164+ instructions : str ,
165165) -> models .ActionEvent :
166166 """Modify the given ActionEvents according to the given replay instructions.
167167
@@ -176,7 +176,7 @@ def generate_action_event(
176176 recording
177177 replayed_actions (list[models.ActionEvent]): list of actions produced during
178178 current replay
179- replay_instructions (str): proposed modifications in natural language
179+ instructions (str): proposed modifications in natural language
180180 instructions
181181
182182 Returns:
@@ -195,7 +195,7 @@ def generate_action_event(
195195 current_window = current_window_dict ,
196196 recorded_actions = recorded_action_dicts ,
197197 replayed_actions = replayed_action_dicts ,
198- replay_instructions = replay_instructions ,
198+ replay_instructions = instructions ,
199199 )
200200 prompt_adapter = adapters .get_default_prompt_adapter ()
201201 content = prompt_adapter .prompt (
0 commit comments