Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cheat API improvements #78

Open
gasse opened this issue Jun 18, 2024 · 0 comments
Open

Cheat API improvements #78

gasse opened this issue Jun 18, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@gasse
Copy link
Collaborator

gasse commented Jun 18, 2024

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 gasse added the enhancement New feature or request label Jun 18, 2024
@gasse gasse changed the title Chat API improvements Cheat API improvements Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants