Skip to content

Commit 6bbf134

Browse files
committed
frozen dataclass and names compatibile with protocol for PAChoice
1 parent 3e9492a commit 6bbf134

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llm_cooperation/experiments/principalagent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@
3232
from llm_cooperation.gametypes.oneshot import OneShotResults, run_experiment
3333

3434

35-
@dataclass
35+
@dataclass(frozen=True)
3636
class PAChoice:
3737
value: int
3838

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

4343

0 commit comments

Comments
 (0)