-
Notifications
You must be signed in to change notification settings - Fork 144
[Enhancement] - Adding new environments - OpenApps Env from FAIR #276
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
Open
AlirezaShamsoshoara
wants to merge
38
commits into
meta-pytorch:main
Choose a base branch
from
AlirezaShamsoshoara:ali/feature/openapp_env
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[Enhancement] - Adding new environments - OpenApps Env from FAIR #276
AlirezaShamsoshoara
wants to merge
38
commits into
meta-pytorch:main
from
AlirezaShamsoshoara:ali/feature/openapp_env
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Member
Author
|
Pushed env to HF link: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add OpenApp Environment to OpenEnv
Overview
This PR adds the OpenApp Environment to OpenEnv, integrating the OpenApps framework for UI agent training with web applications.
OpenApps Resources:
What is OpenApp Environment?
OpenApp Environment provides a simulated web application ecosystem where agents can interact with various apps (calendar, todo, messenger, maps) using browser-based actions. It wraps the OpenApps framework and BrowserGym to create a standardized OpenEnv-compatible environment for:
Key Features
Changes Made
New Files Added
Updated Files
.github/workflows/docker-build.yml: Added openapp-env to CI/CD build matrixdocs/environments.md: Added OpenApp environment card to documentationexamples/openapp_example.py: Example demonstrating both Docker and local modesexamples/openapp_recording_demo.py: Demo for recording videos of agent interactionsArchitecture
The OpenApp environment uses a dual-server architecture:
In Docker mode, both servers run inside the container automatically. In local mode, users must start the OpenApps server separately.
Usage Examples
Docker Mode (Recommended)
Building the Docker Image
docker build -t openapp-env:latest -f envs/openapp_env/server/Dockerfile .Running the Example
Action Types Supported
bid)bid,text)bid,value)url)direction)text)Observations
Each observation includes:
Dependencies
The environment requires:
openenv-core>=0.1.1,<0.2.0(pinned due to openai dependency conflict)Note: Using
openenv-core>=0.1.1,<0.2.0to avoid openai version conflict. OpenApps requiresopenai<2via agentlab, whileopenenv-core==0.2.0requiresopenai>=2.7.2.Testing
Docker Build Details
python:3.11-slimCI/CD Integration
The environment is integrated into the GitHub Actions workflow:
ghcr.io/openenv/openenv-openapp-env:latestImplementation Notes
Dual Import Pattern
The code supports both in-repo development and standalone/Docker deployment using a try/except import pattern:
This ensures the environment works both during development and when installed as a package.
Docker Context
The Dockerfile uses the project root (
.) as build context and copies the environment directory:This allows the environment to access the openenv-core package during build.
Related Work
This environment builds upon:
Future Enhancements
Potential improvements for future PRs:
Citation
If you use this environment in your research, please cite both OpenEnv and OpenApps:
Checklist
envs/openapp_env/docs/environments.mdwith environment card