BrowserGym icon indicating copy to clipboard operation
BrowserGym copied to clipboard

Cheat API improvements

Open gasse opened this issue 1 year ago • 0 comments

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,
):

gasse avatar Jun 18 '24 15:06 gasse