Browsergym

Latest version: v0.3.3

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

Scan your dependencies

Page 1 of 4

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)

0.2.2

**browsergym-core**

- minor fix: high-level action parser now properly handles keyword arguments in Python function calls (were converted to non-keyword arguments before)

**browsergym-webarena**

- minor fix: synced with [latest webarena version](https://github.com/web-arena-x/webarena/commit/de524be99e5369e234d91f1e52c0d46dec360e00) ([libwebarena=0.0.3](https://github.com/gasse/webarena/releases/tag/v0.0.3)), mostly typo fixes in task intents

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.