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

fix: allow callback to be sync functions #1109

Merged

Conversation

DarkPhoenix2704
Copy link
Contributor

Closes #1100

Updates the Agent class to support both synchronous (def) and asynchronous (async def) callbacks for register_new_step_callback and register_done_callback

@MagMueller MagMueller merged commit dbf5115 into browser-use:main Mar 23, 2025
1 check passed
@agn-7
Copy link

agn-7 commented Apr 1, 2025

I didn't know that before, the step callback function had to be async! instead, I was using a sync function for the step callback, and it worked well in version 0.1.37!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding callback causes agent to break
3 participants