Skip to content

Commit

Permalink
clean assert formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
josh-ashkinaze committed Jul 9, 2024
1 parent 42b7096 commit e783674
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions plurals/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,11 +333,12 @@ def _validate_system_instructions(self):
"process rows of the dataframe.")

if self.system_instructions:
assert not (self.persona_template != 'default' or self.persona), (
"Cannot pass in system_instructions AND (" "persona_template or persona)")
assert not (self.persona_template != 'default' or self.persona), ("Cannot pass in system_instructions AND "
"(persona_template or persona) since "
"the first would override the latter")

if self.ideology or self.query_str:
assert not self.persona, "Cannot pass in (ideology or query_str) AND persona"
assert not self.persona, ("Cannot pass in (ideology or query_str) AND persona since the first two would construct a persona")

if self.ideology:
allowed_vals = [
Expand Down

0 comments on commit e783674

Please sign in to comment.