- Added `ignore_output=True` to the `@observe_debug` decorator in the Agent and BrowserSession classes to suppress output for specific methods.
- Updated the `@observe_debug` decorator in the MessageManager class to include `ignore_input=True` for better control over debug logging.
- Moved the handling of InterruptedError to a separate conditional block for improved clarity.
- Updated logging to use error level for InterruptedError, enhancing visibility of interruptions.
- Simplified the last result state update by removing unnecessary parameters.
- Updated error logging to use the instance logger for better context.
- Incremented consecutive failures count and updated last result state upon timeout errors for improved state management.
- Adjusted the initialization of the step counter to start from 1 in AgentState.
- Updated logging messages throughout the Agent class to reflect the correct step number after the refactor.
- Removed the previous increment of n_steps from the middle of the step method, ensuring it is now incremented only at the start of the method for better clarity and tracking.
- Moved step timing initialization and step counter increment to the start of the step method for better tracking.
- Updated logging messages to reflect the correct step number after the refactor.
- Increased timeout for step execution to 5 minutes and added graceful handling for timeout errors.
- Adjusted initial value of n_steps in AgentState to start from 0 instead of 1.
- Added observability decorators to resource monitoring functions for improved debugging.
- Updated the step method to consolidate LLM interaction and action execution into a single try block for improved performance.
- Introduced a fallback mechanism for state summary retrieval, logging errors more effectively.
- Enhanced error handling to manage InterruptedError and other exceptions uniformly.
- Refactored context preparation and action execution methods for clarity and consistency.
- Implemented a new method for creating history items to streamline history management.
Eliminates the guideline about scrolling with num_pages parameter
from the browser usage prompts to simplify navigation instructions.
Refactors parameter handling in registry action validation by removing
unnecessary parameter cleaning, streamlining the process.
Replaces static page statistics with dynamic calculations for
viewport and scroll position metrics. Simplifies code logic in
scroll handling by removing unnecessary defaults for page
scrolling. Improves readability and reliability of page
scroll operations by requiring explicit num_pages parameter.
Enhances page-view consistency and user interaction handling.
Replaces double quotes with single quotes for consistency in
string declarations. Removes unnecessary trailing whitespace
across various files to improve code readability and maintain
a uniform style.
Adds comprehensive page information including viewport and total
page dimensions, detailed scroll position, and page statistics.
Updates message prompts to utilize this data, improving content
presentation and potential user actions.
Relates to enhanced scrolling feature.
Replaces pixel-based scrolling with page unit determination, allowing for more intuitive scroll actions by specifying the number of pages. Adjusts related documentation, examples, and tests to reflect this change for improved code consistency and user experience.