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

Enhancement/prompt #510

Merged
merged 6 commits into from
Feb 1, 2025
Merged

Enhancement/prompt #510

merged 6 commits into from
Feb 1, 2025

Conversation

MagMueller
Copy link
Collaborator

This pull request includes several important updates to the browser_use module, focusing on improving message handling, prompt formatting, and element interaction rules. The most significant changes are summarized below:

Message Handling Improvements:

  • In browser_use/agent/message_manager/service.py, added placeholder messages and updated context messages to provide clearer task instructions and history. [1] [2] [3]

Prompt Formatting Enhancements:

  • Removed the current_date parameter from the SystemPrompt class and updated the important_rules and input_format methods to improve clarity and specificity. [1] [2] [3] [4] [5] [6]

Element Interaction Rules:

  • Updated element interaction rules to use a more consistent format for interactive and non-interactive elements, ensuring clarity in the prompts. [1] [2] [3] [4]

Miscellaneous:

  • Removed an unnecessary import of datetime in browser_use/agent/prompts.py.
  • Moved the step information description to a more appropriate location in the get_user_message method. [1] [2]

@MagMueller MagMueller merged commit c5ade83 into main Feb 1, 2025
3 checks passed
@MagMueller MagMueller deleted the Enhancement/prompt branch February 1, 2025 20:58
themurphyalex pushed a commit to themurphyalex/iprestanda_browser_ai that referenced this pull request Feb 14, 2025
AryamanParida pushed a commit to AryamanParida/browser-use that referenced this pull request Mar 7, 2025
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.

1 participant