Skip to content

Commit

Permalink
frozen dataclass and names compatibile with protocol for PAChoice
Browse files Browse the repository at this point in the history
phelps-sg committed Nov 17, 2023
1 parent 3e9492a commit 6bbf134
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llm_cooperation/experiments/principalagent.py
Original file line number Diff line number Diff line change
@@ -32,12 +32,12 @@
from llm_cooperation.gametypes.oneshot import OneShotResults, run_experiment


@dataclass
@dataclass(frozen=True)
class PAChoice:
value: int

# pylint: disable=unused-argument
def description(self, participant: Participant) -> str:
def description(self, participant_condition: Participant) -> str:
return str(self.value)


0 comments on commit 6bbf134

Please sign in to comment.