OpenHands icon indicating copy to clipboard operation
OpenHands copied to clipboard

Add API endpoints for resolver functionality

Open neubig opened this issue 1 year ago • 8 comments

This is a draft of trying to implement the github resolution functionality in listen.py.

The main change in this PR is that it creates an API endpoint resolve_issue() in listen.py for calling the github resolver. The input to this function is governed by the data model in openhands/server/data_models/issue_models.py.

One big question I have is that this endpoint could take 20 minutes to run, which isn't typically a good way to create an endpoint. Do you have a suggestion for the best practice in implementing this?

Any feedback is welcome (cc @rbren)!

NOTE: separately, running linting commands resulted in some unrelated fixing of linting issues...


To run this PR locally, use the following command:

docker run -it --rm   -p 3000:3000   -v /var/run/docker.sock:/var/run/docker.sock   --add-host host.docker.internal:host-gateway   -e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:c088a08-nikolaik   --name openhands-app-c088a08   docker.all-hands.dev/all-hands-ai/openhands:c088a08

neubig avatar Nov 15 '24 18:11 neubig

OpenHands started fixing the pr! You can monitor the progress here.

github-actions[bot] avatar Nov 15 '24 18:11 github-actions[bot]

OpenHands started fixing the pr! You can monitor the progress here.

github-actions[bot] avatar Nov 16 '24 02:11 github-actions[bot]

OpenHands started fixing the pr! You can monitor the progress here.

github-actions[bot] avatar Nov 16 '24 02:11 github-actions[bot]

New OpenHands update

openhands-agent avatar Nov 16 '24 03:11 openhands-agent

The workflow to fix this issue encountered an error. Please check the workflow logs for more information.

github-actions[bot] avatar Nov 16 '24 03:11 github-actions[bot]

OpenHands started fixing the pr! You can monitor the progress here.

github-actions[bot] avatar Nov 16 '24 03:11 github-actions[bot]

New OpenHands update

openhands-agent avatar Nov 16 '24 04:11 openhands-agent

The workflow to fix this issue encountered an error. Please check the workflow logs for more information.

github-actions[bot] avatar Nov 16 '24 04:11 github-actions[bot]

I'm going to close because we've refactored "listen.py" and it'd be easier to start from scratch.

neubig avatar Dec 01 '24 14:12 neubig