BrowserGym
BrowserGym copied to clipboard
Cheat API improvements
Currently BrowserGym's task.cheat() functions use a list of messages to interact with the chat:
def cheat(self, page: playwright.sync_api.Page, chat_messages: list[str]):
It should take the same arguments as execute_python_code:
def execute_python_code(
code: str,
page: playwright.sync_api.Page,
send_message_to_user: callable,
report_infeasible_instructions: callable,
):
->
def cheat(self,
page: playwright.sync_api.Page,
send_message_to_user: callable,
report_infeasible_instructions: callable,
):