Browsergym

Latest version: v0.3.4

Safety actively analyzes 633680 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 5

0.3.4

**browsergym-core**

- Refactors

- minor error message refactors
- module-based logging traces

- Bugfixes

- `overlay_som()` bugfix divide by 0

**browsergym-experiments**

- New features

- new field `StepInfo.task_info`

- Bugfixes

- `loop` should be robust to crashes and interrupts

**other**

- missing requirements for `demo_agent`
- Makefile fixes

0.3.3

**browsergym-core**

- New features

- Makefile :tada: (thanks imenelydiaker )
sh
make install local pip install of all packages
make install-demo
make demo

- option `hide_bid_if_invisible: boolean = False` for `flatten_axtree_to_str()` and `flatten_dom_to_str()`

- bugfixes

- missing `timeout=500` for high-level click action (was hanging for very long if unsuccessful)

0.3.2

**browsergym-core**

- New features
- `report_infeasible(reason)` action
Adds a message `{"role": "infeasible", "message": reason}` in the chat, and terminates the episode. Validations functions which expect the agent to report a task as infeasible can look for a message with the "infeasible" role, and check for its content if a specific reason is required.
- new high-level action `report_infeasible(reason)` and action set "infeas"
- new python primitive `report_infeasible_instructions(reason)`
- new message role "infeasible" in the chat
- new BrowserEnv argument `terminate_on_infeasible: boolean = True`

- Breaking changes

- methods `flatten_axtree_to_str()` and `flatten_dom_to_str()` return more compact representations
- properties `som, clickable, visible` instead of `som="1", clickable="1", visible="1"`
- `visible="0"` is no more printed

- Bugfixes

- minor fixes in `browsergym.experiment.loop`

0.3.1

**browsergym-experiment**

- Bugfixes

- save the last observation in `browsergym.experiments.loop`

0.3.0

**browsergym-experiments**

- Breaking changes

- `Agent` API refactor
python
former API
Agent.action_mapping(action: str) -> str
Agent.observation_mapping(obs: dict) -> Any

new API
Agent.action_set: AbstractActionSet
Agent.obs_preprocessor(obs: dict) -> Any

0.2.6

**browsergym-core**

- New features

- a bunch of tools to run and records experiments in `browsergym.experiments`
- chat messages now have a "timestamp" info
- a new simple, lean demo_agent (previous demo agent will be moved somewhere else at some point, expect it to disappear soon)

- Bugfixes

- duplicate bid fix (not perfect but should solve 99% of the cases)

Page 1 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.