Skip to content

Commit

Permalink
Fix init order
Browse files Browse the repository at this point in the history
  • Loading branch information
sternakt committed Nov 21, 2024
1 parent d8e73e7 commit c23e4ee
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ def __init__(self, ui: UI, params: dict[str, Any]) -> None:
super().__init__(ui, params)
self.context_leak_log_save_path = self.DEFAULT_LOG_PATH
self.counter = 0
self.model_level = "low"
self.max_round = 1

def setup_environment(self) -> None:
self.model_level = self.ui.multiple_choice(
sender="Context leakage team",
prompt="What model would you like to test?",
Expand All @@ -79,9 +82,6 @@ def __init__(self, ui: UI, params: dict[str, Any]) -> None:
)
)

def setup_environment(self) -> None:
pass

def setup_agents(self) -> Iterable[Agent]:
"""Create agents specific to context leakage."""
confidential_text = self.TESTED_MODEL_CONFIDENTIAL_PATH.read_text()
Expand Down

0 comments on commit c23e4ee

Please sign in to comment.