Skip to content

Commit

Permalink
Fix a typo in haggling scenarios
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 693028229
Change-Id: Id3612109d2f46d4ec8fa2426c13aa4363b891c8d
  • Loading branch information
vezhnick authored and copybara-github committed Nov 4, 2024
1 parent 9bf0caa commit f3cc880
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/modular/environment/haggling.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,13 @@ def bargain_statements(
"""
del chain_of_thought

if 'coins' in premise:
if 'coin' in premise:
return f'{active_player_name} proposed {premise}'
if 'accept' in premise:
return f'{active_player_name} accepted the offer'
if 'reject' in premise:
return f'{active_player_name} rejected the offer'
return premise
return f'{active_player_name} {premise}'


def get_shared_memories_and_context(premise: str) -> tuple[Sequence[str], str]:
Expand Down

0 comments on commit f3cc880

Please sign in to comment.