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

How do I setup an environment for openhands resolver? #5331

Open
zachmayer opened this issue Nov 29, 2024 · 2 comments
Open

How do I setup an environment for openhands resolver? #5331

zachmayer opened this issue Nov 29, 2024 · 2 comments
Labels
enhancement New feature or request resolver Related to OpenHands Resolver

Comments

@zachmayer
Copy link

What problem or use case are you trying to solve?
I'm trying to use openhands with R. Claude can program in R just fine, but it burns a boatload of tokens trying to install the R packages needed for my repo. I already know how to do this, so I want to setup an R environment manually and install all the needed packages before running openhands.

However, the openhands resolver seems to be a reusable workflow, so I can't add steps before it to setup the environment it runs in.

Describe the UX of the solution you'd like
Some way to run some steps before the openhands resolver, in order to configure the environment for maximum success.

Do you have thoughts on the technical implementation?
no, github actions confuses the hell out of me

Describe alternatives you've considered
yelling at my laptop

Additional context
I tried adding some steps but got reusable workflows should be referenced at the top-level `jobs.*.uses' key, not within steps

@zachmayer zachmayer added the enhancement New feature or request label Nov 29, 2024
@enyst enyst added the resolver Related to OpenHands Resolver label Nov 29, 2024
@mamoodi
Copy link
Collaborator

mamoodi commented Nov 30, 2024

Hmmm @malhotra5 is there a way to achieve this with the current functionality?

@malhotra5
Copy link
Contributor

malhotra5 commented Nov 30, 2024

@zachmayer makes a good point! We can't support package installations directly from the Github workflow, as it needs to exist in the runtime container.

We have the following solution for this, but requires some work from the user:

  1. Setup a custom sandbox, which will contain the appropriate packages.
  2. Pass sandbox_base_container_image="custom-image" parameter through the Github workflow, which will load in the custom sandbox.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request resolver Related to OpenHands Resolver
Projects
None yet
Development

No branches or pull requests

4 participants