🙌 OpenHands: AI-Driven Development
Rename OpenDevin to OpenHands (#3472)
Robert Brennan01ae22ef57d4
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.jsonindex 8e0a3108c1..6c97e3bf55 100644--- a/.devcontainer/devcontainer.json+++ b/.devcontainer/devcontainer.json@@ -1,5 +1,5 @@{- "name": "OpenDevin Codespaces",+ "name": "OpenHands Codespaces","image": "mcr.microsoft.com/devcontainers/universal","customizations":{"vscode":{diff --git a/.github/ISSUE_TEMPLATE/bug_template.yml b/.github/ISSUE_TEMPLATE/bug_template.ymlindex e7a3b4f579..650eb53e53 100644--- a/.github/ISSUE_TEMPLATE/bug_template.yml+++ b/.github/ISSUE_TEMPLATE/bug_template.yml@@ -1,5 +1,5 @@name: Bug-description: Report a problem with OpenDevin+description: Report a problem with OpenHandstitle: '[Bug]: 'labels: ['bug']body:@@ -28,8 +28,8 @@ body:- type: textareaid: current-versionattributes:- label: Current OpenDevin version- description: What version of OpenDevin are you using? If you're running in docker, tell us the tag you're using (e.g. ghcr.io/opendevin/opendevin:0.3.1).+ label: Current OpenHands version+ description: What version of OpenHands are you using? If you're running in docker, tell us the tag you're using (e.g. ghcr.io/all-hands-ai/openhands:0.3.1).render: bashvalidations:required: truediff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.mdindex 663b4a6324..17671970a4 100644--- a/.github/ISSUE_TEMPLATE/feature_request.md+++ b/.github/ISSUE_TEMPLATE/feature_request.md@@ -1,6 +1,6 @@---name: Feature Request-about: Suggest an idea for OpenDevin features+about: Suggest an idea for OpenHands featurestitle: ''labels: 'enhancement'assignees: ''diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.ymlindex bb85b52235..551b5438a5 100644--- a/.github/workflows/deploy-docs.yml+++ b/.github/workflows/deploy-docs.yml@@ -17,7 +17,7 @@ on:jobs:# Build the documentation websitebuild:- if: github.repository == 'OpenDevin/OpenDevin'+ if: github.repository == 'All-Hands-AI/OpenHands'name: Build Docusaurusruns-on: ubuntu-lateststeps:@@ -47,7 +47,7 @@ jobs:# Deploy the documentation websitedeploy:- if: github.ref == 'refs/heads/main' && github.repository == 'OpenDevin/OpenDevin'+ if: github.ref == 'refs/heads/main' && github.repository == 'All-Hands-AI/OpenHands'name: Deploy to GitHub Pagesruns-on: ubuntu-latest# This job only runs on "main" so only run one of these jobs at a timediff --git a/.github/workflows/dummy-agent-test.yml b/.github/workflows/dummy-agent-test.ymlindex d9da088213..b2828d63b7 100644--- a/.github/workflows/dummy-agent-test.yml+++ b/.github/workflows/dummy-agent-test.yml@@ -27,7 +27,7 @@ jobs:- name: Run testsrun: |set -e- poetry run python opendevin/core/main.py -t "do a flip" -d ./workspace/ -c DummyAgent+ poetry run python openhands/core/main.py -t "do a flip" -d ./workspace/ -c DummyAgent- name: Check exit coderun: |if [ $? -ne 0 ]; thendiff --git a/.github/workflows/gchr_app.yml b/.github/workflows/gchr_app.ymlindex 8f13aafc2a..ebbdb9f9c1 100644--- a/.github/workflows/gchr_app.yml+++ b/.github/workflows/gchr_app.yml@@ -21,7 +21,7 @@ on:default: ''jobs:- # Builds the OpenDevin Docker images+ # Builds the OpenHands Docker imagesghcr_build:name: Build App Imageruns-on: ubuntu-latest@@ -32,7 +32,7 @@ jobs:packages: writestrategy:matrix:- image: ['opendevin']+ image: ['openhands']platform: ['amd64', 'arm64']steps:- name: Checkout@@ -72,7 +72,7 @@ jobs:path: /tmp/${{ matrix.image }}_image_${{ matrix.platform }}.tarretention-days: 14- # Push the OpenDevin and sandbox Docker images to the ghcr.io repository+ # Push the OpenHands and sandbox Docker images to the ghcr.io repositoryghcr_push:runs-on: ubuntu-latestneeds: [ghcr_build]@@ -84,7 +84,7 @@ jobs:packages: writestrategy:matrix:- image: ['opendevin']+ image: ['openhands']platform: ['amd64', 'arm64']steps:- name: Checkout code@@ -113,7 +113,7 @@ jobs:docker tag $loaded_image $image_name:${tag}_${{ matrix.platform }}docker push $image_name:${tag}_${{ matrix.platform }}done- # Creates and pushes the OpenDevin and sandbox Docker image manifests+ # Creates and pushes the OpenHands and sandbox Docker image manifestscreate_manifest:runs-on: ubuntu-latestneeds: [ghcr_build, ghcr_push]@@ -122,7 +122,7 @@ jobs:tags: ${{ needs.ghcr_build.outputs.tags }}strategy:matrix:- image: ['opendevin']+ image: ['openhands']permissions:contents: readpackages: writediff --git a/.github/workflows/ghcr.yml b/.github/workflows/ghcr.ymlindex b62ed288c5..613ff4dfad 100644--- a/.github/workflows/ghcr.yml+++ b/.github/workflows/ghcr.yml@@ -68,7 +68,7 @@ jobs:- name: Install Python dependencies using Poetryrun: make install-python-dependencies- name: Create source distribution and Dockerfile- run: poetry run python3 opendevin/runtime/utils/runtime_build.py --base_image ${{ matrix.base_image }} --build_folder containers/runtime --force_rebuild+ run: poetry run python3 openhands/runtime/utils/runtime_build.py --base_image ${{ matrix.base_image }} --build_folder containers/runtime --force_rebuild- name: Build and export imageid: buildrun: |@@ -191,7 +191,7 @@ jobs:# Print the full name of the imageecho "Loaded Docker image: $image_name"- TEST_RUNTIME=${{ matrix.runtime_type }} SANDBOX_USER_ID=$(id -u) SANDBOX_CONTAINER_IMAGE=$image_name TEST_IN_CI=true poetry run pytest --cov=agenthub --cov=opendevin --cov-report=xml -s ./tests/unit/test_runtime.py+ TEST_RUNTIME=${{ matrix.runtime_type }} SANDBOX_USER_ID=$(id -u) SANDBOX_CONTAINER_IMAGE=$image_name TEST_IN_CI=true poetry run pytest --cov=agenthub --cov=openhands --cov-report=xml -s ./tests/unit/test_runtime.py- name: Upload coverage to Codecovuses: codecov/codecov-action@v4env:diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.ymlindex 9aa4426e87..1d4b67608e 100644--- a/.github/workflows/lint.yml+++ b/.github/workflows/lint.yml@@ -46,4 +46,4 @@ jobs:- name: Install pre-commitrun: pip install pre-commit==3.7.0- name: Run pre-commit hooks- run: pre-commit run --files opendevin/**/* agenthub/**/* evaluation/**/* tests/**/* --show-diff-on-failure --config ./dev_config/python/.pre-commit-config.yaml+ run: pre-commit run --files openhands/**/* agenthub/**/* evaluation/**/* tests/**/* --show-diff-on-failure --config ./dev_config/python/.pre-commit-config.yamldiff --git a/.github/workflows/py-unit-tests.yml b/.github/workflows/py-unit-tests.ymlindex acb005a057..b6ed4c9bbd 100644--- a/.github/workflows/py-unit-tests.yml+++ b/.github/workflows/py-unit-tests.yml@@ -82,7 +82,7 @@ jobs:- name: Build Environmentrun: make build- name: Run Tests- run: poetry run pytest --forked --cov=agenthub --cov=opendevin --cov-report=xml ./tests/unit -k "not test_runtime.py"+ run: poetry run pytest --forked --cov=agenthub --cov=openhands --cov-report=xml ./tests/unit -k "not test_runtime.py"- name: Upload coverage to Codecovuses: codecov/codecov-action@v4env:@@ -111,7 +111,7 @@ jobs:- name: Build Environmentrun: make build- name: Run Tests- run: poetry run pytest --forked --cov=agenthub --cov=opendevin --cov-report=xml ./tests/unit -k "not test_runtime.py"+ run: poetry run pytest --forked --cov=agenthub --cov=openhands --cov-report=xml ./tests/unit -k "not test_runtime.py"- name: Upload coverage to Codecovuses: codecov/codecov-action@v4env:diff --git a/.github/workflows/review-pr.yml b/.github/workflows/review-pr.ymlindex 6d7771e570..863a97936a 100644--- a/.github/workflows/review-pr.yml+++ b/.github/workflows/review-pr.yml@@ -1,5 +1,5 @@-# Workflow that uses OpenDevin to review a pull request. PR must be labeled 'review-this'-name: Use OpenDevin to Review Pull Request+# Workflow that uses OpenHands to review a pull request. PR must be labeled 'review-this'+name: Use OpenHands to Review Pull Requeston:pull_request:@@ -49,7 +49,7 @@ jobs:export PATH="/github/home/.local/bin:$PATH"poetry install --without evaluation,llama-indexpoetry run playwright install --with-deps chromium- - name: Run OpenDevin+ - name: Run OpenHandsenv:LLM_API_KEY: ${{ secrets.LLM_API_KEY }}LLM_MODEL: ${{ vars.LLM_MODEL }}@@ -60,7 +60,7 @@ jobs:export PYTHONPATH=$(pwd):$PYTHONPATHexport WORKSPACE_MOUNT_PATH=$GITHUB_WORKSPACEexport WORKSPACE_BASE=$GITHUB_WORKSPACE- echo -e "/exit\n" | poetry run python opendevin/core/main.py -i 50 -f task.txt+ echo -e "/exit\n" | poetry run python openhands/core/main.py -i 50 -f task.txtrm task.txt- name: Check if review file is non-emptyid: check_filediff --git a/.github/workflows/solve-issue.yml b/.github/workflows/solve-issue.ymlindex 8e075761ab..f977fa510e 100644--- a/.github/workflows/solve-issue.yml+++ b/.github/workflows/solve-issue.yml@@ -1,5 +1,5 @@-# Workflow that uses OpenDevin to resolve a GitHub issue. Issue must be labeled 'solve-this'-name: Use OpenDevin to Resolve GitHub Issue+# Workflow that uses OpenHands to resolve a GitHub issue. Issue must be labeled 'solve-this'+name: Use OpenHands to Resolve GitHub Issueon:issues:@@ -15,7 +15,7 @@ jobs:if: github.event.label.name == 'solve-this'runs-on: ubuntu-latestcontainer:- image: ghcr.io/opendevin/opendevin+ image: ghcr.io/all-hands-ai/openhandsvolumes:- /var/run/docker.sock:/var/run/docker.socksteps:@@ -39,7 +39,7 @@ jobs:export PATH="/github/home/.local/bin:$PATH"poetry install --without evaluation,llama-indexpoetry run playwright install --with-deps chromium- - name: Run OpenDevin+ - name: Run OpenHandsenv:ISSUE_TITLE: ${{ github.event.issue.title }}ISSUE_BODY: ${{ github.event.issue.body }}@@ -50,14 +50,14 @@ jobs:export PATH="/github/home/.local/bin:$PATH"# Append path to correctly import package, note: must set pwd at firstexport PYTHONPATH=$(pwd):$PYTHONPATH- WORKSPACE_MOUNT_PATH=$GITHUB_WORKSPACE poetry run python ./opendevin/core/main.py -i 50 -f task.txt -d $GITHUB_WORKSPACE+ WORKSPACE_MOUNT_PATH=$GITHUB_WORKSPACE poetry run python ./openhands/core/main.py -i 50 -f task.txt -d $GITHUB_WORKSPACErm task.txt- name: Setup Git, Create Branch, and Commit Changesrun: |# Setup Git configurationgit config --global --add safe.directory $PWD- git config --global user.name 'OpenDevin'- git config --global user.email '[email protected]'+ git config --global user.name 'OpenHands'+ git config --global user.email '[email protected]'# Create a unique branch name with a timestampBRANCH_NAME="fix/${{ github.event.issue.number }}-$(date +%Y%m%d%H%M%S)"@@ -69,7 +69,7 @@ jobs:git add --all -- ':!task.txt'# Commit the changes, if any- git commit -m "OpenDevin: Resolve Issue #${{ github.event.issue.number }}"+ git commit -m "OpenHands: Resolve Issue #${{ github.event.issue.number }}"if [ $? -ne 0 ]; thenecho "No changes to commit."exit 0@@ -91,9 +91,9 @@ jobs:run: |# Create PR and capture URLPR_URL=$(gh pr create \- --title "OpenDevin: Resolve Issue #2" \- --body "This PR was generated by OpenDevin to resolve issue #2" \- --repo "foragerr/OpenDevin" \+ --title "OpenHands: Resolve Issue #2" \+ --body "This PR was generated by OpenHands to resolve issue #2" \+ --repo "foragerr/OpenHands" \--head "${{ github.head_ref }}" \--base "${{ env.DEFAULT_BRANCH }}" \| grep -o 'https://github.com/[^ ]*')@@ -110,4 +110,4 @@ jobs:GH_TOKEN: ${{ github.token }}run: |gh issue comment ${{ github.event.issue.number }} \- -b "OpenDevin raised [PR #${{ env.PR_NUMBER }}](${{ env.PR_URL }}) to resolve this issue."+ -b "OpenHands raised [PR #${{ env.PR_NUMBER }}](${{ env.PR_URL }}) to resolve this issue."diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 212e8ff3a9..1424f4bba2 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -1,35 +1,35 @@# Contributing-Thanks for your interest in contributing to OpenDevin! We welcome and appreciate contributions.+Thanks for your interest in contributing to OpenHands! We welcome and appreciate contributions.## How Can I Contribute?There are many ways that you can contribute:-1. **Download and use** OpenDevin, and send [issues](https://github.com/OpenDevin/OpenDevin/issues) when you encounter something that isn't working or a feature that you'd like to see.+1. **Download and use** OpenHands, and send [issues](https://github.com/All-Hands-AI/OpenHands/issues) when you encounter something that isn't working or a feature that you'd like to see.2. **Send feedback** after each session by [clicking the thumbs-up thumbs-down buttons](https://docs.all-hands.dev/modules/usage/feedback), so we can see where things are working and failing, and also build an open dataset for training code agents.-3. **Improve the Codebase** by sending PRs (see details below). In particular, we have some [good first issue](https://github.com/OpenDevin/OpenDevin/labels/good%20first%20issue) issues that may be ones to start on.+3. **Improve the Codebase** by sending PRs (see details below). In particular, we have some [good first issue](https://github.com/All-Hands-AI/OpenHands/labels/good%20first%20issue) issues that may be ones to start on.-## Understanding OpenDevin's CodeBase+## Understanding OpenHands's CodeBaseTo understand the codebase, please refer to the README in each module:- [frontend](./frontend/README.md)- [agenthub](./agenthub/README.md)- [evaluation](./evaluation/README.md)-- [opendevin](./opendevin/README.md)- - [server](./opendevin/server/README.md)+- [openhands](./openhands/README.md)+ - [server](./openhands/server/README.md)When you write code, it is also good to write tests. Please navigate to the `tests` folder to see existing test suites.At the moment, we have two kinds of tests: `unit` and `integration`. Please refer to the README for each test suite. These tests also run on GitHub's continuous integration to ensure quality of the project.-## Sending Pull Requests to OpenDevin+## Sending Pull Requests to OpenHands### 1. Fork the Official Repository-Fork the [OpenDevin repository](https://github.com/OpenDevin/OpenDevin) into your own account.+Fork the [OpenHands repository](https://github.com/All-Hands-AI/OpenHands) into your own account.Clone your own forked repository into your local environment:```shell-git clone [email protected]:<YOUR-USERNAME>/OpenDevin.git+git clone [email protected]:<YOUR-USERNAME>/OpenHands.git```### 2. Configure Git@@ -38,8 +38,8 @@ Set the official repository as your [upstream](https://www.atlassian.com/git/tutAdd the original repository as upstream:```shell-cd OpenDevin-git remote add upstream [email protected]:OpenDevin/OpenDevin.git+cd OpenHands+git remote add upstream [email protected]:All-Hands-AI/OpenHands.git```Verify that the remote is set:@@ -62,7 +62,7 @@ git push origin main### 4. Set up the Development Environment-We have a separate doc [Development.md](https://github.com/OpenDevin/OpenDevin/blob/main/Development.md) that tells you how to set up a development workflow.+We have a separate doc [Development.md](https://github.com/All-Hands-AI/OpenHands/blob/main/Development.md) that tells you how to set up a development workflow.### 5. Write Code and Commit It@@ -80,13 +80,13 @@ git push origin my_branch* On GitHub, go to the page of your forked repository, and create a Pull Request:- Click on `Branches`- Click on the `...` beside your branch and click on `New pull request`- - Set `base repository` to `OpenDevin/OpenDevin`+ - Set `base repository` to `All-Hands-AI/OpenHands`- Set `base` to `main`- Click `Create pull request`-The PR should appear in [OpenDevin PRs](https://github.com/OpenDevin/OpenDevin/pulls).+The PR should appear in [OpenHands PRs](https://github.com/All-Hands-AI/OpenHands/pulls).-Then the OpenDevin team will review your code.+Then the OpenHands team will review your code.## PR Rules@@ -109,7 +109,7 @@ For example, a PR title could be:- `refactor: modify package path`- `feat(frontend): xxxx`, where `(frontend)` means that this PR mainly focuses on the frontend component.-You may also check out previous PRs in the [PR list](https://github.com/OpenDevin/OpenDevin/pulls).+You may also check out previous PRs in the [PR list](https://github.com/All-Hands-AI/OpenHands/pulls).### 2. Pull Request description- If your PR is small (such as a typo fix), you can go brief.diff --git a/CREDITS.md b/CREDITS.mdindex ac87309f2f..2bc97704a7 100644--- a/CREDITS.md+++ b/CREDITS.md@@ -2,19 +2,19 @@## Contributors-We would like to thank all the [contributors](https://github.com/opendevin/opendevin/graphs/contributors) who have helped make OpenDevin possible. Your dedication and hard work are greatly appreciated.+We would like to thank all the [contributors](https://github.com/All-Hands-AI/OpenHands/graphs/contributors) who have helped make OpenHands possible. Your dedication and hard work are greatly appreciated.## Open Source Projects-OpenDevin includes and adapts the following open source projects. We are grateful for their contributions to the open source community:+OpenHands includes and adapts the following open source projects. We are grateful for their contributions to the open source community:#### [SWE Agent](https://github.com/princeton-nlp/swe-agent)- License: MIT License- - Description: Adapted for use in OpenDevin's agenthub+ - Description: Adapted for use in OpenHands's agenthub#### [Aider](https://github.com/paul-gauthier/aider)- License: Apache License 2.0- - Description: AI pair programming tool. OpenDevin has adapted and integrated its linter module for code-related tasks in [`agentskills utilities`](https://github.com/OpenDevin/OpenDevin/tree/main/opendevin/runtime/plugins/agent_skills/utils/aider)+ - Description: AI pair programming tool. OpenHands has adapted and integrated its linter module for code-related tasks in [`agentskills utilities`](https://github.com/All-Hands-AI/OpenHands/tree/main/openhands/runtime/plugins/agent_skills/utils/aider)#### [BrowserGym](https://github.com/ServiceNow/BrowserGym)- License: Apache License 2.0@@ -22,7 +22,7 @@ OpenDevin includes and adapts the following open source projects. We are gratefu### Reference Implementations for Evaluation Benchmarks-OpenDevin integrates code of the reference implementations for the following agent evaluation benchmarks:+OpenHands integrates code of the reference implementations for the following agent evaluation benchmarks:#### [HumanEval](https://github.com/openai/human-eval)- License: MIT Licensediff --git a/Development.md b/Development.mdindex 8a72c8af1e..2b79f29570 100644--- a/Development.md+++ b/Development.md@@ -1,7 +1,7 @@# Development Guide-This guide is for people working on OpenDevin and editing the source code.-If you wish to contribute your changes, check out the [CONTRIBUTING.md](https://github.com/OpenDevin/OpenDevin/blob/main/CONTRIBUTING.md) on how to clone and setup the project initially before moving on.-Otherwise, you can clone the OpenDevin project directly.+This guide is for people working on OpenHands and editing the source code.+If you wish to contribute your changes, check out the [CONTRIBUTING.md](https://github.com/All-Hands-AI/OpenHands/blob/main/CONTRIBUTING.md) on how to clone and setup the project initially before moving on.+Otherwise, you can clone the OpenHands project directly.## Start the server for development### 1. Requirements@@ -29,14 +29,14 @@ mamba install conda-forge::poetry```### 2. Build and Setup The Environment-Begin by building the project which includes setting up the environment and installing dependencies. This step ensures that OpenDevin is ready to run on your system:+Begin by building the project which includes setting up the environment and installing dependencies. This step ensures that OpenHands is ready to run on your system:```bashmake build```### 3. Configuring the Language Model-OpenDevin supports a diverse array of Language Models (LMs) through the powerful [litellm](https://docs.litellm.ai) library. By default, we've chosen the mighty GPT-4 from OpenAI as our go-to model, but the world is your oyster! You can unleash the potential of Anthropic's suave Claude, the enigmatic Llama, or any other LM that piques your interest.+OpenHands supports a diverse array of Language Models (LMs) through the powerful [litellm](https://docs.litellm.ai) library. By default, we've chosen the mighty GPT-4 from OpenAI as our go-to model, but the world is your oyster! You can unleash the potential of Anthropic's suave Claude, the enigmatic Llama, or any other LM that piques your interest.To configure the LM of your choice, run:@@ -44,20 +44,20 @@ To configure the LM of your choice, run:make setup-config```- This command will prompt you to enter the LLM API key, model name, and other variables ensuring that OpenDevin is tailored to your specific needs. Note that the model name will apply only when you run headless. If you use the UI, please set the model in the UI.+ This command will prompt you to enter the LLM API key, model name, and other variables ensuring that OpenHands is tailored to your specific needs. Note that the model name will apply only when you run headless. If you use the UI, please set the model in the UI.- Note: If you have previously run OpenDevin using the docker command, you may have already set some environmental variables in your terminal. The final configurations are set from highest to lowest priority:+ Note: If you have previously run OpenHands using the docker command, you may have already set some environmental variables in your terminal. The final configurations are set from highest to lowest priority:Environment variables > config.toml variables > default variables**Note on Alternative Models:**Some alternative models may prove more challenging to tame than others. Fear not, brave adventurer! We shall soon unveil LLM-specific documentation to guide you on your quest.-And if you've already mastered the art of wielding a model other than OpenAI's GPT, we encourage you to share your setup instructions with us by creating instructions and adding it [to our documentation](https://github.com/OpenDevin/OpenDevin/tree/main/docs/modules/usage/llms).+And if you've already mastered the art of wielding a model other than OpenAI's GPT, we encourage you to share your setup instructions with us by creating instructions and adding it [to our documentation](https://github.com/All-Hands-AI/OpenHands/tree/main/docs/modules/usage/llms).For a full list of the LM providers and models available, please consult the [litellm documentation](https://docs.litellm.ai/docs/providers).### 4. Running the application#### Option A: Run the Full Application-Once the setup is complete, launching OpenDevin is as simple as running a single command. This command starts both the backend and frontend servers seamlessly, allowing you to interact with OpenDevin:+Once the setup is complete, launching OpenHands is as simple as running a single command. This command starts both the backend and frontend servers seamlessly, allowing you to interact with OpenHands:```bashmake run```@@ -75,10 +75,10 @@ make run### 6. LLM DebuggingIf you encounter any issues with the Language Model (LM) or you're simply curious, you can inspect the actual LLM prompts and responses. To do so, export DEBUG=1 in the environment and restart the backend.-OpenDevin will then log the prompts and responses in the logs/llm/CURRENT_DATE directory, allowing you to identify the causes.+OpenHands will then log the prompts and responses in the logs/llm/CURRENT_DATE directory, allowing you to identify the causes.### 7. Help-Need assistance or information on available targets and commands? The help command provides all the necessary guidance to ensure a smooth experience with OpenDevin.+Need assistance or information on available targets and commands? The help command provides all the necessary guidance to ensure a smooth experience with OpenHands.```bashmake help```diff --git a/Makefile b/Makefileindex c4f145c15d..4641b66587 100644--- a/Makefile+++ b/Makefile@@ -1,8 +1,8 @@SHELL=/bin/bash-# Makefile for OpenDevin project+# Makefile for OpenHands project# Variables-DOCKER_IMAGE = ghcr.io/opendevin/sandbox:main+DOCKER_IMAGE = ghcr.io/openhands/sandbox:mainBACKEND_PORT = 3000BACKEND_HOST = "127.0.0.1:$(BACKEND_PORT)"FRONTEND_PORT = 3001@@ -166,7 +166,7 @@ install-pre-commit-hooks:lint-backend:@echo "$(YELLOW)Running linters...$(RESET)"- @poetry run pre-commit run --files opendevin/**/* agenthub/**/* evaluation/**/* --show-diff-on-failure --config $(PRE_COMMIT_CONFIG_PATH)+ @poetry run pre-commit run --files openhands/**/* agenthub/**/* evaluation/**/* --show-diff-on-failure --config $(PRE_COMMIT_CONFIG_PATH)lint-frontend:@echo "$(YELLOW)Running linters for frontend...$(RESET)"@@ -190,7 +190,7 @@ build-frontend:# Start backendstart-backend:@echo "$(YELLOW)Starting backend...$(RESET)"- @poetry run uvicorn opendevin.server.listen:app --port $(BACKEND_PORT) --reload --reload-exclude "workspace/*"+ @poetry run uvicorn openhands.server.listen:app --port $(BACKEND_PORT) --reload --reload-exclude "workspace/*"# Start frontendstart-frontend:@@ -205,7 +205,7 @@ _run_setup:fi@mkdir -p logs@echo "$(YELLOW)Starting backend server...$(RESET)"- @poetry run uvicorn opendevin.server.listen:app --port $(BACKEND_PORT) &+ @poetry run uvicorn openhands.server.listen:app --port $(BACKEND_PORT) &@echo "$(YELLOW)Waiting for the backend to start...$(RESET)"@until nc -z localhost $(BACKEND_PORT); do sleep 0.1; done@echo "$(GREEN)Backend started successfully.$(RESET)"@@ -280,7 +280,7 @@ setup-config-prompts:# Clean up all cachesclean:@echo "$(YELLOW)Cleaning up caches...$(RESET)"- @rm -rf opendevin/.cache+ @rm -rf openhands/.cache@echo "$(GREEN)Caches cleaned up successfully.$(RESET)"# Help@@ -289,11 +289,11 @@ help:@echo "Targets:"@echo " $(GREEN)build$(RESET) - Build project, including environment setup and dependencies."@echo " $(GREEN)lint$(RESET) - Run linters on the project."- @echo " $(GREEN)setup-config$(RESET) - Setup the configuration for OpenDevin by providing LLM API key,"+ @echo " $(GREEN)setup-config$(RESET) - Setup the configuration for OpenHands by providing LLM API key,"@echo " LLM Model name, and workspace directory."- @echo " $(GREEN)start-backend$(RESET) - Start the backend server for the OpenDevin project."- @echo " $(GREEN)start-frontend$(RESET) - Start the frontend server for the OpenDevin project."- @echo " $(GREEN)run$(RESET) - Run the OpenDevin application, starting both backend and frontend servers."+ @echo " $(GREEN)start-backend$(RESET) - Start the backend server for the OpenHands project."+ @echo " $(GREEN)start-frontend$(RESET) - Start the frontend server for the OpenHands project."+ @echo " $(GREEN)run$(RESET) - Run the OpenHands application, starting both backend and frontend servers."@echo " Backend Log file will be stored in the 'logs' directory."@echo " $(GREEN)help$(RESET) - Display this help message, providing information on available targets."diff --git a/README.md b/README.mdindex 949e1c22dd..2d2f2c2502 100644--- a/README.md+++ b/README.md@@ -18,40 +18,40 @@--><div align="center">- <a href="https://github.com/OpenDevin/OpenDevin/graphs/contributors"><img src="https://img.shields.io/github/contributors/opendevin/opendevin?style=for-the-badge&color=blue" alt="Contributors"></a>- <a href="https://github.com/OpenDevin/OpenDevin/network/members"><img src="https://img.shields.io/github/forks/opendevin/opendevin?style=for-the-badge&color=blue" alt="Forks"></a>- <a href="https://github.com/OpenDevin/OpenDevin/stargazers"><img src="https://img.shields.io/github/stars/opendevin/opendevin?style=for-the-badge&color=blue" alt="Stargazers"></a>- <a href="https://github.com/OpenDevin/OpenDevin/issues"><img src="https://img.shields.io/github/issues/opendevin/opendevin?style=for-the-badge&color=blue" alt="Issues"></a>- <a href="https://github.com/OpenDevin/OpenDevin/blob/main/LICENSE"><img src="https://img.shields.io/github/license/opendevin/opendevin?style=for-the-badge&color=blue" alt="MIT License"></a>- <a href="https://github.com/OpenDevin/OpenDevin/blob/main/CREDITS.md"><img src="https://img.shields.io/badge/Project-Credits-blue?style=for-the-badge&color=blue" alt="Credits"></a>+ <a href="https://github.com/All-Hands-AI/OpenHands/graphs/contributors"><img src="https://img.shields.io/github/contributors/All-Hands-AI/OpenHands?style=for-the-badge&color=blue" alt="Contributors"></a>+ <a href="https://github.com/All-Hands-AI/OpenHands/network/members"><img src="https://img.shields.io/github/forks/All-Hands-AI/OpenHands?style=for-the-badge&color=blue" alt="Forks"></a>+ <a href="https://github.com/All-Hands-AI/OpenHands/stargazers"><img src="https://img.shields.io/github/stars/All-Hands-AI/OpenHands?style=for-the-badge&color=blue" alt="Stargazers"></a>+ <a href="https://github.com/All-Hands-AI/OpenHands/issues"><img src="https://img.shields.io/github/issues/All-Hands-AI/OpenHands?style=for-the-badge&color=blue" alt="Issues"></a>+ <a href="https://github.com/All-Hands-AI/OpenHands/blob/main/LICENSE"><img src="https://img.shields.io/github/license/All-Hands-AI/OpenHands?style=for-the-badge&color=blue" alt="MIT License"></a>+ <a href="https://github.com/All-Hands-AI/OpenHands/blob/main/CREDITS.md"><img src="https://img.shields.io/badge/Project-Credits-blue?style=for-the-badge&color=blue" alt="Credits"></a><br/>- <a href="https://join.slack.com/t/opendevin/shared_invite/zt-2ngejmfw6-9gW4APWOC9XUp1n~SiQ6iw"><img src="https://img.shields.io/badge/Slack-Join%20Us-red?logo=slack&logoColor=white&style=for-the-badge" alt="Join our Slack community"></a>+ <a href="https://join.slack.com/t/openhands/shared_invite/zt-2ngejmfw6-9gW4APWOC9XUp1n~SiQ6iw"><img src="https://img.shields.io/badge/Slack-Join%20Us-red?logo=slack&logoColor=white&style=for-the-badge" alt="Join our Slack community"></a><a href="https://discord.gg/ESHStjSjD4"><img src="https://img.shields.io/badge/Discord-Join%20Us-purple?logo=discord&logoColor=white&style=for-the-badge" alt="Join our Discord community"></a>- <a href="https://codecov.io/github/opendevin/opendevin?branch=main"><img alt="CodeCov" src="https://img.shields.io/codecov/c/github/opendevin/opendevin?style=for-the-badge"></a>+ <a href="https://codecov.io/github/All-Hands-AI/OpenHands?branch=main"><img alt="CodeCov" src="https://img.shields.io/codecov/c/github/All-Hands-AI/OpenHands?style=for-the-badge"></a></div><!-- PROJECT LOGO --><div align="center"><img src="./docs/static/img/logo.png" alt="Logo" width="200" height="200">- <h1 align="center">OpenDevin: Code Less, Make More</h1>- <a href="https://docs.all-hands.dev/modules/usage/intro"><img src="https://img.shields.io/badge/Documentation-OpenDevin-blue?logo=googledocs&logoColor=white&style=for-the-badge" alt="Check out the documentation"></a>+ <h1 align="center">OpenHands: Code Less, Make More</h1>+ <a href="https://docs.all-hands.dev/modules/usage/intro"><img src="https://img.shields.io/badge/Documentation-OpenHands-blue?logo=googledocs&logoColor=white&style=for-the-badge" alt="Check out the documentation"></a><a href="https://arxiv.org/abs/2407.16741"><img src="https://img.shields.io/badge/Paper-%20on%20Arxiv-red?logo=arxiv&style=for-the-badge" alt="Paper on Arxiv"></a><br/>- <a href="https://huggingface.co/spaces/OpenDevin/evaluation"><img src="https://img.shields.io/badge/Evaluation-Benchmark%20on%20HF%20Space-green?logo=huggingface&style=for-the-badge" alt="Evaluation Benchmark"></a>+ <a href="https://huggingface.co/spaces/OpenHands/evaluation"><img src="https://img.shields.io/badge/Evaluation-Benchmark%20on%20HF%20Space-green?logo=huggingface&style=for-the-badge" alt="Evaluation Benchmark"></a></div><hr>-Welcome to OpenDevin, a platform for autonomous software engineers, powered by AI and LLMs.+Welcome to OpenHands, a platform for autonomous software engineers, powered by AI and LLMs.-OpenDevin agents collaborate with human developers to write code, fix bugs, and ship features.+OpenHands agents collaborate with human developers to write code, fix bugs, and ship features.## ⚡ Getting Started-OpenDevin works best with Docker version 26.0.0+ (Docker Desktop 4.31.0+).+OpenHands works best with Docker version 26.0.0+ (Docker Desktop 4.31.0+).You must be using Linux, Mac OS, or WSL on Windows.-To start OpenDevin in a docker container, run the following commands in your terminal:+To start OpenHands in a docker container, run the following commands in your terminal:> [!WARNING]> When you run the following command, files in `./workspace` may be modified or deleted.@@ -66,30 +66,30 @@ docker run -it \-v /var/run/docker.sock:/var/run/docker.sock \-p 3000:3000 \--add-host host.docker.internal:host-gateway \- --name opendevin-app-$(date +%Y%m%d%H%M%S) \+ --name openhands-app-$(date +%Y%m%d%H%M%S) \ghcr.io/opendevin/opendevin:0.8```> [!NOTE]-> By default, this command pulls the `latest` tag, which represents the most recent release of OpenDevin. You have other options as well:-> - For a specific release version, use `ghcr.io/opendevin/opendevin:<OpenDevin_version>` (replace <OpenDevin_version> with the desired version number).+> By default, this command pulls the `latest` tag, which represents the most recent release of OpenHands. You have other options as well:+> - For a specific release version, use `ghcr.io/opendevin/opendevin:<OpenHands_version>` (replace <OpenHands_version> with the desired version number).> - For the most up-to-date development version, use `ghcr.io/opendevin/opendevin:main`. This version may be **(unstable!)** and is recommended for testing or development purposes only.>> Choose the tag that best suits your needs based on stability requirements and desired features.-You'll find OpenDevin running at [http://localhost:3000](http://localhost:3000) with access to `./workspace`. To have OpenDevin operate on your code, place it in `./workspace`.-OpenDevin will only have access to this workspace folder. The rest of your system will not be affected as it runs in a secured docker sandbox.+You'll find OpenHands running at [http://localhost:3000](http://localhost:3000) with access to `./workspace`. To have OpenHands operate on your code, place it in `./workspace`.+OpenHands will only have access to this workspace folder. The rest of your system will not be affected as it runs in a secured docker sandbox.-Upon opening OpenDevin, you must select the appropriate `Model` and enter the `API Key` within the settings that should pop up automatically. These can be set at any time by selecting+Upon opening OpenHands, you must select the appropriate `Model` and enter the `API Key` within the settings that should pop up automatically. These can be set at any time by selectingthe `Settings` button (gear icon) in the UI. If the required `Model` does not exist in the list, you can manually enter it in the text box.-For the development workflow, see [Development.md](https://github.com/OpenDevin/OpenDevin/blob/main/Development.md).+For the development workflow, see [Development.md](https://github.com/All-Hands-AI/OpenHands/blob/main/Development.md).Are you having trouble? Check out our [Troubleshooting Guide](https://docs.all-hands.dev/modules/usage/troubleshooting).## 🚀 Documentation-To learn more about the project, and for tips on using OpenDevin,+To learn more about the project, and for tips on using OpenHands,**check out our [documentation](https://docs.all-hands.dev/modules/usage/intro)**.There you'll find resources on how to use different LLM providers (like ollama and Anthropic's Claude),@@ -97,29 +97,29 @@ troubleshooting resources, and advanced configuration options.## 🤝 How to Contribute-OpenDevin is a community-driven project, and we welcome contributions from everyone.+OpenHands is a community-driven project, and we welcome contributions from everyone.Whether you're a developer, a researcher, or simply enthusiastic about advancing the field ofsoftware engineering with AI, there are many ways to get involved:- **Code Contributions:** Help us develop new agents, core functionality, the frontend and other interfaces, or sandboxing solutions.- **Research and Evaluation:** Contribute to our understanding of LLMs in software engineering, participate in evaluating the models, or suggest improvements.-- **Feedback and Testing:** Use the OpenDevin toolset, report bugs, suggest features, or provide feedback on usability.+- **Feedback and Testing:** Use the OpenHands toolset, report bugs, suggest features, or provide feedback on usability.For details, please check [CONTRIBUTING.md](./CONTRIBUTING.md).## 🤖 Join Our Community-Whether you're a developer, a researcher, or simply enthusiastic about OpenDevin, we'd love to have you in our community.+Whether you're a developer, a researcher, or simply enthusiastic about OpenHands, we'd love to have you in our community.Let's make software engineering better together!-- [Slack workspace](https://join.slack.com/t/opendevin/shared_invite/zt-2ngejmfw6-9gW4APWOC9XUp1n~SiQ6iw) - Here we talk about research, architecture, and future development.+- [Slack workspace](https://join.slack.com/t/openhands/shared_invite/zt-2ngejmfw6-9gW4APWOC9XUp1n~SiQ6iw) - Here we talk about research, architecture, and future development.- [Discord server](https://discord.gg/ESHStjSjD4) - This is a community-run server for general discussion, questions, and feedback.## 📈 Progress<p align="center">- <a href="https://star-history.com/#OpenDevin/OpenDevin&Date">- <img src="https://api.star-history.com/svg?repos=OpenDevin/OpenDevin&type=Date" width="500" alt="Star History Chart">+ <a href="https://star-history.com/#All-Hands-AI/OpenHands&Date">+ <img src="https://api.star-history.com/svg?repos=All-Hands-AI/OpenHands&type=Date" width="500" alt="Star History Chart"></a></p>@@ -127,22 +127,22 @@ Let's make software engineering better together!Distributed under the MIT License. See [`LICENSE`](./LICENSE) for more information.-[contributors-shield]: https://img.shields.io/github/contributors/opendevin/opendevin?style=for-the-badge-[contributors-url]: https://github.com/OpenDevin/OpenDevin/graphs/contributors-[forks-shield]: https://img.shields.io/github/forks/opendevin/opendevin?style=for-the-badge-[forks-url]: https://github.com/OpenDevin/OpenDevin/network/members-[stars-shield]: https://img.shields.io/github/stars/opendevin/opendevin?style=for-the-badge-[stars-url]: https://github.com/OpenDevin/OpenDevin/stargazers-[issues-shield]: https://img.shields.io/github/issues/opendevin/opendevin?style=for-the-badge-[issues-url]: https://github.com/OpenDevin/OpenDevin/issues-[license-shield]: https://img.shields.io/github/license/opendevin/opendevin?style=for-the-badge-[license-url]: https://github.com/OpenDevin/OpenDevin/blob/main/LICENSE+[contributors-shield]: https://img.shields.io/github/contributors/All-Hands-AI/OpenHands?style=for-the-badge+[contributors-url]: https://github.com/All-Hands-AI/OpenHands/graphs/contributors+[forks-shield]: https://img.shields.io/github/forks/All-Hands-AI/OpenHands?style=for-the-badge+[forks-url]: https://github.com/All-Hands-AI/OpenHands/network/members+[stars-shield]: https://img.shields.io/github/stars/All-Hands-AI/OpenHands?style=for-the-badge+[stars-url]: https://github.com/All-Hands-AI/OpenHands/stargazers+[issues-shield]: https://img.shields.io/github/issues/All-Hands-AI/OpenHands?style=for-the-badge+[issues-url]: https://github.com/All-Hands-AI/OpenHands/issues+[license-shield]: https://img.shields.io/github/license/All-Hands-AI/OpenHands?style=for-the-badge+[license-url]: https://github.com/All-Hands-AI/OpenHands/blob/main/LICENSE## 🙏 Acknowledgements-OpenDevin is built by a large number of contributors, and every contribution is greatly appreciated! We also build upon other open source projects, and we are deeply thankful for their work.+OpenHands is built by a large number of contributors, and every contribution is greatly appreciated! We also build upon other open source projects, and we are deeply thankful for their work.-For a list of open source projects and licenses used in OpenDevin, please see our [CREDITS.md](./CREDITS.md) file.+For a list of open source projects and licenses used in OpenHands, please see our [CREDITS.md](./CREDITS.md) file.## 📚 Citediff --git a/agenthub/README.md b/agenthub/README.mdindex 76d738e005..46e8fa9664 100644--- a/agenthub/README.md+++ b/agenthub/README.md@@ -7,17 +7,17 @@ Contributors from different backgrounds and interests can choose to contribute t## Constructing an Agent-The abstraction for an agent can be found [here](../opendevin/controller/agent.py).+The abstraction for an agent can be found [here](../openhands/controller/agent.py).Agents are run inside of a loop. At each iteration, `agent.step()` is called with a-[State](../opendevin/controller/state/state.py) input, and the agent must output an [Action](../opendevin/events/action).+[State](../openhands/controller/state/state.py) input, and the agent must output an [Action](../openhands/events/action).Every agent also has a `self.llm` which it can use to interact with the LLM configured by the user.See the [LiteLLM docs for `self.llm.completion`](https://docs.litellm.ai/docs/completion).## State-The `state` represents the running state of an agent in the OpenDevin system. The class handles saving and restoring the agent session. It is serialized in a pickle.+The `state` represents the running state of an agent in the OpenHands system. The class handles saving and restoring the agent session. It is serialized in a pickle.The State object stores information about:@@ -46,17 +46,17 @@ The agent can add and modify subtasks through the `AddTaskAction` and `ModifyTasHere is a list of available Actions, which can be returned by `agent.step()`:-- [`CmdRunAction`](../opendevin/events/action/commands.py) - Runs a command inside a sandboxed terminal-- [`IPythonRunCellAction`](../opendevin/events/action/commands.py) - Execute a block of Python code interactively (in Jupyter notebook) and receives `CmdOutputObservation`. Requires setting up `jupyter` [plugin](../opendevin/runtime/plugins) as a requirement.-- [`FileReadAction`](../opendevin/events/action/files.py) - Reads the content of a file-- [`FileWriteAction`](../opendevin/events/action/files.py) - Writes new content to a file-- [`BrowseURLAction`](../opendevin/events/action/browse.py) - Gets the content of a URL-- [`AddTaskAction`](../opendevin/events/action/tasks.py) - Adds a subtask to the plan-- [`ModifyTaskAction`](../opendevin/events/action/tasks.py) - Changes the state of a subtask.-- [`AgentFinishAction`](../opendevin/events/action/agent.py) - Stops the control loop, allowing the user/delegator agent to enter a new task-- [`AgentRejectAction`](../opendevin/events/action/agent.py) - Stops the control loop, allowing the user/delegator agent to enter a new task-- [`AgentFinishAction`](../opendevin/events/action/agent.py) - Stops the control loop, allowing the user to enter a new task-- [`MessageAction`](../opendevin/events/action/message.py) - Represents a message from an agent or the user+- [`CmdRunAction`](../openhands/events/action/commands.py) - Runs a command inside a sandboxed terminal+- [`IPythonRunCellAction`](../openhands/events/action/commands.py) - Execute a block of Python code interactively (in Jupyter notebook) and receives `CmdOutputObservation`. Requires setting up `jupyter` [plugin](../openhands/runtime/plugins) as a requirement.+- [`FileReadAction`](../openhands/events/action/files.py) - Reads the content of a file+- [`FileWriteAction`](../openhands/events/action/files.py) - Writes new content to a file+- [`BrowseURLAction`](../openhands/events/action/browse.py) - Gets the content of a URL+- [`AddTaskAction`](../openhands/events/action/tasks.py) - Adds a subtask to the plan+- [`ModifyTaskAction`](../openhands/events/action/tasks.py) - Changes the state of a subtask.+- [`AgentFinishAction`](../openhands/events/action/agent.py) - Stops the control loop, allowing the user/delegator agent to enter a new task+- [`AgentRejectAction`](../openhands/events/action/agent.py) - Stops the control loop, allowing the user/delegator agent to enter a new task+- [`AgentFinishAction`](../openhands/events/action/agent.py) - Stops the control loop, allowing the user to enter a new task+- [`MessageAction`](../openhands/events/action/message.py) - Represents a message from an agent or the userTo serialize and deserialize an action, you can use:- `action.to_dict()` to serialize the action to a dictionary to be sent to the UI, including a user-friendly string representation of the message@@ -70,12 +70,12 @@ But they may also appear as a result of asynchronous events (e.g. a message fromHere is a list of available Observations:-- [`CmdOutputObservation`](../opendevin/events/observation/commands.py)-- [`BrowserOutputObservation`](../opendevin/events/observation/browse.py)-- [`FileReadObservation`](../opendevin/events/observation/files.py)-- [`FileWriteObservation`](../opendevin/events/observation/files.py)-- [`ErrorObservation`](../opendevin/events/observation/error.py)-- [`SuccessObservation`](../opendevin/events/observation/success.py)+- [`CmdOutputObservation`](../openhands/events/observation/commands.py)+- [`BrowserOutputObservation`](../openhands/events/observation/browse.py)+- [`FileReadObservation`](../openhands/events/observation/files.py)+- [`FileWriteObservation`](../openhands/events/observation/files.py)+- [`ErrorObservation`](../openhands/events/observation/error.py)+- [`SuccessObservation`](../openhands/events/observation/success.py)You can use `observation.to_dict()` and `observation_from_dict` to serialize and deserialize observations.@@ -94,7 +94,7 @@ sending a prompt to the LLM, then parsing the response into an `Action`.## Agent Delegation-OpenDevin is a multi-agentic system. Agents can delegate tasks to other agents, whether+OpenHands is a multi-agentic system. Agents can delegate tasks to other agents, whetherprompted by the user, or when the agent decides to ask another agent for help. For example,the `CodeActAgent` might delegate to the `BrowsingAgent` to answer questions that involve browsingthe web. The Delegator Agent forwards tasks to micro-agents, such as 'RepoStudyAgent' to study a repo,@@ -102,7 +102,7 @@ or 'VerifierAgent' to verify a task completion.### Understanding the terminology-A `task` is an end-to-end conversation between OpenDevin (the whole system) and the user,+A `task` is an end-to-end conversation between OpenHands (the whole system) and the user,which might involve one or more inputs from the user. It starts with an initial input(typically a task statement) from the user, and ends with either an `AgentFinishAction`initiated by the agent, a stop initiated by the user, or an error.@@ -113,7 +113,7 @@ itself. Otherwise, a `task` consists of multiple `subtasks`, each executed byone agent.For example, considering a task from the user: `tell me how many GitHub stars-OpenDevin repo has`. Let's assume the default agent is CodeActAgent.+OpenHands repo has`. Let's assume the default agent is CodeActAgent.```-- TASK STARTS (SUBTASK 0 STARTS) --diff --git a/agenthub/__init__.py b/agenthub/__init__.pyindex 7c445d7881..4c476b43be 100644--- a/agenthub/__init__.py+++ b/agenthub/__init__.py@@ -1,6 +1,6 @@from dotenv import load_dotenv-from opendevin.controller.agent import Agent+from openhands.controller.agent import Agentfrom .micro.agent import MicroAgentfrom .micro.registry import all_microagentsdiff --git a/agenthub/browsing_agent/README.md b/agenthub/browsing_agent/README.mdindex 4b7c05b68a..9f8ca36277 100644--- a/agenthub/browsing_agent/README.md+++ b/agenthub/browsing_agent/README.md@@ -8,7 +8,7 @@ This folder implements the basic BrowserGym [demo agent](https://github.com/ServNote that for browsing tasks, GPT-4 is usually a requirement to get reasonable results, due to the complexity of the web page structures.```-poetry run python ./opendevin/core/main.py \+poetry run python ./openhands/core/main.py \-i 10 \-t "tell me the usa's president using google search" \-c BrowsingAgent \diff --git a/agenthub/browsing_agent/__init__.py b/agenthub/browsing_agent/__init__.pyindex ea504ea91b..6f25e3da81 100644--- a/agenthub/browsing_agent/__init__.py+++ b/agenthub/browsing_agent/__init__.py@@ -1,4 +1,4 @@-from opendevin.controller.agent import Agent+from openhands.controller.agent import Agentfrom .browsing_agent import BrowsingAgentdiff --git a/agenthub/browsing_agent/browsing_agent.py b/agenthub/browsing_agent/browsing_agent.pyindex 83566d8b3d..b86576c6ed 100644--- a/agenthub/browsing_agent/browsing_agent.py+++ b/agenthub/browsing_agent/browsing_agent.py@@ -4,22 +4,22 @@ from browsergym.core.action.highlevel import HighLevelActionSetfrom browsergym.utils.obs import flatten_axtree_to_strfrom agenthub.browsing_agent.response_parser import BrowsingResponseParser-from opendevin.controller.agent import Agent-from opendevin.controller.state.state import State-from opendevin.core.config import AgentConfig-from opendevin.core.logger import opendevin_logger as logger-from opendevin.core.message import Message, TextContent-from opendevin.events.action import (+from openhands.controller.agent import Agent+from openhands.controller.state.state import State+from openhands.core.config import AgentConfig+from openhands.core.logger import openhands_logger as logger+from openhands.core.message import Message, TextContent+from openhands.events.action import (Action,AgentFinishAction,BrowseInteractiveAction,MessageAction,)-from opendevin.events.event import EventSource-from opendevin.events.observation import BrowserOutputObservation-from opendevin.events.observation.observation import Observation-from opendevin.llm.llm import LLM-from opendevin.runtime.plugins import (+from openhands.events.event import EventSource+from openhands.events.observation import BrowserOutputObservation+from openhands.events.observation.observation import Observation+from openhands.llm.llm import LLM+from openhands.runtime.plugins import (PluginRequirement,)@@ -165,7 +165,7 @@ class BrowsingAgent(Agent):prev_action_str = '\n'.join(prev_actions)# if the final BrowserInteractiveAction exec BrowserGym's send_msg_to_user,- # we should also send a message back to the user in OpenDevin and call it a day+ # we should also send a message back to the user in OpenHands and call it a dayif (isinstance(last_action, BrowseInteractiveAction)and last_action.browsergym_send_msg_to_userdiff --git a/agenthub/browsing_agent/prompt.py b/agenthub/browsing_agent/prompt.pyindex 3dfd7f5022..aa0e6b929f 100644--- a/agenthub/browsing_agent/prompt.py+++ b/agenthub/browsing_agent/prompt.py@@ -12,7 +12,7 @@ from browsergym.core.action.base import AbstractActionSetfrom browsergym.core.action.highlevel import HighLevelActionSetfrom browsergym.core.action.python import PythonActionSet-from opendevin.runtime.browser.browser_env import BrowserEnv+from openhands.runtime.browser.browser_env import BrowserEnvfrom .utils import (ParseError,diff --git a/agenthub/browsing_agent/response_parser.py b/agenthub/browsing_agent/response_parser.pyindex 9b64748880..8c9e838ad7 100644--- a/agenthub/browsing_agent/response_parser.py+++ b/agenthub/browsing_agent/response_parser.py@@ -1,8 +1,8 @@import ast-from opendevin.controller.action_parser import ActionParser, ResponseParser-from opendevin.core.logger import opendevin_logger as logger-from opendevin.events.action import (+from openhands.controller.action_parser import ActionParser, ResponseParser+from openhands.core.logger import openhands_logger as logger+from openhands.events.action import (Action,BrowseInteractiveAction,)diff --git a/agenthub/codeact_agent/README.md b/agenthub/codeact_agent/README.mdindex e828b0be30..25d2b8c9a4 100644--- a/agenthub/codeact_agent/README.md+++ b/agenthub/codeact_agent/README.md@@ -9,17 +9,17 @@ The conceptual idea is illustrated below. At each turn, the agent can:- Execute any valid Linux `bash` command- Execute any valid `Python` code with [an interactive Python interpreter](https://ipython.org/). This is simulated through `bash` command, see plugin system below for more details.-+## Plugin System-To make the CodeAct agent more powerful with only access to `bash` action space, CodeAct agent leverages OpenDevin's plugin system:-- [Jupyter plugin](https://github.com/OpenDevin/OpenDevin/tree/main/opendevin/runtime/plugins/jupyter): for IPython execution via bash command-- [SWE-agent tool plugin](https://github.com/OpenDevin/OpenDevin/tree/main/opendevin/runtime/plugins/swe_agent_commands): Powerful bash command line tools for software development tasks introduced by [swe-agent](https://github.com/princeton-nlp/swe-agent).+To make the CodeAct agent more powerful with only access to `bash` action space, CodeAct agent leverages OpenHands's plugin system:+- [Jupyter plugin](https://github.com/All-Hands-AI/OpenHands/tree/main/openhands/runtime/plugins/jupyter): for IPython execution via bash command+- [SWE-agent tool plugin](https://github.com/All-Hands-AI/OpenHands/tree/main/openhands/runtime/plugins/swe_agent_commands): Powerful bash command line tools for software development tasks introduced by [swe-agent](https://github.com/princeton-nlp/swe-agent).## Demo-https://github.com/OpenDevin/OpenDevin/assets/38853559/f592a192-e86c-4f48-ad31-d69282d5f6ac+https://github.com/All-Hands-AI/OpenHands/assets/38853559/f592a192-e86c-4f48-ad31-d69282d5f6ac*Example of CodeActAgent with `gpt-4-turbo-2024-04-09` performing a data science task (linear regression)*diff --git a/agenthub/codeact_agent/__init__.py b/agenthub/codeact_agent/__init__.pyindex 9f877f5475..c8a924dc4b 100644--- a/agenthub/codeact_agent/__init__.py+++ b/agenthub/codeact_agent/__init__.py@@ -1,4 +1,4 @@-from opendevin.controller.agent import Agent+from openhands.controller.agent import Agentfrom .codeact_agent import CodeActAgentdiff --git a/agenthub/codeact_agent/action_parser.py b/agenthub/codeact_agent/action_parser.pyindex 2491efcb37..96d9245afb 100644--- a/agenthub/codeact_agent/action_parser.py+++ b/agenthub/codeact_agent/action_parser.py@@ -1,7 +1,7 @@import re-from opendevin.controller.action_parser import ActionParser, ResponseParser-from opendevin.events.action import (+from openhands.controller.action_parser import ActionParser, ResponseParser+from openhands.events.action import (Action,AgentDelegateAction,AgentFinishAction,diff --git a/agenthub/codeact_agent/codeact_agent.py b/agenthub/codeact_agent/codeact_agent.pyindex 19ac15fdb6..fe3e25a23d 100644--- a/agenthub/codeact_agent/codeact_agent.py+++ b/agenthub/codeact_agent/codeact_agent.py@@ -1,11 +1,11 @@import osfrom agenthub.codeact_agent.action_parser import CodeActResponseParser-from opendevin.controller.agent import Agent-from opendevin.controller.state.state import State-from opendevin.core.config import AgentConfig-from opendevin.core.message import ImageContent, Message, TextContent-from opendevin.events.action import (+from openhands.controller.agent import Agent+from openhands.controller.state.state import State+from openhands.core.config import AgentConfig+from openhands.core.message import ImageContent, Message, TextContent+from openhands.events.action import (Action,AgentDelegateAction,AgentFinishAction,@@ -13,21 +13,21 @@ from opendevin.events.action import (IPythonRunCellAction,MessageAction,)-from opendevin.events.observation import (+from openhands.events.observation import (AgentDelegateObservation,CmdOutputObservation,IPythonRunCellObservation,)-from opendevin.events.observation.error import ErrorObservation-from opendevin.events.observation.observation import Observation-from opendevin.events.serialization.event import truncate_content-from opendevin.llm.llm import LLM-from opendevin.runtime.plugins import (+from openhands.events.observation.error import ErrorObservation+from openhands.events.observation.observation import Observation+from openhands.events.serialization.event import truncate_content+from openhands.llm.llm import LLM+from openhands.runtime.plugins import (AgentSkillsRequirement,JupyterRequirement,PluginRequirement,)-from opendevin.utils.prompt import PromptManager+from openhands.utils.prompt import PromptManagerclass CodeActAgent(Agent):@@ -47,7 +47,7 @@ class CodeActAgent(Agent):- Execute any valid Linux `bash` command- Execute any valid `Python` code with [an interactive Python interpreter](https://ipython.org/). This is simulated through `bash` command, see plugin system below for more details.- + """diff --git a/agenthub/codeact_agent/user_prompt.j2 b/agenthub/codeact_agent/user_prompt.j2index 60a7fd5c91..bae6bfc18c 100644--- a/agenthub/codeact_agent/user_prompt.j2+++ b/agenthub/codeact_agent/user_prompt.j2@@ -95,8 +95,8 @@ Collecting click>=8.1.3Using cached click-8.1.7-py3-none-any.whl (97 kB)Collecting itsdangerous>=2.1.2Using cached itsdangerous-2.2.0-py3-none-any.whl (16 kB)-Requirement already satisfied: Jinja2>=3.1.2 in /home/opendevin/.local/lib/python3.10/site-packages (from flask) (3.1.3)-Requirement already satisfied: MarkupSafe>=2.0 in /home/opendevin/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)+Requirement already satisfied: Jinja2>=3.1.2 in /home/openhands/.local/lib/python3.10/site-packages (from flask) (3.1.3)+Requirement already satisfied: MarkupSafe>=2.0 in /home/openhands/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)Installing collected packages: Werkzeug, itsdangerous, click, blinker, flaskSuccessfully installed Werkzeug-3.0.2 blinker-1.7.0 click-8.1.7 flask-3.0.3 itsdangerous-2.2.0diff --git a/agenthub/codeact_swe_agent/README.md b/agenthub/codeact_swe_agent/README.mdindex b52031a037..ec88537aaa 100644--- a/agenthub/codeact_swe_agent/README.md+++ b/agenthub/codeact_swe_agent/README.md@@ -1,6 +1,6 @@# CodeAct (SWE Edit Specialized)-This agent is an adaptation of the original [SWE Agent](https://swe-agent.com/) based on CodeAct using the `agentskills` library of OpenDevin.+This agent is an adaptation of the original [SWE Agent](https://swe-agent.com/) based on CodeAct using the `agentskills` library of OpenHands.Its intended use is **solving GitHub issues**.diff --git a/agenthub/codeact_swe_agent/__init__.py b/agenthub/codeact_swe_agent/__init__.pyindex 22c6d623f7..b634777fbe 100644--- a/agenthub/codeact_swe_agent/__init__.py+++ b/agenthub/codeact_swe_agent/__init__.py@@ -1,4 +1,4 @@-from opendevin.controller.agent import Agent+from openhands.controller.agent import Agentfrom .codeact_swe_agent import CodeActSWEAgentdiff --git a/agenthub/codeact_swe_agent/action_parser.py b/agenthub/codeact_swe_agent/action_parser.pyindex d51a6c6ec1..c77c1404a6 100644--- a/agenthub/codeact_swe_agent/action_parser.py+++ b/agenthub/codeact_swe_agent/action_parser.py@@ -1,7 +1,7 @@import re-from opendevin.controller.action_parser import ActionParser-from opendevin.events.action import (+from openhands.controller.action_parser import ActionParser+from openhands.events.action import (Action,AgentFinishAction,CmdRunAction,diff --git a/agenthub/codeact_swe_agent/codeact_swe_agent.py b/agenthub/codeact_swe_agent/codeact_swe_agent.pyindex d8d20de9fe..dd18d94a84 100644--- a/agenthub/codeact_swe_agent/codeact_swe_agent.py+++ b/agenthub/codeact_swe_agent/codeact_swe_agent.py@@ -5,26 +5,26 @@ from agenthub.codeact_swe_agent.prompt import (SYSTEM_SUFFIX,)from agenthub.codeact_swe_agent.response_parser import CodeActSWEResponseParser-from opendevin.controller.agent import Agent-from opendevin.controller.state.state import State-from opendevin.core.config import AgentConfig-from opendevin.core.message import ImageContent, Message, TextContent-from opendevin.events.action import (+from openhands.controller.agent import Agent+from openhands.controller.state.state import State+from openhands.core.config import AgentConfig+from openhands.core.message import ImageContent, Message, TextContent+from openhands.events.action import (Action,AgentFinishAction,CmdRunAction,IPythonRunCellAction,MessageAction,)-from opendevin.events.observation import (+from openhands.events.observation import (CmdOutputObservation,IPythonRunCellObservation,)-from opendevin.events.observation.error import ErrorObservation-from opendevin.events.observation.observation import Observation-from opendevin.events.serialization.event import truncate_content-from opendevin.llm.llm import LLM-from opendevin.runtime.plugins import (+from openhands.events.observation.error import ErrorObservation+from openhands.events.observation.observation import Observation+from openhands.events.serialization.event import truncate_content+from openhands.llm.llm import LLM+from openhands.runtime.plugins import (AgentSkillsRequirement,JupyterRequirement,PluginRequirement,@@ -42,7 +42,7 @@ def get_in_context_example() -> str:class CodeActSWEAgent(Agent):VERSION = '1.6'"""- This agent is an adaptation of the original [SWE Agent](https://swe-agent.com/) based on CodeAct 1.5 using the `agentskills` library of OpenDevin.+ This agent is an adaptation of the original [SWE Agent](https://swe-agent.com/) based on CodeAct 1.5 using the `agentskills` library of OpenHands.It is intended use is **solving Github issues**.diff --git a/agenthub/codeact_swe_agent/prompt.py b/agenthub/codeact_swe_agent/prompt.pyindex b83c489001..1a2ffabad9 100644--- a/agenthub/codeact_swe_agent/prompt.py+++ b/agenthub/codeact_swe_agent/prompt.py@@ -1,4 +1,4 @@-from opendevin.runtime.plugins import AgentSkillsRequirement+from openhands.runtime.plugins import AgentSkillsRequirement_AGENT_SKILLS_DOCS = AgentSkillsRequirement.documentationdiff --git a/agenthub/codeact_swe_agent/response_parser.py b/agenthub/codeact_swe_agent/response_parser.pyindex e8e8d34e9e..e96b4494a2 100644--- a/agenthub/codeact_swe_agent/response_parser.py+++ b/agenthub/codeact_swe_agent/response_parser.py@@ -4,8 +4,8 @@ from agenthub.codeact_swe_agent.action_parser import (CodeActSWEActionParserIPythonRunCell,CodeActSWEActionParserMessage,)-from opendevin.controller.action_parser import ResponseParser-from opendevin.events.action import Action+from openhands.controller.action_parser import ResponseParser+from openhands.events.action import Actionclass CodeActSWEResponseParser(ResponseParser):diff --git a/agenthub/delegator_agent/__init__.py b/agenthub/delegator_agent/__init__.pyindex dbae30af72..16b6705763 100644--- a/agenthub/delegator_agent/__init__.py+++ b/agenthub/delegator_agent/__init__.py@@ -1,4 +1,4 @@-from opendevin.controller.agent import Agent+from openhands.controller.agent import Agentfrom .agent import DelegatorAgentdiff --git a/agenthub/delegator_agent/agent.py b/agenthub/delegator_agent/agent.pyindex 0938006440..29e0030423 100644--- a/agenthub/delegator_agent/agent.py+++ b/agenthub/delegator_agent/agent.py@@ -1,9 +1,9 @@-from opendevin.controller.agent import Agent-from opendevin.controller.state.state import State-from opendevin.core.config import AgentConfig-from opendevin.events.action import Action, AgentDelegateAction, AgentFinishAction-from opendevin.events.observation import AgentDelegateObservation-from opendevin.llm.llm import LLM+from openhands.controller.agent import Agent+from openhands.controller.state.state import State+from openhands.core.config import AgentConfig+from openhands.events.action import Action, AgentDelegateAction, AgentFinishAction+from openhands.events.observation import AgentDelegateObservation+from openhands.llm.llm import LLMclass DelegatorAgent(Agent):diff --git a/agenthub/dummy_agent/__init__.py b/agenthub/dummy_agent/__init__.pyindex 831f488224..0a63c69129 100644--- a/agenthub/dummy_agent/__init__.py+++ b/agenthub/dummy_agent/__init__.py@@ -1,4 +1,4 @@-from opendevin.controller.agent import Agent+from openhands.controller.agent import Agentfrom .agent import DummyAgentdiff --git a/agenthub/dummy_agent/agent.py b/agenthub/dummy_agent/agent.pyindex d2f9810a18..dbe4c60cfa 100644--- a/agenthub/dummy_agent/agent.py+++ b/agenthub/dummy_agent/agent.py@@ -1,10 +1,10 @@from typing import TypedDict, Union-from opendevin.controller.agent import Agent-from opendevin.controller.state.state import State-from opendevin.core.config import AgentConfig-from opendevin.core.schema import AgentState-from opendevin.events.action import (+from openhands.controller.agent import Agent+from openhands.controller.state.state import State+from openhands.core.config import AgentConfig+from openhands.core.schema import AgentState+from openhands.events.action import (Action,AddTaskAction,AgentFinishAction,@@ -17,7 +17,7 @@ from opendevin.events.action import (MessageAction,ModifyTaskAction,)-from opendevin.events.observation import (+from openhands.events.observation import (AgentStateChangedObservation,CmdOutputObservation,FileReadObservation,@@ -25,8 +25,8 @@ from opendevin.events.observation import (NullObservation,Observation,)-from opendevin.events.serialization.event import event_to_dict-from opendevin.llm.llm import LLM+from openhands.events.serialization.event import event_to_dict+from openhands.llm.llm import LLM"""FIXME: There are a few problems this surfaceddiff --git a/agenthub/micro/agent.py b/agenthub/micro/agent.pyindex 57a002130b..d444e121bc 100644--- a/agenthub/micro/agent.py+++ b/agenthub/micro/agent.py@@ -1,15 +1,15 @@from jinja2 import BaseLoader, Environment-from opendevin.controller.agent import Agent-from opendevin.controller.state.state import State-from opendevin.core.config import AgentConfig-from opendevin.core.message import ImageContent, Message, TextContent-from opendevin.core.utils import json-from opendevin.events.action import Action-from opendevin.events.serialization.action import action_from_dict-from opendevin.events.serialization.event import event_to_memory-from opendevin.llm.llm import LLM-from opendevin.memory.history import ShortTermHistory+from openhands.controller.agent import Agent+from openhands.controller.state.state import State+from openhands.core.config import AgentConfig+from openhands.core.message import ImageContent, Message, TextContent+from openhands.core.utils import json+from openhands.events.action import Action+from openhands.events.serialization.action import action_from_dict+from openhands.events.serialization.event import event_to_memory+from openhands.llm.llm import LLM+from openhands.memory.history import ShortTermHistoryfrom .instructions import instructionsfrom .registry import all_microagentsdiff --git a/agenthub/micro/commit_writer/README.md b/agenthub/micro/commit_writer/README.mdindex f82484b91d..df9cd8c505 100644--- a/agenthub/micro/commit_writer/README.md+++ b/agenthub/micro/commit_writer/README.md@@ -4,7 +4,7 @@ CommitWriterAgent can help write git commit message. Example:```bashWORKSPACE_MOUNT_PATH="`PWD`" \- poetry run python opendevin/core/main.py -t "dummy task" -c CommitWriterAgent -d ./+ poetry run python openhands/core/main.py -t "dummy task" -c CommitWriterAgent -d ./```This agent is special in the sense that it doesn't need a task. Once called,diff --git a/agenthub/planner_agent/__init__.py b/agenthub/planner_agent/__init__.pyindex e447765391..385df5c001 100644--- a/agenthub/planner_agent/__init__.py+++ b/agenthub/planner_agent/__init__.py@@ -1,4 +1,4 @@-from opendevin.controller.agent import Agent+from openhands.controller.agent import Agentfrom .agent import PlannerAgentdiff --git a/agenthub/planner_agent/agent.py b/agenthub/planner_agent/agent.pyindex 7a67e71667..7f23b34cc5 100644--- a/agenthub/planner_agent/agent.py+++ b/agenthub/planner_agent/agent.py@@ -1,10 +1,10 @@from agenthub.planner_agent.response_parser import PlannerResponseParser-from opendevin.controller.agent import Agent-from opendevin.controller.state.state import State-from opendevin.core.config import AgentConfig-from opendevin.core.message import ImageContent, Message, TextContent-from opendevin.events.action import Action, AgentFinishAction-from opendevin.llm.llm import LLM+from openhands.controller.agent import Agent+from openhands.controller.state.state import State+from openhands.core.config import AgentConfig+from openhands.core.message import ImageContent, Message, TextContent+from openhands.events.action import Action, AgentFinishAction+from openhands.llm.llm import LLMfrom .prompt import get_prompt_and_imagesdiff --git a/agenthub/planner_agent/prompt.py b/agenthub/planner_agent/prompt.pyindex ad26b20cac..495cae80b4 100644--- a/agenthub/planner_agent/prompt.py+++ b/agenthub/planner_agent/prompt.py@@ -1,13 +1,13 @@-from opendevin.controller.state.state import State-from opendevin.core.logger import opendevin_logger as logger-from opendevin.core.schema import ActionType-from opendevin.core.utils import json-from opendevin.events.action import (+from openhands.controller.state.state import State+from openhands.core.logger import openhands_logger as logger+from openhands.core.schema import ActionType+from openhands.core.utils import json+from openhands.events.action import (Action,NullAction,)-from opendevin.events.serialization.action import action_from_dict-from opendevin.events.serialization.event import event_to_memory+from openhands.events.serialization.action import action_from_dict+from openhands.events.serialization.event import event_to_memoryHISTORY_SIZE = 20diff --git a/agenthub/planner_agent/response_parser.py b/agenthub/planner_agent/response_parser.pyindex 5cc3613fec..12068cd5b7 100644--- a/agenthub/planner_agent/response_parser.py+++ b/agenthub/planner_agent/response_parser.py@@ -1,9 +1,9 @@-from opendevin.controller.action_parser import ResponseParser-from opendevin.core.utils import json-from opendevin.events.action import (+from openhands.controller.action_parser import ResponseParser+from openhands.core.utils import json+from openhands.events.action import (Action,)-from opendevin.events.serialization.action import action_from_dict+from openhands.events.serialization.action import action_from_dictclass PlannerResponseParser(ResponseParser):diff --git a/config.template.toml b/config.template.tomlindex 0c5de48c8d..ca9f66c522 100644--- a/config.template.toml+++ b/config.template.toml@@ -1,4 +1,4 @@-###################### OpenDevin Configuration Example ######################+###################### OpenHands Configuration Example ######################## All settings have default values, so you only need to uncomment and# modify what you want to change@@ -55,8 +55,8 @@ workspace_base = "./workspace"# Path to rewrite the workspace mount path to#workspace_mount_rewrite = ""-# Run as devin-#run_as_devin = true+# Run as openhands+#run_as_openhands = true# Runtime environment#runtime = "eventstream"diff --git a/containers/README.md b/containers/README.mdindex 526bfee938..03a420f2ed 100644--- a/containers/README.md+++ b/containers/README.md@@ -7,6 +7,6 @@ by the `ghcr.yml` workflow.## Building Manually```bash-docker build -f containers/app/Dockerfile -t opendevin .+docker build -f containers/app/Dockerfile -t openhands .docker build -f containers/sandbox/Dockerfile -t sandbox .```diff --git a/containers/app/Dockerfile b/containers/app/Dockerfileindex 767cc6eab1..2ff2acd9c2 100644--- a/containers/app/Dockerfile+++ b/containers/app/Dockerfile@@ -1,4 +1,4 @@-ARG OPEN_DEVIN_BUILD_VERSION=dev+ARG OPENHANDS_BUILD_VERSION=devFROM node:21.7.2-bookworm-slim AS frontend-builderWORKDIR /app@@ -32,15 +32,15 @@ FROM python:3.12.3-slim AS runtimeWORKDIR /app-ARG OPEN_DEVIN_BUILD_VERSION #re-declare for this section+ARG OPENHANDS_BUILD_VERSION #re-declare for this section-ENV RUN_AS_DEVIN=true+ENV RUN_AS_OPENHANDS=true# A random number--we need this to be different from the user's UID on the host machine-ENV OPENDEVIN_USER_ID=42420+ENV OPENHANDS_USER_ID=42420ENV SANDBOX_API_HOSTNAME=host.docker.internalENV USE_HOST_NETWORK=falseENV WORKSPACE_BASE=/opt/workspace_base-ENV OPEN_DEVIN_BUILD_VERSION=$OPEN_DEVIN_BUILD_VERSION+ENV OPENHANDS_BUILD_VERSION=$OPENHANDS_BUILD_VERSIONRUN mkdir -p $WORKSPACE_BASERUN apt-get update -y \@@ -52,41 +52,41 @@ RUN sed -i 's/^UID_MIN.*/UID_MIN 499/' /etc/login.defsRUN sed -i 's/^UID_MAX.*/UID_MAX 1000000/' /etc/login.defsRUN groupadd app-RUN useradd -l -m -u $OPENDEVIN_USER_ID -s /bin/bash opendevin && \- usermod -aG app opendevin && \- usermod -aG sudo opendevin && \+RUN useradd -l -m -u $OPENHANDS_USER_ID -s /bin/bash openhands && \+ usermod -aG app openhands && \+ usermod -aG sudo openhands && \echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers-RUN chown -R opendevin:app /app && chmod -R 770 /app-RUN sudo chown -R opendevin:app $WORKSPACE_BASE && sudo chmod -R 770 $WORKSPACE_BASE-USER opendevin+RUN chown -R openhands:app /app && chmod -R 770 /app+RUN sudo chown -R openhands:app $WORKSPACE_BASE && sudo chmod -R 770 $WORKSPACE_BASE+USER openhandsENV VIRTUAL_ENV=/app/.venv \PATH="/app/.venv/bin:$PATH" \PYTHONPATH='/app'-COPY --chown=opendevin:app --chmod=770 --from=backend-builder ${VIRTUAL_ENV} ${VIRTUAL_ENV}+COPY --chown=openhands:app --chmod=770 --from=backend-builder ${VIRTUAL_ENV} ${VIRTUAL_ENV}RUN playwright install --with-deps chromium-COPY --chown=opendevin:app --chmod=770 ./opendevin ./opendevin-COPY --chown=opendevin:app --chmod=777 ./opendevin/runtime/plugins ./opendevin/runtime/plugins-COPY --chown=opendevin:app --chmod=770 ./agenthub ./agenthub-COPY --chown=opendevin:app --chmod=770 ./pyproject.toml ./pyproject.toml-COPY --chown=opendevin:app --chmod=770 ./poetry.lock ./poetry.lock-COPY --chown=opendevin:app --chmod=770 ./README.md ./README.md-COPY --chown=opendevin:app --chmod=770 ./MANIFEST.in ./MANIFEST.in+COPY --chown=openhands:app --chmod=770 ./openhands ./openhands+COPY --chown=openhands:app --chmod=777 ./openhands/runtime/plugins ./openhands/runtime/plugins+COPY --chown=openhands:app --chmod=770 ./agenthub ./agenthub+COPY --chown=openhands:app --chmod=770 ./pyproject.toml ./pyproject.toml+COPY --chown=openhands:app --chmod=770 ./poetry.lock ./poetry.lock+COPY --chown=openhands:app --chmod=770 ./README.md ./README.md+COPY --chown=openhands:app --chmod=770 ./MANIFEST.in ./MANIFEST.in-# This is run as "opendevin" user, and will create __pycache__ with opendevin:opendevin ownership-RUN python opendevin/core/download.py # No-op to download assets+# This is run as "openhands" user, and will create __pycache__ with openhands:openhands ownership+RUN python openhands/core/download.py # No-op to download assets# Add this line to set group ownership of all files/directories not already in "app" group-# opendevin:opendevin -> opendevin:app+# openhands:openhands -> openhands:appRUN find /app \! -group app -exec chgrp app {} +-COPY --chown=opendevin:app --chmod=770 --from=frontend-builder /app/dist ./frontend/dist-COPY --chown=opendevin:app --chmod=770 ./containers/app/entrypoint.sh /app/entrypoint.sh+COPY --chown=openhands:app --chmod=770 --from=frontend-builder /app/dist ./frontend/dist+COPY --chown=openhands:app --chmod=770 ./containers/app/entrypoint.sh /app/entrypoint.shUSER rootWORKDIR /appENTRYPOINT ["/app/entrypoint.sh"]-CMD ["uvicorn", "opendevin.server.listen:app", "--host", "0.0.0.0", "--port", "3000"]+CMD ["uvicorn", "openhands.server.listen:app", "--host", "0.0.0.0", "--port", "3000"]diff --git a/containers/app/config.sh b/containers/app/config.shindex 187c90b209..6ed9ac329e 100644--- a/containers/app/config.sh+++ b/containers/app/config.sh@@ -1,4 +1,4 @@DOCKER_REGISTRY=ghcr.io-DOCKER_ORG=opendevin-DOCKER_IMAGE=opendevin+DOCKER_ORG=all-hands-ai+DOCKER_IMAGE=openhandsDOCKER_BASE_DIR="."diff --git a/containers/app/entrypoint.sh b/containers/app/entrypoint.shindex 26db649f5b..bda45a5978 100644--- a/containers/app/entrypoint.sh+++ b/containers/app/entrypoint.sh@@ -1,7 +1,7 @@#!/bin/bashset -eo pipefail-echo "Starting OpenDevin..."+echo "Starting OpenHands..."if [[ $NO_SETUP == "true" ]]; thenecho "Skipping setup, running as $(whoami)""$@"@@ -9,7 +9,7 @@ if [[ $NO_SETUP == "true" ]]; thenfiif [ "$(id -u)" -ne 0 ]; then- echo "The OpenDevin entrypoint.sh must run as root"+ echo "The OpenHands entrypoint.sh must run as root"exit 1fi@@ -19,11 +19,11 @@ if [ -z "$SANDBOX_USER_ID" ]; thenfiif [[ "$SANDBOX_USER_ID" -eq 0 ]]; then- echo "Running OpenDevin as root"- export RUN_AS_DEVIN=false+ echo "Running OpenHands as root"+ export RUN_AS_OPENHANDS=falsemkdir -p /root/.cache/ms-playwright/- if [ -d "/home/opendevin/.cache/ms-playwright/" ]; then- mv /home/opendevin/.cache/ms-playwright/ /root/.cache/+ if [ -d "/home/openhands/.cache/ms-playwright/" ]; then+ mv /home/openhands/.cache/ms-playwright/ /root/.cache/fi"$@"else@@ -32,9 +32,9 @@ elseecho "User enduser already exists. Skipping creation."elseif ! useradd -l -m -u $SANDBOX_USER_ID -s /bin/bash enduser; then- echo "Failed to create user enduser with id $SANDBOX_USER_ID. Moving opendevin user."+ echo "Failed to create user enduser with id $SANDBOX_USER_ID. Moving openhands user."incremented_id=$(($SANDBOX_USER_ID + 1))- usermod -u $incremented_id opendevin+ usermod -u $incremented_id openhandsif ! useradd -l -m -u $SANDBOX_USER_ID -s /bin/bash enduser; thenecho "Failed to create user enduser with id $SANDBOX_USER_ID for a second time. Exiting."exit 1@@ -42,7 +42,7 @@ elsefifiusermod -aG app enduser- # get the user group of /var/run/docker.sock and set opendevin to that group+ # get the user group of /var/run/docker.sock and set openhands to that groupDOCKER_SOCKET_GID=$(stat -c '%g' /var/run/docker.sock)echo "Docker socket group id: $DOCKER_SOCKET_GID"if getent group $DOCKER_SOCKET_GID; then@@ -54,8 +54,8 @@ elsemkdir -p /home/enduser/.cache/huggingface/hub/mkdir -p /home/enduser/.cache/ms-playwright/- if [ -d "/home/opendevin/.cache/ms-playwright/" ]; then- mv /home/opendevin/.cache/ms-playwright/ /home/enduser/.cache/+ if [ -d "/home/openhands/.cache/ms-playwright/" ]; then+ mv /home/openhands/.cache/ms-playwright/ /home/enduser/.cache/fiusermod -aG $DOCKER_SOCKET_GID enduserdiff --git a/containers/build.sh b/containers/build.shindex 2d874d80f1..bc2fc76925 100755--- a/containers/build.sh+++ b/containers/build.sh@@ -8,7 +8,7 @@ platform=$3echo "Building: $image_name for platform: $platform"tags=()-OPEN_DEVIN_BUILD_VERSION="dev"+OPENHANDS_BUILD_VERSION="dev"if [[ -n $GITHUB_REF_NAME ]]; then# check if ref name is a version number@@ -19,13 +19,13 @@ if [[ -n $GITHUB_REF_NAME ]]; thentags+=("latest")fisanitized=$(echo "$GITHUB_REF_NAME" | sed 's/[^a-zA-Z0-9.-]\+/-/g')- OPEN_DEVIN_BUILD_VERSION=$sanitized+ OPENHANDS_BUILD_VERSION=$sanitizedtag=$(echo "$sanitized" | tr '[:upper:]' '[:lower:]') # lower case is required in taggingtags+=("$tag")fiecho "Tags: ${tags[@]}"-if [[ "$image_name" == "opendevin" ]]; then+if [[ "$image_name" == "openhands" ]]; thendir="./containers/app"elif [[ "$image_name" == "od_runtime" ]]; thendir="./containers/runtime"@@ -73,7 +73,7 @@ echo "Output image will be saved to: $output_image"docker buildx build \$args \- --build-arg OPEN_DEVIN_BUILD_VERSION="$OPEN_DEVIN_BUILD_VERSION" \+ --build-arg OPENHANDS_BUILD_VERSION="$OPENHANDS_BUILD_VERSION" \--platform linux/$platform \--provenance=false \-f "$dir/Dockerfile" \diff --git a/containers/e2b-sandbox/README.md b/containers/e2b-sandbox/README.mdindex 4ebb7094ee..9f9ff72888 100644--- a/containers/e2b-sandbox/README.md+++ b/containers/e2b-sandbox/README.md@@ -1,4 +1,4 @@-# How to build custom E2B sandbox for OpenDevin+# How to build custom E2B sandbox for OpenHands[E2B](https://e2b.dev) is an [open-source](https://github.com/e2b-dev/e2b) secure cloud environment (sandbox) made for running AI-generated code and agents. E2B offers [Python](https://pypi.org/project/e2b/) and [JS/TS](https://www.npmjs.com/package/e2b) SDK to spawn and control these sandboxes.@@ -11,5 +11,5 @@1. Build the sandbox```sh- e2b template build --dockerfile ./Dockerfile --name "open-devin"+ e2b template build --dockerfile ./Dockerfile --name "openhands"```diff --git a/containers/e2b-sandbox/e2b.toml b/containers/e2b-sandbox/e2b.tomlindex 72bddf0c19..f19eb933a0 100644--- a/containers/e2b-sandbox/e2b.toml+++ b/containers/e2b-sandbox/e2b.toml@@ -1,14 +1,14 @@# This is a config for E2B sandbox template.-# You can use 'template_id' (785n69crgahmz0lkdw9h) or 'template_name (open-devin) from this config to spawn a sandbox:+# You can use 'template_id' (785n69crgahmz0lkdw9h) or 'template_name (openhands) from this config to spawn a sandbox:# Python SDK# from e2b import Sandbox-# sandbox = Sandbox(template='open-devin')+# sandbox = Sandbox(template='openhands')# JS SDK# import { Sandbox } from 'e2b'-# const sandbox = await Sandbox.create({ template: 'open-devin' })+# const sandbox = await Sandbox.create({ template: 'openhands' })dockerfile = "Dockerfile"-template_name = "open-devin"+template_name = "openhands"template_id = "785n69crgahmz0lkdw9h"diff --git a/containers/runtime/README.md b/containers/runtime/README.mdindex 043ea06fea..5ebf5546e8 100644--- a/containers/runtime/README.md+++ b/containers/runtime/README.md@@ -1,11 +1,11 @@# Dynamic constructed Dockerfile-This folder builds runtime image (sandbox), which will use a `Dockerfile` that is dynamically generated depends on the `base_image` AND a [Python source distribution](https://docs.python.org/3.10/distutils/sourcedist.html) that's based on the current commit of `opendevin`.+This folder builds runtime image (sandbox), which will use a `Dockerfile` that is dynamically generated depends on the `base_image` AND a [Python source distribution](https://docs.python.org/3.10/distutils/sourcedist.html) that's based on the current commit of `openhands`.The following command will generate Dockerfile for `ubuntu:22.04` and the source distribution `.tar` into `containers/runtime`.```bash-poetry run python3 opendevin/runtime/utils/runtime_build.py \+poetry run python3 openhands/runtime/utils/runtime_build.py \--base_image ubuntu:22.04 \--build_folder containers/runtime```diff --git a/containers/runtime/config.sh b/containers/runtime/config.shindex 1b55efe7b2..7f8b232c19 100644--- a/containers/runtime/config.sh+++ b/containers/runtime/config.sh@@ -1,5 +1,5 @@DOCKER_REGISTRY=ghcr.io-DOCKER_ORG=opendevin+DOCKER_ORG=all-hands-aiDOCKER_BASE_DIR="./containers/runtime"DOCKER_IMAGE=od_runtime# These variables will be appended by the runtime_build.py scriptdiff --git a/containers/sandbox/Dockerfile b/containers/sandbox/Dockerfileindex 9a2c8ce6a1..c13f90d6d1 100644--- a/containers/sandbox/Dockerfile+++ b/containers/sandbox/Dockerfile@@ -28,17 +28,17 @@ RUN mkdir -p -m0755 /var/run/sshd# symlink python3 to pythonRUN ln -s /usr/bin/python3 /usr/bin/python-# ==== OpenDevin Runtime Client ====-RUN mkdir -p /opendevin && mkdir -p /opendevin/logs && chmod 777 /opendevin/logs+# ==== OpenHands Runtime Client ====+RUN mkdir -p /openhands && mkdir -p /openhands/logs && chmod 777 /openhands/logsRUN wget --progress=bar:force -O Miniforge3.sh "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"-RUN bash Miniforge3.sh -b -p /opendevin/miniforge3-RUN chmod -R g+w /opendevin/miniforge3-RUN bash -c ". /opendevin/miniforge3/etc/profile.d/conda.sh && conda config --set changeps1 False && conda config --append channels conda-forge"-RUN echo "" > /opendevin/bash.bashrc+RUN bash Miniforge3.sh -b -p /openhands/miniforge3+RUN chmod -R g+w /openhands/miniforge3+RUN bash -c ". /openhands/miniforge3/etc/profile.d/conda.sh && conda config --set changeps1 False && conda config --append channels conda-forge"+RUN echo "" > /openhands/bash.bashrcRUN rm -f Miniforge3.sh# - agentskills dependencies-RUN /opendevin/miniforge3/bin/pip install --upgrade pip-RUN /opendevin/miniforge3/bin/pip install jupyterlab notebook jupyter_kernel_gateway flake8-RUN /opendevin/miniforge3/bin/pip install python-docx PyPDF2 python-pptx pylatexenc openai-RUN /opendevin/miniforge3/bin/pip install python-dotenv toml termcolor pydantic python-docx pyyaml docker pexpect tenacity e2b browsergym minio+RUN /openhands/miniforge3/bin/pip install --upgrade pip+RUN /openhands/miniforge3/bin/pip install jupyterlab notebook jupyter_kernel_gateway flake8+RUN /openhands/miniforge3/bin/pip install python-docx PyPDF2 python-pptx pylatexenc openai+RUN /openhands/miniforge3/bin/pip install python-dotenv toml termcolor pydantic python-docx pyyaml docker pexpect tenacity e2b browsergym miniodiff --git a/containers/sandbox/config.sh b/containers/sandbox/config.shindex 3b96dac3b3..706a45d45f 100644--- a/containers/sandbox/config.sh+++ b/containers/sandbox/config.sh@@ -1,4 +1,4 @@DOCKER_REGISTRY=ghcr.io-DOCKER_ORG=opendevin+DOCKER_ORG=all-hands-aiDOCKER_IMAGE=sandboxDOCKER_BASE_DIR="."diff --git a/dev_config/python/.pre-commit-config.yaml b/dev_config/python/.pre-commit-config.yamlindex ea31bbe6c4..eca8706b51 100644--- a/dev_config/python/.pre-commit-config.yaml+++ b/dev_config/python/.pre-commit-config.yaml@@ -38,6 +38,6 @@ repos:- id: mypyadditional_dependencies:[types-requests, types-setuptools, types-pyyaml, types-toml]- entry: mypy --config-file dev_config/python/mypy.ini opendevin/ agenthub/+ entry: mypy --config-file dev_config/python/mypy.ini openhands/ agenthub/always_run: truepass_filenames: falsediff --git a/docs/docusaurus.config.ts b/docs/docusaurus.config.tsindex 1cd0a0d440..2f81477729 100644--- a/docs/docusaurus.config.ts+++ b/docs/docusaurus.config.ts@@ -3,7 +3,7 @@ import type { Config } from "@docusaurus/types";import { themes as prismThemes } from "prism-react-renderer";const config: Config = {- title: "OpenDevin",+ title: "OpenHands",tagline: "An Open Platform for AI Software Developers as Generalist Agents",favicon: "img/logo.png",@@ -12,8 +12,8 @@ const config: Config = {baseUrl: "/",// GitHub pages deployment config.- organizationName: "OpenDevin",- projectName: "OpenDevin",+ organizationName: "All-Hands-AI",+ projectName: "OpenHands",trailingSlash: false,onBrokenLinks: "throw",@@ -63,9 +63,9 @@ const config: Config = {themeConfig: {image: "img/docusaurus.png",navbar: {- title: "OpenDevin",+ title: "OpenHands",logo: {- alt: "OpenDevin",+ alt: "OpenHands",src: "img/logo.png",},items: [@@ -82,7 +82,7 @@ const config: Config = {label: "Codebase",},{- href: "https://github.com/OpenDevin/OpenDevin",+ href: "https://github.com/All-Hands-AI/OpenHands",label: "GitHub",position: "right",},diff --git a/docs/i18n/fr/code.json b/docs/i18n/fr/code.jsonindex b43792f7f8..685d93b09b 100644--- a/docs/i18n/fr/code.json+++ b/docs/i18n/fr/code.json@@ -1,6 +1,6 @@{"footer.title": {- "message": "OpenDevin"+ "message": "OpenHands"},"footer.docs": {"message": "Documents"@@ -9,7 +9,7 @@"message": "Communauté"},"footer.copyright": {- "message": "© {year} OpenDevin"+ "message": "© {year} OpenHands"},"faq.title": {"message": "Questions Fréquemment Posées",@@ -19,20 +19,20 @@"message": "Questions Fréquemment Posées"},"faq.section.title.1": {- "message": "Qu'est-ce qu'OpenDevin ?",+ "message": "Qu'est-ce qu'OpenHands ?","description": "First Section Title"},"faq.section.highlight": {- "message": "OpenDevin",+ "message": "OpenHands","description": "Highlight Text"},"faq.section.description.1": {- "message": "est un ingénieur logiciel autonome qui peut résoudre des tâches d'ingénierie logicielle et de navigation web à tout moment. Il peut exécuter des requêtes en sciences des données, telles que \"Trouver le nombre de demandes de pull à l'repository OpenDevin dans les derniers mois\", et des tâches d'ingénierie logicielle, comme \"Veuillez ajouter des tests à ce fichier et vérifier si tous les tests passent. Si ce n'est pas le cas, réparez le fichier.\"",- "description": "Description for OpenDevin"+ "message": "est un ingénieur logiciel autonome qui peut résoudre des tâches d'ingénierie logicielle et de navigation web à tout moment. Il peut exécuter des requêtes en sciences des données, telles que \"Trouver le nombre de demandes de pull à l'repository OpenHands dans les derniers mois\", et des tâches d'ingénierie logicielle, comme \"Veuillez ajouter des tests à ce fichier et vérifier si tous les tests passent. Si ce n'est pas le cas, réparez le fichier.\"",+ "description": "Description for OpenHands"},"faq.section.description.2": {- "message": "De plus, OpenDevin est une plateforme et communauté pour les développeurs d'agents qui souhaitent tester et évaluer de nouveaux agents.",- "description": "Further Description for OpenDevin"+ "message": "De plus, OpenHands est une plateforme et communauté pour les développeurs d'agents qui souhaitent tester et évaluer de nouveaux agents.",+ "description": "Further Description for OpenHands"},"faq.section.title.2": {"message": "Support",@@ -43,15 +43,15 @@"description": "Support Answer"},"faq.section.title.3": {- "message": "Comment résoudre un problème sur GitHub avec OpenDevin ?",+ "message": "Comment résoudre un problème sur GitHub avec OpenHands ?","description": "GitHub Issue Section Title"},"faq.section.github.steps.intro": {- "message": "Pour résoudre un problème sur GitHub en utilisant OpenDevin, envoyez une commande à OpenDevin demandant qu'il suit des étapes comme les suivantes :",+ "message": "Pour résoudre un problème sur GitHub en utilisant OpenHands, envoyez une commande à OpenHands demandant qu'il suit des étapes comme les suivantes :","description": "GitHub Steps Introduction"},"faq.section.github.step1": {- "message": "Lisez l'issue https://github.com/OpenDevin/OpenDevin/issues/1611",+ "message": "Lisez l'issue https://github.com/All-Hands-AI/OpenHands/issues/1611","description": "GitHub Step 1"},"faq.section.github.step2": {@@ -71,11 +71,11 @@"description": "GitHub Step 5"},"faq.section.github.steps.preRun": {- "message": "Avant de lancer OpenDevin, vous pouvez faire :",+ "message": "Avant de lancer OpenHands, vous pouvez faire :","description": "GitHub Steps Pre-Run"},"faq.section.github.steps.tokenInfo": {- "message": "où XXX est un jeton GitHub que vous avez créé et qui a les autorisations pour pousser dans le dépôt OpenDevin. Si vous n'avez pas d'autorisations de modification du dépôt OpenDevin, vous devrez peut-être changer cela en :",+ "message": "où XXX est un jeton GitHub que vous avez créé et qui a les autorisations pour pousser dans le dépôt OpenHands. Si vous n'avez pas d'autorisations de modification du dépôt OpenHands, vous devrez peut-être changer cela en :","description": "GitHub Steps Token Info"},"faq.section.github.steps.usernameInfo": {@@ -83,23 +83,23 @@"description": "GitHub Steps Username Info"},"faq.section.title.4": {- "message": "Comment OpenDevin est-il différent de Devin ?",+ "message": "Comment OpenHands est-il différent de Devin ?","description": "Devin Section Title"},- "faq.section.devin.linkText": {+ "faq.section.openhands.linkText": {"message": "Devin","description": "Devin Link Text"},- "faq.section.devin.description": {- "message": "est un produit commercial par Cognition Inc., qui a servi d'inspiration initiale pour OpenDevin. Les deux visent à bien faire le travail d'ingénierie logicielle, mais vous pouvez télécharger, utiliser et modifier OpenDevin, tandis que Devin peut être utilisé uniquement via le site de Cognition. De plus, OpenDevin a évolué au-delà de l'inspiration initiale, et est maintenant un écosystème communautaire pour le développement d'agents en général, et nous serions ravis de vous voir rejoindre et",+ "faq.section.openhands.description": {+ "message": "est un produit commercial par Cognition Inc., qui a servi d'inspiration initiale pour OpenHands. Les deux visent à bien faire le travail d'ingénierie logicielle, mais vous pouvez télécharger, utiliser et modifier OpenHands, tandis que Devin peut être utilisé uniquement via le site de Cognition. De plus, OpenHands a évolué au-delà de l'inspiration initiale, et est maintenant un écosystème communautaire pour le développement d'agents en général, et nous serions ravis de vous voir rejoindre et","description": "Devin Description"},- "faq.section.devin.contribute": {+ "faq.section.openhands.contribute": {"message": "contribuer","description": "Contribute Link"},"faq.section.title.5": {- "message": "Comment OpenDevin est-il différent de ChatGPT ?",+ "message": "Comment OpenHands est-il différent de ChatGPT ?","description": "ChatGPT Section Title"},"faq.section.chatgpt.description": {@@ -114,7 +114,7 @@"message": "Commencer"},"welcome.message": {- "message": "Bienvenue à OpenDevin, un système d'IA autonome ingénieur logiciel capable d'exécuter des tâches d'ingénierie complexes et de collaborer activement avec les utilisateurs sur les projets de développement logiciel."+ "message": "Bienvenue à OpenHands, un système d'IA autonome ingénieur logiciel capable d'exécuter des tâches d'ingénierie complexes et de collaborer activement avec les utilisateurs sur les projets de développement logiciel."},"theme.ErrorPageContent.title": {"message": "Cette page a planté.",diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/about.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/about.mdindex aa6fa8d8e2..b03b01d6ab 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/about.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/about.md@@ -19,35 +19,35 @@ La réalisation d'une réplication complète des applications de production avec## 🤝 Comment Contribuer {#how-to-contribute}-OpenDevin est un projet communautaire, et nous accueillons les contributions de tout le monde. Que vous soyez développeur, chercheur, ou simplement enthousiaste à l'idée de faire progresser le domaine de l'ingénierie logicielle avec l'IA, il existe de nombreuses façons de vous impliquer :+OpenHands est un projet communautaire, et nous accueillons les contributions de tout le monde. Que vous soyez développeur, chercheur, ou simplement enthousiaste à l'idée de faire progresser le domaine de l'ingénierie logicielle avec l'IA, il existe de nombreuses façons de vous impliquer :- **Contributions de Code :** Aidez-nous à développer les fonctionnalités de base, l'interface frontend ou les solutions de sandboxing.- **Recherche et Évaluation :** Contribuez à notre compréhension des LLM en ingénierie logicielle, participez à l'évaluation des modèles ou suggérez des améliorations.-- **Retour d'Information et Tests :** Utilisez l'ensemble d'outils OpenDevin, signalez des bogues, suggérez des fonctionnalités ou fournissez des retours sur l'ergonomie.+- **Retour d'Information et Tests :** Utilisez l'ensemble d'outils OpenHands, signalez des bogues, suggérez des fonctionnalités ou fournissez des retours sur l'ergonomie.-Pour plus de détails, veuillez consulter [ce document](https://github.com/OpenDevin/OpenDevin/blob/main/CONTRIBUTING.md).+Pour plus de détails, veuillez consulter [ce document](https://github.com/All-Hands-AI/OpenHands/blob/main/CONTRIBUTING.md).## 🤖 Rejoignez Notre Communauté {#join-our-community}-Nous avons maintenant à la fois un espace de travail Slack pour la collaboration sur la construction d'OpenDevin et un serveur Discord pour discuter de tout ce qui est lié, par exemple, à ce projet, aux LLM, aux agents, etc.+Nous avons maintenant à la fois un espace de travail Slack pour la collaboration sur la construction d'OpenHands et un serveur Discord pour discuter de tout ce qui est lié, par exemple, à ce projet, aux LLM, aux agents, etc.-- [Espace de travail Slack](https://join.slack.com/t/opendevin/shared_invite/zt-2ngejmfw6-9gW4APWOC9XUp1n~SiQ6iw)+- [Espace de travail Slack](https://join.slack.com/t/openhands/shared_invite/zt-2ngejmfw6-9gW4APWOC9XUp1n~SiQ6iw)- [Serveur Discord](https://discord.gg/ESHStjSjD4)Si vous souhaitez contribuer, n'hésitez pas à rejoindre notre communauté. Simplifions l'ingénierie logicielle ensemble !-🐚 **Codez moins, créez plus avec OpenDevin.**+🐚 **Codez moins, créez plus avec OpenHands.**-[](https://star-history.com/#OpenDevin/OpenDevin&Date)+[](https://star-history.com/#All-Hands-AI/OpenHands&Date)## 🛠️ Construit Avec {#built-with}-OpenDevin est construit en utilisant une combinaison de cadres et de bibliothèques puissants, offrant une base robuste pour son développement. Voici les technologies clés utilisées dans le projet :+OpenHands est construit en utilisant une combinaison de cadres et de bibliothèques puissants, offrant une base robuste pour son développement. Voici les technologies clés utilisées dans le projet :       -Veuillez noter que la sélection de ces technologies est en cours, et que des technologies supplémentaires peuvent être ajoutées ou des existantes supprimées au fur et à mesure de l'évolution du projet. Nous nous efforçons d'adopter les outils les plus adaptés et efficaces pour améliorer les capacités d'OpenDevin.+Veuillez noter que la sélection de ces technologies est en cours, et que des technologies supplémentaires peuvent être ajoutées ou des existantes supprimées au fur et à mesure de l'évolution du projet. Nous nous efforçons d'adopter les outils les plus adaptés et efficaces pour améliorer les capacités d'OpenHands.## 📜 Licence {#license}-Distribué sous la licence MIT. Voir [notre licence](https://github.com/OpenDevin/OpenDevin/blob/main/LICENSE) pour plus d'informations.+Distribué sous la licence MIT. Voir [notre licence](https://github.com/All-Hands-AI/OpenHands/blob/main/LICENSE) pour plus d'informations.diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/agents.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/agents.mdindex f823f5b627..2b723f88b7 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/agents.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/agents.md@@ -18,18 +18,18 @@ L'idée conceptuelle est illustrée ci-dessous. À chaque tour, l'agent peut :- Exécuter toute commande `bash` Linux valide- Exécuter tout code `Python` valide avec [un interpréteur Python interactif](https://ipython.org/). Cela est simulé à travers la commande `bash`, voir le système de plugin ci-dessous pour plus de détails.-+### Système de Plugin-Pour rendre l'agent CodeAct plus puissant avec seulement l'accès à l'espace d'action `bash`, l'agent CodeAct exploite le système de plugins d'OpenDevin:+Pour rendre l'agent CodeAct plus puissant avec seulement l'accès à l'espace d'action `bash`, l'agent CodeAct exploite le système de plugins d'OpenHands:-- [Plugin Jupyter](https://github.com/OpenDevin/OpenDevin/tree/main/opendevin/runtime/plugins/jupyter) : pour l'exécution d'IPython via la commande bash-- [Plugin outil agent SWE](https://github.com/OpenDevin/OpenDevin/tree/main/opendevin/runtime/plugins/swe_agent_commands) : Outils de ligne de commande bash puissants pour les tâches de développement logiciel introduits par [swe-agent](https://github.com/princeton-nlp/swe-agent).+- [Plugin Jupyter](https://github.com/All-Hands-AI/OpenHands/tree/main/openhands/runtime/plugins/jupyter) : pour l'exécution d'IPython via la commande bash+- [Plugin outil agent SWE](https://github.com/All-Hands-AI/OpenHands/tree/main/openhands/runtime/plugins/swe_agent_commands) : Outils de ligne de commande bash puissants pour les tâches de développement logiciel introduits par [swe-agent](https://github.com/princeton-nlp/swe-agent).### Démonstration-https://github.com/OpenDevin/OpenDevin/assets/38853559/f592a192-e86c-4f48-ad31-d69282d5f6ac+https://github.com/All-Hands-AI/OpenHands/assets/38853559/f592a192-e86c-4f48-ad31-d69282d5f6ac_Exemple de CodeActAgent avec `gpt-4-turbo-2024-04-09` effectuant une tâche de science des données (régression linéaire)_diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/architecture.mdx b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/architecture.mdxindex 8b986ed8cd..fa6436aa22 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/architecture.mdx+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/architecture.mdx@@ -25,14 +25,14 @@ _**Avertissement**: L'architecture du backend est en cours de développement et## Prérequis- - Un environnement Python dans lequel opendevin est exécutable+ - Un environnement Python dans lequel openhands est exécutable(selon les instructions du fichier README.md à la racine du dépôt)- [py2puml](https://github.com/lucsorel/py2puml) installé## Étapes1. Générez automatiquement le schéma en exécutant la commande suivante depuis la racine du dépôt :- `py2puml opendevin opendevin > docs/architecture/backend_architecture.puml`+ `py2puml openhands openhands > docs/architecture/backend_architecture.puml`2. Ouvrez le fichier généré dans un éditeur PlantUML, par exemple Visual Studio Code avec l'extension PlantUML ou [PlantText](https://www.planttext.com/)diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/custom_sandbox_guide.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/custom_sandbox_guide.mdindex d7812087ff..4643c1ef30 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/custom_sandbox_guide.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/custom_sandbox_guide.md@@ -1,14 +1,14 @@# 💿 Comment Créer un Soutien Docker sur Mesure-Le sandbox par défaut OpenDevin est équipé d'une configuration ubuntu minimaliste. Votre cas d'utilisation pourrait nécessiter des logiciels installés par défaut. Cet article vous enseignera comment réaliser cela en utilisant une image docker personnalisée.+Le sandbox par défaut OpenHands est équipé d'une configuration ubuntu minimaliste. Votre cas d'utilisation pourrait nécessiter des logiciels installés par défaut. Cet article vous enseignera comment réaliser cela en utilisant une image docker personnalisée.## Configuration-Assurez-vous de pouvoir utiliser OpenDevin en suivant la documentation [Development.md](https://github.com/OpenDevin/OpenDevin/blob/main/Development.md).+Assurez-vous de pouvoir utiliser OpenHands en suivant la documentation [Development.md](https://github.com/All-Hands-AI/OpenHands/blob/main/Development.md).## Créer Votre Image Docker-Ensuite, vous devez créer votre image docker personnalisée qui doit être basée sur debian/ubuntu. Par exemple, si nous souhaitons que OpenDevin ait accès au "node" binaire, nous utiliserions ce Dockerfile:+Ensuite, vous devez créer votre image docker personnalisée qui doit être basée sur debian/ubuntu. Par exemple, si nous souhaitons que OpenHands ait accès au "node" binaire, nous utiliserions ce Dockerfile:```bash# Commencez avec l'image ubuntu la plus récente@@ -29,19 +29,19 @@ docker build -t image_personnalisée .Cela produira une nouvelle image appelée ```image_personnalisée``` qui sera disponible dans Docker Engine.-> Remarque: Dans la configuration décrite ici, OpenDevin va fonctionner en tant que utilisateur "opendevin" à l'intérieur du sandbox et donc tous les packages installés via le Dockerfile seront disponibles pour tous les utilisateurs sur le système, pas seulement root.+> Remarque: Dans la configuration décrite ici, OpenHands va fonctionner en tant que utilisateur "openhands" à l'intérieur du sandbox et donc tous les packages installés via le Dockerfile seront disponibles pour tous les utilisateurs sur le système, pas seulement root.>> L'installation avec apt-get ci-dessus installe nodejs pour tous les utilisateurs.## Spécifiez votre image personnalisée dans le fichier config.toml-La configuration OpenDevin se fait via le fichier de niveau supérieur ```config.toml``` .-Créez un fichier ```config.toml``` dans le répertoire OpenDevin et entrez ces contenus:+La configuration OpenHands se fait via le fichier de niveau supérieur ```config.toml``` .+Créez un fichier ```config.toml``` dans le répertoire OpenHands et entrez ces contenus:```toml[core]workspace_base="./workspace"-run_as_devin=true+run_as_openhands=truesandbox_container_image="image_personnalisée"```@@ -49,7 +49,7 @@ sandbox_container_image="image_personnalisée"## Exécution-Exécutez OpenDevin en exécutant ```make run``` dans le répertoire racine.+Exécutez OpenHands en exécutant ```make run``` dans le répertoire racine.Naviguez vers ```localhost:3001``` et vérifiez si vos dépendances souhaitées sont disponibles.@@ -59,39 +59,39 @@ Félicitations !## Explication technique-Le code pertinent est défini dans [ssh_box.py](https://github.com/OpenDevin/OpenDevin/blob/main/opendevin/runtime/docker/ssh_box.py) et [image_agnostic_util.py](https://github.com/OpenDevin/OpenDevin/blob/main/opendevin/runtime/docker/image_agnostic_util.py).+Le code pertinent est défini dans [ssh_box.py](https://github.com/All-Hands-AI/OpenHands/blob/main/openhands/runtime/docker/ssh_box.py) et [image_agnostic_util.py](https://github.com/All-Hands-AI/OpenHands/blob/main/openhands/runtime/docker/image_agnostic_util.py).-En particulier, ssh_box.py vérifie l'objet config pour ```config.sandbox_container_image``` et ensuite tente de récupérer l'image à l'aide de [get_od_sandbox_image](https://github.com/OpenDevin/OpenDevin/blob/main/opendevin/runtime/docker/image_agnostic_util.py#L72), qui est défini dans image_agnostic_util.py.+En particulier, ssh_box.py vérifie l'objet config pour ```config.sandbox_container_image``` et ensuite tente de récupérer l'image à l'aide de [get_od_sandbox_image](https://github.com/All-Hands-AI/OpenHands/blob/main/openhands/runtime/docker/image_agnostic_util.py#L72), qui est défini dans image_agnostic_util.py.Lorsqu'une image personnalisée est utilisée pour la première fois, elle ne sera pas trouvée et donc elle sera construite (à l'exécution ultérieure, l'image construite sera trouvée et renvoyée).-L'image personnalisée est construite avec [_build_sandbox_image()](https://github.com/OpenDevin/OpenDevin/blob/main/opendevin/runtime/docker/image_agnostic_util.py#L29), qui crée un fichier docker en utilisant votre image personnalisée comme base et configure ensuite l'environnement pour OpenDevin, comme ceci:+L'image personnalisée est construite avec [_build_sandbox_image()](https://github.com/All-Hands-AI/OpenHands/blob/main/openhands/runtime/docker/image_agnostic_util.py#L29), qui crée un fichier docker en utilisant votre image personnalisée comme base et configure ensuite l'environnement pour OpenHands, comme ceci:```pythondockerfile_content = (f'FROM {base_image}\n''RUN apt update && apt install -y openssh-server wget sudo\n''RUN mkdir -p -m0755 /var/run/sshd\n'- 'RUN mkdir -p /opendevin && mkdir -p /opendevin/logs && chmod 777 /opendevin/logs\n'+ 'RUN mkdir -p /openhands && mkdir -p /openhands/logs && chmod 777 /openhands/logs\n''RUN wget "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"\n'- 'RUN bash Miniforge3-$(uname)-$(uname -m).sh -b -p /opendevin/miniforge3\n'- 'RUN bash -c ". /opendevin/miniforge3/etc/profile.d/conda.sh && conda config --set changeps1 False && conda config --append channels conda-forge"\n'- 'RUN echo "export PATH=/opendevin/miniforge3/bin:$PATH" >> ~/.bashrc\n'- 'RUN echo "export PATH=/opendevin/miniforge3/bin:$PATH" >> /opendevin/bash.bashrc\n'+ 'RUN bash Miniforge3-$(uname)-$(uname -m).sh -b -p /openhands/miniforge3\n'+ 'RUN bash -c ". /openhands/miniforge3/etc/profile.d/conda.sh && conda config --set changeps1 False && conda config --append channels conda-forge"\n'+ 'RUN echo "export PATH=/openhands/miniforge3/bin:$PATH" >> ~/.bashrc\n'+ 'RUN echo "export PATH=/openhands/miniforge3/bin:$PATH" >> /openhands/bash.bashrc\n').strip()```-> Remarque: Le nom de l'image est modifié via [_get_new_image_name()](https://github.com/OpenDevin/OpenDevin/blob/main/opendevin/runtime/docker/image_agnostic_util.py#L63) et c'est ce nom modifié qui sera recherché lors des exécutions ultérieures.+> Remarque: Le nom de l'image est modifié via [_get_new_image_name()](https://github.com/All-Hands-AI/OpenHands/blob/main/openhands/runtime/docker/image_agnostic_util.py#L63) et c'est ce nom modifié qui sera recherché lors des exécutions ultérieures.## Dépannage / Erreurs### Erreur: ```useradd: UID 1000 est non unique```-Si vous voyez cette erreur dans la sortie de la console, il s'agit du fait que OpenDevin essaie de créer le utilisateur opendevin dans le sandbox avec un ID d'utilisateur de 1000, cependant cet ID d'utilisateur est déjà utilisé dans l'image (pour une raison inconnue). Pour résoudre ce problème, changez la valeur du champ sandbox_user_id dans le fichier config.toml en une valeur différente:+Si vous voyez cette erreur dans la sortie de la console, il s'agit du fait que OpenHands essaie de créer le utilisateur openhands dans le sandbox avec un ID d'utilisateur de 1000, cependant cet ID d'utilisateur est déjà utilisé dans l'image (pour une raison inconnue). Pour résoudre ce problème, changez la valeur du champ sandbox_user_id dans le fichier config.toml en une valeur différente:```toml[core]workspace_base="./workspace"-run_as_devin=true+run_as_openhands=truesandbox_container_image="image_personnalisée"sandbox_user_id="1001"```@@ -102,4 +102,4 @@ Si vous voyez un message d'erreur indiquant que le port est utilisé ou indispon## Discuter-Pour d'autres problèmes ou questions rejoignez le [Slack](https://join.slack.com/t/opendevin/shared_invite/zt-2ngejmfw6-9gW4APWOC9XUp1n~SiQ6iw) ou le [Discord](https://discord.gg/ESHStjSjD4) et demandez!+Pour d'autres problèmes ou questions rejoignez le [Slack](https://join.slack.com/t/openhands/shared_invite/zt-2ngejmfw6-9gW4APWOC9XUp1n~SiQ6iw) ou le [Discord](https://discord.gg/ESHStjSjD4) et demandez!diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/feedback.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/feedback.mdindex 78d683f9cf..6abb04abd3 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/feedback.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/feedback.md@@ -4,15 +4,15 @@ sidebar_position: 6# ✅ Fournir des Commentaires-Lorsque vous utilisez OpenDevin, vous rencontrerez sans aucun doute des cas où les choses fonctionnent bien et d'autres où elles ne fonctionnent pas. Nous vous encourageons à fournir des commentaires lorsque vous utilisez OpenDevin pour aider l'équipe de développement et, peut-être plus important encore, créer un corpus ouvert d'exemples de formation pour les agents de codage -- Partagez-OpenDevin !+Lorsque vous utilisez OpenHands, vous rencontrerez sans aucun doute des cas où les choses fonctionnent bien et d'autres où elles ne fonctionnent pas. Nous vous encourageons à fournir des commentaires lorsque vous utilisez OpenHands pour aider l'équipe de développement et, peut-être plus important encore, créer un corpus ouvert d'exemples de formation pour les agents de codage -- Partagez-OpenHands !## 📝 Comment Fournir des Commentaires-Fournir des commentaires est simple ! Lorsque vous utilisez OpenDevin, vous pouvez appuyer sur le bouton de pouce vers le haut ou vers le bas à n'importe quel moment de votre interaction. Vous serez invité à fournir votre adresse email (par exemple, afin que nous puissions vous contacter si nous voulons poser des questions de suivi), et vous pouvez choisir si vous souhaitez fournir des commentaires publiquement ou en privé.+Fournir des commentaires est simple ! Lorsque vous utilisez OpenHands, vous pouvez appuyer sur le bouton de pouce vers le haut ou vers le bas à n'importe quel moment de votre interaction. Vous serez invité à fournir votre adresse email (par exemple, afin que nous puissions vous contacter si nous voulons poser des questions de suivi), et vous pouvez choisir si vous souhaitez fournir des commentaires publiquement ou en privé.<iframe width="560" height="315" src="https://www.youtube.com/embed/5rFx-StMVV0?si=svo7xzp6LhGK_GXr" title="Lecteur vidéo YouTube" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>## 📜 Licence de Données et Confidentialité-* Les données **publiques** seront distribuées sous la licence MIT, comme OpenDevin lui-même, et pourront être utilisées par la communauté pour former et tester des modèles. Évidemment, les commentaires que vous pouvez rendre publics seront plus précieux pour la communauté dans son ensemble, donc lorsque vous ne traitez pas d'informations sensibles, nous vous encourageons à choisir cette option !-* Les données **privées** ne seront partagées qu'avec l'équipe OpenDevin dans le but d'améliorer OpenDevin.+* Les données **publiques** seront distribuées sous la licence MIT, comme OpenHands lui-même, et pourront être utilisées par la communauté pour former et tester des modèles. Évidemment, les commentaires que vous pouvez rendre publics seront plus précieux pour la communauté dans son ensemble, donc lorsque vous ne traitez pas d'informations sensibles, nous vous encourageons à choisir cette option !+* Les données **privées** ne seront partagées qu'avec l'équipe OpenHands dans le but d'améliorer OpenHands.diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/intro.mdx b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/intro.mdxindex ed66081c48..55aeeaea54 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/intro.mdx+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/intro.mdx@@ -2,47 +2,47 @@sidebar_position: 1----# 💻 OpenDevin+# 💻 OpenHands-OpenDevin est un **ingénieur logiciel IA autonome** capable d'exécuter des tâches d'ingénierie complexes et de collaborer activement avec les utilisateurs sur des projets de développement logiciel.+OpenHands est un **ingénieur logiciel IA autonome** capable d'exécuter des tâches d'ingénierie complexes et de collaborer activement avec les utilisateurs sur des projets de développement logiciel.Ce projet est entièrement open-source, vous pouvez donc l'utiliser et le modifier comme bon vous semble.:::tip-Explorez le code source d'OpenDevin sur [GitHub](https://github.com/OpenDevin/OpenDevin) ou rejoignez l'une de nos communautés !+Explorez le code source d'OpenHands sur [GitHub](https://github.com/All-Hands-AI/OpenHands) ou rejoignez l'une de nos communautés !-<a href="https://github.com/OpenDevin/OpenDevin/graphs/contributors">+<a href="https://github.com/All-Hands-AI/OpenHands/graphs/contributors"><img- src="https://img.shields.io/github/contributors/opendevin/opendevin?style=for-the-badge"+ src="https://img.shields.io/github/contributors/All-Hands-AI/OpenHands?style=for-the-badge"alt="Contributors"/></a>-<a href="https://github.com/OpenDevin/OpenDevin/network/members">+<a href="https://github.com/All-Hands-AI/OpenHands/network/members"><img- src="https://img.shields.io/github/forks/opendevin/opendevin?style=for-the-badge"+ src="https://img.shields.io/github/forks/All-Hands-AI/OpenHands?style=for-the-badge"alt="Forks"/></a>-<a href="https://github.com/OpenDevin/OpenDevin/stargazers">+<a href="https://github.com/All-Hands-AI/OpenHands/stargazers"><img- src="https://img.shields.io/github/stars/opendevin/opendevin?style=for-the-badge"+ src="https://img.shields.io/github/stars/All-Hands-AI/OpenHands?style=for-the-badge"alt="Stargazers"/></a>-<a href="https://github.com/OpenDevin/OpenDevin/issues">+<a href="https://github.com/All-Hands-AI/OpenHands/issues"><img- src="https://img.shields.io/github/issues/opendevin/opendevin?style=for-the-badge"+ src="https://img.shields.io/github/issues/All-Hands-AI/OpenHands?style=for-the-badge"alt="Issues"/></a><br></br>-<a href="https://github.com/OpenDevin/OpenDevin/blob/main/LICENSE">+<a href="https://github.com/All-Hands-AI/OpenHands/blob/main/LICENSE"><img- src="https://img.shields.io/github/license/opendevin/opendevin?style=for-the-badge"+ src="https://img.shields.io/github/license/All-Hands-AI/OpenHands?style=for-the-badge"alt="MIT License"/></a><br></br>-<a href="https://join.slack.com/t/opendevin/shared_invite/zt-2ngejmfw6-9gW4APWOC9XUp1n~SiQ6iw">+<a href="https://join.slack.com/t/openhands/shared_invite/zt-2ngejmfw6-9gW4APWOC9XUp1n~SiQ6iw"><imgsrc="https://img.shields.io/badge/Slack-Join%20Us-red?logo=slack&logoColor=white&style=for-the-badge"alt="Join our Slack community"@@ -58,10 +58,10 @@ Explorez le code source d'OpenDevin sur [GitHub](https://github.com/OpenDevin/Op## 🛠️ Pour commencer-La manière la plus simple d'exécuter OpenDevin est à l'intérieur d'un conteneur Docker. Il fonctionne mieux avec la version la plus récente de Docker, `26.0.0`.+La manière la plus simple d'exécuter OpenHands est à l'intérieur d'un conteneur Docker. Il fonctionne mieux avec la version la plus récente de Docker, `26.0.0`.Vous devez utiliser Linux, Mac OS ou WSL sur Windows.-Pour démarrer OpenDevin dans un conteneur docker, exécutez les commandes suivantes dans votre terminal :+Pour démarrer OpenHands dans un conteneur docker, exécutez les commandes suivantes dans votre terminal ::::warningLorsque vous exécutez la commande suivante, les fichiers dans `./workspace` peuvent être modifiés ou supprimés.@@ -77,33 +77,33 @@ docker run -it \-v /var/run/docker.sock:/var/run/docker.sock \-p 3000:3000 \--add-host host.docker.internal:host-gateway \- --name opendevin-app-$(date +%Y%m%d%H%M%S) \+ --name openhands-app-$(date +%Y%m%d%H%M%S) \ghcr.io/opendevin/opendevin:0.6```-Vous trouverez OpenDevin fonctionnant à l'adresse [http://localhost:3000](http://localhost:3000) avec accès à `./workspace`. Pour qu'OpenDevin fonctionne sur votre code, placez-le dans `./workspace`.+Vous trouverez OpenHands fonctionnant à l'adresse [http://localhost:3000](http://localhost:3000) avec accès à `./workspace`. Pour qu'OpenHands fonctionne sur votre code, placez-le dans `./workspace`.-OpenDevin n'aura accès qu'à ce dossier de workspace. Le reste de votre système ne sera pas affecté car il s'exécute dans un bac à sable sécurisé de docker.+OpenHands n'aura accès qu'à ce dossier de workspace. Le reste de votre système ne sera pas affecté car il s'exécute dans un bac à sable sécurisé de docker.:::tipSi vous souhaitez utiliser la version **(instable !)** la plus récente, vous pouvez utiliser `ghcr.io/opendevin/opendevin:main` comme image (dernière ligne).:::-Pour le workflow de développement, consultez [Development.md](https://github.com/OpenDevin/OpenDevin/blob/main/Development.md).+Pour le workflow de développement, consultez [Development.md](https://github.com/All-Hands-AI/OpenHands/blob/main/Development.md).Avez-vous des problèmes ? Consultez notre [Guide de dépannage](https://docs.all-hands.dev/modules/usage/troubleshooting).:::warning-OpenDevin est actuellement en cours de développement, mais vous pouvez déjà exécuter la version alpha pour voir le système de bout en bout en action.+OpenHands est actuellement en cours de développement, mais vous pouvez déjà exécuter la version alpha pour voir le système de bout en bout en action.:::-[contributors-shield]: https://img.shields.io/github/contributors/opendevin/opendevin?style=for-the-badge-[contributors-url]: https://github.com/OpenDevin/OpenDevin/graphs/contributors-[forks-shield]: https://img.shields.io/github/forks/opendevin/opendevin?style=for-the-badge-[forks-url]: https://github.com/OpenDevin/OpenDevin/network/members-[stars-shield]: https://img.shields.io/github/stars/opendevin/opendevin?style=for-the-badge-[stars-url]: https://github.com/OpenDevin/OpenDevin/stargazers-[issues-shield]: https://img.shields.io/github/issues/opendevin/opendevin?style=for-the-badge-[issues-url]: https://github.com/OpenDevin/OpenDevin/issues-[license-shield]: https://img.shields.io/github/license/opendevin/opendevin?style=for-the-badge-[license-url]: https://github.com/OpenDevin/OpenDevin/blob/main/LICENSE+[contributors-shield]: https://img.shields.io/github/contributors/All-Hands-AI/OpenHands?style=for-the-badge+[contributors-url]: https://github.com/All-Hands-AI/OpenHands/graphs/contributors+[forks-shield]: https://img.shields.io/github/forks/All-Hands-AI/OpenHands?style=for-the-badge+[forks-url]: https://github.com/All-Hands-AI/OpenHands/network/members+[stars-shield]: https://img.shields.io/github/stars/All-Hands-AI/OpenHands?style=for-the-badge+[stars-url]: https://github.com/All-Hands-AI/OpenHands/stargazers+[issues-shield]: https://img.shields.io/github/issues/All-Hands-AI/OpenHands?style=for-the-badge+[issues-url]: https://github.com/All-Hands-AI/OpenHands/issues+[license-shield]: https://img.shields.io/github/license/All-Hands-AI/OpenHands?style=for-the-badge+[license-url]: https://github.com/All-Hands-AI/OpenHands/blob/main/LICENSEdiff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/azureLLMs.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/azureLLMs.mdindex 9e6066bd6c..bd1efa281a 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/azureLLMs.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/azureLLMs.md@@ -2,11 +2,11 @@## Complétion-OpenDevin utilise LiteLLM pour les appels de complétion. Vous pouvez trouver leur documentation sur Azure [ici](https://docs.litellm.ai/docs/providers/azure)+OpenHands utilise LiteLLM pour les appels de complétion. Vous pouvez trouver leur documentation sur Azure [ici](https://docs.litellm.ai/docs/providers/azure)### Configurations openai Azure-Lors de l'exécution de l'image Docker OpenDevin, vous devrez définir les variables d'environnement suivantes en utilisant `-e` :+Lors de l'exécution de l'image Docker OpenHands, vous devrez définir les variables d'environnement suivantes en utilisant `-e` :```LLM_BASE_URL="<azure-api-base-url>" # e.g. "https://openai-gpt-4-test-v-1.openai.azure.com/"@@ -16,19 +16,19 @@ LLM_API_VERSION = "<api-version>" # e.g. "2024-02-15-preview"```:::note-Vous pouvez trouver le nom de votre déploiement ChatGPT sur la page des déploiements sur Azure. Par défaut ou initialement, il pourrait être le même que le nom du modèle de chat (par exemple 'GPT4-1106-preview'), mais il n'est pas obligé de l'être. Exécutez OpenDevin, et une fois chargé dans le navigateur, allez dans Paramètres et définissez le modèle comme suit : "azure/<your-actual-gpt-deployment-name>". Si ce n'est pas dans la liste, entrez votre propre texte et enregistrez-le.+Vous pouvez trouver le nom de votre déploiement ChatGPT sur la page des déploiements sur Azure. Par défaut ou initialement, il pourrait être le même que le nom du modèle de chat (par exemple 'GPT4-1106-preview'), mais il n'est pas obligé de l'être. Exécutez OpenHands, et une fois chargé dans le navigateur, allez dans Paramètres et définissez le modèle comme suit : "azure/<your-actual-gpt-deployment-name>". Si ce n'est pas dans la liste, entrez votre propre texte et enregistrez-le.:::## Embeddings-OpenDevin utilise llama-index pour les embeddings. Vous pouvez trouver leur documentation sur Azure [ici](https://docs.llamaindex.ai/en/stable/api_reference/embeddings/azure_openai/)+OpenHands utilise llama-index pour les embeddings. Vous pouvez trouver leur documentation sur Azure [ici](https://docs.llamaindex.ai/en/stable/api_reference/embeddings/azure_openai/)### Configurations openai AzureLe modèle utilisé pour les embeddings Azure OpenAI est "text-embedding-ada-002".Vous avez besoin du nom de déploiement correct pour ce modèle dans votre compte Azure.-Lors de l'exécution d'OpenDevin dans Docker, définissez les variables d'environnement suivantes en utilisant `-e` :+Lors de l'exécution d'OpenHands dans Docker, définissez les variables d'environnement suivantes en utilisant `-e` :```LLM_EMBEDDING_MODEL="azureopenai"diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/googleLLMs.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/googleLLMs.mdindex 5f2154a69e..ae7327429c 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/googleLLMs.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/googleLLMs.md@@ -2,14 +2,14 @@## Complétion-OpenDevin utilise LiteLLM pour les appels de complétion. Les ressources suivantes sont pertinentes pour utiliser OpenDevin avec les LLMs de Google :+OpenHands utilise LiteLLM pour les appels de complétion. Les ressources suivantes sont pertinentes pour utiliser OpenHands avec les LLMs de Google :- [Gemini - Google AI Studio](https://docs.litellm.ai/docs/providers/gemini)- [VertexAI - Google Cloud Platform](https://docs.litellm.ai/docs/providers/vertex)### Configurations de Gemini - Google AI Studio-Pour utiliser Gemini via Google AI Studio lors de l'exécution de l'image Docker d'OpenDevin, vous devez définir les variables d'environnement suivantes en utilisant `-e` :+Pour utiliser Gemini via Google AI Studio lors de l'exécution de l'image Docker d'OpenHands, vous devez définir les variables d'environnement suivantes en utilisant `-e` :```GEMINI_API_KEY="<votre-cle-api-google>"@@ -18,7 +18,7 @@ LLM_MODEL="gemini/gemini-1.5-pro"### Configurations de Vertex AI - Google Cloud Platform-Pour utiliser Vertex AI via Google Cloud Platform lors de l'exécution de l'image Docker d'OpenDevin, vous devez définir les variables d'environnement suivantes en utilisant `-e` :+Pour utiliser Vertex AI via Google Cloud Platform lors de l'exécution de l'image Docker d'OpenHands, vous devez définir les variables d'environnement suivantes en utilisant `-e` :```GOOGLE_APPLICATION_CREDENTIALS="<dump-json-du-compte-de-service-gcp-json>"diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/llms.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/llms.mdindex f5cd214f93..fb8ed07d66 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/llms.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/llms.md@@ -4,16 +4,16 @@ sidebar_position: 2# 🤖 Backends LLM-OpenDevin peut fonctionner avec n'importe quel backend LLM.+OpenHands peut fonctionner avec n'importe quel backend LLM.Pour une liste complète des fournisseurs et des modèles LM disponibles, veuillez consulter la[documentation litellm](https://docs.litellm.ai/docs/providers).:::warning-OpenDevin émettra de nombreuses invitations au LLM que vous configurez. La plupart de ces LLM coûtent de l'argent -- assurez-vous de définir des limites de dépenses et de surveiller l'utilisation.+OpenHands émettra de nombreuses invitations au LLM que vous configurez. La plupart de ces LLM coûtent de l'argent -- assurez-vous de définir des limites de dépenses et de surveiller l'utilisation.:::La variable d'environnement `LLM_MODEL` contrôle le modèle utilisé dans les interactions programmatiques.-Mais en utilisant l'interface utilisateur OpenDevin, vous devrez choisir votre modèle dans la fenêtre des paramètres (la roue dentée en bas à gauche).+Mais en utilisant l'interface utilisateur OpenHands, vous devrez choisir votre modèle dans la fenêtre des paramètres (la roue dentée en bas à gauche).Les variables d'environnement suivantes peuvent être nécessaires pour certains LLM :@@ -23,7 +23,7 @@ Les variables d'environnement suivantes peuvent être nécessaires pour certains- `LLM_EMBEDDING_DEPLOYMENT_NAME`- `LLM_API_VERSION`-Nous avons quelques guides pour exécuter OpenDevin avec des fournisseurs de modèles spécifiques :+Nous avons quelques guides pour exécuter OpenHands avec des fournisseurs de modèles spécifiques :- [ollama](llms/local-llms)- [Azure](llms/azure-llms)@@ -34,11 +34,11 @@ Si vous utilisez un autre fournisseur, nous vous encourageons à ouvrir une PR pLes meilleurs modèles sont GPT-4 et Claude 3. Les modèles locaux et open source actuels ne sont pas aussi puissants.Lors de l'utilisation d'un modèle alternatif, vous pouvez constater des temps d'attente prolongés entre les messages,-des réponses de mauvaise qualité ou des erreurs sur des JSON mal formés. OpenDevin+des réponses de mauvaise qualité ou des erreurs sur des JSON mal formés. OpenHandsne peut être aussi puissant que les modèles qui le pilotent -- heureusement, les membres de notre équipe travaillent activement à la construction de meilleurs modèles open source !## Réessais d'API et limites de taux-Certains LLM ont des limites de taux et peuvent nécessiter des réessais. OpenDevin réessaiera automatiquement les demandes s'il reçoit une erreur 429 ou une erreur de connexion API.+Certains LLM ont des limites de taux et peuvent nécessiter des réessais. OpenHands réessaiera automatiquement les demandes s'il reçoit une erreur 429 ou une erreur de connexion API.Vous pouvez définir les variables d'environnement `LLM_NUM_RETRIES`, `LLM_RETRY_MIN_WAIT`, `LLM_RETRY_MAX_WAIT` pour contrôler le nombre de réessais et le temps entre les réessais.Par défaut, `LLM_NUM_RETRIES` est 5 et `LLM_RETRY_MIN_WAIT`, `LLM_RETRY_MAX_WAIT` sont respectivement de 3 secondes et 60 secondes.diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/localLLMs.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/localLLMs.mdindex 3dcbfc143b..9b50bf56fb 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/localLLMs.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/localLLMs.md@@ -24,11 +24,11 @@ mistral:7b-instruct-v0.2-q4_K_M eb14864c7427 4.4 GB 2 weeks agostarcoder2:latest f67ae0f64584 1.7 GB 19 hours ago```-## Démarrer OpenDevin+## Démarrer OpenHands### Docker-Utilisez les instructions [ici](../intro) pour démarrer OpenDevin en utilisant Docker.+Utilisez les instructions [ici](../intro) pour démarrer OpenHands en utilisant Docker.Mais lors de l'exécution de `docker run`, vous devrez ajouter quelques arguments supplémentaires :```bash@@ -40,7 +40,7 @@ Mais lors de l'exécution de `docker run`, vous devrez ajouter quelques argumentPar exemple :```bash-# Le répertoire que vous souhaitez qu'OpenDevin modifie. DOIT être un chemin absolu !+# Le répertoire que vous souhaitez qu'OpenHands modifie. DOIT être un chemin absolu !export WORKSPACE_BASE=$(pwd)/workspacedocker run \@@ -61,7 +61,7 @@ Vous devriez maintenant pouvoir vous connecter à `http://localhost:3000/`### Compiler à partir des sources-Utilisez les instructions dans [Development.md](https://github.com/OpenDevin/OpenDevin/blob/main/Development.md) pour compiler OpenDevin.+Utilisez les instructions dans [Development.md](https://github.com/All-Hands-AI/OpenHands/blob/main/Development.md) pour compiler OpenHands.Assurez-vous que `config.toml` soit présent en exécutant `make setup-config` qui en créera un pour vous. Dans `config.toml`, saisissez les éléments suivants :```@@ -79,7 +79,7 @@ Fini ! Vous pouvez maintenant démarrer Devin avec : `make run` sans Docker. Vou## Sélection de votre modèle-Dans l'interface OpenDevin, cliquez sur l'icône des paramètres en bas à gauche.+Dans l'interface OpenHands, cliquez sur l'icône des paramètres en bas à gauche.Ensuite, dans l'entrée `Model`, saisissez `ollama/codellama:7b`, ou le nom du modèle que vous avez téléchargé précédemment.S'il n'apparaît pas dans un menu déroulant, ce n'est pas grave, tapez-le simplement. Cliquez sur Enregistrer lorsque vous avez terminé.@@ -87,7 +87,7 @@ Et maintenant, vous êtes prêt à démarrer !## Configuration du service ollama (WSL){#configuring-ollama-service-fr}-La configuration par défaut pour ollama sous WSL ne sert que localhost. Cela signifie que vous ne pouvez pas l'atteindre depuis un conteneur docker, par exemple, il ne fonctionnera pas avec OpenDevin. Testons d'abord que ollama est en cours d'exécution correctement.+La configuration par défaut pour ollama sous WSL ne sert que localhost. Cela signifie que vous ne pouvez pas l'atteindre depuis un conteneur docker, par exemple, il ne fonctionnera pas avec OpenHands. Testons d'abord que ollama est en cours d'exécution correctement.```bashollama list # obtenir la liste des modèles installés@@ -99,7 +99,7 @@ curl http://localhost:11434/api/generate -d '{"model":"[NAME]","prompt":"hi"}'Une fois cela fait, testez qu'il accepte les requêtes "externes", comme celles provenant d'un conteneur docker.```bash-docker ps # obtenir la liste des conteneurs docker en cours d'exécution, pour un test le plus précis choisissez le conteneur de sandbox open devin.+docker ps # obtenir la liste des conteneurs docker en cours d'exécution, pour un test le plus précis choisissez le conteneur de sandbox OpenHands.docker exec [CONTAINER ID] curl http://host.docker.internal:11434/api/generate -d '{"model":"[NAME]","prompt":"hi"}'#ex. docker exec cd9cc82f7a11 curl http://host.docker.internal:11434/api/generate -d '{"model":"codellama","prompt":"hi"}'```@@ -136,6 +136,6 @@ Enfin, testez que ollama est accessible depuis le conteneur```bashollama list # obtenir la liste des modèles installés-docker ps # obtenir la liste des conteneurs docker en cours d'exécution, pour un test le plus précis choisissez le conteneur de sandbox open devin.+docker ps # obtenir la liste des conteneurs docker en cours d'exécution, pour un test le plus précis choisissez le conteneur de sandbox OpenHands.docker exec [CONTAINER ID] curl http://host.docker.internal:11434/api/generate -d '{"model":"[NAME]","prompt":"hi"}'```diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/troubleshooting/troubleshooting.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/troubleshooting/troubleshooting.mdindex f6263a4248..71de9a21ef 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/troubleshooting/troubleshooting.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/troubleshooting/troubleshooting.md@@ -20,7 +20,7 @@ Si vous utilisez Windows et que vous rencontrez des problèmes, consultez notre## Impossible de se connecter à Docker-[Problème GitHub](https://github.com/OpenDevin/OpenDevin/issues/1226)+[Problème GitHub](https://github.com/All-Hands-AI/OpenHands/issues/1226)### Symptômes@@ -34,7 +34,7 @@ docker.errors.DockerException: Erreur lors de la récupération de la version de### Détails-OpenDevin utilise un conteneur Docker pour effectuer son travail en toute sécurité, sans risquer de briser votre machine.+OpenHands utilise un conteneur Docker pour effectuer son travail en toute sécurité, sans risquer de briser votre machine.### Solutions de contournement@@ -45,7 +45,7 @@ OpenDevin utilise un conteneur Docker pour effectuer son travail en toute sécur## Impossible de se connecter à la boîte SSH-[Problème GitHub](https://github.com/OpenDevin/OpenDevin/issues/1156)+[Problème GitHub](https://github.com/All-Hands-AI/OpenHands/issues/1156)### Symptômes@@ -57,7 +57,7 @@ pexpect.pxssh.ExceptionPxssh: Impossible d'établir une connexion avec l'hôte### Détails-Par défaut, OpenDevin se connecte à un conteneur en cours d'exécution via SSH. Sur certaines machines,+Par défaut, OpenHands se connecte à un conteneur en cours d'exécution via SSH. Sur certaines machines,en particulier Windows, cela semble échouer.### Solutions de contournement@@ -65,11 +65,11 @@ en particulier Windows, cela semble échouer.* Redémarrez votre ordinateur (parfois cela fonctionne)* Assurez-vous d'avoir les dernières versions de WSL et Docker* Vérifiez que votre distribution dans WSL est également à jour-* Essayez [ce guide de réinstallation](https://github.com/OpenDevin/OpenDevin/issues/1156#issuecomment-2064549427)+* Essayez [ce guide de réinstallation](https://github.com/All-Hands-AI/OpenHands/issues/1156#issuecomment-2064549427)## Impossible de se connecter à LLM-[Problème GitHub](https://github.com/OpenDevin/OpenDevin/issues/1208)+[Problème GitHub](https://github.com/All-Hands-AI/OpenHands/issues/1208)### Symptômes@@ -82,9 +82,9 @@ AttributeError: 'NoneType' object has no attribute 'request'### Détails-[Problèmes GitHub](https://github.com/OpenDevin/OpenDevin/issues?q=is%3Aissue+is%3Aopen+404)+[Problèmes GitHub](https://github.com/All-Hands-AI/OpenHands/issues?q=is%3Aissue+is%3Aopen+404)-Cela se produit généralement avec les configurations de LLM *locales*, lorsque OpenDevin ne parvient pas à se connecter au serveur LLM.+Cela se produit généralement avec les configurations de LLM *locales*, lorsque OpenHands ne parvient pas à se connecter au serveur LLM.Consultez notre guide pour [LLMs locaux](llms/local-llms) pour plus d'informations.### Solutions de contournement@@ -179,24 +179,24 @@ export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring### Symptômes-OpenDevin demande généralement s'il faut reprendre ou commencer une nouvelle session lors de l'ouverture de l'interface utilisateur.+OpenHands demande généralement s'il faut reprendre ou commencer une nouvelle session lors de l'ouverture de l'interface utilisateur.Mais cliquer sur "Reprendre" démarre toujours une toute nouvelle discussion.### DétailsAvec une installation standard à ce jour, les données de session sont stockées en mémoire.-Actuellement, si le service OpenDevin est redémarré, les sessions précédentes deviennent+Actuellement, si le service OpenHands est redémarré, les sessions précédentes deviennentinvalides (un nouveau secret est généré) et donc non récupérables.### Solutions de contournement* Modifiez la configuration pour rendre les sessions persistantes en éditant le fichier `config.toml`-(dans le dossier racine d'OpenDevin) en spécifiant un `file_store` et un+(dans le dossier racine d'OpenHands) en spécifiant un `file_store` et un`file_store_path` absolu :```tomlfile_store="local"-file_store_path="/absolute/path/to/opendevin/cache/directory"+file_store_path="/absolute/path/to/openhands/cache/directory"```* Ajoutez un secret jwt fixe dans votre .bashrc, comme ci-dessous, afin que les id de session précédentsdiff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/troubleshooting/windows.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/troubleshooting/windows.mdindex 40fc25888f..ddfae792c6 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/troubleshooting/windows.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/troubleshooting/windows.md@@ -1,6 +1,6 @@# Notes pour les utilisateurs de Windows et WSL-OpenDevin ne supporte Windows que via [WSL](https://learn.microsoft.com/en-us/windows/wsl/install).+OpenHands ne supporte Windows que via [WSL](https://learn.microsoft.com/en-us/windows/wsl/install).Veuillez vous assurer de lancer toutes les commandes à l'intérieur de votre terminal WSL.## Dépannage@@ -12,8 +12,8 @@ Docker doit également avoir l'option d'intégration WSL activée.### Recommandation : Ne pas exécuter en tant qu'utilisateur root-Pour des raisons de sécurité, il est fortement recommandé de ne pas exécuter OpenDevin en tant qu'utilisateur root, mais en tant qu'utilisateur avec un UID non nul.-De plus, les sandboxes persistants ne seront pas pris en charge lors de l'exécution en tant que root et un message approprié pourrait apparaître lors du démarrage d'OpenDevin.+Pour des raisons de sécurité, il est fortement recommandé de ne pas exécuter OpenHands en tant qu'utilisateur root, mais en tant qu'utilisateur avec un UID non nul.+De plus, les sandboxes persistants ne seront pas pris en charge lors de l'exécution en tant que root et un message approprié pourrait apparaître lors du démarrage d'OpenHands.Références :@@ -21,12 +21,12 @@ Références :* [Définir l'utilisateur par défaut dans WSL](https://www.tenforums.com/tutorials/128152-set-default-user-windows-subsystem-linux-distro-windows-10-a.html#option2)Astuce pour la 2e référence : pour les utilisateurs d'Ubuntu, la commande pourrait en fait être "ubuntupreview" au lieu de "ubuntu".-### Échec de la création de l'utilisateur opendevin+### Échec de la création de l'utilisateur openhandsSi vous rencontrez l'erreur suivante lors de l'installation :```sh-Exception: Failed to create opendevin user in sandbox: 'useradd: UID 0 is not unique'+Exception: Failed to create openhands user in sandbox: 'useradd: UID 0 is not unique'```Vous pouvez la résoudre en exécutant :diff --git a/docs/i18n/fr/docusaurus-theme-classic/navbar.json b/docs/i18n/fr/docusaurus-theme-classic/navbar.jsonindex d7270111e8..a344eb61c2 100644--- a/docs/i18n/fr/docusaurus-theme-classic/navbar.json+++ b/docs/i18n/fr/docusaurus-theme-classic/navbar.json@@ -1,10 +1,10 @@{"title": {- "message": "OpenDevin",+ "message": "OpenHands","description": "The title in the navbar"},"logo.alt": {- "message": "OpenDevin",+ "message": "OpenHands","description": "The alt text of navbar logo"},"item.label.Docs": {diff --git a/docs/i18n/zh-Hans/code.json b/docs/i18n/zh-Hans/code.jsonindex 0cc53c7d82..024454d4e6 100644--- a/docs/i18n/zh-Hans/code.json+++ b/docs/i18n/zh-Hans/code.json@@ -1,6 +1,6 @@{"footer.title": {- "message": "OpenDevin"+ "message": "OpenHands"},"footer.docs": {"message": "文档"@@ -9,7 +9,7 @@"message": "社区"},"footer.copyright": {- "message": "版权所有 © {year} OpenDevin"+ "message": "版权所有 © {year} OpenHands"},"faq.title": {"message": "常见问题解答",@@ -19,20 +19,20 @@"message": "常见问题解答"},"faq.section.title.1": {- "message": "什么是OpenDevin?",+ "message": "什么是OpenHands?","description": "First Section Title"},"faq.section.highlight": {- "message": "OpenDevin",+ "message": "OpenHands","description": "Highlight Text"},"faq.section.description.1": {- "message": "是一个自主的软件工程师,能够端到端地解决软件工程和网页浏览任务。它能执行数据科学查询,如 \"查找上个月OpenDevin仓库中的拉取请求数量\",还能处理软件工程任务,例如 \"请为这个文件添加测试并验证所有测试都通过,如果没有修复该文件\"。",- "description": "Description for OpenDevin"+ "message": "是一个自主的软件工程师,能够端到端地解决软件工程和网页浏览任务。它能执行数据科学查询,如 \"查找上个月OpenHands仓库中的拉取请求数量\",还能处理软件工程任务,例如 \"请为这个文件添加测试并验证所有测试都通过,如果没有修复该文件\"。",+ "description": "Description for OpenHands"},"faq.section.description.2": {- "message": "同时,OpenDevin是一个代理开发者平台和社区,用于测试和评估新代理的环境。",- "description": "Further Description for OpenDevin"+ "message": "同时,OpenHands是一个代理开发者平台和社区,用于测试和评估新代理的环境。",+ "description": "Further Description for OpenHands"},"faq.section.title.2": {"message": "支持",@@ -43,15 +43,15 @@"description": "Support Answer"},"faq.section.title.3": {- "message": "如何使用OpenDevin解决GitHub上的问题?",+ "message": "如何使用OpenHands解决GitHub上的问题?","description": "GitHub Issue Section Title"},"faq.section.github.steps.intro": {- "message": "要通过OpenDevin解决GitHub上的问题,您可以发送一个提示给OpenDevin,请它按照以下步骤操作:",+ "message": "要通过OpenHands解决GitHub上的问题,您可以发送一个提示给OpenHands,请它按照以下步骤操作:","description": "GitHub Steps Introduction"},"faq.section.github.step1": {- "message": "阅读问题 https://github.com/OpenDevin/OpenDevin/issues/1611",+ "message": "阅读问题 https://github.com/All-Hands-AI/OpenHands/issues/1611","description": "GitHub Step 1"},"faq.section.github.step2": {@@ -71,11 +71,11 @@"description": "GitHub Step 5"},"faq.section.github.steps.preRun": {- "message": "在运行OpenDevin之前,您可以:",+ "message": "在运行OpenHands之前,您可以:","description": "GitHub Steps Pre-Run"},"faq.section.github.steps.tokenInfo": {- "message": "其中XXX是您创建的一个具有对OpenDevin仓库写权限的GitHub令牌。如果您的写入权限不足,请将其更改为:",+ "message": "其中XXX是您创建的一个具有对OpenHands仓库写权限的GitHub令牌。如果您的写入权限不足,请将其更改为:","description": "GitHub Steps Token Info"},"faq.section.github.steps.usernameInfo": {@@ -83,23 +83,23 @@"description": "GitHub Steps Username Info"},"faq.section.title.4": {- "message": "OpenDevin与Devin有何不同?",+ "message": "OpenHands与Devin有何不同?","description": "Devin Section Title"},- "faq.section.devin.linkText": {+ "faq.section.openhands.linkText": {"message": "Devin","description": "Devin Link Text"},- "faq.section.devin.description": {- "message": "是由Cognition Inc.开发的商业产品,它最初为OpenDevin提供了灵感。它们都旨在擅长解决软件工程任务,但您可以下载、使用和修改OpenDevin,而Devin只能通过Cognition网站进行访问。此外,OpenDevin已超越最初的灵感,并成为一个面向代理开发者的社区驱动生态系统,在这里我们欢迎您加入并",+ "faq.section.openhands.description": {+ "message": "是由Cognition Inc.开发的商业产品,它最初为OpenHands提供了灵感。它们都旨在擅长解决软件工程任务,但您可以下载、使用和修改OpenHands,而Devin只能通过Cognition网站进行访问。此外,OpenHands已超越最初的灵感,并成为一个面向代理开发者的社区驱动生态系统,在这里我们欢迎您加入并","description": "Devin Description"},- "faq.section.devin.contribute": {+ "faq.section.openhands.contribute": {"message": "贡献","description": "Contribute Link"},"faq.section.title.5": {- "message": "OpenDevin与ChatGPT有何不同?",+ "message": "OpenHands与ChatGPT有何不同?","description": "ChatGPT Section Title"},"faq.section.chatgpt.description": {@@ -114,7 +114,7 @@"message": "开始使用"},"welcome.message": {- "message": "欢迎来到OpenDevin,这是一个开源自主AI软件工程师,能够执行复杂的工程任务,并积极参与用户在软件开发项目中的协作。"+ "message": "欢迎来到OpenHands,这是一个开源自主AI软件工程师,能够执行复杂的工程任务,并积极参与用户在软件开发项目中的协作。"},"theme.ErrorPageContent.title": {"message": "页面已崩溃。",diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/about.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/about.mdindex f08b72cf73..70458c815b 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/about.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/about.md@@ -19,35 +19,35 @@ sidebar_position: 7## 🤝 如何贡献-OpenDevin 是一个社区驱动的项目,我们欢迎每个人的贡献。无论您是开发人员、研究人员,还是对用 AI 提升软件工程领域有兴趣,只要您愿意参与,我们都有很多方式可供选择:+OpenHands 是一个社区驱动的项目,我们欢迎每个人的贡献。无论您是开发人员、研究人员,还是对用 AI 提升软件工程领域有兴趣,只要您愿意参与,我们都有很多方式可供选择:- **代码贡献:** 帮助我们开发核心功能、前端界面或沙箱解决方案。- **研究和评价:** 贡献您对 LLM 在软件工程领域理解的见解,参与评估模型,或提出改进建议。-- **反馈和测试:** 使用 OpenDevin 工具集,报告错误,建议功能,或提供可用性方面的反馈。+- **反馈和测试:** 使用 OpenHands 工具集,报告错误,建议功能,或提供可用性方面的反馈。-详情请查阅[此文件](https://github.com/OpenDevin/OpenDevin/blob/main/CONTRIBUTING.md)。+详情请查阅[此文件](https://github.com/All-Hands-AI/OpenHands/blob/main/CONTRIBUTING.md)。## 🤖 加入我们的社区-我们现在有一个 Slack 工作区,用于合作建设 OpenDevin,还设有一个 Discord 服务器,用于讨论与该项目、LLM、代理等相关的任何事情。+我们现在有一个 Slack 工作区,用于合作建设 OpenHands,还设有一个 Discord 服务器,用于讨论与该项目、LLM、代理等相关的任何事情。-- [Slack 工作区](https://join.slack.com/t/opendevin/shared_invite/zt-2ngejmfw6-9gW4APWOC9XUp1n~SiQ6iw)+- [Slack 工作区](https://join.slack.com/t/openhands/shared_invite/zt-2ngejmfw6-9gW4APWOC9XUp1n~SiQ6iw)- [Discord 服务器](https://discord.gg/ESHStjSjD4)如果您愿意贡献,请随时加入我们的社区。让我们一起简化软件工程!-🐚 **少写代码,用 OpenDevin 做更多的事情。**+🐚 **少写代码,用 OpenHands 做更多的事情。**-[](https://star-history.com/#OpenDevin/OpenDevin&Date)+[](https://star-history.com/#All-Hands-AI/OpenHands&Date)## 🛠️ 技术选型-OpenDevin 使用了一系列强大的框架和库,提供了坚实的开发基础。以下是项目中使用的关键技术:+OpenHands 使用了一系列强大的框架和库,提供了坚实的开发基础。以下是项目中使用的关键技术:       -请注意,这些技术选型仍在进行中,随着项目的发展,可能会添加新的技术或移除现有的技术。我们努力采用最适合、最高效的工具,以增强 OpenDevin 的能力。+请注意,这些技术选型仍在进行中,随着项目的发展,可能会添加新的技术或移除现有的技术。我们努力采用最适合、最高效的工具,以增强 OpenHands 的能力。## 📜 许可证-根据 MIT 许可证分发。详见[我们的许可证](https://github.com/OpenDevin/OpenDevin/blob/main/LICENSE)了解更多信息。+根据 MIT 许可证分发。详见[我们的许可证](https://github.com/All-Hands-AI/OpenHands/blob/main/LICENSE)了解更多信息。diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/agents.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/agents.mdindex 6c36e7b222..f3b1546e62 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/agents.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/agents.md@@ -18,18 +18,18 @@ sidebar_position: 3- 执行任何有效的Linux `bash`命令- 使用[交互式Python解释器](https://ipython.org/)执行任何有效的 `Python`代码。这是通过`bash`命令模拟的,详细信息请参见插件系统。-+### 插件系统-为了使CodeAct agent在仅能访问`bash`动作空间时更强大,CodeAct agent利用了OpenDevin的插件系统:+为了使CodeAct agent在仅能访问`bash`动作空间时更强大,CodeAct agent利用了OpenHands的插件系统:-- [Jupyter插件](https://github.com/OpenDevin/OpenDevin/tree/main/opendevin/runtime/plugins/jupyter):通过bash命令实现IPython执行-- [SWE-agent工具插件](https://github.com/OpenDevin/OpenDevin/tree/main/opendevin/runtime/plugins/swe_agent_commands):为软件开发任务引入的强大bash命令行工具,由[swe-agent](https://github.com/princeton-nlp/swe-agent)提供。+- [Jupyter插件](https://github.com/All-Hands-AI/OpenHands/tree/main/openhands/runtime/plugins/jupyter):通过bash命令实现IPython执行+- [SWE-agent工具插件](https://github.com/All-Hands-AI/OpenHands/tree/main/openhands/runtime/plugins/swe_agent_commands):为软件开发任务引入的强大bash命令行工具,由[swe-agent](https://github.com/princeton-nlp/swe-agent)提供。### 演示-https://github.com/OpenDevin/OpenDevin/assets/38853559/f592a192-e86c-4f48-ad31-d69282d5f6ac+https://github.com/All-Hands-AI/OpenHands/assets/38853559/f592a192-e86c-4f48-ad31-d69282d5f6ac_CodeActAgent使用`gpt-4-turbo-2024-04-09`执行数据科学任务(线性回归)的示例_diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/architecture.mdx b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/architecture.mdxindex 6541151a16..6f4fcce17f 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/architecture.mdx+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/architecture.mdx@@ -25,13 +25,13 @@ _**免责声明**:后端架构正在进行中,可能会有所变化。下图## 前提条件- - 能运行 python 环境,其中 opendevin 可以执行(根据存储库根目录中的 README.md 文件中的说明)+ - 能运行 python 环境,其中 openhands 可以执行(根据存储库根目录中的 README.md 文件中的说明)- 安装了 [py2puml](https://github.com/lucsorel/py2puml)## 步骤1. 通过从存储库根目录运行以下命令自动生成图表:- `py2puml opendevin opendevin > docs/architecture/backend_architecture.puml`+ `py2puml openhands openhands > docs/architecture/backend_architecture.puml`2. 在 PlantUML 编辑器中打开生成的文件,例如使用 PlantUML 扩展的 Visual Studio Code 或 [PlantText](https://www.planttext.com/)diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/custom_sandbox_guide.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/custom_sandbox_guide.mdindex 8bae2b75dc..1c99ca32dc 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/custom_sandbox_guide.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/custom_sandbox_guide.md@@ -1,14 +1,14 @@# 💿 如何创建自定义 Docker 沙箱-默认的 OpenDevin 沙箱包含一个[最小化 ubuntu 配置](https://github.com/OpenDevin/OpenDevin/blob/main/containers/sandbox/Dockerfile)。您的应用场景可能需要在默认状态下安装额外的软件。本指南将教您如何通过使用自定义 Docker 映像来实现这一目标。+默认的 OpenHands 沙箱包含一个[最小化 ubuntu 配置](https://github.com/All-Hands-AI/OpenHands/blob/main/containers/sandbox/Dockerfile)。您的应用场景可能需要在默认状态下安装额外的软件。本指南将教您如何通过使用自定义 Docker 映像来实现这一目标。## 环境设置-确保您能够首先通过 [Development.md](https://github.com/OpenDevin/OpenDevin/blob/main/Development.md) 运行 OpenDevin。+确保您能够首先通过 [Development.md](https://github.com/All-Hands-AI/OpenHands/blob/main/Development.md) 运行 OpenHands。## 创建您的 Docker 映像-接下来,您必须创建一个自定义的 Docker 映像,该映像是基于 Debian 或 Ubuntu 的。例如,如果我们希望 OpenDevin 能够访问 "node" 可执行文件,我们可以使用以下 `Dockerfile`:+接下来,您必须创建一个自定义的 Docker 映像,该映像是基于 Debian 或 Ubuntu 的。例如,如果我们希望 OpenHands 能够访问 "node" 可执行文件,我们可以使用以下 `Dockerfile`:```bash# 从最新版 ubuntu 开始@@ -29,18 +29,18 @@ docker build -t custom_image .这将生成一个名为 ```custom_image``` 的新映像,并使其可用于 Docker 服务引擎。-> 注意:在本文档描述的配置中,OpenDevin 将在沙箱内部以“opendevin”用户身份运行。因此,通过 Dockerfile 安装的所有包应可供系统上的所有用户使用,而不仅仅是 root 用户。+> 注意:在本文档描述的配置中,OpenHands 将在沙箱内部以“openhands”用户身份运行。因此,通过 Dockerfile 安装的所有包应可供系统上的所有用户使用,而不仅仅是 root 用户。> 使用 `apt-get` 上面安装的 node 是为所有用户安装的。## 在 config.toml 文件中指定自定义映像-在 OpenDevin 的配置通过顶层的 `config.toml` 文件发生。在 OpenDevin 目录下创建一个 ```config.toml``` 文件,并输入以下内容:+在 OpenHands 的配置通过顶层的 `config.toml` 文件发生。在 OpenHands 目录下创建一个 ```config.toml``` 文件,并输入以下内容:```[core]workspace_base="./workspace"-run_as_devin=true+run_as_openhands=truesandbox_container_image="custom_image"```@@ -48,7 +48,7 @@ sandbox_container_image="custom_image"## 运行-通过运行 ```make run``` 在顶层目录下运行 OpenDevin。+通过运行 ```make run``` 在顶层目录下运行 OpenHands。导航至 ```localhost:3001``` 并检查所需依赖是否可用。@@ -58,40 +58,40 @@ sandbox_container_image="custom_image"## 技术解释-相关代码定义在 [ssh_box.py](https://github.com/OpenDevin/OpenDevin/blob/main/opendevin/runtime/docker/ssh_box.py) 和 [image_agnostic_util.py](https://github.com/OpenDevin/OpenDevin/blob/main/opendevin/runtime/docker/image_agnostic_util.py) 中。+相关代码定义在 [ssh_box.py](https://github.com/All-Hands-AI/OpenHands/blob/main/openhands/runtime/docker/ssh_box.py) 和 [image_agnostic_util.py](https://github.com/All-Hands-AI/OpenHands/blob/main/openhands/runtime/docker/image_agnostic_util.py) 中。-特别是 ssh_box.py 检查配置对象中的 ```config.sandbox_container_image```,然后尝试使用 [get_od_sandbox_image](https://github.com/OpenDevin/OpenDevin/blob/main/opendevin/runtime/docker/image_agnostic_util.py#L72),在 image_agnostic_util.py 定义中进行检索。+特别是 ssh_box.py 检查配置对象中的 ```config.sandbox_container_image```,然后尝试使用 [get_od_sandbox_image](https://github.com/All-Hands-AI/OpenHands/blob/main/openhands/runtime/docker/image_agnostic_util.py#L72),在 image_agnostic_util.py 定义中进行检索。初次使用自定义映像时,该映像将不会被找到,因此将被构建(在后续运行中已构建的映像将被查找并返回)。-自定义映像是通过 `_build_sandbox_image()` 构建的,在 [image_agnostic_util.py](https://github.com/OpenDevin/OpenDevin/blob/main/opendevin/runtime/docker/image_agnostic_util.py#L29) 中,使用您的 custom_image 作为基础,并为 OpenDevin 配置环境。例如:+自定义映像是通过 `_build_sandbox_image()` 构建的,在 [image_agnostic_util.py](https://github.com/All-Hands-AI/OpenHands/blob/main/openhands/runtime/docker/image_agnostic_util.py#L29) 中,使用您的 custom_image 作为基础,并为 OpenHands 配置环境。例如:```pythondockerfile_content = (f'FROM {base_image}\n''RUN apt update && apt install -y openssh-server wget sudo\n''RUN mkdir -p -m0755 /var/run/sshd\n'- 'RUN mkdir -p /opendevin && mkdir -p /opendevin/logs && chmod 777 /opendevin/logs\n'+ 'RUN mkdir -p /openhands && mkdir -p /openhands/logs && chmod 777 /openhands/logs\n''RUN wget "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"\n'- 'RUN bash Miniforge3-$(uname)-$(uname -m).sh -b -p /opendevin/miniforge3\n'- 'RUN bash -c ". /opendevin/miniforge3/etc/profile.d/conda.sh && conda config --set changeps1 False && conda config --append channels conda-forge"\n'- 'RUN echo "export PATH=/opendevin/miniforge3/bin:$PATH" >> ~/.bashrc\n'- 'RUN echo "export PATH=/opendevin/miniforge3/bin:$PATH" >> /opendevin/bash.bashrc\n'+ 'RUN bash Miniforge3-$(uname)-$(uname -m).sh -b -p /openhands/miniforge3\n'+ 'RUN bash -c ". /openhands/miniforge3/etc/profile.d/conda.sh && conda config --set changeps1 False && conda config --append channels conda-forge"\n'+ 'RUN echo "export PATH=/openhands/miniforge3/bin:$PATH" >> ~/.bashrc\n'+ 'RUN echo "export PATH=/openhands/miniforge3/bin:$PATH" >> /openhands/bash.bashrc\n').strip()```-> 注意:映像名称通过 [_get_new_image_name()](https://github.com/OpenDevin/OpenDevin/blob/main/opendevin/runtime/docker/image_agnostic_util.py#L63) 修改,并且是后续运行中搜索的修改后的名称。+> 注意:映像名称通过 [_get_new_image_name()](https://github.com/All-Hands-AI/OpenHands/blob/main/openhands/runtime/docker/image_agnostic_util.py#L63) 修改,并且是后续运行中搜索的修改后的名称。## 故障排除 / 错误### 错误:```useradd: UID 1000 is not unique```-如果在控制台输出中看到此错误,说明 OpenDevin 尝试在沙箱中以 UID 1000 创建 opendevin 用户,但该 UID 已经被映像中的其他部分使用(不知何故)。要解决这个问题,请更改 config.toml 文件中的 sandbox_user_id 字段为不同的值:+如果在控制台输出中看到此错误,说明 OpenHands 尝试在沙箱中以 UID 1000 创建 openhands 用户,但该 UID 已经被映像中的其他部分使用(不知何故)。要解决这个问题,请更改 config.toml 文件中的 sandbox_user_id 字段为不同的值:```[core]workspace_base="./workspace"-run_as_devin=true+run_as_openhands=truesandbox_container_image="custom_image"sandbox_user_id="1001"```@@ -102,4 +102,4 @@ sandbox_user_id="1001"## 讨论-对于其他问题或疑问,请加入 [Slack](https://join.slack.com/t/opendevin/shared_invite/zt-2ngejmfw6-9gW4APWOC9XUp1n~SiQ6iw) 或 [Discord](https://discord.gg/ESHStjSjD4),并提问!+对于其他问题或疑问,请加入 [Slack](https://join.slack.com/t/openhands/shared_invite/zt-2ngejmfw6-9gW4APWOC9XUp1n~SiQ6iw) 或 [Discord](https://discord.gg/ESHStjSjD4),并提问!diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/feedback.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/feedback.mdindex 5dde206396..4da7c75909 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/feedback.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/feedback.md@@ -4,15 +4,15 @@ sidebar_position: 6# ✅ 提供反馈-在使用 OpenDevin 时,你无疑会遇到一些情况,某些地方工作得很好,而另一些地方则可能不尽如人意。我们鼓励你在使用 OpenDevin 时提供反馈,这不仅有助于开发团队改善应用,更为重要的是,可以创建一个开放的编码代理训练样例语料库——Share-OpenDevin!+在使用 OpenHands 时,你无疑会遇到一些情况,某些地方工作得很好,而另一些地方则可能不尽如人意。我们鼓励你在使用 OpenHands 时提供反馈,这不仅有助于开发团队改善应用,更为重要的是,可以创建一个开放的编码代理训练样例语料库——Share-OpenHands!## 📝 如何提供反馈-提供反馈很简单!在使用 OpenDevin 时,你可以在任意时刻按下点赞或点踩按钮。你将被要求提供你的电子邮件地址(例如,以便我们在需要进一步询问时联系你),你可以选择公开或私密地提供反馈。+提供反馈很简单!在使用 OpenHands 时,你可以在任意时刻按下点赞或点踩按钮。你将被要求提供你的电子邮件地址(例如,以便我们在需要进一步询问时联系你),你可以选择公开或私密地提供反馈。<iframe width="560" height="315" src="https://www.youtube.com/embed/5rFx-StMVV0?si=svo7xzp6LhGK_GXr" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>## 📜 数据许可与隐私-* **公开** 数据将与 OpenDevin 本身一样以 MIT 许可协议发布,并可被社区用来训练和测试模型。显然,你能够公开的反馈对整个社区来说更有价值,因此当你不涉及敏感信息时,我们鼓励你选择这个选项!-* **私密** 数据将仅与 OpenDevin 团队分享,用于改进 OpenDevin。+* **公开** 数据将与 OpenHands 本身一样以 MIT 许可协议发布,并可被社区用来训练和测试模型。显然,你能够公开的反馈对整个社区来说更有价值,因此当你不涉及敏感信息时,我们鼓励你选择这个选项!+* **私密** 数据将仅与 OpenHands 团队分享,用于改进 OpenHands。diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/intro.mdx b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/intro.mdxindex e8a172e5d5..06054481fa 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/intro.mdx+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/intro.mdx@@ -2,47 +2,47 @@sidebar_position: 1----# 💻 OpenDevin+# 💻 OpenHands-OpenDevin 是一个**自主 AI 软件工程师**,能够执行复杂的工程任务,并在软件开发项目中积极与用户合作。+OpenHands 是一个**自主 AI 软件工程师**,能够执行复杂的工程任务,并在软件开发项目中积极与用户合作。这个项目是完全开源的,所以你可以随意使用和修改它。:::tip-在 [GitHub](https://github.com/OpenDevin/OpenDevin) 上探索 OpenDevin 的代码库或加入我们的社区!+在 [GitHub](https://github.com/All-Hands-AI/OpenHands) 上探索 OpenHands 的代码库或加入我们的社区!-<a href="https://github.com/OpenDevin/OpenDevin/graphs/contributors">+<a href="https://github.com/All-Hands-AI/OpenHands/graphs/contributors"><img- src="https://img.shields.io/github/contributors/opendevin/opendevin?style=for-the-badge"+ src="https://img.shields.io/github/contributors/All-Hands-AI/OpenHands?style=for-the-badge"alt="Contributors"/></a>-<a href="https://github.com/OpenDevin/OpenDevin/network/members">+<a href="https://github.com/All-Hands-AI/OpenHands/network/members"><img- src="https://img.shields.io/github/forks/opendevin/opendevin?style=for-the-badge"+ src="https://img.shields.io/github/forks/All-Hands-AI/OpenHands?style=for-the-badge"alt="Forks"/></a>-<a href="https://github.com/OpenDevin/OpenDevin/stargazers">+<a href="https://github.com/All-Hands-AI/OpenHands/stargazers"><img- src="https://img.shields.io/github/stars/opendevin/opendevin?style=for-the-badge"+ src="https://img.shields.io/github/stars/All-Hands-AI/OpenHands?style=for-the-badge"alt="Stargazers"/></a>-<a href="https://github.com/OpenDevin/OpenDevin/issues">+<a href="https://github.com/All-Hands-AI/OpenHands/issues"><img- src="https://img.shields.io/github/issues/opendevin/opendevin?style=for-the-badge"+ src="https://img.shields.io/github/issues/All-Hands-AI/OpenHands?style=for-the-badge"alt="Issues"/></a><br></br>-<a href="https://github.com/OpenDevin/OpenDevin/blob/main/LICENSE">+<a href="https://github.com/All-Hands-AI/OpenHands/blob/main/LICENSE"><img- src="https://img.shields.io/github/license/opendevin/opendevin?style=for-the-badge"+ src="https://img.shields.io/github/license/All-Hands-AI/OpenHands?style=for-the-badge"alt="MIT License"/></a><br></br>-<a href="https://join.slack.com/t/opendevin/shared_invite/zt-2ngejmfw6-9gW4APWOC9XUp1n~SiQ6iw">+<a href="https://join.slack.com/t/openhands/shared_invite/zt-2ngejmfw6-9gW4APWOC9XUp1n~SiQ6iw"><imgsrc="https://img.shields.io/badge/Slack-Join%20Us-red?logo=slack&logoColor=white&style=for-the-badge"alt="Join our Slack community"@@ -58,10 +58,10 @@ OpenDevin 是一个**自主 AI 软件工程师**,能够执行复杂的工程## 🛠️ 入门指南-运行 OpenDevin 最简单的方法是在 Docker 容器中。它在 Docker 的最新版本 `26.0.0` 上运行效果最佳。+运行 OpenHands 最简单的方法是在 Docker 容器中。它在 Docker 的最新版本 `26.0.0` 上运行效果最佳。你必须使用 Linux、Mac OS 或 Windows 上的 WSL。-要在 Docker 容器中启动 OpenDevin,请在终端中运行以下命令:+要在 Docker 容器中启动 OpenHands,请在终端中运行以下命令::::warning运行以下命令时,`./workspace` 中的文件可能会被修改或删除。@@ -77,33 +77,33 @@ docker run -it \-v /var/run/docker.sock:/var/run/docker.sock \-p 3000:3000 \--add-host host.docker.internal:host-gateway \- --name opendevin-app-$(date +%Y%m%d%H%M%S) \+ --name openhands-app-$(date +%Y%m%d%H%M%S) \ghcr.io/opendevin/opendevin:0.6```-你会发现 OpenDevin 在 [http://localhost:3000](http://localhost:3000) 运行,并可以访问 `./workspace`。要让 OpenDevin 操作你的代码,请将代码放在 `./workspace` 中。+你会发现 OpenHands 在 [http://localhost:3000](http://localhost:3000) 运行,并可以访问 `./workspace`。要让 OpenHands 操作你的代码,请将代码放在 `./workspace` 中。-OpenDevin 只会访问这个工作区文件夹。它在一个安全的 docker 沙盒中运行,不会影响你系统的其他部分。+OpenHands 只会访问这个工作区文件夹。它在一个安全的 docker 沙盒中运行,不会影响你系统的其他部分。:::tip如果你想使用**(不稳定!)**最新版本,可以使用 `ghcr.io/opendevin/opendevin:main` 作为镜像(最后一行)。:::-有关开发工作流程,请参阅 [Development.md](https://github.com/OpenDevin/OpenDevin/blob/main/Development.md)。+有关开发工作流程,请参阅 [Development.md](https://github.com/All-Hands-AI/OpenHands/blob/main/Development.md)。遇到问题了吗?查看我们的 [故障排除指南](https://docs.all-hands.dev/modules/usage/troubleshooting)。:::warning-OpenDevin 目前正在开发中,但你已经可以运行 alpha 版本来查看端到端系统的运作情况。+OpenHands 目前正在开发中,但你已经可以运行 alpha 版本来查看端到端系统的运作情况。:::-[contributors-shield]: https://img.shields.io/github/contributors/opendevin/opendevin?style=for-the-badge-[contributors-url]: https://github.com/OpenDevin/OpenDevin/graphs/contributors-[forks-shield]: https://img.shields.io/github/forks/opendevin/opendevin?style=for-the-badge-[forks-url]: https://github.com/OpenDevin/OpenDevin/network/members-[stars-shield]: https://img.shields.io/github/stars/opendevin/opendevin?style=for-the-badge-[stars-url]: https://github.com/OpenDevin/OpenDevin/stargazers-[issues-shield]: https://img.shields.io/github/issues/opendevin/opendevin?style=for-the-badge-[issues-url]: https://github.com/OpenDevin/OpenDevin/issues-[license-shield]: https://img.shields.io/github/license/opendevin/opendevin?style=for-the-badge-[license-url]: https://github.com/OpenDevin/OpenDevin/blob/main/LICENSE+[contributors-shield]: https://img.shields.io/github/contributors/All-Hands-AI/OpenHands?style=for-the-badge+[contributors-url]: https://github.com/All-Hands-AI/OpenHands/graphs/contributors+[forks-shield]: https://img.shields.io/github/forks/All-Hands-AI/OpenHands?style=for-the-badge+[forks-url]: https://github.com/All-Hands-AI/OpenHands/network/members+[stars-shield]: https://img.shields.io/github/stars/All-Hands-AI/OpenHands?style=for-the-badge+[stars-url]: https://github.com/All-Hands-AI/OpenHands/stargazers+[issues-shield]: https://img.shields.io/github/issues/All-Hands-AI/OpenHands?style=for-the-badge+[issues-url]: https://github.com/All-Hands-AI/OpenHands/issues+[license-shield]: https://img.shields.io/github/license/All-Hands-AI/OpenHands?style=for-the-badge+[license-url]: https://github.com/All-Hands-AI/OpenHands/blob/main/LICENSEdiff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/azureLLMs.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/azureLLMs.mdindex 40341c3fe9..6377f7469f 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/azureLLMs.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/azureLLMs.md@@ -2,11 +2,11 @@## 完成-OpenDevin 使用 LiteLLM 进行完成调用。你可以在 Azure 的文档中找到他们的文档 [这里](https://docs.litellm.ai/docs/providers/azure)+OpenHands 使用 LiteLLM 进行完成调用。你可以在 Azure 的文档中找到他们的文档 [这里](https://docs.litellm.ai/docs/providers/azure)### Azure openai 配置-在运行 OpenDevin Docker 镜像时,你需要使用 `-e` 设置以下环境变量:+在运行 OpenHands Docker 镜像时,你需要使用 `-e` 设置以下环境变量:```LLM_BASE_URL="<azure-api-base-url>" # 示例: "https://openai-gpt-4-test-v-1.openai.azure.com/"@@ -16,19 +16,19 @@ LLM_API_VERSION = "<api-version>" # 示例: "2024-02-15-preview"```:::note-你可以在 Azure 的部署页面找到你的 ChatGPT 部署名称。它可能与默认或最初设置的聊天模型名称相同(例如 'GPT4-1106-preview'),但不一定相同。运行 OpenDevin,当你在浏览器中加载它时,进入设置并按照上述方式设置模型: "azure/<your-actual-gpt-deployment-name>"。如果列表中没有,请输入你自己的文本并保存。+你可以在 Azure 的部署页面找到你的 ChatGPT 部署名称。它可能与默认或最初设置的聊天模型名称相同(例如 'GPT4-1106-preview'),但不一定相同。运行 OpenHands,当你在浏览器中加载它时,进入设置并按照上述方式设置模型: "azure/<your-actual-gpt-deployment-name>"。如果列表中没有,请输入你自己的文本并保存。:::## 嵌入-OpenDevin 使用 llama-index 进行嵌入。你可以在 Azure 的文档中找到他们的文档 [这里](https://docs.llamaindex.ai/en/stable/api_reference/embeddings/azure_openai/)+OpenHands 使用 llama-index 进行嵌入。你可以在 Azure 的文档中找到他们的文档 [这里](https://docs.llamaindex.ai/en/stable/api_reference/embeddings/azure_openai/)### Azure openai 配置Azure OpenAI 嵌入使用的模型是 "text-embedding-ada-002"。你需要在你的 Azure 账户中为这个模型设置正确的部署名称。-在 Docker 中运行 OpenDevin 时,使用 `-e` 设置以下环境变量:+在 Docker 中运行 OpenHands 时,使用 `-e` 设置以下环境变量:```LLM_EMBEDDING_MODEL="azureopenai"diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/googleLLMs.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/googleLLMs.mdindex 8ccaea1ba0..7f0d27f44b 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/googleLLMs.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/googleLLMs.md@@ -2,14 +2,14 @@## Completion-OpenDevin 使用 LiteLLM 进行补全调用。以下资源与使用 OpenDevin 和 Google 的 LLM 相关:+OpenHands 使用 LiteLLM 进行补全调用。以下资源与使用 OpenHands 和 Google 的 LLM 相关:- [Gemini - Google AI Studio](https://docs.litellm.ai/docs/providers/gemini)- [VertexAI - Google Cloud Platform](https://docs.litellm.ai/docs/providers/vertex)### Gemini - Google AI Studio 配置-在运行 OpenDevin Docker 镜像时,通过 Google AI Studio 使用 Gemini,你需要使用 `-e` 设置以下环境变量:+在运行 OpenHands Docker 镜像时,通过 Google AI Studio 使用 Gemini,你需要使用 `-e` 设置以下环境变量:```GEMINI_API_KEY="<your-google-api-key>"@@ -18,7 +18,7 @@ LLM_MODEL="gemini/gemini-1.5-pro"### Vertex AI - Google Cloud Platform 配置-在运行 OpenDevin Docker 镜像时,通过 Google Cloud Platform 使用 Vertex AI,你需要使用 `-e` 设置以下环境变量:+在运行 OpenHands Docker 镜像时,通过 Google Cloud Platform 使用 Vertex AI,你需要使用 `-e` 设置以下环境变量:```GOOGLE_APPLICATION_CREDENTIALS="<json-dump-of-gcp-service-account-json>"diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/llms.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/llms.mdindex 5bfad5eb98..73c81c9e48 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/llms.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/llms.md@@ -4,16 +4,16 @@ sidebar_position: 2# 🤖 LLM 支持-OpenDevin 可以兼容任何 LLM 后端。+OpenHands 可以兼容任何 LLM 后端。关于所有可用 LM 提供商和模型的完整列表,请参阅[litellm 文档](https://docs.litellm.ai/docs/providers)。:::warning-OpenDevin 将向你配置的 LLM 发出许多提示。大多数这些 LLM 都是收费的——请务必设定支出限额并监控使用情况。+OpenHands 将向你配置的 LLM 发出许多提示。大多数这些 LLM 都是收费的——请务必设定支出限额并监控使用情况。:::`LLM_MODEL` 环境变量控制在编程交互中使用的模型。-但在使用 OpenDevin UI 时,你需要在设置窗口中选择你的模型(左下角的齿轮)。+但在使用 OpenHands UI 时,你需要在设置窗口中选择你的模型(左下角的齿轮)。某些 LLM 可能需要以下环境变量:@@ -23,7 +23,7 @@ OpenDevin 将向你配置的 LLM 发出许多提示。大多数这些 LLM 都是- `LLM_EMBEDDING_DEPLOYMENT_NAME`- `LLM_API_VERSION`-我们有一些指南,介绍了如何使用特定模型提供商运行 OpenDevin:+我们有一些指南,介绍了如何使用特定模型提供商运行 OpenHands:- [ollama](llms/local-llms)- [Azure](llms/azure-llms)@@ -35,12 +35,12 @@ OpenDevin 将向你配置的 LLM 发出许多提示。大多数这些 LLM 都是最好的模型是 GPT-4 和 Claude 3。目前的本地和开源模型远没有那么强大。当使用替代模型时,你可能会看到信息之间的长时间等待,-糟糕的响应,或关于 JSON格式错误的错误。OpenDevin+糟糕的响应,或关于 JSON格式错误的错误。OpenHands的强大程度依赖于其驱动的模型——幸运的是,我们团队的人员正在积极致力于构建更好的开源模型!## API 重试和速率限制-一些 LLM 有速率限制,可能需要重试操作。OpenDevin 会在收到 429 错误或 API 连接错误时自动重试请求。+一些 LLM 有速率限制,可能需要重试操作。OpenHands 会在收到 429 错误或 API 连接错误时自动重试请求。你可以设置 `LLM_NUM_RETRIES`,`LLM_RETRY_MIN_WAIT`,`LLM_RETRY_MAX_WAIT` 环境变量来控制重试次数和重试之间的时间。默认情况下,`LLM_NUM_RETRIES` 为 5,`LLM_RETRY_MIN_WAIT` 和 `LLM_RETRY_MAX_WAIT` 分别为 3 秒和 60 秒。diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/localLLMs.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/localLLMs.mdindex 4c065d7ffb..85ce3b8a95 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/localLLMs.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/localLLMs.md@@ -23,11 +23,11 @@ mistral:7b-instruct-v0.2-q4_K_M eb14864c7427 4.4 GB 2 weeks agostarcoder2:latest f67ae0f64584 1.7 GB 19 hours ago```-## 启动 OpenDevin+## 启动 OpenHands### Docker-使用[此处](../intro)的说明通过 Docker 启动 OpenDevin。+使用[此处](../intro)的说明通过 Docker 启动 OpenHands。但是在运行 `docker run` 时,您需要添加一些额外的参数:```bash@@ -39,7 +39,7 @@ starcoder2:latest f67ae0f64584 1.7 GB 19 hours ago例如:```bash-# 您希望 OpenDevin 修改的目录。必须是绝对路径!+# 您希望 OpenHands 修改的目录。必须是绝对路径!export WORKSPACE_BASE=$(pwd)/workspacedocker run \@@ -60,7 +60,7 @@ docker run \### 从源代码构建-使用[Development.md](https://github.com/OpenDevin/OpenDevin/blob/main/Development.md)中的说明构建 OpenDevin。+使用[Development.md](https://github.com/All-Hands-AI/OpenHands/blob/main/Development.md)中的说明构建 OpenHands。通过运行 `make setup-config` 确保 `config.toml` 存在,这将为您创建一个。在 `config.toml` 中,输入以下内容:```@@ -78,7 +78,7 @@ WORKSPACE_DIR="$(pwd)/workspace"## 选择您的模型-在 OpenDevin UI 中,点击左下角的设置齿轮。+在 OpenHands UI 中,点击左下角的设置齿轮。然后在 `Model` 输入中,输入 `ollama/codellama:7b`,或者您之前拉取的模型名称。如果它没有出现在下拉列表中,也没关系,只需输入即可。完成后点击保存。@@ -86,7 +86,7 @@ WORKSPACE_DIR="$(pwd)/workspace"## 配置 ollama 服务(WSL){#configuring-ollama-service-zh-Hans}-WSL 中 ollama 的默认配置仅为 localhost 提供服务。这意味着您无法从 docker 容器中访问它。比如,它不会与 OpenDevin 一起工作。首先让我们测试 ollama 是否正常运行。+WSL 中 ollama 的默认配置仅为 localhost 提供服务。这意味着您无法从 docker 容器中访问它。比如,它不会与 OpenHands 一起工作。首先让我们测试 ollama 是否正常运行。```bashollama list # 获取已安装模型列表@@ -98,7 +98,7 @@ curl http://localhost:11434/api/generate -d '{"model":"[NAME]","prompt":"hi"}'完成后,测试它是否允许“外部”请求,比如那些来自 docker 容器内的请求。```bash-docker ps # 获取正在运行的 docker 容器列表,最准确的测试选择 open devin sandbox 容器。+docker ps # 获取正在运行的 docker 容器列表,最准确的测试选择 OpenHands sandbox 容器。docker exec [CONTAINER ID] curl http://host.docker.internal:11434/api/generate -d '{"model":"[NAME]","prompt":"hi"}'#例如,docker exec cd9cc82f7a11 curl http://host.docker.internal:11434/api/generate -d '{"model":"codellama","prompt":"hi"}'```@@ -135,6 +135,6 @@ sudo systemctl restart ollama```bashollama list # 获取已安装模型列表-docker ps # 获取正在运行的 docker 容器列表,最准确的测试选择 open devin sandbox 容器。+docker ps # 获取正在运行的 docker 容器列表,最准确的测试选择 OpenHands sandbox 容器。docker exec [CONTAINER ID] curl http://host.docker.internal:11434/api/generate -d '{"model":"[NAME]","prompt":"hi"}'```diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/troubleshooting/troubleshooting.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/troubleshooting/troubleshooting.mdindex a6cb97ed3b..df673f6b92 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/troubleshooting/troubleshooting.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/troubleshooting/troubleshooting.md@@ -18,7 +18,7 @@ sidebar_position: 5## 无法连接到 Docker-[GitHub 问题](https://github.com/OpenDevin/OpenDevin/issues/1226)+[GitHub 问题](https://github.com/All-Hands-AI/OpenHands/issues/1226)### 症状@@ -32,7 +32,7 @@ docker.errors.DockerException: 获取服务器 API 版本时出错: ('连接中### 详情-OpenDevin 使用 Docker 容器来安全地完成工作,而不会破坏您的机器。+OpenHands 使用 Docker 容器来安全地完成工作,而不会破坏您的机器。### 解决方法@@ -43,7 +43,7 @@ OpenDevin 使用 Docker 容器来安全地完成工作,而不会破坏您的## 无法连接到 DockerSSHBox-[GitHub 问题](https://github.com/OpenDevin/OpenDevin/issues/1156)+[GitHub 问题](https://github.com/All-Hands-AI/OpenHands/issues/1156)### 症状@@ -55,18 +55,18 @@ pexpect.pxssh.ExceptionPxssh: Could not establish connection to host### 详情-默认情况下,OpenDevin 使用 SSH 连接到一个运行中的容器。在某些机器上,尤其是 Windows,这似乎会失败。+默认情况下,OpenHands 使用 SSH 连接到一个运行中的容器。在某些机器上,尤其是 Windows,这似乎会失败。### 解决方法* 重新启动您的计算机(有时会有用)* 确保拥有最新版本的 WSL 和 Docker* 检查您的 WSL 分发版也已更新-* 尝试[此重新安装指南](https://github.com/OpenDevin/OpenDevin/issues/1156#issuecomment-2064549427)+* 尝试[此重新安装指南](https://github.com/All-Hands-AI/OpenHands/issues/1156#issuecomment-2064549427)## 无法连接到 LLM-[GitHub 问题](https://github.com/OpenDevin/OpenDevin/issues/1208)+[GitHub 问题](https://github.com/All-Hands-AI/OpenHands/issues/1208)### 症状@@ -79,9 +79,9 @@ AttributeError: 'NoneType' object has no attribute 'request'### 详情-[GitHub 问题](https://github.com/OpenDevin/OpenDevin/issues?q=is%3Aissue+is%3Aopen+404)+[GitHub 问题](https://github.com/All-Hands-AI/OpenHands/issues?q=is%3Aissue+is%3Aopen+404)-这通常发生在本地 LLM 设置中,当 OpenDevin 无法连接到 LLM 服务器时。请参阅我们的 [本地 LLM 指南](llms/local-llms) 以获取更多信息。+这通常发生在本地 LLM 设置中,当 OpenHands 无法连接到 LLM 服务器时。请参阅我们的 [本地 LLM 指南](llms/local-llms) 以获取更多信息。### 解决方法@@ -171,19 +171,19 @@ export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring### 症状-通常情况下,当打开 UI 时,OpenDevin 会询问是否要恢复或开始新会话。但点击“恢复”仍然会开始一个全新的聊天。+通常情况下,当打开 UI 时,OpenHands 会询问是否要恢复或开始新会话。但点击“恢复”仍然会开始一个全新的聊天。### 详情-按今天的标准安装,会话数据存储在内存中。目前,如果 OpenDevin 的服务重启,以前的会话将失效(生成一个新秘密),因此无法恢复。+按今天的标准安装,会话数据存储在内存中。目前,如果 OpenHands 的服务重启,以前的会话将失效(生成一个新秘密),因此无法恢复。### 解决方法-* 通过编辑 OpenDevin 根文件夹中的 `config.toml` 文件,更改配置以使会话持久化,指定一个 `file_store` 和一个绝对路径的 `file_store_path`:+* 通过编辑 OpenHands 根文件夹中的 `config.toml` 文件,更改配置以使会话持久化,指定一个 `file_store` 和一个绝对路径的 `file_store_path`:```tomlfile_store="local"-file_store_path="/absolute/path/to/opendevin/cache/directory"+file_store_path="/absolute/path/to/openhands/cache/directory"```* 在您的 .bashrc 中添加一个固定的 JWT 秘密,如下所示,以便以前的会话 ID 可以被接受。diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/troubleshooting/windows.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/troubleshooting/windows.mdindex 8ec81dfca1..70cf95ca0d 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/troubleshooting/windows.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/troubleshooting/windows.md@@ -1,6 +1,6 @@# Windows 和 WSL 用户须知-OpenDevin 仅支持通过 [WSL](https://learn.microsoft.com/en-us/windows/wsl/install) 在 Windows 上运行。+OpenHands 仅支持通过 [WSL](https://learn.microsoft.com/en-us/windows/wsl/install) 在 Windows 上运行。请确保在 WSL 终端内运行所有命令。## 故障排除@@ -12,8 +12,8 @@ Docker 还需要启用 WSL 集成选项。### 建议:不要以 root 用户身份运行-出于安全原因,非常建议不要以 root 用户身份运行 OpenDevin,而是使用 UID 非零的用户身份运行。-此外,当以 root 身份运行时,不支持持久化沙箱,并且在启动 OpenDevin 时可能会出现相应消息。+出于安全原因,非常建议不要以 root 用户身份运行 OpenHands,而是使用 UID 非零的用户身份运行。+此外,当以 root 身份运行时,不支持持久化沙箱,并且在启动 OpenHands 时可能会出现相应消息。参考资料:@@ -21,12 +21,12 @@ Docker 还需要启用 WSL 集成选项。* [在 WSL 中设置默认用户](https://www.tenforums.com/tutorials/128152-set-default-user-windows-subsystem-linux-distro-windows-10-a.html#option2)关于第二个参考资料的小提示:对于 Ubuntu 用户,该命令实际上可能是 "ubuntupreview" 而不是 "ubuntu"。-### 创建 opendevin 用户失败+### 创建 openhands 用户失败如果您在设置过程中遇到以下错误:```sh-Exception: Failed to create opendevin user in sandbox: 'useradd: UID 0 is not unique'+Exception: Failed to create openhands user in sandbox: 'useradd: UID 0 is not unique'```您可以通过运行以下命令解决:diff --git a/docs/i18n/zh-Hans/docusaurus-theme-classic/navbar.json b/docs/i18n/zh-Hans/docusaurus-theme-classic/navbar.jsonindex 84e9b0ba64..61a66566f1 100644--- a/docs/i18n/zh-Hans/docusaurus-theme-classic/navbar.json+++ b/docs/i18n/zh-Hans/docusaurus-theme-classic/navbar.json@@ -1,10 +1,10 @@{"title": {- "message": "OpenDevin",+ "message": "OpenHands","description": "The title in the navbar"},"logo.alt": {- "message": "OpenDevin",+ "message": "OpenHands","description": "The alt text of navbar logo"},"item.label.Docs": {diff --git a/docs/modules/usage/about.md b/docs/modules/usage/about.mdindex d2752fea6b..8ace7ce023 100644--- a/docs/modules/usage/about.md+++ b/docs/modules/usage/about.md@@ -19,35 +19,35 @@ Achieving full replication of production-grade applications with LLMs is a compl## 🤝 How to Contribute-OpenDevin is a community-driven project, and we welcome contributions from everyone. Whether you're a developer, a researcher, or simply enthusiastic about advancing the field of software engineering with AI, there are many ways to get involved:+OpenHands is a community-driven project, and we welcome contributions from everyone. Whether you're a developer, a researcher, or simply enthusiastic about advancing the field of software engineering with AI, there are many ways to get involved:- **Code Contributions:** Help us develop the core functionalities, frontend interface, or sandboxing solutions.- **Research and Evaluation:** Contribute to our understanding of LLMs in software engineering, participate in evaluating the models, or suggest improvements.-- **Feedback and Testing:** Use the OpenDevin toolset, report bugs, suggest features, or provide feedback on usability.+- **Feedback and Testing:** Use the OpenHands toolset, report bugs, suggest features, or provide feedback on usability.-For details, please check [this document](https://github.com/OpenDevin/OpenDevin/blob/main/CONTRIBUTING.md).+For details, please check [this document](https://github.com/All-Hands-AI/OpenHands/blob/main/CONTRIBUTING.md).## 🤖 Join Our Community-We have both Slack workspace for the collaboration on building OpenDevin and Discord server for discussion about anything related, e.g., this project, LLM, agent, etc.+We have both Slack workspace for the collaboration on building OpenHands and Discord server for discussion about anything related, e.g., this project, LLM, agent, etc.-- [Slack workspace](https://join.slack.com/t/opendevin/shared_invite/zt-2ngejmfw6-9gW4APWOC9XUp1n~SiQ6iw)+- [Slack workspace](https://join.slack.com/t/openhands/shared_invite/zt-2ngejmfw6-9gW4APWOC9XUp1n~SiQ6iw)- [Discord server](https://discord.gg/ESHStjSjD4)If you would love to contribute, feel free to join our community. Let's simplify software engineering together!-🐚 **Code less, make more with OpenDevin.**+🐚 **Code less, make more with OpenHands.**-[](https://star-history.com/#OpenDevin/OpenDevin&Date)+[](https://star-history.com/#All-Hands-AI/OpenHands&Date)## 🛠️ Built With-OpenDevin is built using a combination of powerful frameworks and libraries, providing a robust foundation for its development. Here are the key technologies used in the project:+OpenHands is built using a combination of powerful frameworks and libraries, providing a robust foundation for its development. Here are the key technologies used in the project:       -Please note that the selection of these technologies is in progress, and additional technologies may be added or existing ones may be removed as the project evolves. We strive to adopt the most suitable and efficient tools to enhance the capabilities of OpenDevin.+Please note that the selection of these technologies is in progress, and additional technologies may be added or existing ones may be removed as the project evolves. We strive to adopt the most suitable and efficient tools to enhance the capabilities of OpenHands.## 📜 License-Distributed under the MIT License. See [our license](https://github.com/OpenDevin/OpenDevin/blob/main/LICENSE) for more information.+Distributed under the MIT License. See [our license](https://github.com/All-Hands-AI/OpenHands/blob/main/LICENSE) for more information.diff --git a/docs/modules/usage/agents.md b/docs/modules/usage/agents.mdindex f5ad0880f9..c4ba78d3f9 100644--- a/docs/modules/usage/agents.md+++ b/docs/modules/usage/agents.md@@ -18,18 +18,18 @@ The conceptual idea is illustrated below. At each turn, the agent can:- Execute any valid Linux `bash` command- Execute any valid `Python` code with [an interactive Python interpreter](https://ipython.org/). This is simulated through `bash` command, see plugin system below for more details.-+### Plugin System-To make the CodeAct agent more powerful with only access to `bash` action space, CodeAct agent leverages OpenDevin's plugin system:+To make the CodeAct agent more powerful with only access to `bash` action space, CodeAct agent leverages OpenHands's plugin system:-- [Jupyter plugin](https://github.com/OpenDevin/OpenDevin/tree/main/opendevin/runtime/plugins/jupyter): for IPython execution via bash command-- [SWE-agent tool plugin](https://github.com/OpenDevin/OpenDevin/tree/main/opendevin/runtime/plugins/swe_agent_commands): Powerful bash command line tools for software development tasks introduced by [swe-agent](https://github.com/princeton-nlp/swe-agent).+- [Jupyter plugin](https://github.com/All-Hands-AI/OpenHands/tree/main/openhands/runtime/plugins/jupyter): for IPython execution via bash command+- [SWE-agent tool plugin](https://github.com/All-Hands-AI/OpenHands/tree/main/openhands/runtime/plugins/swe_agent_commands): Powerful bash command line tools for software development tasks introduced by [swe-agent](https://github.com/princeton-nlp/swe-agent).### Demo-https://github.com/OpenDevin/OpenDevin/assets/38853559/f592a192-e86c-4f48-ad31-d69282d5f6ac+https://github.com/All-Hands-AI/OpenHands/assets/38853559/f592a192-e86c-4f48-ad31-d69282d5f6ac_Example of CodeActAgent with `gpt-4-turbo-2024-04-09` performing a data science task (linear regression)_diff --git a/docs/modules/usage/architecture/architecture.mdx b/docs/modules/usage/architecture/architecture.mdxindex b837e11596..b719d932b3 100644--- a/docs/modules/usage/architecture/architecture.mdx+++ b/docs/modules/usage/architecture/architecture.mdx@@ -5,8 +5,8 @@ sidebar_position: 7# 🏛️ System Architecture<div style={{ textAlign: 'center' }}>- <img src="https://github.com/OpenDevin/OpenDevin/assets/16201837/97d747e3-29d8-4ccb-8d34-6ad1adb17f38" alt="OpenDevin System Architecture Diagram Jul 4 2024" />- <p><em>OpenDevin System Architecture Diagram (July 4, 2024)</em></p>+ <img src="https://github.com/All-Hands-AI/OpenHands/assets/16201837/97d747e3-29d8-4ccb-8d34-6ad1adb17f38" alt="OpenHands System Architecture Diagram Jul 4 2024" />+ <p><em>OpenHands System Architecture Diagram (July 4, 2024)</em></p></div>This is a high-level overview of the system architecture. The system is divided into two main components: the frontend and the backend. The frontend is responsible for handling user interactions and displaying the results. The backend is responsible for handling the business logic and executing the agents.@@ -33,14 +33,14 @@ _**Disclaimer**: The backend architecture is a work in progress and is subject t## Prerequisites- - Running python environment in which opendevin is executable+ - Running python environment in which openhands is executable(according to the instructions in the README.md file in the root of the repository)- [py2puml](https://github.com/lucsorel/py2puml) installed## Steps1. Autogenerate the diagram by running the following command from the root of the repository:- `py2puml opendevin opendevin > docs/architecture/backend_architecture.puml`+ `py2puml openhands openhands > docs/architecture/backend_architecture.puml`2. Open the generated file in a PlantUML editor, e.g. Visual Studio Code with the PlantUML extension or [PlantText](https://www.planttext.com/)diff --git a/docs/modules/usage/architecture/runtime.md b/docs/modules/usage/architecture/runtime.mdindex 2b865ba293..fe292d90d9 100644--- a/docs/modules/usage/architecture/runtime.md+++ b/docs/modules/usage/architecture/runtime.md@@ -1,12 +1,12 @@# 📦 EventStream Runtime-The OpenDevin EventStream Runtime is the core component that enables secure and flexible execution of AI agent's action.+The OpenHands EventStream Runtime is the core component that enables secure and flexible execution of AI agent's action.It creates a sandboxed environment using Docker, where arbitrary code can be run safely without risking the host system.## Why do we need a sandboxed runtime?-OpenDevin needs to execute arbitrary code in a secure, isolated environment for several reasons:+OpenHands needs to execute arbitrary code in a secure, isolated environment for several reasons:1. Security: Executing untrusted code can pose significant risks to the host system. A sandboxed environment prevents malicious code from accessing or modifying the host system's resources.@@ -20,11 +20,11 @@ OpenDevin needs to execute arbitrary code in a secure, isolated environment for## How does our Runtime work?-The OpenDevin Runtime system uses a client-server architecture implemented with Docker containers. Here's an overview of how it works:+The OpenHands Runtime system uses a client-server architecture implemented with Docker containers. Here's an overview of how it works:```mermaidgraph TD- A[User-provided Custom Docker Image] --> B[OpenDevin Backend]+ A[User-provided Custom Docker Image] --> B[OpenHands Backend]B -->|Builds| C[OD Runtime Image]C -->|Launches| D[Runtime Client]D -->|Initializes| E[Browser]@@ -53,35 +53,35 @@ graph TD1. User Input: The user provides a custom base Docker image.-2. Image Building: OpenDevin builds a new Docker image (the "OD runtime image") based on the user-provided image. This new image includes OpenDevin-specific code, primarily the "runtime client."+2. Image Building: OpenHands builds a new Docker image (the "OD runtime image") based on the user-provided image. This new image includes OpenHands-specific code, primarily the "runtime client."-3. Container Launch: When OpenDevin starts, it launches a Docker container using the OD runtime image.+3. Container Launch: When OpenHands starts, it launches a Docker container using the OD runtime image.4. Client Initialization: The runtime client initializes inside the container, setting up necessary components like a bash shell and loading any specified plugins.-5. Communication: The OpenDevin backend (`runtime.py`) communicates with the runtime client over RESTful API, sending actions and receiving observations.+5. Communication: The OpenHands backend (`runtime.py`) communicates with the runtime client over RESTful API, sending actions and receiving observations.6. Action Execution: The runtime client receives actions from the backend, executes them in the sandboxed environment, and sends back observations.-7. Observation Return: The client sends execution results back to the OpenDevin backend as observations.+7. Observation Return: The client sends execution results back to the OpenHands backend as observations.The role of the client is crucial:-- It acts as an intermediary between the OpenDevin backend and the sandboxed environment.+- It acts as an intermediary between the OpenHands backend and the sandboxed environment.- It executes various types of actions (shell commands, file operations, Python code, etc.) safely within the container.- It manages the state of the sandboxed environment, including the current working directory and loaded plugins.- It formats and returns observations to the backend, ensuring a consistent interface for processing results.-## Advanced: How OpenDevin builds and maintains OD Runtime images+## Advanced: How OpenHands builds and maintains OD Runtime images-OpenDevin uses a sophisticated approach to build and manage runtime images. This process ensures efficiency, consistency, and flexibility in creating and maintaining Docker images for both production and development environments.+OpenHands uses a sophisticated approach to build and manage runtime images. This process ensures efficiency, consistency, and flexibility in creating and maintaining Docker images for both production and development environments.-Check out [relavant code](https://github.com/OpenDevin/OpenDevin/blob/main/opendevin/runtime/utils/runtime_build.py) if you are interested in more details.+Check out [relavant code](https://github.com/All-Hands-AI/OpenHands/blob/main/openhands/runtime/utils/runtime_build.py) if you are interested in more details.### Image Tagging System-OpenDevin uses a dual-tagging system for its runtime images to balance reproducibility with flexibility:+OpenHands uses a dual-tagging system for its runtime images to balance reproducibility with flexibility:1. Hash-based tag: `{target_image_repo}:{target_image_hash_tag}`Example: `od_runtime:abc123def456`@@ -94,10 +94,10 @@ OpenDevin uses a dual-tagging system for its runtime images to balance reproduciExample: `od_runtime:od_v0.8.3_ubuntu_tag_22.04`- This tag follows the format: `od_runtime:od_v{OD_VERSION}_{BASE_IMAGE_NAME}_tag_{BASE_IMAGE_TAG}`- - It represents the latest build for a particular base image and OpenDevin version combination.+ - It represents the latest build for a particular base image and OpenHands version combination.- This tag is updated whenever a new image is built from the same base image, even if the source code changes.-The hash-based tag ensures exact reproducibility, while the generic tag provides a stable reference to the latest version of a particular configuration. This dual-tagging approach allows OpenDevin to efficiently manage both development and production environments.+The hash-based tag ensures exact reproducibility, while the generic tag provides a stable reference to the latest version of a particular configuration. This dual-tagging approach allows OpenHands to efficiently manage both development and production environments.### Build Process@@ -110,7 +110,7 @@ The hash-based tag ensures exact reproducibility, while the generic tag provides2. Build Process:- a. Convert the base image name to an OD runtime image name.Example: `ubuntu:22.04` -> `od_runtime:od_v0.8.3_ubuntu_tag_22.04`- - b. Generate a build context (Dockerfile and OpenDevin source code) and calculate its hash.+ - b. Generate a build context (Dockerfile and OpenHands source code) and calculate its hash.- c. Check for an existing image with the calculated hash.- d. If not found, check for a recent compatible image to use as a base.- e. If no compatible image exists, build from scratch using the original base image.@@ -151,16 +151,16 @@ This approach ensures that:1. Identical source code and Dockerfile always produce the same image (via hash-based tags).2. The system can quickly rebuild images when minor changes occur (by leveraging recent compatible images).-3. The generic tag (e.g., `od_runtime:od_v0.8.3_ubuntu_tag_22.04`) always points to the latest build for a particular base image and OpenDevin version combination.+3. The generic tag (e.g., `od_runtime:od_v0.8.3_ubuntu_tag_22.04`) always points to the latest build for a particular base image and OpenHands version combination.-By using this method, OpenDevin maintains an efficient and flexible system for building and managing runtime images, adapting to both development needs and production requirements.+By using this method, OpenHands maintains an efficient and flexible system for building and managing runtime images, adapting to both development needs and production requirements.## Advanced: Runtime Plugin System-The OpenDevin Runtime supports a plugin system that allows for extending functionality and customizing the runtime environment. Plugins are initialized when the runtime client starts up.+The OpenHands Runtime supports a plugin system that allows for extending functionality and customizing the runtime environment. Plugins are initialized when the runtime client starts up.-Check [an example of Jupyter plugin here](https://github.com/OpenDevin/OpenDevin/blob/9c44d94cef32e6426ebd8deeeb52963153b2348a/opendevin/runtime/plugins/jupyter/__init__.py#L30-L63) if you want to implement your own plugin.+Check [an example of Jupyter plugin here](https://github.com/All-Hands-AI/OpenHands/blob/9c44d94cef32e6426ebd8deeeb52963153b2348a/openhands/runtime/plugins/jupyter/__init__.py#L30-L63) if you want to implement your own plugin.*More details about the Plugin system are still under construction - contributions are welcomed!*diff --git a/docs/modules/usage/feedback.md b/docs/modules/usage/feedback.mdindex b5b0152f7c..4e041acdfc 100644--- a/docs/modules/usage/feedback.md+++ b/docs/modules/usage/feedback.md@@ -4,11 +4,11 @@ sidebar_position: 5# ✅ Providing Feedback-When using OpenDevin, you will undoubtably encounter cases where things work well, and others where they don't. We encourage you to provide feedback when you use OpenDevin to help give feedback to the development team, and perhaps more importantly, create an open corpus of coding agent training examples -- Share-OpenDevin!+When using OpenHands, you will undoubtably encounter cases where things work well, and others where they don't. We encourage you to provide feedback when you use OpenHands to help give feedback to the development team, and perhaps more importantly, create an open corpus of coding agent training examples -- Share-OpenHands!## 📝 How to Provide Feedback-Providing feedback is easy! When you are using OpenDevin, you can press the thumbs-up or thumbs-down button at any point during your interaction with. You will be prompted to provide your email address (e.g. so we can contact you if we want to ask any follow-up questions), and you can choose whether you want to provide feedback publicly or privately.+Providing feedback is easy! When you are using OpenHands, you can press the thumbs-up or thumbs-down button at any point during your interaction with. You will be prompted to provide your email address (e.g. so we can contact you if we want to ask any follow-up questions), and you can choose whether you want to provide feedback publicly or privately.<iframe width="560" height="315" src="https://www.youtube.com/embed/5rFx-StMVV0?si=svo7xzp6LhGK_GXr" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>@@ -18,12 +18,12 @@ Providing feedback is easy! When you are using OpenDevin, you can press the thumWhen you submit data, you can submit it either publicly or privately.-* **Public** data will be distributed under the MIT License, like OpenDevin itself, and can be used by the community to train and test models. Obviously, feedback that you can make public will be more valuable for the community as a whole, so when you are not dealing with sensitive information, we would encourage you to choose this option!-* **Private** data will only be shared with the OpenDevin team for the purpose of improving OpenDevin.+* **Public** data will be distributed under the MIT License, like OpenHands itself, and can be used by the community to train and test models. Obviously, feedback that you can make public will be more valuable for the community as a whole, so when you are not dealing with sensitive information, we would encourage you to choose this option!+* **Private** data will only be shared with the OpenHands team for the purpose of improving OpenHands.### Who collects and stores the data?-The data is collected and stored by [All Hands AI](https://all-hands.dev), a company founded by OpenDevin maintainers to support and improve OpenDevin.+The data is collected and stored by [All Hands AI](https://all-hands.dev), a company founded by OpenHands maintainers to support and improve OpenHands.### How will public data be released?diff --git a/docs/modules/usage/how-to/custom-sandbox-guide.md b/docs/modules/usage/how-to/custom-sandbox-guide.mdindex 0a34037f7c..460de151f9 100644--- a/docs/modules/usage/how-to/custom-sandbox-guide.md+++ b/docs/modules/usage/how-to/custom-sandbox-guide.md@@ -1,6 +1,6 @@# Create and Use a Custom Docker Sandbox-The default OpenDevin sandbox comes with a [minimal ubuntu configuration](https://github.com/OpenDevin/OpenDevin/blob/main/containers/sandbox/Dockerfile).+The default OpenHands sandbox comes with a [minimal ubuntu configuration](https://github.com/All-Hands-AI/OpenHands/blob/main/containers/sandbox/Dockerfile).Your use case may need additional software installed by default.@@ -24,13 +24,13 @@ For a more feature-rich environment, you might consider using pre-built images l## Setup-Make sure you are able to run OpenDevin using the [Development.md](https://github.com/OpenDevin/OpenDevin/blob/main/Development.md) first.+Make sure you are able to run OpenHands using the [Development.md](https://github.com/All-Hands-AI/OpenHands/blob/main/Development.md) first.## Create Your Docker ImageTo create a custom docker image, it must be debian/ubuntu based.-For example, if we want OpenDevin to have access to the `node` binary, we would use the following Dockerfile:+For example, if we want OpenHands to have access to the `node` binary, we would use the following Dockerfile:```dockerfile# Start with latest ubuntu image@@ -53,20 +53,20 @@ docker build -t custom_image .This will produce a new image called ```custom_image``` that will be available in Docker Engine.-> Note that in the configuration described in this document, OpenDevin will run as user "opendevin" inside the sandbox and thus all packages installed via the docker file should be available to all users on the system, not just root.+> Note that in the configuration described in this document, OpenHands will run as user "openhands" inside the sandbox and thus all packages installed via the docker file should be available to all users on the system, not just root.>> Installing with apt-get above installs node for all users.## Specify your sandbox image in config.toml file-OpenDevin configuration occurs via the top-level `config.toml` file.+OpenHands configuration occurs via the top-level `config.toml` file.-Create a `config.toml` file in the OpenDevin directory and enter these contents:+Create a `config.toml` file in the OpenHands directory and enter these contents:```toml[core]workspace_base="./workspace"-run_as_devin=true+run_as_openhands=truesandbox_container_image="custom_image"```@@ -76,7 +76,7 @@ For `sandbox_container_image`, you can specify either:2. A pre-existing image from Docker Hub (e.g., `”node:20”` if you want a sandbox with Node.js pre-installed)## Run-Run OpenDevin by running ```make run``` in the top level directory.+Run OpenHands by running ```make run``` in the top level directory.Navigate to ```localhost:3001``` and check if your desired dependencies are available.@@ -86,18 +86,18 @@ Congratulations!## Technical Explanation-Please refer to [custom docker image section of the runtime documentation](https://docs.all-hands.dev/modules/usage/runtime#advanced-how-opendevin-builds-and-maintains-od-runtime-images) for more details.+Please refer to [custom docker image section of the runtime documentation](https://docs.all-hands.dev/modules/usage/runtime#advanced-how-openhands-builds-and-maintains-od-runtime-images) for more details.## Troubleshooting / Errors### Error: ```useradd: UID 1000 is not unique```-If you see this error in the console output it is because OpenDevin is trying to create the opendevin user in the sandbox with a UID of 1000, however this UID is already being used in the image (for some reason). To fix this change the sandbox_user_id field in the config.toml file to a different value:+If you see this error in the console output it is because OpenHands is trying to create the openhands user in the sandbox with a UID of 1000, however this UID is already being used in the image (for some reason). To fix this change the sandbox_user_id field in the config.toml file to a different value:```toml[core]workspace_base="./workspace"-run_as_devin=true+run_as_openhands=truesandbox_container_image="custom_image"sandbox_user_id="1001"```@@ -108,4 +108,4 @@ If you see an error about a port being in use or unavailable, try deleting all r## Discuss-For other issues or questions join the [Slack](https://join.slack.com/t/opendevin/shared_invite/zt-2ngejmfw6-9gW4APWOC9XUp1n~SiQ6iw) or [Discord](https://discord.gg/ESHStjSjD4) and ask!+For other issues or questions join the [Slack](https://join.slack.com/t/openhands/shared_invite/zt-2ngejmfw6-9gW4APWOC9XUp1n~SiQ6iw) or [Discord](https://discord.gg/ESHStjSjD4) and ask!diff --git a/docs/modules/usage/how-to/evaluation-harness.md b/docs/modules/usage/how-to/evaluation-harness.mdindex 90f5a3a774..0be253c74b 100644--- a/docs/modules/usage/how-to/evaluation-harness.md+++ b/docs/modules/usage/how-to/evaluation-harness.md@@ -1,12 +1,12 @@-# Contribute to OpenDevin Evaluation Harness+# Contribute to OpenHands Evaluation Harness-This guide provides an overview of how to integrate your own evaluation benchmark into the OpenDevin framework.+This guide provides an overview of how to integrate your own evaluation benchmark into the OpenHands framework.## Before everything begins: Setup Environment and LLM Configuration-Please follow instruction [here](https://github.com/OpenDevin/OpenDevin/blob/main/Development.md) to setup your local development environment and LLM.+Please follow instruction [here](https://github.com/All-Hands-AI/OpenHands/blob/main/Development.md) to setup your local development environment and LLM.-OpenDevin in development mode uses `config.toml` to keep track of most configurations.+OpenHands in development mode uses `config.toml` to keep track of most configurations.Here's an example configuration file you can use to define and use multiple LLMs:@@ -29,12 +29,12 @@ temperature = 0.0```-## How to use OpenDevin in the command line+## How to use OpenHands in the command line-OpenDevin can be run from the command line using the following format:+OpenHands can be run from the command line using the following format:```bash-poetry run python ./opendevin/core/main.py \+poetry run python ./openhands/core/main.py \-i <max_iterations> \-t "<task_description>" \-c <agent_class> \@@ -44,22 +44,22 @@ poetry run python ./opendevin/core/main.py \For example:```bash-poetry run python ./opendevin/core/main.py \+poetry run python ./openhands/core/main.py \-i 10 \-t "Write me a bash script that prints hello world." \-c CodeActAgent \-l llm```-This command runs OpenDevin with:+This command runs OpenHands with:- A maximum of 10 iterations- The specified task description- Using the CodeActAgent- With the LLM configuration defined in the `llm` section of your `config.toml` file-## How does OpenDevin work+## How does OpenHands work-The main entry point for OpenDevin is in `opendevin/core/main.py`. Here's a simplified flow of how it works:+The main entry point for OpenHands is in `openhands/core/main.py`. Here's a simplified flow of how it works:1. Parse command-line arguments and load the configuration.2. Create a runtime environment using `create_runtime()`.@@ -69,12 +69,12 @@ The main entry point for OpenDevin is in `opendevin/core/main.py`. Here's a simp- Executes the agent's task- Returns a final state when complete-The `run_controller()` function is the core of OpenDevin's execution. It manages the interaction between the agent, the runtime, and the task, handling things like user input simulation and event processing.+The `run_controller()` function is the core of OpenHands's execution. It manages the interaction between the agent, the runtime, and the task, handling things like user input simulation and event processing.## Easiest way to get started: Exploring Existing Benchmarks-We encourage you to review the various evaluation benchmarks available in the [`evaluation/` directory](https://github.com/OpenDevin/OpenDevin/blob/main/evaluation) of our repository.+We encourage you to review the various evaluation benchmarks available in the [`evaluation/` directory](https://github.com/All-Hands-AI/OpenHands/blob/main/evaluation) of our repository.To integrate your own benchmark, we suggest starting with the one that most closely resembles your needs. This approach can significantly streamline your integration process, allowing you to build upon existing structures and adapt them to your specific requirements.@@ -83,7 +83,7 @@ To integrate your own benchmark, we suggest starting with the one that most closTo create an evaluation workflow for your benchmark, follow these steps:-1. Import relevant OpenDevin utilities:+1. Import relevant OpenHands utilities:```pythonimport agenthubfrom evaluation.utils.shared import (@@ -94,18 +94,18 @@ To create an evaluation workflow for your benchmark, follow these steps:reset_logger_for_multiprocessing,run_evaluation,)- from opendevin.controller.state.state import State- from opendevin.core.config import (+ from openhands.controller.state.state import State+ from openhands.core.config import (AppConfig,SandboxConfig,get_llm_config_arg,parse_arguments,)- from opendevin.core.logger import opendevin_logger as logger- from opendevin.core.main import create_runtime, run_controller- from opendevin.events.action import CmdRunAction- from opendevin.events.observation import CmdOutputObservation, ErrorObservation- from opendevin.runtime.runtime import Runtime+ from openhands.core.logger import openhands_logger as logger+ from openhands.core.main import create_runtime, run_controller+ from openhands.events.action import CmdRunAction+ from openhands.events.observation import CmdOutputObservation, ErrorObservation+ from openhands.runtime.runtime import Runtime```2. Create a configuration:@@ -182,12 +182,12 @@ This workflow sets up the configuration, initializes the runtime environment, prRemember to customize the `get_instruction`, `your_user_response_function`, and `evaluate_agent_actions` functions according to your specific benchmark requirements.-By following this structure, you can create a robust evaluation workflow for your benchmark within the OpenDevin framework.+By following this structure, you can create a robust evaluation workflow for your benchmark within the OpenHands framework.## Understanding the `user_response_fn`-The `user_response_fn` is a crucial component in OpenDevin's evaluation workflow. It simulates user interaction with the agent, allowing for automated responses during the evaluation process. This function is particularly useful when you want to provide consistent, predefined responses to the agent's queries or actions.+The `user_response_fn` is a crucial component in OpenHands's evaluation workflow. It simulates user interaction with the agent, allowing for automated responses during the evaluation process. This function is particularly useful when you want to provide consistent, predefined responses to the agent's queries or actions.### Workflow and Interactiondiff --git a/docs/modules/usage/how-to/openshift-example.md b/docs/modules/usage/how-to/openshift-example.mdindex 8952f979bd..3ab3abd24e 100644--- a/docs/modules/usage/how-to/openshift-example.md+++ b/docs/modules/usage/how-to/openshift-example.md@@ -1,9 +1,9 @@-# Use OpenDevin in OpenShift/K8S+# Use OpenHands in OpenShift/K8SThere are different ways and scenarios that you can do, we're just mentioning one example here:1. Create a PV "as a cluster admin" to map workspace_base data and docker directory to the pod through the worker node.2. Create a PVC to be able to mount those PVs to the POD-3. Create a POD which contains two containers; the OpenDevin and Sandbox containers.+3. Create a POD which contains two containers; the OpenHands and Sandbox containers.## Steps to follow the above example.@@ -144,12 +144,12 @@ Sample POD yaml file below:apiVersion: v1kind: Podmetadata:- name: opendevin-app-2024+ name: openhands-app-2024labels:- app: opendevin-app-2024+ app: openhands-app-2024spec:containers:- - name: opendevin-app-2024+ - name: openhands-app-2024image: ghcr.io/opendevin/opendevin:0.7.1env:- name: SANDBOX_USER_ID@@ -163,8 +163,8 @@ spec:mountPath: /var/run/docker.sockports:- containerPort: 3000- - name: opendevin-sandbox-2024- image: ghcr.io/opendevin/sandbox:main+ - name: openhands-sandbox-2024+ image: ghcr.io/openhands/sandbox:mainports:- containerPort: 51963command: ["/usr/sbin/sshd", "-D", "-p 51963", "-o", "PermitRootLogin=yes"]@@ -180,43 +180,43 @@ spec:```bash# create the pod$ oc create -f pod.yaml-W0716 11:22:07.776271 107626 warnings.go:70] would violate PodSecurity "restricted:v1.24": allowPrivilegeEscalation != false (containers "opendevin-app-2024", "opendevin-sandbox-2024" must set securityContext.allowPrivilegeEscalation=false), unrestricted capabilities (containers "opendevin-app-2024", "opendevin-sandbox-2024" must set securityContext.capabilities.drop=["ALL"]), runAsNonRoot != true (pod or containers "opendevin-app-2024", "opendevin-sandbox-2024" must set securityContext.runAsNonRoot=true), seccompProfile (pod or containers "opendevin-app-2024", "opendevin-sandbox-2024" must set securityContext.seccompProfile.type to "RuntimeDefault" or "Localhost")-pod/opendevin-app-2024 created+W0716 11:22:07.776271 107626 warnings.go:70] would violate PodSecurity "restricted:v1.24": allowPrivilegeEscalation != false (containers "openhands-app-2024", "openhands-sandbox-2024" must set securityContext.allowPrivilegeEscalation=false), unrestricted capabilities (containers "openhands-app-2024", "openhands-sandbox-2024" must set securityContext.capabilities.drop=["ALL"]), runAsNonRoot != true (pod or containers "openhands-app-2024", "openhands-sandbox-2024" must set securityContext.runAsNonRoot=true), seccompProfile (pod or containers "openhands-app-2024", "openhands-sandbox-2024" must set securityContext.seccompProfile.type to "RuntimeDefault" or "Localhost")+pod/openhands-app-2024 created# Above warning can be ignored for now as we will not modify SCC restrictions.# review$ oc get podsNAME READY STATUS RESTARTS AGE-opendevin-app-2024 0/2 Pending 0 5s+openhands-app-2024 0/2 Pending 0 5s$ oc get podsNAME READY STATUS RESTARTS AGE-opendevin-app-2024 0/2 ContainerCreating 0 15s+openhands-app-2024 0/2 ContainerCreating 0 15s$ oc get eventsLAST SEEN TYPE REASON OBJECT MESSAGE38s Normal WaitForFirstConsumer persistentvolumeclaim/docker-pvc waiting for first consumer to be created before binding23s Normal ExternalProvisioning persistentvolumeclaim/docker-pvc waiting for a volume to be created, either by external provisioner "csi.hetzner.cloud" or manually created by system administrator-27s Normal Provisioning persistentvolumeclaim/docker-pvc External provisioner is provisioning volume for claim "opendevin/docker-pvc"+27s Normal Provisioning persistentvolumeclaim/docker-pvc External provisioner is provisioning volume for claim "openhands/docker-pvc"17s Normal ProvisioningSucceeded persistentvolumeclaim/docker-pvc Successfully provisioned volume pvc-2b1d223a-1c8f-4990-8e3d-68061a9ae252-16s Normal Scheduled pod/opendevin-app-2024 Successfully assigned opendevin/opendevin-app-2024 to worker1.hub.internal.blakane.com-9s Normal SuccessfulAttachVolume pod/opendevin-app-2024 AttachVolume.Attach succeeded for volume "pvc-2b1d223a-1c8f-4990-8e3d-68061a9ae252"-9s Normal SuccessfulAttachVolume pod/opendevin-app-2024 AttachVolume.Attach succeeded for volume "pvc-31f15b25-faad-4665-a25f-201a530379af"-6s Normal AddedInterface pod/opendevin-app-2024 Add eth0 [10.128.2.48/23] from openshift-sdn-6s Normal Pulled pod/opendevin-app-2024 Container image "ghcr.io/opendevin/opendevin:0.7.1" already present on machine-6s Normal Created pod/opendevin-app-2024 Created container opendevin-app-2024-6s Normal Started pod/opendevin-app-2024 Started container opendevin-app-2024-6s Normal Pulled pod/opendevin-app-2024 Container image "ghcr.io/opendevin/sandbox:main" already present on machine-5s Normal Created pod/opendevin-app-2024 Created container opendevin-sandbox-2024-5s Normal Started pod/opendevin-app-2024 Started container opendevin-sandbox-2024+16s Normal Scheduled pod/openhands-app-2024 Successfully assigned All-Hands-AI/OpenHands-app-2024 to worker1.hub.internal.blakane.com+9s Normal SuccessfulAttachVolume pod/openhands-app-2024 AttachVolume.Attach succeeded for volume "pvc-2b1d223a-1c8f-4990-8e3d-68061a9ae252"+9s Normal SuccessfulAttachVolume pod/openhands-app-2024 AttachVolume.Attach succeeded for volume "pvc-31f15b25-faad-4665-a25f-201a530379af"+6s Normal AddedInterface pod/openhands-app-2024 Add eth0 [10.128.2.48/23] from openshift-sdn+6s Normal Pulled pod/openhands-app-2024 Container image "ghcr.io/opendevin/opendevin:0.7.1" already present on machine+6s Normal Created pod/openhands-app-2024 Created container openhands-app-2024+6s Normal Started pod/openhands-app-2024 Started container openhands-app-2024+6s Normal Pulled pod/openhands-app-2024 Container image "ghcr.io/openhands/sandbox:main" already present on machine+5s Normal Created pod/openhands-app-2024 Created container openhands-sandbox-2024+5s Normal Started pod/openhands-app-2024 Started container openhands-sandbox-202483s Normal WaitForFirstConsumer persistentvolumeclaim/workspace-pvc waiting for first consumer to be created before binding-27s Normal Provisioning persistentvolumeclaim/workspace-pvc External provisioner is provisioning volume for claim "opendevin/workspace-pvc"+27s Normal Provisioning persistentvolumeclaim/workspace-pvc External provisioner is provisioning volume for claim "openhands/workspace-pvc"17s Normal ProvisioningSucceeded persistentvolumeclaim/workspace-pvc Successfully provisioned volume pvc-31f15b25-faad-4665-a25f-201a530379af$ oc get podsNAME READY STATUS RESTARTS AGE-opendevin-app-2024 2/2 Running 0 23s+openhands-app-2024 2/2 Running 0 23s$ oc get pvcNAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE@@ -230,21 +230,21 @@ Sample service creation command below:```bash# create the service of type NodePort-$ oc create svc nodeport opendevin-app-2024 --tcp=3000:3000-service/opendevin-app-2024 created+$ oc create svc nodeport openhands-app-2024 --tcp=3000:3000+service/openhands-app-2024 created# review$ oc get svcNAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE-opendevin-app-2024 NodePort 172.30.225.42 <none> 3000:30495/TCP 4s+openhands-app-2024 NodePort 172.30.225.42 <none> 3000:30495/TCP 4s-$ oc describe svc opendevin-app-2024-Name: opendevin-app-2024-Namespace: opendevin-Labels: app=opendevin-app-2024+$ oc describe svc openhands-app-2024+Name: openhands-app-2024+Namespace: openhands+Labels: app=openhands-app-2024Annotations: <none>-Selector: app=opendevin-app-2024+Selector: app=openhands-app-2024Type: NodePortIP Family Policy: SingleStackIP Families: IPv4@@ -259,7 +259,7 @@ External Traffic Policy: ClusterEvents: <none>```-6. Connect to OpenDevin UI, configure the Agent, then test:+6. Connect to OpenHands UI, configure the Agent, then test:@@ -293,4 +293,4 @@ RUN git --version## Discuss-For other issues or questions join the [Slack](https://join.slack.com/t/opendevin/shared_invite/zt-2ngejmfw6-9gW4APWOC9XUp1n~SiQ6iw) or [Discord](https://discord.gg/ESHStjSjD4) and ask!+For other issues or questions join the [Slack](https://join.slack.com/t/openhands/shared_invite/zt-2ngejmfw6-9gW4APWOC9XUp1n~SiQ6iw) or [Discord](https://discord.gg/ESHStjSjD4) and ask!diff --git a/docs/modules/usage/intro.mdx b/docs/modules/usage/intro.mdxindex b571f80cfd..92255b920e 100644--- a/docs/modules/usage/intro.mdx+++ b/docs/modules/usage/intro.mdx@@ -2,47 +2,47 @@sidebar_position: 1----# 💻 OpenDevin+# 💻 OpenHands-OpenDevin is an **autonomous AI software engineer** capable of executing complex engineering tasks and collaborating actively with users on software development projects.+OpenHands is an **autonomous AI software engineer** capable of executing complex engineering tasks and collaborating actively with users on software development projects.This project is fully open-source, so you can use and modify it however you like.:::tip-Explore the codebase of OpenDevin on [GitHub](https://github.com/OpenDevin/OpenDevin) or join one of our communities!+Explore the codebase of OpenHands on [GitHub](https://github.com/All-Hands-AI/OpenHands) or join one of our communities!-<a href="https://github.com/OpenDevin/OpenDevin/graphs/contributors">+<a href="https://github.com/All-Hands-AI/OpenHands/graphs/contributors"><img- src="https://img.shields.io/github/contributors/opendevin/opendevin?style=for-the-badge"+ src="https://img.shields.io/github/contributors/All-Hands-AI/OpenHands?style=for-the-badge"alt="Contributors"/></a>-<a href="https://github.com/OpenDevin/OpenDevin/network/members">+<a href="https://github.com/All-Hands-AI/OpenHands/network/members"><img- src="https://img.shields.io/github/forks/opendevin/opendevin?style=for-the-badge"+ src="https://img.shields.io/github/forks/All-Hands-AI/OpenHands?style=for-the-badge"alt="Forks"/></a>-<a href="https://github.com/OpenDevin/OpenDevin/stargazers">+<a href="https://github.com/All-Hands-AI/OpenHands/stargazers"><img- src="https://img.shields.io/github/stars/opendevin/opendevin?style=for-the-badge"+ src="https://img.shields.io/github/stars/All-Hands-AI/OpenHands?style=for-the-badge"alt="Stargazers"/></a>-<a href="https://github.com/OpenDevin/OpenDevin/issues">+<a href="https://github.com/All-Hands-AI/OpenHands/issues"><img- src="https://img.shields.io/github/issues/opendevin/opendevin?style=for-the-badge"+ src="https://img.shields.io/github/issues/All-Hands-AI/OpenHands?style=for-the-badge"alt="Issues"/></a><br></br>-<a href="https://github.com/OpenDevin/OpenDevin/blob/main/LICENSE">+<a href="https://github.com/All-Hands-AI/OpenHands/blob/main/LICENSE"><img- src="https://img.shields.io/github/license/opendevin/opendevin?style=for-the-badge"+ src="https://img.shields.io/github/license/All-Hands-AI/OpenHands?style=for-the-badge"alt="MIT License"/></a><br></br>-<a href="https://join.slack.com/t/opendevin/shared_invite/zt-2ngejmfw6-9gW4APWOC9XUp1n~SiQ6iw">+<a href="https://join.slack.com/t/openhands/shared_invite/zt-2ngejmfw6-9gW4APWOC9XUp1n~SiQ6iw"><imgsrc="https://img.shields.io/badge/Slack-Join%20Us-red?logo=slack&logoColor=white&style=for-the-badge"alt="Join our Slack community"@@ -57,15 +57,15 @@ Explore the codebase of OpenDevin on [GitHub](https://github.com/OpenDevin/OpenD:::## 🛠️ Getting Started-[Check out the getting started guide on Github](https://github.com/OpenDevin/OpenDevin?tab=readme-ov-file#-getting-started)+[Check out the getting started guide on Github](https://github.com/All-Hands-AI/OpenHands?tab=readme-ov-file#-getting-started)-[contributors-shield]: https://img.shields.io/github/contributors/opendevin/opendevin?style=for-the-badge-[contributors-url]: https://github.com/OpenDevin/OpenDevin/graphs/contributors-[forks-shield]: https://img.shields.io/github/forks/opendevin/opendevin?style=for-the-badge-[forks-url]: https://github.com/OpenDevin/OpenDevin/network/members-[stars-shield]: https://img.shields.io/github/stars/opendevin/opendevin?style=for-the-badge-[stars-url]: https://github.com/OpenDevin/OpenDevin/stargazers-[issues-shield]: https://img.shields.io/github/issues/opendevin/opendevin?style=for-the-badge-[issues-url]: https://github.com/OpenDevin/OpenDevin/issues-[license-shield]: https://img.shields.io/github/license/opendevin/opendevin?style=for-the-badge-[license-url]: https://github.com/OpenDevin/OpenDevin/blob/main/LICENSE+[contributors-shield]: https://img.shields.io/github/contributors/All-Hands-AI/OpenHands?style=for-the-badge+[contributors-url]: https://github.com/All-Hands-AI/OpenHands/graphs/contributors+[forks-shield]: https://img.shields.io/github/forks/All-Hands-AI/OpenHands?style=for-the-badge+[forks-url]: https://github.com/All-Hands-AI/OpenHands/network/members+[stars-shield]: https://img.shields.io/github/stars/All-Hands-AI/OpenHands?style=for-the-badge+[stars-url]: https://github.com/All-Hands-AI/OpenHands/stargazers+[issues-shield]: https://img.shields.io/github/issues/All-Hands-AI/OpenHands?style=for-the-badge+[issues-url]: https://github.com/All-Hands-AI/OpenHands/issues+[license-shield]: https://img.shields.io/github/license/All-Hands-AI/OpenHands?style=for-the-badge+[license-url]: https://github.com/All-Hands-AI/OpenHands/blob/main/LICENSEdiff --git a/docs/modules/usage/llms/azure-llms.md b/docs/modules/usage/llms/azure-llms.mdindex 7ec4bc77f4..ee9595029a 100644--- a/docs/modules/usage/llms/azure-llms.md+++ b/docs/modules/usage/llms/azure-llms.md@@ -2,11 +2,11 @@## Completion-OpenDevin uses LiteLLM for completion calls. You can find their documentation on Azure [here](https://docs.litellm.ai/docs/providers/azure)+OpenHands uses LiteLLM for completion calls. You can find their documentation on Azure [here](https://docs.litellm.ai/docs/providers/azure)### Azure openai configs-When running the OpenDevin Docker image, you'll need to set the following environment variables using `-e`:+When running the OpenHands Docker image, you'll need to set the following environment variables using `-e`:```LLM_BASE_URL="<azure-api-base-url>" # e.g. "https://openai-gpt-4-test-v-1.openai.azure.com/"@@ -27,26 +27,26 @@ docker run -it \-v /var/run/docker.sock:/var/run/docker.sock \-p 3000:3000 \--add-host host.docker.internal:host-gateway \---name opendevin-app-$(date +%Y%m%d%H%M%S) \+--name openhands-app-$(date +%Y%m%d%H%M%S) \ghcr.io/opendevin/opendevin```-You can set the LLM_MODEL and LLM_API_KEY in the OpenDevin UI itself.+You can set the LLM_MODEL and LLM_API_KEY in the OpenHands UI itself.:::note-You can find your ChatGPT deployment name on the deployments page in Azure. It could be the same with the chat model name (e.g. 'GPT4-1106-preview'), by default or initially set, but it doesn't have to be the same. Run opendevin, and when you load it in the browser, go to Settings and set model as above: "azure/<your-actual-gpt-deployment-name>". If it's not in the list, enter your own text and save it.+You can find your ChatGPT deployment name on the deployments page in Azure. It could be the same with the chat model name (e.g. 'GPT4-1106-preview'), by default or initially set, but it doesn't have to be the same. Run openhands, and when you load it in the browser, go to Settings and set model as above: "azure/<your-actual-gpt-deployment-name>". If it's not in the list, enter your own text and save it.:::## Embeddings-OpenDevin uses llama-index for embeddings. You can find their documentation on Azure [here](https://docs.llamaindex.ai/en/stable/api_reference/embeddings/azure_openai/)+OpenHands uses llama-index for embeddings. You can find their documentation on Azure [here](https://docs.llamaindex.ai/en/stable/api_reference/embeddings/azure_openai/)### Azure openai configsThe model used for Azure OpenAI embeddings is "text-embedding-ada-002".You need the correct deployment name for this model in your Azure account.-When running OpenDevin in Docker, set the following environment variables using `-e`:+When running OpenHands in Docker, set the following environment variables using `-e`:```LLM_EMBEDDING_MODEL="azureopenai"diff --git a/docs/modules/usage/llms/google-llms.md b/docs/modules/usage/llms/google-llms.mdindex d0bbbcff45..31789a5fb3 100644--- a/docs/modules/usage/llms/google-llms.md+++ b/docs/modules/usage/llms/google-llms.md@@ -2,14 +2,14 @@## Completion-OpenDevin uses LiteLLM for completion calls. The following resources are relevant for using OpenDevin with Google's LLMs+OpenHands uses LiteLLM for completion calls. The following resources are relevant for using OpenHands with Google's LLMs- [Gemini - Google AI Studio](https://docs.litellm.ai/docs/providers/gemini)- [VertexAI - Google Cloud Platform](https://docs.litellm.ai/docs/providers/vertex)### Gemini - Google AI Studio Configs-To use Gemini through Google AI Studio when running the OpenDevin Docker image, you'll need to set the following environment variables using `-e`:+To use Gemini through Google AI Studio when running the OpenHands Docker image, you'll need to set the following environment variables using `-e`:```GEMINI_API_KEY="<your-google-api-key>"@@ -18,7 +18,7 @@ LLM_MODEL="gemini/gemini-1.5-pro"### Vertex AI - Google Cloud Platform Configs-To use Vertex AI through Google Cloud Platform when running the OpenDevin Docker image, you'll need to set the following environment variables using `-e`:+To use Vertex AI through Google Cloud Platform when running the OpenHands Docker image, you'll need to set the following environment variables using `-e`:```GOOGLE_APPLICATION_CREDENTIALS="<json-dump-of-gcp-service-account-json>"diff --git a/docs/modules/usage/llms/llms.md b/docs/modules/usage/llms/llms.mdindex 378c69d241..d4ceb021a0 100644--- a/docs/modules/usage/llms/llms.md+++ b/docs/modules/usage/llms/llms.md@@ -4,16 +4,16 @@ sidebar_position: 2# 🤖 LLM Backends-OpenDevin can work with any LLM backend.+OpenHands can work with any LLM backend.For a full list of the LM providers and models available, please consult the[litellm documentation](https://docs.litellm.ai/docs/providers).:::warning-OpenDevin will issue many prompts to the LLM you configure. Most of these LLMs cost money--be sure to set spending limits and monitor usage.+OpenHands will issue many prompts to the LLM you configure. Most of these LLMs cost money--be sure to set spending limits and monitor usage.:::The `LLM_MODEL` environment variable controls which model is used in programmatic interactions.-But when using the OpenDevin UI, you'll need to choose your model in the settings window.+But when using the OpenHands UI, you'll need to choose your model in the settings window.The following environment variables might be necessary for some LLMs/providers:@@ -24,7 +24,7 @@ The following environment variables might be necessary for some LLMs/providers:- `LLM_API_VERSION`- `LLM_DROP_PARAMS`-We have a few guides for running OpenDevin with specific model providers:+We have a few guides for running OpenHands with specific model providers:- [ollama](llms/local-llms)- [Azure](llms/azure-llms)@@ -36,12 +36,12 @@ If you're using another provider, we encourage you to open a PR to share your seThe best models are GPT-4 and Claude 3. Current local and open source models arenot nearly as powerful. When using an alternative model,you may see long wait times between messages,-poor responses, or errors about malformed JSON. OpenDevin+poor responses, or errors about malformed JSON. OpenHandscan only be as powerful as the models driving it--fortunately folks on our teamare actively working on building better open source models!## API retries and rate limits-Some LLMs have rate limits and may require retries. OpenDevin will automatically retry requests if it receives a 429 error or API connection error.+Some LLMs have rate limits and may require retries. OpenHands will automatically retry requests if it receives a 429 error or API connection error.You can set `LLM_NUM_RETRIES`, `LLM_RETRY_MIN_WAIT`, `LLM_RETRY_MAX_WAIT` environment variables to control the number of retries and the time between retries.By default, `LLM_NUM_RETRIES` is 5 and `LLM_RETRY_MIN_WAIT`, `LLM_RETRY_MAX_WAIT` are 3 seconds and 60 seconds respectively.diff --git a/docs/modules/usage/llms/local-llms.md b/docs/modules/usage/llms/local-llms.mdindex 0e0b737249..dc139a944f 100644--- a/docs/modules/usage/llms/local-llms.md+++ b/docs/modules/usage/llms/local-llms.md@@ -24,11 +24,11 @@ mistral:7b-instruct-v0.2-q4_K_M eb14864c7427 4.4 GB 2 weeks agostarcoder2:latest f67ae0f64584 1.7 GB 19 hours ago```-## Start OpenDevin+## Start OpenHands### Docker-Use the instructions [here](../intro) to start OpenDevin using Docker.+Use the instructions [here](../intro) to start OpenHands using Docker.But when running `docker run`, you'll need to add a few more arguments:```bash@@ -43,7 +43,7 @@ LLM_OLLAMA_BASE_URL is optional. If you set it, it will be used to show the avaiExample:```bash-# The directory you want OpenDevin to modify. MUST be an absolute path!+# The directory you want OpenHands to modify. MUST be an absolute path!export WORKSPACE_BASE=$(pwd)/workspacedocker run \@@ -65,7 +65,7 @@ You should now be able to connect to `http://localhost:3000/`### Build from Source-Use the instructions in [Development.md](https://github.com/OpenDevin/OpenDevin/blob/main/Development.md) to build OpenDevin.+Use the instructions in [Development.md](https://github.com/All-Hands-AI/OpenHands/blob/main/Development.md) to build OpenHands.Make sure `config.toml` is there by running `make setup-config` which will create one for you. In `config.toml`, enter the followings:```@@ -87,7 +87,7 @@ Done! Now you can start Devin by: `make run` without Docker. You now should be a## Select your Model-In the OpenDevin UI, click on the Settings wheel in the bottom-left corner.+In the OpenHands UI, click on the Settings wheel in the bottom-left corner.Then in the `Model` input, enter `ollama/codellama:7b`, or the name of the model you pulled earlier.If it doesn’t show up in a dropdown, that’s fine, just type it in. Click Save when you’re done.@@ -95,7 +95,7 @@ And now you're ready to go!## Configuring the ollama service (WSL) {#configuring-ollama-service-wsl-en}-The default configuration for ollama in WSL only serves localhost. This means you can't reach it from a docker container. eg. it wont work with OpenDevin. First let's test that ollama is running correctly.+The default configuration for ollama in WSL only serves localhost. This means you can't reach it from a docker container. eg. it wont work with OpenHands. First let's test that ollama is running correctly.```bashollama list # get list of installed models@@ -107,7 +107,7 @@ curl http://localhost:11434/api/generate -d '{"model":"[NAME]","prompt":"hi"}'Once that is done, test that it allows "outside" requests, like those from inside a docker container.```bash-docker ps # get list of running docker containers, for most accurate test choose the open devin sandbox container.+docker ps # get list of running docker containers, for most accurate test choose the OpenHands sandbox container.docker exec [CONTAINER ID] curl http://host.docker.internal:11434/api/generate -d '{"model":"[NAME]","prompt":"hi"}'#ex. docker exec cd9cc82f7a11 curl http://host.docker.internal:11434/api/generate -d '{"model":"codellama","prompt":"hi"}'```@@ -144,7 +144,7 @@ Finally test that ollama is accessible from within the container```bashollama list # get list of installed models-docker ps # get list of running docker containers, for most accurate test choose the open devin sandbox container.+docker ps # get list of running docker containers, for most accurate test choose the OpenHands sandbox container.docker exec [CONTAINER ID] curl http://host.docker.internal:11434/api/generate -d '{"model":"[NAME]","prompt":"hi"}'```diff --git a/docs/modules/usage/troubleshooting/troubleshooting.md b/docs/modules/usage/troubleshooting/troubleshooting.mdindex cb45bbe020..cbda01fa19 100644--- a/docs/modules/usage/troubleshooting/troubleshooting.md+++ b/docs/modules/usage/troubleshooting/troubleshooting.md@@ -29,7 +29,7 @@ If you're running on Windows and having trouble, check out our [guide for Window### Unable to connect to Docker-[GitHub Issue](https://github.com/OpenDevin/OpenDevin/issues/1226)+[GitHub Issue](https://github.com/All-Hands-AI/OpenHands/issues/1226)**Symptoms**@@ -43,7 +43,7 @@ docker.errors.DockerException: Error while fetching server API version: ('Connec**Details**-OpenDevin uses a Docker container to do its work safely, without potentially breaking your machine.+OpenHands uses a Docker container to do its work safely, without potentially breaking your machine.**Workarounds**@@ -55,7 +55,7 @@ OpenDevin uses a Docker container to do its work safely, without potentially bre---### Unable to connect to SSH box-[GitHub Issue](https://github.com/OpenDevin/OpenDevin/issues/1156)+[GitHub Issue](https://github.com/All-Hands-AI/OpenHands/issues/1156)**Symptoms**@@ -67,7 +67,7 @@ pexpect.pxssh.ExceptionPxssh: Could not establish connection to host**Details**-By default, OpenDevin connects to a running container using SSH. On some machines,+By default, OpenHands connects to a running container using SSH. On some machines,especially Windows, this seems to fail.**Workarounds**@@ -75,12 +75,12 @@ especially Windows, this seems to fail.* Restart your computer (sometimes it does work)* Be sure to have the latest versions of WSL and Docker* Check that your distribution in WSL is up to date as well-* Try [this reinstallation guide](https://github.com/OpenDevin/OpenDevin/issues/1156#issuecomment-2064549427)+* Try [this reinstallation guide](https://github.com/All-Hands-AI/OpenHands/issues/1156#issuecomment-2064549427)---### Unable to connect to LLM-[GitHub Issue](https://github.com/OpenDevin/OpenDevin/issues/1208)+[GitHub Issue](https://github.com/All-Hands-AI/OpenHands/issues/1208)**Symptoms**@@ -93,9 +93,9 @@ AttributeError: 'NoneType' object has no attribute 'request'**Details**-[GitHub Issues](https://github.com/OpenDevin/OpenDevin/issues?q=is%3Aissue+is%3Aopen+404)+[GitHub Issues](https://github.com/All-Hands-AI/OpenHands/issues?q=is%3Aissue+is%3Aopen+404)-This usually happens with *local* LLM setups, when OpenDevin can't connect to the LLM server.+This usually happens with *local* LLM setups, when OpenHands can't connect to the LLM server.See our guide for [local LLMs](llms/local-llms) for more information.**Workarounds**@@ -190,24 +190,24 @@ export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring**Symptoms**-OpenDevin usually asks whether to resume or start a new session when opening the UI.+OpenHands usually asks whether to resume or start a new session when opening the UI.But clicking "Resume" still starts a fresh new chat.**Details**With a standard installation as of today session data is stored in memory.-Currently, if OpenDevin's service is restarted, previous sessions become+Currently, if OpenHands's service is restarted, previous sessions becomeinvalid (a new secret is generated) and thus not recoverable.**Workarounds*** Change configuration to make sessions persistent by editing the `config.toml`-file (in OpenDevin's root folder) by specifying a `file_store` and an+file (in OpenHands's root folder) by specifying a `file_store` and anabsolute `file_store_path`:```tomlfile_store="local"-file_store_path="/absolute/path/to/opendevin/cache/directory"+file_store_path="/absolute/path/to/openhands/cache/directory"```* Add a fixed jwt secret in your .bashrc, like below, so that previous session id'sdiff --git a/docs/modules/usage/troubleshooting/windows.md b/docs/modules/usage/troubleshooting/windows.mdindex 213903a013..44184b8da1 100644--- a/docs/modules/usage/troubleshooting/windows.md+++ b/docs/modules/usage/troubleshooting/windows.md@@ -1,14 +1,14 @@# Notes for Windows and WSL Users-OpenDevin only supports Windows via [WSL](https://learn.microsoft.com/en-us/windows/wsl/install).+OpenHands only supports Windows via [WSL](https://learn.microsoft.com/en-us/windows/wsl/install).Please be sure to run all commands inside your WSL terminal.## Troubleshooting### Recommendation: Do not run as root user-For security reasons, it is highly recommended to not run OpenDevin as the root user, but a user with a non-zero UID.-In addition, persistent sandboxes won't be supported when running as root and during start of OpenDevin an appropriate message may appear.+For security reasons, it is highly recommended to not run OpenHands as the root user, but a user with a non-zero UID.+In addition, persistent sandboxes won't be supported when running as root and during start of OpenHands an appropriate message may appear.References:@@ -23,12 +23,12 @@ If you are using Docker Desktop, make sure to start it before calling any dockerDocker also needs to have the WSL integration option activated.----### Failed to create opendevin user+### Failed to create openhands userIf you encounter the following error during setup:```sh-Exception: Failed to create opendevin user in sandbox: 'useradd: UID 0 is not unique'+Exception: Failed to create openhands user in sandbox: 'useradd: UID 0 is not unique'```You can resolve it by running:diff --git a/docs/modules/usage/upgrade-guide.md b/docs/modules/usage/upgrade-guide.mdindex 0052da062c..f9d71757e4 100644--- a/docs/modules/usage/upgrade-guide.md+++ b/docs/modules/usage/upgrade-guide.md@@ -9,11 +9,11 @@ sidebar_position: 8### Config breaking changesIn this release we introduced a few breaking changes to backend configurations.-If you have only been using OpenDevin via frontend (web GUI), nothing needs+If you have only been using OpenHands via frontend (web GUI), nothing needsto be taken care of.Here's a list of breaking changes in configs. They only apply to users who-use OpenDevin CLI via `main.py`. For more detail, see [#2756](https://github.com/OpenDevin/OpenDevin/pull/2756).+use OpenHands CLI via `main.py`. For more detail, see [#2756](https://github.com/All-Hands-AI/OpenHands/pull/2756).#### Removal of --model-name option from main.pydiff --git a/docs/src/components/CustomFooter.tsx b/docs/src/components/CustomFooter.tsxindex 23b36d6ec2..95b2bab971 100644--- a/docs/src/components/CustomFooter.tsx+++ b/docs/src/components/CustomFooter.tsx@@ -9,7 +9,7 @@ function CustomFooter() {<div className="footer-content"><div className="footer-top"><div className="footer-title">- <Translate id="footer.title">OpenDevin</Translate>+ <Translate id="footer.title">OpenHands</Translate></div><div className="footer-link"><a href="/modules/usage/intro">@@ -19,20 +19,20 @@ function CustomFooter() {</div><div className="footer-icons">- <a href="https://join.slack.com/t/opendevin/shared_invite/zt-2ngejmfw6-9gW4APWOC9XUp1n~SiQ6iw" target="_blank" rel="noopener noreferrer">+ <a href="https://join.slack.com/t/openhands/shared_invite/zt-2ngejmfw6-9gW4APWOC9XUp1n~SiQ6iw" target="_blank" rel="noopener noreferrer"><FaSlack /></a><a href="https://discord.gg/ESHStjSjD4" target="_blank" rel="noopener noreferrer"><FaDiscord /></a>- <a href="https://github.com/OpenDevin/OpenDevin" target="_blank" rel="noopener noreferrer">+ <a href="https://github.com/All-Hands-AI/OpenHands" target="_blank" rel="noopener noreferrer"><FaGithub /></a></div><div className="footer-bottom"><p><Translate id="footer.copyright" values={{ year: new Date().getFullYear() }}>- {'Copyright © {year} OpenDevin'}+ {'Copyright © {year} OpenHands'}</Translate></p></div>diff --git a/docs/src/components/HomepageHeader/HomepageHeader.tsx b/docs/src/components/HomepageHeader/HomepageHeader.tsxindex 10445eab8f..7eeb132f0d 100644--- a/docs/src/components/HomepageHeader/HomepageHeader.tsx+++ b/docs/src/components/HomepageHeader/HomepageHeader.tsx@@ -18,10 +18,10 @@ export function HomepageHeader() {<p className="header-subtitle">{siteConfig.tagline}</p><div className="header-links">- <a href="https://github.com/OpenDevin/OpenDevin">+ <a href="https://github.com/All-Hands-AI/OpenHands"><img src="https://img.shields.io/badge/Code-Github-purple?logo=github&logoColor=white&style=for-the-badge" alt="Code" /></a>- <a href="https://join.slack.com/t/opendevin/shared_invite/zt-2i1iqdag6-bVmvamiPA9EZUu7oCO6KhA">+ <a href="https://join.slack.com/t/openhands/shared_invite/zt-2i1iqdag6-bVmvamiPA9EZUu7oCO6KhA"><img src="https://img.shields.io/badge/Slack-Join%20Us-red?logo=slack&logoColor=white&style=for-the-badge" alt="Join our Slack community" /></a><a href="https://discord.gg/ESHStjSjD4">@@ -31,7 +31,7 @@ export function HomepageHeader() {<a href="https://arxiv.org/abs/2407.16741"><img src="https://img.shields.io/badge/Paper-%20on%20Arxiv-red?logo=arxiv&style=for-the-badge" alt="Paper on Arxiv" /></a>- <a href="https://huggingface.co/spaces/OpenDevin/evaluation">+ <a href="https://huggingface.co/spaces/OpenHands/evaluation"><img src="https://img.shields.io/badge/Evaluation-Benchmark%20on%20HF%20Space-green?logo=huggingface&style=for-the-badge" alt="Evaluation Benchmark" /></a></div>diff --git a/docs/static/img/backend_architecture.puml b/docs/static/img/backend_architecture.pumlindex 8b51e49b15..d85242c749 100644--- a/docs/static/img/backend_architecture.puml+++ b/docs/static/img/backend_architecture.puml@@ -1,88 +1,88 @@-@startuml opendevin+@startuml openhands!pragma useIntermediatePackages false-class opendevin.action.agent.AgentEchoAction {+class openhands.action.agent.AgentEchoAction {content: strrunnable: boolaction: str}-class opendevin.action.agent.AgentFinishAction {+class openhands.action.agent.AgentFinishAction {runnable: boolaction: str}-class opendevin.observation.AgentMessageObservation {+class openhands.observation.AgentMessageObservation {role: strobservation: str}-class opendevin.action.agent.AgentSummarizeAction {+class openhands.action.agent.AgentSummarizeAction {summary: straction: str}-class opendevin.action.agent.AgentThinkAction {+class openhands.action.agent.AgentThinkAction {thought: strrunnable: boolaction: str}-class opendevin.action.base.ExecutableAction {+class openhands.action.base.ExecutableAction {}-class opendevin.action.base.NotExecutableAction {+class openhands.action.base.NotExecutableAction {}-class opendevin.observation.Observation {+class openhands.observation.Observation {content: str}-class opendevin.action.base.Action {+class openhands.action.base.Action {}-class opendevin.action.base.NullAction {+class openhands.action.base.NullAction {action: str}-class opendevin.action.bash.CmdRunAction {+class openhands.action.bash.CmdRunAction {command: straction: str}-class opendevin.action.browse.BrowseURLAction {+class openhands.action.browse.BrowseURLAction {url: straction: str}-class opendevin.observation.BrowserOutputObservation {+class openhands.observation.BrowserOutputObservation {url: strstatus_code: interror: boolobservation: str}-class opendevin.action.fileop.FileReadAction {+class openhands.action.fileop.FileReadAction {path: straction: str}-class opendevin.observation.FileReadObservation {+class openhands.observation.FileReadObservation {path: strobservation: str}-class opendevin.action.fileop.FileWriteAction {+class openhands.action.fileop.FileWriteAction {path: strcontents: straction: str}-class opendevin.observation.FileWriteObservation {+class openhands.observation.FileWriteObservation {path: strobservation: str}-class opendevin.action.tasks.AddTaskAction {+class openhands.action.tasks.AddTaskAction {parent: strgoal: strsubtasks: listaction: str}-class opendevin.action.tasks.ModifyTaskAction {+class openhands.action.tasks.ModifyTaskAction {id: strstate: straction: str}-abstract class opendevin.agent.Agent {+abstract class openhands.agent.Agent {_registry: Dict[str, Type[Agent]] {static}llm: LLM_complete: None}-class opendevin.llm.llm.LLM {+class openhands.llm.llm.LLM {model: Noneapi_key: Nonebase_url: None@@ -91,7 +91,7 @@ class opendevin.llm.llm.LLM {_debug_id: None_completion: None}-class opendevin.controller.agent_controller.AgentController {+class openhands.controller.agent_controller.AgentController {agent: Agentmax_iterations: intworkdir: str@@ -100,35 +100,35 @@ class opendevin.controller.agent_controller.AgentController {plan: Plancallbacks: List[Callable]}-class opendevin.observation.AgentErrorObservation {+class openhands.observation.AgentErrorObservation {observation: str}-class opendevin.controller.command_manager.CommandManager {+class openhands.controller.command_manager.CommandManager {directory: Noneshell: None}-class opendevin.observation.NullObservation {+class openhands.observation.NullObservation {observation: str}-class opendevin.plan.Plan {+class openhands.plan.Plan {main_goal: str {static}task: Task {static}main_goal: strtask: None}-class opendevin.state.State {+class openhands.state.State {plan: Planiteration: inthistory: List[Tuple[Action, Observation]]updated_info: List[Tuple[Action, Observation]]}-class opendevin.observation.CmdOutputObservation {+class openhands.observation.CmdOutputObservation {command_id: intcommand: strexit_code: intobservation: str}-class opendevin.sandbox.sandbox.DockerInteractive {+class openhands.sandbox.sandbox.DockerInteractive {instance_id: Noneinstance_id: Noneworkspace_dir: None@@ -138,11 +138,11 @@ class opendevin.sandbox.sandbox.DockerInteractive {container_image: Nonecontainer_name: None}-class opendevin.observation.UserMessageObservation {+class openhands.observation.UserMessageObservation {role: strobservation: str}-class opendevin.plan.Task {+class openhands.plan.Task {id: str {static}goal: str {static}parent: Task | None {static}@@ -154,49 +154,49 @@ class opendevin.plan.Task {subtasks: None}-class opendevin.server.session.Session {+class openhands.server.session.Session {websocket: Nonecontroller: Optional[AgentController]agent: Optional[Agent]agent_task: None}-opendevin.action.base.ExecutableAction <|-- opendevin.action.agent.AgentEchoAction-opendevin.action.base.NotExecutableAction <|-- opendevin.action.agent.AgentFinishAction-opendevin.observation.Observation <|-- opendevin.observation.AgentMessageObservation-opendevin.action.base.NotExecutableAction <|-- opendevin.action.agent.AgentSummarizeAction-opendevin.action.base.NotExecutableAction <|-- opendevin.action.agent.AgentThinkAction-opendevin.action.base.Action <|-- opendevin.action.base.ExecutableAction-opendevin.action.base.Action <|-- opendevin.action.base.NotExecutableAction-opendevin.action.base.NotExecutableAction <|-- opendevin.action.base.NullAction-opendevin.action.base.ExecutableAction <|-- opendevin.action.bash.CmdRunAction-opendevin.action.base.ExecutableAction <|-- opendevin.action.browse.BrowseURLAction-opendevin.observation.Observation <|-- opendevin.observation.BrowserOutputObservation-opendevin.action.base.ExecutableAction <|-- opendevin.action.fileop.FileReadAction-opendevin.observation.Observation <|-- opendevin.observation.FileReadObservation-opendevin.action.base.ExecutableAction <|-- opendevin.action.fileop.FileWriteAction-opendevin.observation.Observation <|-- opendevin.observation.FileWriteObservation-opendevin.action.base.NotExecutableAction <|-- opendevin.action.tasks.AddTaskAction-opendevin.action.base.NotExecutableAction <|-- opendevin.action.tasks.ModifyTaskAction-opendevin.agent.Agent *-- opendevin.agent.Agent-opendevin.agent.Agent *-- opendevin.llm.llm.LLM-opendevin.controller.agent_controller.AgentController *-- opendevin.agent.Agent-opendevin.observation.Observation <|-- opendevin.observation.AgentErrorObservation-opendevin.observation.Observation <|-- opendevin.observation.NullObservation-opendevin.plan.Plan *-- opendevin.plan.Task-opendevin.state.State *-- opendevin.plan.Plan-opendevin.state.State *-- opendevin.observation.CmdOutputObservation-opendevin.state.State *-- opendevin.action.base.Action-opendevin.state.State *-- opendevin.observation.Observation-opendevin.observation.Observation <|-- opendevin.observation.CmdOutputObservation-opendevin.observation.Observation <|-- opendevin.observation.UserMessageObservation-opendevin.plan.Task *-- opendevin.plan.Task-opendevin.server.session.Session *-- opendevin.controller.agent_controller.AgentController-opendevin.server.session.Session *-- opendevin.agent.Agent-opendevin.controller.agent_controller.AgentController -> opendevin.state.State-opendevin.controller.agent_controller.AgentController -> opendevin.plan.Plan-opendevin.controller.agent_controller.AgentController -> opendevin.controller.command_manager.CommandManager-opendevin.controller.command_manager.CommandManager -> opendevin.sandbox.sandbox.DockerInteractive+openhands.action.base.ExecutableAction <|-- openhands.action.agent.AgentEchoAction+openhands.action.base.NotExecutableAction <|-- openhands.action.agent.AgentFinishAction+openhands.observation.Observation <|-- openhands.observation.AgentMessageObservation+openhands.action.base.NotExecutableAction <|-- openhands.action.agent.AgentSummarizeAction+openhands.action.base.NotExecutableAction <|-- openhands.action.agent.AgentThinkAction+openhands.action.base.Action <|-- openhands.action.base.ExecutableAction+openhands.action.base.Action <|-- openhands.action.base.NotExecutableAction+openhands.action.base.NotExecutableAction <|-- openhands.action.base.NullAction+openhands.action.base.ExecutableAction <|-- openhands.action.bash.CmdRunAction+openhands.action.base.ExecutableAction <|-- openhands.action.browse.BrowseURLAction+openhands.observation.Observation <|-- openhands.observation.BrowserOutputObservation+openhands.action.base.ExecutableAction <|-- openhands.action.fileop.FileReadAction+openhands.observation.Observation <|-- openhands.observation.FileReadObservation+openhands.action.base.ExecutableAction <|-- openhands.action.fileop.FileWriteAction+openhands.observation.Observation <|-- openhands.observation.FileWriteObservation+openhands.action.base.NotExecutableAction <|-- openhands.action.tasks.AddTaskAction+openhands.action.base.NotExecutableAction <|-- openhands.action.tasks.ModifyTaskAction+openhands.agent.Agent *-- openhands.agent.Agent+openhands.agent.Agent *-- openhands.llm.llm.LLM+openhands.controller.agent_controller.AgentController *-- openhands.agent.Agent+openhands.observation.Observation <|-- openhands.observation.AgentErrorObservation+openhands.observation.Observation <|-- openhands.observation.NullObservation+openhands.plan.Plan *-- openhands.plan.Task+openhands.state.State *-- openhands.plan.Plan+openhands.state.State *-- openhands.observation.CmdOutputObservation+openhands.state.State *-- openhands.action.base.Action+openhands.state.State *-- openhands.observation.Observation+openhands.observation.Observation <|-- openhands.observation.CmdOutputObservation+openhands.observation.Observation <|-- openhands.observation.UserMessageObservation+openhands.plan.Task *-- openhands.plan.Task+openhands.server.session.Session *-- openhands.controller.agent_controller.AgentController+openhands.server.session.Session *-- openhands.agent.Agent+openhands.controller.agent_controller.AgentController -> openhands.state.State+openhands.controller.agent_controller.AgentController -> openhands.plan.Plan+openhands.controller.agent_controller.AgentController -> openhands.controller.command_manager.CommandManager+openhands.controller.command_manager.CommandManager -> openhands.sandbox.sandbox.DockerInteractivefooter Based on f3fda42; Generated by //py2puml//@endumldiff --git a/docs/static/img/backend_architecture.svg b/docs/static/img/backend_architecture.svgindex 744b49f2fd..bef2dbd8ca 100644--- a/docs/static/img/backend_architecture.svg+++ b/docs/static/img/backend_architecture.svg@@ -1 +1 @@-<?xml version="1.0" encoding="us-ascii" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" contentStyleType="text/css" height="1227px" preserveAspectRatio="none" style="width:5978px;height:1227px;background:#003153;" version="1.1" viewBox="0 0 5978 1227" width="5978px" zoomAndPan="magnify"><defs/><g><rect fill="#003153" height="1227" style="stroke:none;stroke-width:1.0;" width="5978" x="0" y="0"/><!--cluster opendevin--><g id="cluster_opendevin"><path d="M13.5,11 L96.5,11 A3.75,3.75 0 0 1 99,13.5 L106,33.2969 L5968.5,33.2969 A2.5,2.5 0 0 1 5971,35.7969 L5971,1189 A2.5,2.5 0 0 1 5968.5,1191.5 L13.5,1191.5 A2.5,2.5 0 0 1 11,1189 L11,13.5 A2.5,2.5 0 0 1 13.5,11 " fill="#003153" style="stroke:#D9D3D0;stroke-width:1.0;"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="11" x2="106" y1="33.2969" y2="33.2969"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="82" x="15" y="25.9951">opendevin</text></g><!--cluster action--><g id="cluster_action"><path d="M1055.5,538 L1108.5,538 A3.75,3.75 0 0 1 1111,540.5 L1118,560.2969 L3852.5,560.2969 A2.5,2.5 0 0 1 3855,562.7969 L3855,1165 A2.5,2.5 0 0 1 3852.5,1167.5 L1055.5,1167.5 A2.5,2.5 0 0 1 1053,1165 L1053,540.5 A2.5,2.5 0 0 1 1055.5,538 " fill="#003153" style="stroke:#D9D3D0;stroke-width:1.0;"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="1053" x2="1118" y1="560.2969" y2="560.2969"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="52" x="1057" y="552.9951">action</text></g><!--cluster agent--><g id="cluster_agent"><path d="M1507.5,991.5 L1555.5,991.5 A3.75,3.75 0 0 1 1558,994 L1565,1013.7969 L2509.5,1013.7969 A2.5,2.5 0 0 1 2512,1016.2969 L2512,1133 A2.5,2.5 0 0 1 2509.5,1135.5 L1507.5,1135.5 A2.5,2.5 0 0 1 1505,1133 L1505,994 A2.5,2.5 0 0 1 1507.5,991.5 " fill="#003153" style="stroke:#D9D3D0;stroke-width:1.0;"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="1505" x2="1565" y1="1013.7969" y2="1013.7969"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="47" x="1509" y="1006.4951">agent</text></g><!--cluster base--><g id="cluster_base"><path d="M1079.5,581 L1118.5,581 A3.75,3.75 0 0 1 1121,583.5 L1128,603.2969 L1478.5,603.2969 A2.5,2.5 0 0 1 1481,605.7969 L1481,1116.5 A2.5,2.5 0 0 1 1478.5,1119 L1079.5,1119 A2.5,2.5 0 0 1 1077,1116.5 L1077,583.5 A2.5,2.5 0 0 1 1079.5,581 " fill="#003153" style="stroke:#D9D3D0;stroke-width:1.0;"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="1077" x2="1128" y1="603.2969" y2="603.2969"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="38" x="1081" y="595.9951">base</text></g><!--cluster bash--><g id="cluster_bash"><path d="M2538.5,991.5 L2578.5,991.5 A3.75,3.75 0 0 1 2581,994 L2588,1013.7969 L2868.5,1013.7969 A2.5,2.5 0 0 1 2871,1016.2969 L2871,1133 A2.5,2.5 0 0 1 2868.5,1135.5 L2538.5,1135.5 A2.5,2.5 0 0 1 2536,1133 L2536,994 A2.5,2.5 0 0 1 2538.5,991.5 " fill="#003153" style="stroke:#D9D3D0;stroke-width:1.0;"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="2536" x2="2588" y1="1013.7969" y2="1013.7969"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="39" x="2540" y="1006.4951">bash</text></g><!--cluster browse--><g id="cluster_browse"><path d="M2897.5,999.5 L2956.5,999.5 A3.75,3.75 0 0 1 2959,1002 L2966,1021.7969 L3078.5,1021.7969 A2.5,2.5 0 0 1 3081,1024.2969 L3081,1125 A2.5,2.5 0 0 1 3078.5,1127.5 L2897.5,1127.5 A2.5,2.5 0 0 1 2895,1125 L2895,1002 A2.5,2.5 0 0 1 2897.5,999.5 " fill="#003153" style="stroke:#D9D3D0;stroke-width:1.0;"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="2895" x2="2966" y1="1021.7969" y2="1021.7969"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="58" x="2899" y="1014.4951">browse</text></g><!--cluster fileop--><g id="cluster_fileop"><path d="M3107.5,991.5 L3154.5,991.5 A3.75,3.75 0 0 1 3157,994 L3164,1013.7969 L3445.5,1013.7969 A2.5,2.5 0 0 1 3448,1016.2969 L3448,1133 A2.5,2.5 0 0 1 3445.5,1135.5 L3107.5,1135.5 A2.5,2.5 0 0 1 3105,1133 L3105,994 A2.5,2.5 0 0 1 3107.5,991.5 " fill="#003153" style="stroke:#D9D3D0;stroke-width:1.0;"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="3105" x2="3164" y1="1013.7969" y2="1013.7969"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="46" x="3109" y="1006.4951">fileop</text></g><!--cluster tasks--><g id="cluster_tasks"><path d="M3474.5,983.5 L3520.5,983.5 A3.75,3.75 0 0 1 3523,986 L3530,1005.7969 L3828.5,1005.7969 A2.5,2.5 0 0 1 3831,1008.2969 L3831,1141 A2.5,2.5 0 0 1 3828.5,1143.5 L3474.5,1143.5 A2.5,2.5 0 0 1 3472,1141 L3472,986 A2.5,2.5 0 0 1 3474.5,983.5 " fill="#003153" style="stroke:#D9D3D0;stroke-width:1.0;"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="3472" x2="3530" y1="1005.7969" y2="1005.7969"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="45" x="3476" y="998.4951">tasks</text></g><!--cluster observation--><g id="cluster_observation"><path d="M3881.5,573 L3979.5,573 A3.75,3.75 0 0 1 3982,575.5 L3989,595.2969 L5944.5,595.2969 A2.5,2.5 0 0 1 5947,597.7969 L5947,916 A2.5,2.5 0 0 1 5944.5,918.5 L3881.5,918.5 A2.5,2.5 0 0 1 3879,916 L3879,575.5 A2.5,2.5 0 0 1 3881.5,573 " fill="#003153" style="stroke:#D9D3D0;stroke-width:1.0;"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="3879" x2="3989" y1="595.2969" y2="595.2969"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="97" x="3883" y="587.9951">observation</text></g><!--cluster agent--><g id="cluster_agent"><path d="M511.5,556.5 L559.5,556.5 A3.75,3.75 0 0 1 562,559 L569,578.7969 L798.5,578.7969 A2.5,2.5 0 0 1 801,581.2969 L801,698 A2.5,2.5 0 0 1 798.5,700.5 L511.5,700.5 A2.5,2.5 0 0 1 509,698 L509,559 A2.5,2.5 0 0 1 511.5,556.5 " fill="#003153" style="stroke:#D9D3D0;stroke-width:1.0;"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="509" x2="569" y1="578.7969" y2="578.7969"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="47" x="513" y="571.4951">agent</text></g><!--cluster llm--><g id="cluster_llm"><path d="M558.5,734 L614.5,734 A3.75,3.75 0 0 1 617,736.5 L624,756.2969 L733.5,756.2969 A2.5,2.5 0 0 1 736,758.7969 L736,940.5 A2.5,2.5 0 0 1 733.5,943 L558.5,943 A2.5,2.5 0 0 1 556,940.5 L556,736.5 A2.5,2.5 0 0 1 558.5,734 " fill="#003153" style="stroke:#D9D3D0;stroke-width:1.0;"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="556" x2="624" y1="756.2969" y2="756.2969"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="55" x="560" y="748.9951">llm.llm</text></g><!--cluster controller--><g id="cluster_controller"><path d="M531.5,238 L612.5,238 A3.75,3.75 0 0 1 615,240.5 L622,260.2969 L1120.5,260.2969 A2.5,2.5 0 0 1 1123,262.7969 L1123,511.5 A2.5,2.5 0 0 1 1120.5,514 L531.5,514 A2.5,2.5 0 0 1 529,511.5 L529,240.5 A2.5,2.5 0 0 1 531.5,238 " fill="#003153" style="stroke:#D9D3D0;stroke-width:1.0;"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="529" x2="622" y1="260.2969" y2="260.2969"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="80" x="533" y="252.9951">controller</text></g><!--cluster agent_controller--><g id="cluster_agent_controller"><path d="M773.5,281 L908.5,281 A3.75,3.75 0 0 1 911,283.5 L918,303.2969 L1096.5,303.2969 A2.5,2.5 0 0 1 1099,305.7969 L1099,487.5 A2.5,2.5 0 0 1 1096.5,490 L773.5,490 A2.5,2.5 0 0 1 771,487.5 L771,283.5 A2.5,2.5 0 0 1 773.5,281 " fill="#003153" style="stroke:#D9D3D0;stroke-width:1.0;"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="771" x2="918" y1="303.2969" y2="303.2969"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="134" x="775" y="295.9951">agent_controller</text></g><!--cluster command_manager--><g id="cluster_command_manager"><path d="M555.5,321.5 L713.5,321.5 A3.75,3.75 0 0 1 716,324 L723,343.7969 L744.5,343.7969 A2.5,2.5 0 0 1 747,346.2969 L747,447 A2.5,2.5 0 0 1 744.5,449.5 L555.5,449.5 A2.5,2.5 0 0 1 553,447 L553,324 A2.5,2.5 0 0 1 555.5,321.5 " fill="#003153" style="stroke:#D9D3D0;stroke-width:1.0;"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="553" x2="723" y1="343.7969" y2="343.7969"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="157" x="557" y="336.4951">command_manager</text></g><!--cluster plan--><g id="cluster_plan"><path d="M827.5,548.5 L863.5,548.5 A3.75,3.75 0 0 1 866,551 L873,570.7969 L1026.5,570.7969 A2.5,2.5 0 0 1 1029,573.2969 L1029,957 A2.5,2.5 0 0 1 1026.5,959.5 L827.5,959.5 A2.5,2.5 0 0 1 825,957 L825,551 A2.5,2.5 0 0 1 827.5,548.5 " fill="#003153" style="stroke:#D9D3D0;stroke-width:1.0;"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="825" x2="873" y1="570.7969" y2="570.7969"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="35" x="829" y="563.4951">plan</text></g><!--cluster state--><g id="cluster_state"><path d="M1153.5,297.5 L1198.5,297.5 A3.75,3.75 0 0 1 1201,300 L1208,319.7969 L1612.5,319.7969 A2.5,2.5 0 0 1 1615,322.2969 L1615,471 A2.5,2.5 0 0 1 1612.5,473.5 L1153.5,473.5 A2.5,2.5 0 0 1 1151,471 L1151,300 A2.5,2.5 0 0 1 1153.5,297.5 " fill="#003153" style="stroke:#D9D3D0;stroke-width:1.0;"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="1151" x2="1208" y1="319.7969" y2="319.7969"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="44" x="1155" y="312.4951">state</text></g><!--cluster sandbox--><g id="cluster_sandbox"><path d="M37.5,264.5 L179.5,264.5 A3.75,3.75 0 0 1 182,267 L189,286.7969 L482.5,286.7969 A2.5,2.5 0 0 1 485,289.2969 L485,673.5 A2.5,2.5 0 0 1 482.5,676 L37.5,676 A2.5,2.5 0 0 1 35,673.5 L35,267 A2.5,2.5 0 0 1 37.5,264.5 " fill="#003153" style="stroke:#D9D3D0;stroke-width:1.0;"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="35" x2="189" y1="286.7969" y2="286.7969"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="141" x="39" y="279.4951">sandbox.sandbox</text></g><!--cluster session--><g id="cluster_session"><path d="M568.5,54 L685.5,54 A3.75,3.75 0 0 1 688,56.5 L695,76.2969 L877.5,76.2969 A2.5,2.5 0 0 1 880,78.7969 L880,211.5 A2.5,2.5 0 0 1 877.5,214 L568.5,214 A2.5,2.5 0 0 1 566,211.5 L566,56.5 A2.5,2.5 0 0 1 568.5,54 " fill="#003153" style="stroke:#D9D3D0;stroke-width:1.0;"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="566" x2="695" y1="76.2969" y2="76.2969"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="116" x="570" y="68.9951">server.session</text></g><!--class AgentEchoAction--><g id="elem_AgentEchoAction"><rect codeLine="4" fill="#003153" height="92.8906" id="AgentEchoAction" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="154" x="2342" y="1026.5"/><ellipse cx="2355" cy="1040.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M2357.3438,1036.1719 C2356.4063,1035.7344 2355.8125,1035.5938 2354.9375,1035.5938 C2352.3125,1035.5938 2350.3125,1037.6719 2350.3125,1040.3906 L2350.3125,1041.5156 C2350.3125,1044.0938 2352.4219,1045.9844 2355.3125,1045.9844 C2356.5313,1045.9844 2357.6875,1045.6875 2358.4375,1045.1406 C2359.0156,1044.7344 2359.3438,1044.2813 2359.3438,1043.8906 C2359.3438,1043.4375 2358.9531,1043.0469 2358.4844,1043.0469 C2358.2656,1043.0469 2358.0625,1043.125 2357.875,1043.3125 C2357.4219,1043.7969 2357.4219,1043.7969 2357.2344,1043.8906 C2356.8125,1044.1563 2356.125,1044.2813 2355.3594,1044.2813 C2353.3125,1044.2813 2352.0156,1043.1875 2352.0156,1041.4844 L2352.0156,1040.3906 C2352.0156,1038.6094 2353.2656,1037.2969 2355,1037.2969 C2355.5781,1037.2969 2356.1875,1037.4531 2356.6563,1037.7031 C2357.1406,1037.9844 2357.3125,1038.2031 2357.4063,1038.6094 C2357.4688,1039.0156 2357.5,1039.1406 2357.6406,1039.2656 C2357.7813,1039.4063 2358.0156,1039.5156 2358.2344,1039.5156 C2358.5,1039.5156 2358.7656,1039.375 2358.9375,1039.1563 C2359.0469,1039 2359.0781,1038.8125 2359.0781,1038.3906 L2359.0781,1036.9688 C2359.0781,1036.5313 2359.0625,1036.4063 2358.9688,1036.25 C2358.8125,1035.9844 2358.5313,1035.8438 2358.2344,1035.8438 C2357.9375,1035.8438 2357.7344,1035.9375 2357.5156,1036.25 L2357.3438,1036.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="126" x="2367" y="1045.3467">AgentEchoAction</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="2343" x2="2495" y1="1054.5" y2="1054.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="87" x="2348" y="1071.4951">content: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="104" x="2348" y="1087.792">runnable: bool</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="74" x="2348" y="1104.0889">action: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="2343" x2="2495" y1="1111.3906" y2="1111.3906"/></g><!--class AgentFinishAction--><g id="elem_AgentFinishAction"><rect codeLine="9" fill="#003153" height="76.5938" id="AgentFinishAction" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="160" x="1950" y="1034.5"/><ellipse cx="1963" cy="1048.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M1965.3438,1044.1719 C1964.4063,1043.7344 1963.8125,1043.5938 1962.9375,1043.5938 C1960.3125,1043.5938 1958.3125,1045.6719 1958.3125,1048.3906 L1958.3125,1049.5156 C1958.3125,1052.0938 1960.4219,1053.9844 1963.3125,1053.9844 C1964.5313,1053.9844 1965.6875,1053.6875 1966.4375,1053.1406 C1967.0156,1052.7344 1967.3438,1052.2813 1967.3438,1051.8906 C1967.3438,1051.4375 1966.9531,1051.0469 1966.4844,1051.0469 C1966.2656,1051.0469 1966.0625,1051.125 1965.875,1051.3125 C1965.4219,1051.7969 1965.4219,1051.7969 1965.2344,1051.8906 C1964.8125,1052.1563 1964.125,1052.2813 1963.3594,1052.2813 C1961.3125,1052.2813 1960.0156,1051.1875 1960.0156,1049.4844 L1960.0156,1048.3906 C1960.0156,1046.6094 1961.2656,1045.2969 1963,1045.2969 C1963.5781,1045.2969 1964.1875,1045.4531 1964.6563,1045.7031 C1965.1406,1045.9844 1965.3125,1046.2031 1965.4063,1046.6094 C1965.4688,1047.0156 1965.5,1047.1406 1965.6406,1047.2656 C1965.7813,1047.4063 1966.0156,1047.5156 1966.2344,1047.5156 C1966.5,1047.5156 1966.7656,1047.375 1966.9375,1047.1563 C1967.0469,1047 1967.0781,1046.8125 1967.0781,1046.3906 L1967.0781,1044.9688 C1967.0781,1044.5313 1967.0625,1044.4063 1966.9688,1044.25 C1966.8125,1043.9844 1966.5313,1043.8438 1966.2344,1043.8438 C1965.9375,1043.8438 1965.7344,1043.9375 1965.5156,1044.25 L1965.3438,1044.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="132" x="1975" y="1053.3467">AgentFinishAction</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="1951" x2="2109" y1="1062.5" y2="1062.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="104" x="1956" y="1079.4951">runnable: bool</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="74" x="1956" y="1095.792">action: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="1951" x2="2109" y1="1103.0938" y2="1103.0938"/></g><!--class AgentRecallAction--><g id="elem_AgentRecallAction"><rect codeLine="17" fill="#003153" height="76.5938" id="AgentRecallAction" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="162" x="2145" y="1034.5"/><ellipse cx="2158" cy="1048.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M2160.3438,1044.1719 C2159.4063,1043.7344 2158.8125,1043.5938 2157.9375,1043.5938 C2155.3125,1043.5938 2153.3125,1045.6719 2153.3125,1048.3906 L2153.3125,1049.5156 C2153.3125,1052.0938 2155.4219,1053.9844 2158.3125,1053.9844 C2159.5313,1053.9844 2160.6875,1053.6875 2161.4375,1053.1406 C2162.0156,1052.7344 2162.3438,1052.2813 2162.3438,1051.8906 C2162.3438,1051.4375 2161.9531,1051.0469 2161.4844,1051.0469 C2161.2656,1051.0469 2161.0625,1051.125 2160.875,1051.3125 C2160.4219,1051.7969 2160.4219,1051.7969 2160.2344,1051.8906 C2159.8125,1052.1563 2159.125,1052.2813 2158.3594,1052.2813 C2156.3125,1052.2813 2155.0156,1051.1875 2155.0156,1049.4844 L2155.0156,1048.3906 C2155.0156,1046.6094 2156.2656,1045.2969 2158,1045.2969 C2158.5781,1045.2969 2159.1875,1045.4531 2159.6563,1045.7031 C2160.1406,1045.9844 2160.3125,1046.2031 2160.4063,1046.6094 C2160.4688,1047.0156 2160.5,1047.1406 2160.6406,1047.2656 C2160.7813,1047.4063 2161.0156,1047.5156 2161.2344,1047.5156 C2161.5,1047.5156 2161.7656,1047.375 2161.9375,1047.1563 C2162.0469,1047 2162.0781,1046.8125 2162.0781,1046.3906 L2162.0781,1044.9688 C2162.0781,1044.5313 2162.0625,1044.4063 2161.9688,1044.25 C2161.8125,1043.9844 2161.5313,1043.8438 2161.2344,1043.8438 C2160.9375,1043.8438 2160.7344,1043.9375 2160.5156,1044.25 L2160.3438,1044.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="134" x="2170" y="1053.3467">AgentRecallAction</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="2146" x2="2306" y1="1062.5" y2="1062.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="69" x="2151" y="1079.4951">query: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="74" x="2151" y="1095.792">action: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="2146" x2="2306" y1="1103.0938" y2="1103.0938"/></g><!--class AgentSummarizeAction--><g id="elem_AgentSummarizeAction"><rect codeLine="26" fill="#003153" height="76.5938" id="AgentSummarizeAction" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="199" x="1715.5" y="1034.5"/><ellipse cx="1728.5" cy="1048.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M1730.8438,1044.1719 C1729.9063,1043.7344 1729.3125,1043.5938 1728.4375,1043.5938 C1725.8125,1043.5938 1723.8125,1045.6719 1723.8125,1048.3906 L1723.8125,1049.5156 C1723.8125,1052.0938 1725.9219,1053.9844 1728.8125,1053.9844 C1730.0313,1053.9844 1731.1875,1053.6875 1731.9375,1053.1406 C1732.5156,1052.7344 1732.8438,1052.2813 1732.8438,1051.8906 C1732.8438,1051.4375 1732.4531,1051.0469 1731.9844,1051.0469 C1731.7656,1051.0469 1731.5625,1051.125 1731.375,1051.3125 C1730.9219,1051.7969 1730.9219,1051.7969 1730.7344,1051.8906 C1730.3125,1052.1563 1729.625,1052.2813 1728.8594,1052.2813 C1726.8125,1052.2813 1725.5156,1051.1875 1725.5156,1049.4844 L1725.5156,1048.3906 C1725.5156,1046.6094 1726.7656,1045.2969 1728.5,1045.2969 C1729.0781,1045.2969 1729.6875,1045.4531 1730.1563,1045.7031 C1730.6406,1045.9844 1730.8125,1046.2031 1730.9063,1046.6094 C1730.9688,1047.0156 1731,1047.1406 1731.1406,1047.2656 C1731.2813,1047.4063 1731.5156,1047.5156 1731.7344,1047.5156 C1732,1047.5156 1732.2656,1047.375 1732.4375,1047.1563 C1732.5469,1047 1732.5781,1046.8125 1732.5781,1046.3906 L1732.5781,1044.9688 C1732.5781,1044.5313 1732.5625,1044.4063 1732.4688,1044.25 C1732.3125,1043.9844 1732.0313,1043.8438 1731.7344,1043.8438 C1731.4375,1043.8438 1731.2344,1043.9375 1731.0156,1044.25 L1730.8438,1044.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="171" x="1740.5" y="1053.3467">AgentSummarizeAction</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="1716.5" x2="1913.5" y1="1062.5" y2="1062.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="94" x="1721.5" y="1079.4951">summary: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="74" x="1721.5" y="1095.792">action: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="1716.5" x2="1913.5" y1="1103.0938" y2="1103.0938"/></g><!--class AgentThinkAction--><g id="elem_AgentThinkAction"><rect codeLine="30" fill="#003153" height="92.8906" id="AgentThinkAction" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="159" x="1521.5" y="1026.5"/><ellipse cx="1534.5" cy="1040.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M1536.8438,1036.1719 C1535.9063,1035.7344 1535.3125,1035.5938 1534.4375,1035.5938 C1531.8125,1035.5938 1529.8125,1037.6719 1529.8125,1040.3906 L1529.8125,1041.5156 C1529.8125,1044.0938 1531.9219,1045.9844 1534.8125,1045.9844 C1536.0313,1045.9844 1537.1875,1045.6875 1537.9375,1045.1406 C1538.5156,1044.7344 1538.8438,1044.2813 1538.8438,1043.8906 C1538.8438,1043.4375 1538.4531,1043.0469 1537.9844,1043.0469 C1537.7656,1043.0469 1537.5625,1043.125 1537.375,1043.3125 C1536.9219,1043.7969 1536.9219,1043.7969 1536.7344,1043.8906 C1536.3125,1044.1563 1535.625,1044.2813 1534.8594,1044.2813 C1532.8125,1044.2813 1531.5156,1043.1875 1531.5156,1041.4844 L1531.5156,1040.3906 C1531.5156,1038.6094 1532.7656,1037.2969 1534.5,1037.2969 C1535.0781,1037.2969 1535.6875,1037.4531 1536.1563,1037.7031 C1536.6406,1037.9844 1536.8125,1038.2031 1536.9063,1038.6094 C1536.9688,1039.0156 1537,1039.1406 1537.1406,1039.2656 C1537.2813,1039.4063 1537.5156,1039.5156 1537.7344,1039.5156 C1538,1039.5156 1538.2656,1039.375 1538.4375,1039.1563 C1538.5469,1039 1538.5781,1038.8125 1538.5781,1038.3906 L1538.5781,1036.9688 C1538.5781,1036.5313 1538.5625,1036.4063 1538.4688,1036.25 C1538.3125,1035.9844 1538.0313,1035.8438 1537.7344,1035.8438 C1537.4375,1035.8438 1537.2344,1035.9375 1537.0156,1036.25 L1536.8438,1036.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="131" x="1546.5" y="1045.3467">AgentThinkAction</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="1522.5" x2="1679.5" y1="1054.5" y2="1054.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="87" x="1527.5" y="1071.4951">thought: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="104" x="1527.5" y="1087.792">runnable: bool</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="74" x="1527.5" y="1104.0889">action: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="1522.5" x2="1679.5" y1="1111.3906" y2="1111.3906"/></g><!--class ExecutableAction--><g id="elem_ExecutableAction"><rect codeLine="35" fill="#003153" height="44" id="ExecutableAction" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="155" x="1309.5" y="826"/><ellipse cx="1322.5" cy="840" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M1324.8438,835.6719 C1323.9063,835.2344 1323.3125,835.0938 1322.4375,835.0938 C1319.8125,835.0938 1317.8125,837.1719 1317.8125,839.8906 L1317.8125,841.0156 C1317.8125,843.5938 1319.9219,845.4844 1322.8125,845.4844 C1324.0313,845.4844 1325.1875,845.1875 1325.9375,844.6406 C1326.5156,844.2344 1326.8438,843.7813 1326.8438,843.3906 C1326.8438,842.9375 1326.4531,842.5469 1325.9844,842.5469 C1325.7656,842.5469 1325.5625,842.625 1325.375,842.8125 C1324.9219,843.2969 1324.9219,843.2969 1324.7344,843.3906 C1324.3125,843.6563 1323.625,843.7813 1322.8594,843.7813 C1320.8125,843.7813 1319.5156,842.6875 1319.5156,840.9844 L1319.5156,839.8906 C1319.5156,838.1094 1320.7656,836.7969 1322.5,836.7969 C1323.0781,836.7969 1323.6875,836.9531 1324.1563,837.2031 C1324.6406,837.4844 1324.8125,837.7031 1324.9063,838.1094 C1324.9688,838.5156 1325,838.6406 1325.1406,838.7656 C1325.2813,838.9063 1325.5156,839.0156 1325.7344,839.0156 C1326,839.0156 1326.2656,838.875 1326.4375,838.6563 C1326.5469,838.5 1326.5781,838.3125 1326.5781,837.8906 L1326.5781,836.4688 C1326.5781,836.0313 1326.5625,835.9063 1326.4688,835.75 C1326.3125,835.4844 1326.0313,835.3438 1325.7344,835.3438 C1325.4375,835.3438 1325.2344,835.4375 1325.0156,835.75 L1324.8438,835.6719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="127" x="1334.5" y="844.8467">ExecutableAction</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="1310.5" x2="1463.5" y1="854" y2="854"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="1310.5" x2="1463.5" y1="862" y2="862"/></g><!--class NotExecutableAction--><g id="elem_NotExecutableAction"><rect codeLine="37" fill="#003153" height="44" id="NotExecutableAction" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="181" x="1093.5" y="826"/><ellipse cx="1106.5" cy="840" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M1108.8438,835.6719 C1107.9063,835.2344 1107.3125,835.0938 1106.4375,835.0938 C1103.8125,835.0938 1101.8125,837.1719 1101.8125,839.8906 L1101.8125,841.0156 C1101.8125,843.5938 1103.9219,845.4844 1106.8125,845.4844 C1108.0313,845.4844 1109.1875,845.1875 1109.9375,844.6406 C1110.5156,844.2344 1110.8438,843.7813 1110.8438,843.3906 C1110.8438,842.9375 1110.4531,842.5469 1109.9844,842.5469 C1109.7656,842.5469 1109.5625,842.625 1109.375,842.8125 C1108.9219,843.2969 1108.9219,843.2969 1108.7344,843.3906 C1108.3125,843.6563 1107.625,843.7813 1106.8594,843.7813 C1104.8125,843.7813 1103.5156,842.6875 1103.5156,840.9844 L1103.5156,839.8906 C1103.5156,838.1094 1104.7656,836.7969 1106.5,836.7969 C1107.0781,836.7969 1107.6875,836.9531 1108.1563,837.2031 C1108.6406,837.4844 1108.8125,837.7031 1108.9063,838.1094 C1108.9688,838.5156 1109,838.6406 1109.1406,838.7656 C1109.2813,838.9063 1109.5156,839.0156 1109.7344,839.0156 C1110,839.0156 1110.2656,838.875 1110.4375,838.6563 C1110.5469,838.5 1110.5781,838.3125 1110.5781,837.8906 L1110.5781,836.4688 C1110.5781,836.0313 1110.5625,835.9063 1110.4688,835.75 C1110.3125,835.4844 1110.0313,835.3438 1109.7344,835.3438 C1109.4375,835.3438 1109.2344,835.4375 1109.0156,835.75 L1108.8438,835.6719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="153" x="1118.5" y="844.8467">NotExecutableAction</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="1094.5" x2="1273.5" y1="854" y2="854"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="1094.5" x2="1273.5" y1="862" y2="862"/></g><!--class Action--><g id="elem_Action"><rect codeLine="42" fill="#003153" height="44" id="Action" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="75" x="1345.5" y="616"/><ellipse cx="1358.5" cy="630" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M1360.8438,625.6719 C1359.9063,625.2344 1359.3125,625.0938 1358.4375,625.0938 C1355.8125,625.0938 1353.8125,627.1719 1353.8125,629.8906 L1353.8125,631.0156 C1353.8125,633.5938 1355.9219,635.4844 1358.8125,635.4844 C1360.0313,635.4844 1361.1875,635.1875 1361.9375,634.6406 C1362.5156,634.2344 1362.8438,633.7813 1362.8438,633.3906 C1362.8438,632.9375 1362.4531,632.5469 1361.9844,632.5469 C1361.7656,632.5469 1361.5625,632.625 1361.375,632.8125 C1360.9219,633.2969 1360.9219,633.2969 1360.7344,633.3906 C1360.3125,633.6563 1359.625,633.7813 1358.8594,633.7813 C1356.8125,633.7813 1355.5156,632.6875 1355.5156,630.9844 L1355.5156,629.8906 C1355.5156,628.1094 1356.7656,626.7969 1358.5,626.7969 C1359.0781,626.7969 1359.6875,626.9531 1360.1563,627.2031 C1360.6406,627.4844 1360.8125,627.7031 1360.9063,628.1094 C1360.9688,628.5156 1361,628.6406 1361.1406,628.7656 C1361.2813,628.9063 1361.5156,629.0156 1361.7344,629.0156 C1362,629.0156 1362.2656,628.875 1362.4375,628.6563 C1362.5469,628.5 1362.5781,628.3125 1362.5781,627.8906 L1362.5781,626.4688 C1362.5781,626.0313 1362.5625,625.9063 1362.4688,625.75 C1362.3125,625.4844 1362.0313,625.3438 1361.7344,625.3438 C1361.4375,625.3438 1361.2344,625.4375 1361.0156,625.75 L1360.8438,625.6719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="47" x="1370.5" y="634.8467">Action</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="1346.5" x2="1419.5" y1="644" y2="644"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="1346.5" x2="1419.5" y1="652" y2="652"/></g><!--class NullAction--><g id="elem_NullAction"><rect codeLine="44" fill="#003153" height="60.2969" id="NullAction" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="101" x="1133.5" y="1043"/><ellipse cx="1146.5" cy="1057" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M1148.8438,1052.6719 C1147.9063,1052.2344 1147.3125,1052.0938 1146.4375,1052.0938 C1143.8125,1052.0938 1141.8125,1054.1719 1141.8125,1056.8906 L1141.8125,1058.0156 C1141.8125,1060.5938 1143.9219,1062.4844 1146.8125,1062.4844 C1148.0313,1062.4844 1149.1875,1062.1875 1149.9375,1061.6406 C1150.5156,1061.2344 1150.8438,1060.7813 1150.8438,1060.3906 C1150.8438,1059.9375 1150.4531,1059.5469 1149.9844,1059.5469 C1149.7656,1059.5469 1149.5625,1059.625 1149.375,1059.8125 C1148.9219,1060.2969 1148.9219,1060.2969 1148.7344,1060.3906 C1148.3125,1060.6563 1147.625,1060.7813 1146.8594,1060.7813 C1144.8125,1060.7813 1143.5156,1059.6875 1143.5156,1057.9844 L1143.5156,1056.8906 C1143.5156,1055.1094 1144.7656,1053.7969 1146.5,1053.7969 C1147.0781,1053.7969 1147.6875,1053.9531 1148.1563,1054.2031 C1148.6406,1054.4844 1148.8125,1054.7031 1148.9063,1055.1094 C1148.9688,1055.5156 1149,1055.6406 1149.1406,1055.7656 C1149.2813,1055.9063 1149.5156,1056.0156 1149.7344,1056.0156 C1150,1056.0156 1150.2656,1055.875 1150.4375,1055.6563 C1150.5469,1055.5 1150.5781,1055.3125 1150.5781,1054.8906 L1150.5781,1053.4688 C1150.5781,1053.0313 1150.5625,1052.9063 1150.4688,1052.75 C1150.3125,1052.4844 1150.0313,1052.3438 1149.7344,1052.3438 C1149.4375,1052.3438 1149.2344,1052.4375 1149.0156,1052.75 L1148.8438,1052.6719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="73" x="1158.5" y="1061.8467">NullAction</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="1134.5" x2="1233.5" y1="1071" y2="1071"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="74" x="1139.5" y="1087.9951">action: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="1134.5" x2="1233.5" y1="1095.2969" y2="1095.2969"/></g><!--class CmdKillAction--><g id="elem_CmdKillAction"><rect codeLine="47" fill="#003153" height="76.5938" id="CmdKillAction" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="130" x="2552" y="1034.5"/><ellipse cx="2565" cy="1048.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M2567.3438,1044.1719 C2566.4063,1043.7344 2565.8125,1043.5938 2564.9375,1043.5938 C2562.3125,1043.5938 2560.3125,1045.6719 2560.3125,1048.3906 L2560.3125,1049.5156 C2560.3125,1052.0938 2562.4219,1053.9844 2565.3125,1053.9844 C2566.5313,1053.9844 2567.6875,1053.6875 2568.4375,1053.1406 C2569.0156,1052.7344 2569.3438,1052.2813 2569.3438,1051.8906 C2569.3438,1051.4375 2568.9531,1051.0469 2568.4844,1051.0469 C2568.2656,1051.0469 2568.0625,1051.125 2567.875,1051.3125 C2567.4219,1051.7969 2567.4219,1051.7969 2567.2344,1051.8906 C2566.8125,1052.1563 2566.125,1052.2813 2565.3594,1052.2813 C2563.3125,1052.2813 2562.0156,1051.1875 2562.0156,1049.4844 L2562.0156,1048.3906 C2562.0156,1046.6094 2563.2656,1045.2969 2565,1045.2969 C2565.5781,1045.2969 2566.1875,1045.4531 2566.6563,1045.7031 C2567.1406,1045.9844 2567.3125,1046.2031 2567.4063,1046.6094 C2567.4688,1047.0156 2567.5,1047.1406 2567.6406,1047.2656 C2567.7813,1047.4063 2568.0156,1047.5156 2568.2344,1047.5156 C2568.5,1047.5156 2568.7656,1047.375 2568.9375,1047.1563 C2569.0469,1047 2569.0781,1046.8125 2569.0781,1046.3906 L2569.0781,1044.9688 C2569.0781,1044.5313 2569.0625,1044.4063 2568.9688,1044.25 C2568.8125,1043.9844 2568.5313,1043.8438 2568.2344,1043.8438 C2567.9375,1043.8438 2567.7344,1043.9375 2567.5156,1044.25 L2567.3438,1044.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="102" x="2577" y="1053.3467">CmdKillAction</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="2553" x2="2681" y1="1062.5" y2="1062.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="42" x="2558" y="1079.4951">id: int</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="74" x="2558" y="1095.792">action: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="2553" x2="2681" y1="1103.0938" y2="1103.0938"/></g><!--class CmdRunAction--><g id="elem_CmdRunAction"><rect codeLine="51" fill="#003153" height="92.8906" id="CmdRunAction" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="138" x="2717" y="1026.5"/><ellipse cx="2731.35" cy="1040.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M2733.6938,1036.1719 C2732.7563,1035.7344 2732.1625,1035.5938 2731.2875,1035.5938 C2728.6625,1035.5938 2726.6625,1037.6719 2726.6625,1040.3906 L2726.6625,1041.5156 C2726.6625,1044.0938 2728.7719,1045.9844 2731.6625,1045.9844 C2732.8813,1045.9844 2734.0375,1045.6875 2734.7875,1045.1406 C2735.3656,1044.7344 2735.6938,1044.2813 2735.6938,1043.8906 C2735.6938,1043.4375 2735.3031,1043.0469 2734.8344,1043.0469 C2734.6156,1043.0469 2734.4125,1043.125 2734.225,1043.3125 C2733.7719,1043.7969 2733.7719,1043.7969 2733.5844,1043.8906 C2733.1625,1044.1563 2732.475,1044.2813 2731.7094,1044.2813 C2729.6625,1044.2813 2728.3656,1043.1875 2728.3656,1041.4844 L2728.3656,1040.3906 C2728.3656,1038.6094 2729.6156,1037.2969 2731.35,1037.2969 C2731.9281,1037.2969 2732.5375,1037.4531 2733.0063,1037.7031 C2733.4906,1037.9844 2733.6625,1038.2031 2733.7563,1038.6094 C2733.8188,1039.0156 2733.85,1039.1406 2733.9906,1039.2656 C2734.1313,1039.4063 2734.3656,1039.5156 2734.5844,1039.5156 C2734.85,1039.5156 2735.1156,1039.375 2735.2875,1039.1563 C2735.3969,1039 2735.4281,1038.8125 2735.4281,1038.3906 L2735.4281,1036.9688 C2735.4281,1036.5313 2735.4125,1036.4063 2735.3188,1036.25 C2735.1625,1035.9844 2734.8813,1035.8438 2734.5844,1035.8438 C2734.2875,1035.8438 2734.0844,1035.9375 2733.8656,1036.25 L2733.6938,1036.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="107" x="2743.65" y="1045.3467">CmdRunAction</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="2718" x2="2854" y1="1054.5" y2="1054.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="100" x="2723" y="1071.4951">command: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="126" x="2723" y="1087.792">background: bool</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="74" x="2723" y="1104.0889">action: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="2718" x2="2854" y1="1111.3906" y2="1111.3906"/></g><!--class BrowseURLAction--><g id="elem_BrowseURLAction"><rect codeLine="56" fill="#003153" height="76.5938" id="BrowseURLAction" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="154" x="2911" y="1034.5"/><ellipse cx="2924" cy="1048.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M2926.3438,1044.1719 C2925.4063,1043.7344 2924.8125,1043.5938 2923.9375,1043.5938 C2921.3125,1043.5938 2919.3125,1045.6719 2919.3125,1048.3906 L2919.3125,1049.5156 C2919.3125,1052.0938 2921.4219,1053.9844 2924.3125,1053.9844 C2925.5313,1053.9844 2926.6875,1053.6875 2927.4375,1053.1406 C2928.0156,1052.7344 2928.3438,1052.2813 2928.3438,1051.8906 C2928.3438,1051.4375 2927.9531,1051.0469 2927.4844,1051.0469 C2927.2656,1051.0469 2927.0625,1051.125 2926.875,1051.3125 C2926.4219,1051.7969 2926.4219,1051.7969 2926.2344,1051.8906 C2925.8125,1052.1563 2925.125,1052.2813 2924.3594,1052.2813 C2922.3125,1052.2813 2921.0156,1051.1875 2921.0156,1049.4844 L2921.0156,1048.3906 C2921.0156,1046.6094 2922.2656,1045.2969 2924,1045.2969 C2924.5781,1045.2969 2925.1875,1045.4531 2925.6563,1045.7031 C2926.1406,1045.9844 2926.3125,1046.2031 2926.4063,1046.6094 C2926.4688,1047.0156 2926.5,1047.1406 2926.6406,1047.2656 C2926.7813,1047.4063 2927.0156,1047.5156 2927.2344,1047.5156 C2927.5,1047.5156 2927.7656,1047.375 2927.9375,1047.1563 C2928.0469,1047 2928.0781,1046.8125 2928.0781,1046.3906 L2928.0781,1044.9688 C2928.0781,1044.5313 2928.0625,1044.4063 2927.9688,1044.25 C2927.8125,1043.9844 2927.5313,1043.8438 2927.2344,1043.8438 C2926.9375,1043.8438 2926.7344,1043.9375 2926.5156,1044.25 L2926.3438,1044.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="126" x="2936" y="1053.3467">BrowseURLAction</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="2912" x2="3064" y1="1062.5" y2="1062.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="47" x="2917" y="1079.4951">url: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="74" x="2917" y="1095.792">action: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="2912" x2="3064" y1="1103.0938" y2="1103.0938"/></g><!--class FileReadAction--><g id="elem_FileReadAction"><rect codeLine="66" fill="#003153" height="76.5938" id="FileReadAction" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="136" x="3121" y="1034.5"/><ellipse cx="3134" cy="1048.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M3136.3438,1044.1719 C3135.4063,1043.7344 3134.8125,1043.5938 3133.9375,1043.5938 C3131.3125,1043.5938 3129.3125,1045.6719 3129.3125,1048.3906 L3129.3125,1049.5156 C3129.3125,1052.0938 3131.4219,1053.9844 3134.3125,1053.9844 C3135.5313,1053.9844 3136.6875,1053.6875 3137.4375,1053.1406 C3138.0156,1052.7344 3138.3438,1052.2813 3138.3438,1051.8906 C3138.3438,1051.4375 3137.9531,1051.0469 3137.4844,1051.0469 C3137.2656,1051.0469 3137.0625,1051.125 3136.875,1051.3125 C3136.4219,1051.7969 3136.4219,1051.7969 3136.2344,1051.8906 C3135.8125,1052.1563 3135.125,1052.2813 3134.3594,1052.2813 C3132.3125,1052.2813 3131.0156,1051.1875 3131.0156,1049.4844 L3131.0156,1048.3906 C3131.0156,1046.6094 3132.2656,1045.2969 3134,1045.2969 C3134.5781,1045.2969 3135.1875,1045.4531 3135.6563,1045.7031 C3136.1406,1045.9844 3136.3125,1046.2031 3136.4063,1046.6094 C3136.4688,1047.0156 3136.5,1047.1406 3136.6406,1047.2656 C3136.7813,1047.4063 3137.0156,1047.5156 3137.2344,1047.5156 C3137.5,1047.5156 3137.7656,1047.375 3137.9375,1047.1563 C3138.0469,1047 3138.0781,1046.8125 3138.0781,1046.3906 L3138.0781,1044.9688 C3138.0781,1044.5313 3138.0625,1044.4063 3137.9688,1044.25 C3137.8125,1043.9844 3137.5313,1043.8438 3137.2344,1043.8438 C3136.9375,1043.8438 3136.7344,1043.9375 3136.5156,1044.25 L3136.3438,1044.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="108" x="3146" y="1053.3467">FileReadAction</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="3122" x2="3256" y1="1062.5" y2="1062.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="63" x="3127" y="1079.4951">path: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="74" x="3127" y="1095.792">action: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="3122" x2="3256" y1="1103.0938" y2="1103.0938"/></g><!--class FileWriteAction--><g id="elem_FileWriteAction"><rect codeLine="74" fill="#003153" height="92.8906" id="FileWriteAction" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="140" x="3292" y="1026.5"/><ellipse cx="3305" cy="1040.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M3307.3438,1036.1719 C3306.4063,1035.7344 3305.8125,1035.5938 3304.9375,1035.5938 C3302.3125,1035.5938 3300.3125,1037.6719 3300.3125,1040.3906 L3300.3125,1041.5156 C3300.3125,1044.0938 3302.4219,1045.9844 3305.3125,1045.9844 C3306.5313,1045.9844 3307.6875,1045.6875 3308.4375,1045.1406 C3309.0156,1044.7344 3309.3438,1044.2813 3309.3438,1043.8906 C3309.3438,1043.4375 3308.9531,1043.0469 3308.4844,1043.0469 C3308.2656,1043.0469 3308.0625,1043.125 3307.875,1043.3125 C3307.4219,1043.7969 3307.4219,1043.7969 3307.2344,1043.8906 C3306.8125,1044.1563 3306.125,1044.2813 3305.3594,1044.2813 C3303.3125,1044.2813 3302.0156,1043.1875 3302.0156,1041.4844 L3302.0156,1040.3906 C3302.0156,1038.6094 3303.2656,1037.2969 3305,1037.2969 C3305.5781,1037.2969 3306.1875,1037.4531 3306.6563,1037.7031 C3307.1406,1037.9844 3307.3125,1038.2031 3307.4063,1038.6094 C3307.4688,1039.0156 3307.5,1039.1406 3307.6406,1039.2656 C3307.7813,1039.4063 3308.0156,1039.5156 3308.2344,1039.5156 C3308.5,1039.5156 3308.7656,1039.375 3308.9375,1039.1563 C3309.0469,1039 3309.0781,1038.8125 3309.0781,1038.3906 L3309.0781,1036.9688 C3309.0781,1036.5313 3309.0625,1036.4063 3308.9688,1036.25 C3308.8125,1035.9844 3308.5313,1035.8438 3308.2344,1035.8438 C3307.9375,1035.8438 3307.7344,1035.9375 3307.5156,1036.25 L3307.3438,1036.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="112" x="3317" y="1045.3467">FileWriteAction</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="3293" x2="3431" y1="1054.5" y2="1054.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="63" x="3298" y="1071.4951">path: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="94" x="3298" y="1087.792">contents: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="74" x="3298" y="1104.0889">action: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="3293" x2="3431" y1="1111.3906" y2="1111.3906"/></g><!--class AddTaskAction--><g id="elem_AddTaskAction"><rect codeLine="83" fill="#003153" height="109.1875" id="AddTaskAction" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="136" x="3488" y="1018.5"/><ellipse cx="3501" cy="1032.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M3503.3438,1028.1719 C3502.4063,1027.7344 3501.8125,1027.5938 3500.9375,1027.5938 C3498.3125,1027.5938 3496.3125,1029.6719 3496.3125,1032.3906 L3496.3125,1033.5156 C3496.3125,1036.0938 3498.4219,1037.9844 3501.3125,1037.9844 C3502.5313,1037.9844 3503.6875,1037.6875 3504.4375,1037.1406 C3505.0156,1036.7344 3505.3438,1036.2813 3505.3438,1035.8906 C3505.3438,1035.4375 3504.9531,1035.0469 3504.4844,1035.0469 C3504.2656,1035.0469 3504.0625,1035.125 3503.875,1035.3125 C3503.4219,1035.7969 3503.4219,1035.7969 3503.2344,1035.8906 C3502.8125,1036.1563 3502.125,1036.2813 3501.3594,1036.2813 C3499.3125,1036.2813 3498.0156,1035.1875 3498.0156,1033.4844 L3498.0156,1032.3906 C3498.0156,1030.6094 3499.2656,1029.2969 3501,1029.2969 C3501.5781,1029.2969 3502.1875,1029.4531 3502.6563,1029.7031 C3503.1406,1029.9844 3503.3125,1030.2031 3503.4063,1030.6094 C3503.4688,1031.0156 3503.5,1031.1406 3503.6406,1031.2656 C3503.7813,1031.4063 3504.0156,1031.5156 3504.2344,1031.5156 C3504.5,1031.5156 3504.7656,1031.375 3504.9375,1031.1563 C3505.0469,1031 3505.0781,1030.8125 3505.0781,1030.3906 L3505.0781,1028.9688 C3505.0781,1028.5313 3505.0625,1028.4063 3504.9688,1028.25 C3504.8125,1027.9844 3504.5313,1027.8438 3504.2344,1027.8438 C3503.9375,1027.8438 3503.7344,1027.9375 3503.5156,1028.25 L3503.3438,1028.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="108" x="3513" y="1037.3467">AddTaskAction</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="3489" x2="3623" y1="1046.5" y2="1046.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="78" x="3494" y="1063.4951">parent: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="59" x="3494" y="1079.792">goal: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="94" x="3494" y="1096.0889">subtasks: list</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="74" x="3494" y="1112.3857">action: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="3489" x2="3623" y1="1119.6875" y2="1119.6875"/></g><!--class ModifyTaskAction--><g id="elem_ModifyTaskAction"><rect codeLine="89" fill="#003153" height="92.8906" id="ModifyTaskAction" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="156" x="3659" y="1026.5"/><ellipse cx="3672" cy="1040.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M3674.3438,1036.1719 C3673.4063,1035.7344 3672.8125,1035.5938 3671.9375,1035.5938 C3669.3125,1035.5938 3667.3125,1037.6719 3667.3125,1040.3906 L3667.3125,1041.5156 C3667.3125,1044.0938 3669.4219,1045.9844 3672.3125,1045.9844 C3673.5313,1045.9844 3674.6875,1045.6875 3675.4375,1045.1406 C3676.0156,1044.7344 3676.3438,1044.2813 3676.3438,1043.8906 C3676.3438,1043.4375 3675.9531,1043.0469 3675.4844,1043.0469 C3675.2656,1043.0469 3675.0625,1043.125 3674.875,1043.3125 C3674.4219,1043.7969 3674.4219,1043.7969 3674.2344,1043.8906 C3673.8125,1044.1563 3673.125,1044.2813 3672.3594,1044.2813 C3670.3125,1044.2813 3669.0156,1043.1875 3669.0156,1041.4844 L3669.0156,1040.3906 C3669.0156,1038.6094 3670.2656,1037.2969 3672,1037.2969 C3672.5781,1037.2969 3673.1875,1037.4531 3673.6563,1037.7031 C3674.1406,1037.9844 3674.3125,1038.2031 3674.4063,1038.6094 C3674.4688,1039.0156 3674.5,1039.1406 3674.6406,1039.2656 C3674.7813,1039.4063 3675.0156,1039.5156 3675.2344,1039.5156 C3675.5,1039.5156 3675.7656,1039.375 3675.9375,1039.1563 C3676.0469,1039 3676.0781,1038.8125 3676.0781,1038.3906 L3676.0781,1036.9688 C3676.0781,1036.5313 3676.0625,1036.4063 3675.9688,1036.25 C3675.8125,1035.9844 3675.5313,1035.8438 3675.2344,1035.8438 C3674.9375,1035.8438 3674.7344,1035.9375 3674.5156,1036.25 L3674.3438,1036.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="128" x="3684" y="1045.3467">ModifyTaskAction</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="3660" x2="3814" y1="1054.5" y2="1054.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="42" x="3665" y="1071.4951">id: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="67" x="3665" y="1087.792">state: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="74" x="3665" y="1104.0889">action: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="3660" x2="3814" y1="1111.3906" y2="1111.3906"/></g><!--class AgentMessageObservation--><g id="elem_AgentMessageObservation"><rect codeLine="13" fill="#003153" height="76.5938" id="AgentMessageObservation" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="221" x="4992.5" y="809.5"/><ellipse cx="5005.5" cy="823.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M5007.8438,819.1719 C5006.9063,818.7344 5006.3125,818.5938 5005.4375,818.5938 C5002.8125,818.5938 5000.8125,820.6719 5000.8125,823.3906 L5000.8125,824.5156 C5000.8125,827.0938 5002.9219,828.9844 5005.8125,828.9844 C5007.0313,828.9844 5008.1875,828.6875 5008.9375,828.1406 C5009.5156,827.7344 5009.8438,827.2813 5009.8438,826.8906 C5009.8438,826.4375 5009.4531,826.0469 5008.9844,826.0469 C5008.7656,826.0469 5008.5625,826.125 5008.375,826.3125 C5007.9219,826.7969 5007.9219,826.7969 5007.7344,826.8906 C5007.3125,827.1563 5006.625,827.2813 5005.8594,827.2813 C5003.8125,827.2813 5002.5156,826.1875 5002.5156,824.4844 L5002.5156,823.3906 C5002.5156,821.6094 5003.7656,820.2969 5005.5,820.2969 C5006.0781,820.2969 5006.6875,820.4531 5007.1563,820.7031 C5007.6406,820.9844 5007.8125,821.2031 5007.9063,821.6094 C5007.9688,822.0156 5008,822.1406 5008.1406,822.2656 C5008.2813,822.4063 5008.5156,822.5156 5008.7344,822.5156 C5009,822.5156 5009.2656,822.375 5009.4375,822.1563 C5009.5469,822 5009.5781,821.8125 5009.5781,821.3906 L5009.5781,819.9688 C5009.5781,819.5313 5009.5625,819.4063 5009.4688,819.25 C5009.3125,818.9844 5009.0313,818.8438 5008.7344,818.8438 C5008.4375,818.8438 5008.2344,818.9375 5008.0156,819.25 L5007.8438,819.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="193" x="5017.5" y="828.3467">AgentMessageObservation</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="4993.5" x2="5212.5" y1="837.5" y2="837.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="57" x="4998.5" y="854.4951">role: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="115" x="4998.5" y="870.792">observation: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="4993.5" x2="5212.5" y1="878.0938" y2="878.0938"/></g><!--class AgentRecallObservation--><g id="elem_AgentRecallObservation"><rect codeLine="21" fill="#003153" height="92.8906" id="AgentRecallObservation" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="203" x="5492.5" y="801.5"/><ellipse cx="5505.5" cy="815.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M5507.8438,811.1719 C5506.9063,810.7344 5506.3125,810.5938 5505.4375,810.5938 C5502.8125,810.5938 5500.8125,812.6719 5500.8125,815.3906 L5500.8125,816.5156 C5500.8125,819.0938 5502.9219,820.9844 5505.8125,820.9844 C5507.0313,820.9844 5508.1875,820.6875 5508.9375,820.1406 C5509.5156,819.7344 5509.8438,819.2813 5509.8438,818.8906 C5509.8438,818.4375 5509.4531,818.0469 5508.9844,818.0469 C5508.7656,818.0469 5508.5625,818.125 5508.375,818.3125 C5507.9219,818.7969 5507.9219,818.7969 5507.7344,818.8906 C5507.3125,819.1563 5506.625,819.2813 5505.8594,819.2813 C5503.8125,819.2813 5502.5156,818.1875 5502.5156,816.4844 L5502.5156,815.3906 C5502.5156,813.6094 5503.7656,812.2969 5505.5,812.2969 C5506.0781,812.2969 5506.6875,812.4531 5507.1563,812.7031 C5507.6406,812.9844 5507.8125,813.2031 5507.9063,813.6094 C5507.9688,814.0156 5508,814.1406 5508.1406,814.2656 C5508.2813,814.4063 5508.5156,814.5156 5508.7344,814.5156 C5509,814.5156 5509.2656,814.375 5509.4375,814.1563 C5509.5469,814 5509.5781,813.8125 5509.5781,813.3906 L5509.5781,811.9688 C5509.5781,811.5313 5509.5625,811.4063 5509.4688,811.25 C5509.3125,810.9844 5509.0313,810.8438 5508.7344,810.8438 C5508.4375,810.8438 5508.2344,810.9375 5508.0156,811.25 L5507.8438,811.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="175" x="5517.5" y="820.3467">AgentRecallObservation</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="5493.5" x2="5694.5" y1="829.5" y2="829.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="137" x="5498.5" y="846.4951">memories: List[str]</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="57" x="5498.5" y="862.792">role: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="115" x="5498.5" y="879.0889">observation: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="5493.5" x2="5694.5" y1="886.3906" y2="886.3906"/></g><!--class Observation--><g id="elem_Observation"><rect codeLine="39" fill="#003153" height="60.2969" id="Observation" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="116" x="4726" y="608"/><ellipse cx="4739" cy="622" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M4741.3438,617.6719 C4740.4063,617.2344 4739.8125,617.0938 4738.9375,617.0938 C4736.3125,617.0938 4734.3125,619.1719 4734.3125,621.8906 L4734.3125,623.0156 C4734.3125,625.5938 4736.4219,627.4844 4739.3125,627.4844 C4740.5313,627.4844 4741.6875,627.1875 4742.4375,626.6406 C4743.0156,626.2344 4743.3438,625.7813 4743.3438,625.3906 C4743.3438,624.9375 4742.9531,624.5469 4742.4844,624.5469 C4742.2656,624.5469 4742.0625,624.625 4741.875,624.8125 C4741.4219,625.2969 4741.4219,625.2969 4741.2344,625.3906 C4740.8125,625.6563 4740.125,625.7813 4739.3594,625.7813 C4737.3125,625.7813 4736.0156,624.6875 4736.0156,622.9844 L4736.0156,621.8906 C4736.0156,620.1094 4737.2656,618.7969 4739,618.7969 C4739.5781,618.7969 4740.1875,618.9531 4740.6563,619.2031 C4741.1406,619.4844 4741.3125,619.7031 4741.4063,620.1094 C4741.4688,620.5156 4741.5,620.6406 4741.6406,620.7656 C4741.7813,620.9063 4742.0156,621.0156 4742.2344,621.0156 C4742.5,621.0156 4742.7656,620.875 4742.9375,620.6563 C4743.0469,620.5 4743.0781,620.3125 4743.0781,619.8906 L4743.0781,618.4688 C4743.0781,618.0313 4743.0625,617.9063 4742.9688,617.75 C4742.8125,617.4844 4742.5313,617.3438 4742.2344,617.3438 C4741.9375,617.3438 4741.7344,617.4375 4741.5156,617.75 L4741.3438,617.6719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="88" x="4751" y="626.8467">Observation</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="4727" x2="4841" y1="636" y2="636"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="87" x="4732" y="652.9951">content: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="4727" x2="4841" y1="660.2969" y2="660.2969"/></g><!--class BrowserOutputObservation--><g id="elem_BrowserOutputObservation"><rect codeLine="60" fill="#003153" height="109.1875" id="BrowserOutputObservation" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="225" x="3895.5" y="793.5"/><ellipse cx="3908.5" cy="807.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M3910.8438,803.1719 C3909.9063,802.7344 3909.3125,802.5938 3908.4375,802.5938 C3905.8125,802.5938 3903.8125,804.6719 3903.8125,807.3906 L3903.8125,808.5156 C3903.8125,811.0938 3905.9219,812.9844 3908.8125,812.9844 C3910.0313,812.9844 3911.1875,812.6875 3911.9375,812.1406 C3912.5156,811.7344 3912.8438,811.2813 3912.8438,810.8906 C3912.8438,810.4375 3912.4531,810.0469 3911.9844,810.0469 C3911.7656,810.0469 3911.5625,810.125 3911.375,810.3125 C3910.9219,810.7969 3910.9219,810.7969 3910.7344,810.8906 C3910.3125,811.1563 3909.625,811.2813 3908.8594,811.2813 C3906.8125,811.2813 3905.5156,810.1875 3905.5156,808.4844 L3905.5156,807.3906 C3905.5156,805.6094 3906.7656,804.2969 3908.5,804.2969 C3909.0781,804.2969 3909.6875,804.4531 3910.1563,804.7031 C3910.6406,804.9844 3910.8125,805.2031 3910.9063,805.6094 C3910.9688,806.0156 3911,806.1406 3911.1406,806.2656 C3911.2813,806.4063 3911.5156,806.5156 3911.7344,806.5156 C3912,806.5156 3912.2656,806.375 3912.4375,806.1563 C3912.5469,806 3912.5781,805.8125 3912.5781,805.3906 L3912.5781,803.9688 C3912.5781,803.5313 3912.5625,803.4063 3912.4688,803.25 C3912.3125,802.9844 3912.0313,802.8438 3911.7344,802.8438 C3911.4375,802.8438 3911.2344,802.9375 3911.0156,803.25 L3910.8438,803.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="197" x="3920.5" y="812.3467">BrowserOutputObservation</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="3896.5" x2="4119.5" y1="821.5" y2="821.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="47" x="3901.5" y="838.4951">url: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="115" x="3901.5" y="854.792">status_code: int</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="77" x="3901.5" y="871.0889">error: bool</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="115" x="3901.5" y="887.3857">observation: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="3896.5" x2="4119.5" y1="894.6875" y2="894.6875"/></g><!--class FileReadObservation--><g id="elem_FileReadObservation"><rect codeLine="70" fill="#003153" height="76.5938" id="FileReadObservation" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="177" x="4155.5" y="809.5"/><ellipse cx="4168.5" cy="823.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M4170.8438,819.1719 C4169.9063,818.7344 4169.3125,818.5938 4168.4375,818.5938 C4165.8125,818.5938 4163.8125,820.6719 4163.8125,823.3906 L4163.8125,824.5156 C4163.8125,827.0938 4165.9219,828.9844 4168.8125,828.9844 C4170.0313,828.9844 4171.1875,828.6875 4171.9375,828.1406 C4172.5156,827.7344 4172.8438,827.2813 4172.8438,826.8906 C4172.8438,826.4375 4172.4531,826.0469 4171.9844,826.0469 C4171.7656,826.0469 4171.5625,826.125 4171.375,826.3125 C4170.9219,826.7969 4170.9219,826.7969 4170.7344,826.8906 C4170.3125,827.1563 4169.625,827.2813 4168.8594,827.2813 C4166.8125,827.2813 4165.5156,826.1875 4165.5156,824.4844 L4165.5156,823.3906 C4165.5156,821.6094 4166.7656,820.2969 4168.5,820.2969 C4169.0781,820.2969 4169.6875,820.4531 4170.1563,820.7031 C4170.6406,820.9844 4170.8125,821.2031 4170.9063,821.6094 C4170.9688,822.0156 4171,822.1406 4171.1406,822.2656 C4171.2813,822.4063 4171.5156,822.5156 4171.7344,822.5156 C4172,822.5156 4172.2656,822.375 4172.4375,822.1563 C4172.5469,822 4172.5781,821.8125 4172.5781,821.3906 L4172.5781,819.9688 C4172.5781,819.5313 4172.5625,819.4063 4172.4688,819.25 C4172.3125,818.9844 4172.0313,818.8438 4171.7344,818.8438 C4171.4375,818.8438 4171.2344,818.9375 4171.0156,819.25 L4170.8438,819.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="149" x="4180.5" y="828.3467">FileReadObservation</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="4156.5" x2="4331.5" y1="837.5" y2="837.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="63" x="4161.5" y="854.4951">path: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="115" x="4161.5" y="870.792">observation: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="4156.5" x2="4331.5" y1="878.0938" y2="878.0938"/></g><!--class FileWriteObservation--><g id="elem_FileWriteObservation"><rect codeLine="79" fill="#003153" height="76.5938" id="FileWriteObservation" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="181" x="4367.5" y="809.5"/><ellipse cx="4380.5" cy="823.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M4382.8438,819.1719 C4381.9063,818.7344 4381.3125,818.5938 4380.4375,818.5938 C4377.8125,818.5938 4375.8125,820.6719 4375.8125,823.3906 L4375.8125,824.5156 C4375.8125,827.0938 4377.9219,828.9844 4380.8125,828.9844 C4382.0313,828.9844 4383.1875,828.6875 4383.9375,828.1406 C4384.5156,827.7344 4384.8438,827.2813 4384.8438,826.8906 C4384.8438,826.4375 4384.4531,826.0469 4383.9844,826.0469 C4383.7656,826.0469 4383.5625,826.125 4383.375,826.3125 C4382.9219,826.7969 4382.9219,826.7969 4382.7344,826.8906 C4382.3125,827.1563 4381.625,827.2813 4380.8594,827.2813 C4378.8125,827.2813 4377.5156,826.1875 4377.5156,824.4844 L4377.5156,823.3906 C4377.5156,821.6094 4378.7656,820.2969 4380.5,820.2969 C4381.0781,820.2969 4381.6875,820.4531 4382.1563,820.7031 C4382.6406,820.9844 4382.8125,821.2031 4382.9063,821.6094 C4382.9688,822.0156 4383,822.1406 4383.1406,822.2656 C4383.2813,822.4063 4383.5156,822.5156 4383.7344,822.5156 C4384,822.5156 4384.2656,822.375 4384.4375,822.1563 C4384.5469,822 4384.5781,821.8125 4384.5781,821.3906 L4384.5781,819.9688 C4384.5781,819.5313 4384.5625,819.4063 4384.4688,819.25 C4384.3125,818.9844 4384.0313,818.8438 4383.7344,818.8438 C4383.4375,818.8438 4383.2344,818.9375 4383.0156,819.25 L4382.8438,819.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="153" x="4392.5" y="828.3467">FileWriteObservation</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="4368.5" x2="4547.5" y1="837.5" y2="837.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="63" x="4373.5" y="854.4951">path: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="115" x="4373.5" y="870.792">observation: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="4368.5" x2="4547.5" y1="878.0938" y2="878.0938"/></g><!--class AgentErrorObservation--><g id="elem_AgentErrorObservation"><rect codeLine="117" fill="#003153" height="60.2969" id="AgentErrorObservation" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="196" x="4584" y="818"/><ellipse cx="4597" cy="832" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M4599.3438,827.6719 C4598.4063,827.2344 4597.8125,827.0938 4596.9375,827.0938 C4594.3125,827.0938 4592.3125,829.1719 4592.3125,831.8906 L4592.3125,833.0156 C4592.3125,835.5938 4594.4219,837.4844 4597.3125,837.4844 C4598.5313,837.4844 4599.6875,837.1875 4600.4375,836.6406 C4601.0156,836.2344 4601.3438,835.7813 4601.3438,835.3906 C4601.3438,834.9375 4600.9531,834.5469 4600.4844,834.5469 C4600.2656,834.5469 4600.0625,834.625 4599.875,834.8125 C4599.4219,835.2969 4599.4219,835.2969 4599.2344,835.3906 C4598.8125,835.6563 4598.125,835.7813 4597.3594,835.7813 C4595.3125,835.7813 4594.0156,834.6875 4594.0156,832.9844 L4594.0156,831.8906 C4594.0156,830.1094 4595.2656,828.7969 4597,828.7969 C4597.5781,828.7969 4598.1875,828.9531 4598.6563,829.2031 C4599.1406,829.4844 4599.3125,829.7031 4599.4063,830.1094 C4599.4688,830.5156 4599.5,830.6406 4599.6406,830.7656 C4599.7813,830.9063 4600.0156,831.0156 4600.2344,831.0156 C4600.5,831.0156 4600.7656,830.875 4600.9375,830.6563 C4601.0469,830.5 4601.0781,830.3125 4601.0781,829.8906 L4601.0781,828.4688 C4601.0781,828.0313 4601.0625,827.9063 4600.9688,827.75 C4600.8125,827.4844 4600.5313,827.3438 4600.2344,827.3438 C4599.9375,827.3438 4599.7344,827.4375 4599.5156,827.75 L4599.3438,827.6719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="168" x="4609" y="836.8467">AgentErrorObservation</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="4585" x2="4779" y1="846" y2="846"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="115" x="4590" y="862.9951">observation: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="4585" x2="4779" y1="870.2969" y2="870.2969"/></g><!--class NullObservation--><g id="elem_NullObservation"><rect codeLine="124" fill="#003153" height="60.2969" id="NullObservation" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="142" x="4815" y="818"/><ellipse cx="4828" cy="832" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M4830.3438,827.6719 C4829.4063,827.2344 4828.8125,827.0938 4827.9375,827.0938 C4825.3125,827.0938 4823.3125,829.1719 4823.3125,831.8906 L4823.3125,833.0156 C4823.3125,835.5938 4825.4219,837.4844 4828.3125,837.4844 C4829.5313,837.4844 4830.6875,837.1875 4831.4375,836.6406 C4832.0156,836.2344 4832.3438,835.7813 4832.3438,835.3906 C4832.3438,834.9375 4831.9531,834.5469 4831.4844,834.5469 C4831.2656,834.5469 4831.0625,834.625 4830.875,834.8125 C4830.4219,835.2969 4830.4219,835.2969 4830.2344,835.3906 C4829.8125,835.6563 4829.125,835.7813 4828.3594,835.7813 C4826.3125,835.7813 4825.0156,834.6875 4825.0156,832.9844 L4825.0156,831.8906 C4825.0156,830.1094 4826.2656,828.7969 4828,828.7969 C4828.5781,828.7969 4829.1875,828.9531 4829.6563,829.2031 C4830.1406,829.4844 4830.3125,829.7031 4830.4063,830.1094 C4830.4688,830.5156 4830.5,830.6406 4830.6406,830.7656 C4830.7813,830.9063 4831.0156,831.0156 4831.2344,831.0156 C4831.5,831.0156 4831.7656,830.875 4831.9375,830.6563 C4832.0469,830.5 4832.0781,830.3125 4832.0781,829.8906 L4832.0781,828.4688 C4832.0781,828.0313 4832.0625,827.9063 4831.9688,827.75 C4831.8125,827.4844 4831.5313,827.3438 4831.2344,827.3438 C4830.9375,827.3438 4830.7344,827.4375 4830.5156,827.75 L4830.3438,827.6719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="114" x="4840" y="836.8467">NullObservation</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="4816" x2="4956" y1="846" y2="846"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="115" x="4821" y="862.9951">observation: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="4816" x2="4956" y1="870.2969" y2="870.2969"/></g><!--class CmdOutputObservation--><g id="elem_CmdOutputObservation"><rect codeLine="140" fill="#003153" height="109.1875" id="CmdOutputObservation" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="200" x="5731" y="793.5"/><ellipse cx="5744" cy="807.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M5746.3438,803.1719 C5745.4063,802.7344 5744.8125,802.5938 5743.9375,802.5938 C5741.3125,802.5938 5739.3125,804.6719 5739.3125,807.3906 L5739.3125,808.5156 C5739.3125,811.0938 5741.4219,812.9844 5744.3125,812.9844 C5745.5313,812.9844 5746.6875,812.6875 5747.4375,812.1406 C5748.0156,811.7344 5748.3438,811.2813 5748.3438,810.8906 C5748.3438,810.4375 5747.9531,810.0469 5747.4844,810.0469 C5747.2656,810.0469 5747.0625,810.125 5746.875,810.3125 C5746.4219,810.7969 5746.4219,810.7969 5746.2344,810.8906 C5745.8125,811.1563 5745.125,811.2813 5744.3594,811.2813 C5742.3125,811.2813 5741.0156,810.1875 5741.0156,808.4844 L5741.0156,807.3906 C5741.0156,805.6094 5742.2656,804.2969 5744,804.2969 C5744.5781,804.2969 5745.1875,804.4531 5745.6563,804.7031 C5746.1406,804.9844 5746.3125,805.2031 5746.4063,805.6094 C5746.4688,806.0156 5746.5,806.1406 5746.6406,806.2656 C5746.7813,806.4063 5747.0156,806.5156 5747.2344,806.5156 C5747.5,806.5156 5747.7656,806.375 5747.9375,806.1563 C5748.0469,806 5748.0781,805.8125 5748.0781,805.3906 L5748.0781,803.9688 C5748.0781,803.5313 5748.0625,803.4063 5747.9688,803.25 C5747.8125,802.9844 5747.5313,802.8438 5747.2344,802.8438 C5746.9375,802.8438 5746.7344,802.9375 5746.5156,803.25 L5746.3438,803.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="172" x="5756" y="812.3467">CmdOutputObservation</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="5732" x2="5930" y1="821.5" y2="821.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="120" x="5737" y="838.4951">command_id: int</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="100" x="5737" y="854.792">command: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="99" x="5737" y="871.0889">exit_code: int</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="115" x="5737" y="887.3857">observation: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="5732" x2="5930" y1="894.6875" y2="894.6875"/></g><!--class UserMessageObservation--><g id="elem_UserMessageObservation"><rect codeLine="157" fill="#003153" height="76.5938" id="UserMessageObservation" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="208" x="5249" y="809.5"/><ellipse cx="5262" cy="823.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M5264.3438,819.1719 C5263.4063,818.7344 5262.8125,818.5938 5261.9375,818.5938 C5259.3125,818.5938 5257.3125,820.6719 5257.3125,823.3906 L5257.3125,824.5156 C5257.3125,827.0938 5259.4219,828.9844 5262.3125,828.9844 C5263.5313,828.9844 5264.6875,828.6875 5265.4375,828.1406 C5266.0156,827.7344 5266.3438,827.2813 5266.3438,826.8906 C5266.3438,826.4375 5265.9531,826.0469 5265.4844,826.0469 C5265.2656,826.0469 5265.0625,826.125 5264.875,826.3125 C5264.4219,826.7969 5264.4219,826.7969 5264.2344,826.8906 C5263.8125,827.1563 5263.125,827.2813 5262.3594,827.2813 C5260.3125,827.2813 5259.0156,826.1875 5259.0156,824.4844 L5259.0156,823.3906 C5259.0156,821.6094 5260.2656,820.2969 5262,820.2969 C5262.5781,820.2969 5263.1875,820.4531 5263.6563,820.7031 C5264.1406,820.9844 5264.3125,821.2031 5264.4063,821.6094 C5264.4688,822.0156 5264.5,822.1406 5264.6406,822.2656 C5264.7813,822.4063 5265.0156,822.5156 5265.2344,822.5156 C5265.5,822.5156 5265.7656,822.375 5265.9375,822.1563 C5266.0469,822 5266.0781,821.8125 5266.0781,821.3906 L5266.0781,819.9688 C5266.0781,819.5313 5266.0625,819.4063 5265.9688,819.25 C5265.8125,818.9844 5265.5313,818.8438 5265.2344,818.8438 C5264.9375,818.8438 5264.7344,818.9375 5264.5156,819.25 L5264.3438,819.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="180" x="5274" y="828.3467">UserMessageObservation</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="5250" x2="5456" y1="837.5" y2="837.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="57" x="5255" y="854.4951">role: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="115" x="5255" y="870.792">observation: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="5250" x2="5456" y1="878.0938" y2="878.0938"/></g><!--class Agent--><g id="elem_Agent"><rect codeLine="94" fill="#003153" height="92.8906" id="Agent" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="242" x="525" y="591.5"/><ellipse cx="621.25" cy="605.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M623.3281,607.3125 L623.7188,608.2969 L623.3281,608.2969 C622.875,608.2969 622.7656,608.3125 622.6094,608.4219 C622.3594,608.5781 622.2031,608.8594 622.2031,609.1563 C622.2031,609.4219 622.3438,609.6719 622.5625,609.8281 C622.7031,609.9531 622.9063,610 623.3281,610 L625.6875,610 C626.0469,610 626.2656,609.9688 626.4063,609.875 C626.6563,609.7344 626.8125,609.4375 626.8125,609.1563 C626.8125,608.875 626.6719,608.625 626.4531,608.4688 C626.2813,608.3281 626.125,608.2969 625.6563,608.2969 L622.2656,600.0938 L618.5938,600.0938 C618.1406,600.0938 618.0156,600.1094 617.8594,600.2031 C617.6094,600.375 617.4531,600.6563 617.4531,600.9375 C617.4531,601.2188 617.5938,601.4688 617.8125,601.6406 C617.9844,601.75 618.1563,601.7813 618.5938,601.7813 L619.6719,601.7813 L617.0313,608.2969 C616.6094,608.2969 616.4531,608.3125 616.2969,608.4219 C616.0469,608.5781 615.8906,608.8594 615.8906,609.1563 C615.8906,609.7188 616.2656,610 617.0156,610 L619.2813,610 C619.6406,610 619.8594,609.9688 619.9844,609.875 C620.25,609.7344 620.3906,609.4375 620.3906,609.1563 C620.3906,608.875 620.2656,608.625 620.0469,608.4531 C619.875,608.3281 619.7344,608.2969 619.2813,608.2969 L618.8906,608.2969 L619.2813,607.3125 L623.3281,607.3125 Z M622.625,605.6094 L619.9531,605.6094 L621.2969,602.3438 L622.625,605.6094 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" font-style="italic" lengthAdjust="spacing" textLength="42" x="638.75" y="610.3467">Agent</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="526" x2="766" y1="619.5" y2="619.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" text-decoration="underline" textLength="230" x="531" y="636.4951">_registry: Dict[str, Type[Agent]]</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="59" x="531" y="652.792">llm: LLM</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="123" x="531" y="669.0889">_complete: None</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="526" x2="766" y1="676.3906" y2="676.3906"/></g><!--class LLM--><g id="elem_LLM"><rect codeLine="99" fill="#003153" height="158.0781" id="LLM" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="148" x="572" y="769"/><ellipse cx="628.25" cy="783" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M630.5938,778.6719 C629.6563,778.2344 629.0625,778.0938 628.1875,778.0938 C625.5625,778.0938 623.5625,780.1719 623.5625,782.8906 L623.5625,784.0156 C623.5625,786.5938 625.6719,788.4844 628.5625,788.4844 C629.7813,788.4844 630.9375,788.1875 631.6875,787.6406 C632.2656,787.2344 632.5938,786.7813 632.5938,786.3906 C632.5938,785.9375 632.2031,785.5469 631.7344,785.5469 C631.5156,785.5469 631.3125,785.625 631.125,785.8125 C630.6719,786.2969 630.6719,786.2969 630.4844,786.3906 C630.0625,786.6563 629.375,786.7813 628.6094,786.7813 C626.5625,786.7813 625.2656,785.6875 625.2656,783.9844 L625.2656,782.8906 C625.2656,781.1094 626.5156,779.7969 628.25,779.7969 C628.8281,779.7969 629.4375,779.9531 629.9063,780.2031 C630.3906,780.4844 630.5625,780.7031 630.6563,781.1094 C630.7188,781.5156 630.75,781.6406 630.8906,781.7656 C631.0313,781.9063 631.2656,782.0156 631.4844,782.0156 C631.75,782.0156 632.0156,781.875 632.1875,781.6563 C632.2969,781.5 632.3281,781.3125 632.3281,780.8906 L632.3281,779.4688 C632.3281,779.0313 632.3125,778.9063 632.2188,778.75 C632.0625,778.4844 631.7813,778.3438 631.4844,778.3438 C631.1875,778.3438 630.9844,778.4375 630.7656,778.75 L630.5938,778.6719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="28" x="645.75" y="787.8467">LLM</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="573" x2="719" y1="797" y2="797"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="91" x="578" y="813.9951">model: None</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="101" x="578" y="830.292">api_key: None</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="105" x="578" y="846.5889">base_url: None</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="124" x="578" y="862.8857">_debug_dir: None</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="126" x="578" y="879.1826">_debug_idx: None</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="118" x="578" y="895.4795">_debug_id: None</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="136" x="578" y="911.7764">_completion: None</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="573" x2="719" y1="919.0781" y2="919.0781"/></g><!--class AgentController--><g id="elem_AgentController"><rect codeLine="108" fill="#003153" height="158.0781" id="AgentController" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="296" x="787" y="316"/><ellipse cx="872.75" cy="330" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M875.0938,325.6719 C874.1563,325.2344 873.5625,325.0938 872.6875,325.0938 C870.0625,325.0938 868.0625,327.1719 868.0625,329.8906 L868.0625,331.0156 C868.0625,333.5938 870.1719,335.4844 873.0625,335.4844 C874.2813,335.4844 875.4375,335.1875 876.1875,334.6406 C876.7656,334.2344 877.0938,333.7813 877.0938,333.3906 C877.0938,332.9375 876.7031,332.5469 876.2344,332.5469 C876.0156,332.5469 875.8125,332.625 875.625,332.8125 C875.1719,333.2969 875.1719,333.2969 874.9844,333.3906 C874.5625,333.6563 873.875,333.7813 873.1094,333.7813 C871.0625,333.7813 869.7656,332.6875 869.7656,330.9844 L869.7656,329.8906 C869.7656,328.1094 871.0156,326.7969 872.75,326.7969 C873.3281,326.7969 873.9375,326.9531 874.4063,327.2031 C874.8906,327.4844 875.0625,327.7031 875.1563,328.1094 C875.2188,328.5156 875.25,328.6406 875.3906,328.7656 C875.5313,328.9063 875.7656,329.0156 875.9844,329.0156 C876.25,329.0156 876.5156,328.875 876.6875,328.6563 C876.7969,328.5 876.8281,328.3125 876.8281,327.8906 L876.8281,326.4688 C876.8281,326.0313 876.8125,325.9063 876.7188,325.75 C876.5625,325.4844 876.2813,325.3438 875.9844,325.3438 C875.6875,325.3438 875.4844,325.4375 875.2656,325.75 L875.0938,325.6719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="117" x="890.25" y="334.8467">AgentController</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="788" x2="1082" y1="344" y2="344"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="95" x="793" y="360.9951">agent: Agent</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="136" x="793" y="377.292">max_iterations: int</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="83" x="793" y="393.5889">workdir: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="284" x="793" y="409.8857">command_manager: CommandManager</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="87" x="793" y="426.1826">state: State</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="70" x="793" y="442.4795">plan: Plan</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="168" x="793" y="458.7764">callbacks: List[Callable]</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="788" x2="1082" y1="466.0781" y2="466.0781"/></g><!--class CommandManager--><g id="elem_CommandManager"><rect codeLine="120" fill="#003153" height="76.5938" id="CommandManager" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="162" x="569" y="356.5"/><ellipse cx="582" cy="370.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M584.3438,366.1719 C583.4063,365.7344 582.8125,365.5938 581.9375,365.5938 C579.3125,365.5938 577.3125,367.6719 577.3125,370.3906 L577.3125,371.5156 C577.3125,374.0938 579.4219,375.9844 582.3125,375.9844 C583.5313,375.9844 584.6875,375.6875 585.4375,375.1406 C586.0156,374.7344 586.3438,374.2813 586.3438,373.8906 C586.3438,373.4375 585.9531,373.0469 585.4844,373.0469 C585.2656,373.0469 585.0625,373.125 584.875,373.3125 C584.4219,373.7969 584.4219,373.7969 584.2344,373.8906 C583.8125,374.1563 583.125,374.2813 582.3594,374.2813 C580.3125,374.2813 579.0156,373.1875 579.0156,371.4844 L579.0156,370.3906 C579.0156,368.6094 580.2656,367.2969 582,367.2969 C582.5781,367.2969 583.1875,367.4531 583.6563,367.7031 C584.1406,367.9844 584.3125,368.2031 584.4063,368.6094 C584.4688,369.0156 584.5,369.1406 584.6406,369.2656 C584.7813,369.4063 585.0156,369.5156 585.2344,369.5156 C585.5,369.5156 585.7656,369.375 585.9375,369.1563 C586.0469,369 586.0781,368.8125 586.0781,368.3906 L586.0781,366.9688 C586.0781,366.5313 586.0625,366.4063 585.9688,366.25 C585.8125,365.9844 585.5313,365.8438 585.2344,365.8438 C584.9375,365.8438 584.7344,365.9375 584.5156,366.25 L584.3438,366.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="134" x="594" y="375.3467">CommandManager</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="570" x2="730" y1="384.5" y2="384.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="112" x="575" y="401.4951">directory: None</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="79" x="575" y="417.792">shell: None</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="570" x2="730" y1="425.0938" y2="425.0938"/></g><!--class Plan--><g id="elem_Plan"><rect codeLine="127" fill="#003153" height="109.1875" id="Plan" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="113" x="878.5" y="583.5"/><ellipse cx="916.25" cy="597.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M918.5938,593.1719 C917.6563,592.7344 917.0625,592.5938 916.1875,592.5938 C913.5625,592.5938 911.5625,594.6719 911.5625,597.3906 L911.5625,598.5156 C911.5625,601.0938 913.6719,602.9844 916.5625,602.9844 C917.7813,602.9844 918.9375,602.6875 919.6875,602.1406 C920.2656,601.7344 920.5938,601.2813 920.5938,600.8906 C920.5938,600.4375 920.2031,600.0469 919.7344,600.0469 C919.5156,600.0469 919.3125,600.125 919.125,600.3125 C918.6719,600.7969 918.6719,600.7969 918.4844,600.8906 C918.0625,601.1563 917.375,601.2813 916.6094,601.2813 C914.5625,601.2813 913.2656,600.1875 913.2656,598.4844 L913.2656,597.3906 C913.2656,595.6094 914.5156,594.2969 916.25,594.2969 C916.8281,594.2969 917.4375,594.4531 917.9063,594.7031 C918.3906,594.9844 918.5625,595.2031 918.6563,595.6094 C918.7188,596.0156 918.75,596.1406 918.8906,596.2656 C919.0313,596.4063 919.2656,596.5156 919.4844,596.5156 C919.75,596.5156 920.0156,596.375 920.1875,596.1563 C920.2969,596 920.3281,595.8125 920.3281,595.3906 L920.3281,593.9688 C920.3281,593.5313 920.3125,593.4063 920.2188,593.25 C920.0625,592.9844 919.7813,592.8438 919.4844,592.8438 C919.1875,592.8438 918.9844,592.9375 918.7656,593.25 L918.5938,593.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="30" x="933.75" y="602.3467">Plan</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="879.5" x2="990.5" y1="611.5" y2="611.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" text-decoration="underline" textLength="101" x="884.5" y="628.4951">main_goal: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" text-decoration="underline" textLength="73" x="884.5" y="644.792">task: Task</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="101" x="884.5" y="661.0889">main_goal: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="77" x="884.5" y="677.3857">task: None</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="879.5" x2="990.5" y1="684.6875" y2="684.6875"/></g><!--class Task--><g id="elem_Task"><rect codeLine="161" fill="#003153" height="190.6719" id="Task" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="153" x="841.5" y="752.5"/><ellipse cx="897.75" cy="766.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M900.0938,762.1719 C899.1563,761.7344 898.5625,761.5938 897.6875,761.5938 C895.0625,761.5938 893.0625,763.6719 893.0625,766.3906 L893.0625,767.5156 C893.0625,770.0938 895.1719,771.9844 898.0625,771.9844 C899.2813,771.9844 900.4375,771.6875 901.1875,771.1406 C901.7656,770.7344 902.0938,770.2813 902.0938,769.8906 C902.0938,769.4375 901.7031,769.0469 901.2344,769.0469 C901.0156,769.0469 900.8125,769.125 900.625,769.3125 C900.1719,769.7969 900.1719,769.7969 899.9844,769.8906 C899.5625,770.1563 898.875,770.2813 898.1094,770.2813 C896.0625,770.2813 894.7656,769.1875 894.7656,767.4844 L894.7656,766.3906 C894.7656,764.6094 896.0156,763.2969 897.75,763.2969 C898.3281,763.2969 898.9375,763.4531 899.4063,763.7031 C899.8906,763.9844 900.0625,764.2031 900.1563,764.6094 C900.2188,765.0156 900.25,765.1406 900.3906,765.2656 C900.5313,765.4063 900.7656,765.5156 900.9844,765.5156 C901.25,765.5156 901.5156,765.375 901.6875,765.1563 C901.7969,765 901.8281,764.8125 901.8281,764.3906 L901.8281,762.9688 C901.8281,762.5313 901.8125,762.4063 901.7188,762.25 C901.5625,761.9844 901.2813,761.8438 900.9844,761.8438 C900.6875,761.8438 900.4844,761.9375 900.2656,762.25 L900.0938,762.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="33" x="915.25" y="771.3467">Task</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="842.5" x2="993.5" y1="780.5" y2="780.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" text-decoration="underline" textLength="42" x="847.5" y="797.4951">id: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" text-decoration="underline" textLength="59" x="847.5" y="813.792">goal: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" text-decoration="underline" textLength="141" x="847.5" y="830.0889">parent: Task | None</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" text-decoration="underline" textLength="141" x="847.5" y="846.3857">subtasks: List[Task]</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="59" x="847.5" y="862.6826">id: None</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="59" x="847.5" y="878.9795">id: None</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="95" x="847.5" y="895.2764">parent: None</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="59" x="847.5" y="911.5732">goal: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="109" x="847.5" y="927.8701">subtasks: None</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="842.5" x2="993.5" y1="935.1719" y2="935.1719"/></g><!--class State--><g id="elem_State"><rect codeLine="133" fill="#003153" height="125.4844" id="State" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="432" x="1167" y="332.5"/><ellipse cx="1359.25" cy="346.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M1361.5938,342.1719 C1360.6563,341.7344 1360.0625,341.5938 1359.1875,341.5938 C1356.5625,341.5938 1354.5625,343.6719 1354.5625,346.3906 L1354.5625,347.5156 C1354.5625,350.0938 1356.6719,351.9844 1359.5625,351.9844 C1360.7813,351.9844 1361.9375,351.6875 1362.6875,351.1406 C1363.2656,350.7344 1363.5938,350.2813 1363.5938,349.8906 C1363.5938,349.4375 1363.2031,349.0469 1362.7344,349.0469 C1362.5156,349.0469 1362.3125,349.125 1362.125,349.3125 C1361.6719,349.7969 1361.6719,349.7969 1361.4844,349.8906 C1361.0625,350.1563 1360.375,350.2813 1359.6094,350.2813 C1357.5625,350.2813 1356.2656,349.1875 1356.2656,347.4844 L1356.2656,346.3906 C1356.2656,344.6094 1357.5156,343.2969 1359.25,343.2969 C1359.8281,343.2969 1360.4375,343.4531 1360.9063,343.7031 C1361.3906,343.9844 1361.5625,344.2031 1361.6563,344.6094 C1361.7188,345.0156 1361.75,345.1406 1361.8906,345.2656 C1362.0313,345.4063 1362.2656,345.5156 1362.4844,345.5156 C1362.75,345.5156 1363.0156,345.375 1363.1875,345.1563 C1363.2969,345 1363.3281,344.8125 1363.3281,344.3906 L1363.3281,342.9688 C1363.3281,342.5313 1363.3125,342.4063 1363.2188,342.25 C1363.0625,341.9844 1362.7813,341.8438 1362.4844,341.8438 C1362.1875,341.8438 1361.9844,341.9375 1361.7656,342.25 L1361.5938,342.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="40" x="1376.75" y="351.3467">State</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="1168" x2="1598" y1="360.5" y2="360.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="70" x="1173" y="377.4951">plan: Plan</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="92" x="1173" y="393.792">iteration: int</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="420" x="1173" y="410.0889">background_commands_obs: List[CmdOutputObservation]</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="288" x="1173" y="426.3857">history: List[Tuple[Action, Observation]]</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="333" x="1173" y="442.6826">updated_info: List[Tuple[Action, Observation]]</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="1168" x2="1598" y1="449.9844" y2="449.9844"/></g><!--class DockerInteractive--><g id="elem_DockerInteractive"><rect codeLine="146" fill="#003153" height="190.6719" id="DockerInteractive" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="417" x="51.5" y="299.5"/><ellipse cx="190.75" cy="313.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M193.0938,309.1719 C192.1563,308.7344 191.5625,308.5938 190.6875,308.5938 C188.0625,308.5938 186.0625,310.6719 186.0625,313.3906 L186.0625,314.5156 C186.0625,317.0938 188.1719,318.9844 191.0625,318.9844 C192.2813,318.9844 193.4375,318.6875 194.1875,318.1406 C194.7656,317.7344 195.0938,317.2813 195.0938,316.8906 C195.0938,316.4375 194.7031,316.0469 194.2344,316.0469 C194.0156,316.0469 193.8125,316.125 193.625,316.3125 C193.1719,316.7969 193.1719,316.7969 192.9844,316.8906 C192.5625,317.1563 191.875,317.2813 191.1094,317.2813 C189.0625,317.2813 187.7656,316.1875 187.7656,314.4844 L187.7656,313.3906 C187.7656,311.6094 189.0156,310.2969 190.75,310.2969 C191.3281,310.2969 191.9375,310.4531 192.4063,310.7031 C192.8906,310.9844 193.0625,311.2031 193.1563,311.6094 C193.2188,312.0156 193.25,312.1406 193.3906,312.2656 C193.5313,312.4063 193.7656,312.5156 193.9844,312.5156 C194.25,312.5156 194.5156,312.375 194.6875,312.1563 C194.7969,312 194.8281,311.8125 194.8281,311.3906 L194.8281,309.9688 C194.8281,309.5313 194.8125,309.4063 194.7188,309.25 C194.5625,308.9844 194.2813,308.8438 193.9844,308.8438 C193.6875,308.8438 193.4844,308.9375 193.2656,309.25 L193.0938,309.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="131" x="208.25" y="318.3467">DockerInteractive</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="52.5" x2="467.5" y1="327.5" y2="327.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" text-decoration="underline" textLength="405" x="57.5" y="344.4951">background_commands: Dict[int, BackgroundCommand]</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="127" x="57.5" y="360.792">instance_id: None</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="127" x="57.5" y="377.0889">instance_id: None</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="149" x="57.5" y="393.3857">workspace_dir: None</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="149" x="57.5" y="409.6826">workspace_dir: None</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="149" x="57.5" y="425.9795">workspace_dir: None</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="87" x="57.5" y="442.2764">timeout: int</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="166" x="57.5" y="458.5732">container_image: None</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="162" x="57.5" y="474.8701">container_name: None</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="52.5" x2="467.5" y1="482.1719" y2="482.1719"/></g><!--class BackgroundCommand--><g id="elem_BackgroundCommand"><rect fill="#003153" height="44" id="BackgroundCommand" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="186" x="167" y="616"/><ellipse cx="180" cy="630" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M182.3438,625.6719 C181.4063,625.2344 180.8125,625.0938 179.9375,625.0938 C177.3125,625.0938 175.3125,627.1719 175.3125,629.8906 L175.3125,631.0156 C175.3125,633.5938 177.4219,635.4844 180.3125,635.4844 C181.5313,635.4844 182.6875,635.1875 183.4375,634.6406 C184.0156,634.2344 184.3438,633.7813 184.3438,633.3906 C184.3438,632.9375 183.9531,632.5469 183.4844,632.5469 C183.2656,632.5469 183.0625,632.625 182.875,632.8125 C182.4219,633.2969 182.4219,633.2969 182.2344,633.3906 C181.8125,633.6563 181.125,633.7813 180.3594,633.7813 C178.3125,633.7813 177.0156,632.6875 177.0156,630.9844 L177.0156,629.8906 C177.0156,628.1094 178.2656,626.7969 180,626.7969 C180.5781,626.7969 181.1875,626.9531 181.6563,627.2031 C182.1406,627.4844 182.3125,627.7031 182.4063,628.1094 C182.4688,628.5156 182.5,628.6406 182.6406,628.7656 C182.7813,628.9063 183.0156,629.0156 183.2344,629.0156 C183.5,629.0156 183.7656,628.875 183.9375,628.6563 C184.0469,628.5 184.0781,628.3125 184.0781,627.8906 L184.0781,626.4688 C184.0781,626.0313 184.0625,625.9063 183.9688,625.75 C183.8125,625.4844 183.5313,625.3438 183.2344,625.3438 C182.9375,625.3438 182.7344,625.4375 182.5156,625.75 L182.3438,625.6719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="158" x="192" y="634.8467">BackgroundCommand</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="168" x2="352" y1="644" y2="644"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="168" x2="352" y1="652" y2="652"/></g><!--class Session--><g id="elem_Session"><rect codeLine="173" fill="#003153" height="109.1875" id="Session" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="281" x="582.5" y="89"/><ellipse cx="692.25" cy="103" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M694.5938,98.6719 C693.6563,98.2344 693.0625,98.0938 692.1875,98.0938 C689.5625,98.0938 687.5625,100.1719 687.5625,102.8906 L687.5625,104.0156 C687.5625,106.5938 689.6719,108.4844 692.5625,108.4844 C693.7813,108.4844 694.9375,108.1875 695.6875,107.6406 C696.2656,107.2344 696.5938,106.7813 696.5938,106.3906 C696.5938,105.9375 696.2031,105.5469 695.7344,105.5469 C695.5156,105.5469 695.3125,105.625 695.125,105.8125 C694.6719,106.2969 694.6719,106.2969 694.4844,106.3906 C694.0625,106.6563 693.375,106.7813 692.6094,106.7813 C690.5625,106.7813 689.2656,105.6875 689.2656,103.9844 L689.2656,102.8906 C689.2656,101.1094 690.5156,99.7969 692.25,99.7969 C692.8281,99.7969 693.4375,99.9531 693.9063,100.2031 C694.3906,100.4844 694.5625,100.7031 694.6563,101.1094 C694.7188,101.5156 694.75,101.6406 694.8906,101.7656 C695.0313,101.9063 695.2656,102.0156 695.4844,102.0156 C695.75,102.0156 696.0156,101.875 696.1875,101.6563 C696.2969,101.5 696.3281,101.3125 696.3281,100.8906 L696.3281,99.4688 C696.3281,99.0313 696.3125,98.9063 696.2188,98.75 C696.0625,98.4844 695.7813,98.3438 695.4844,98.3438 C695.1875,98.3438 694.9844,98.4375 694.7656,98.75 L694.5938,98.6719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="54" x="709.75" y="107.8467">Session</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="583.5" x2="862.5" y1="117" y2="117"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="125" x="588.5" y="133.9951">websocket: None</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="269" x="588.5" y="150.292">controller: Optional[AgentController]</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="167" x="588.5" y="166.5889">agent: Optional[Agent]</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="126" x="588.5" y="182.8857">agent_task: None</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="583.5" x2="862.5" y1="190.1875" y2="190.1875"/></g><!--reverse link ExecutableAction to AgentEchoAction--><g id="link_ExecutableAction_AgentEchoAction"><path codeLine="180" d="M1482.7207,854.0654 C1679.2907,865.2924 2173.24,900.107 2324,975.5 C2347.76,987.382 2369.05,1007.577 2385.43,1026.43 " fill="none" id="ExecutableAction-backto-AgentEchoAction" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="1464.75,853.039,1482.3786,860.0556,1483.0628,848.0752,1464.75,853.039" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link NotExecutableAction to AgentFinishAction--><g id="link_NotExecutableAction_AgentFinishAction"><path codeLine="181" d="M1204.9299,885.5585 C1221.8899,913.8295 1247.06,947.315 1292,967.5 C1324.44,982.068 1899.18,961.814 1932,975.5 C1960.87,987.539 1985.86,1012.526 2003.37,1034.057 " fill="none" id="NotExecutableAction-backto-AgentFinishAction" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="1195.67,870.123,1199.7847,888.6451,1210.075,882.4719,1195.67,870.123" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link Observation to AgentMessageObservation--><g id="link_Observation_AgentMessageObservation"><path codeLine="182" d="M4858.938,666.2298 C4898.188,681.5498 4933.43,698.027 4975,726 C5010.39,749.817 5045.22,783.607 5069.59,809.429 " fill="none" id="Observation-backto-AgentMessageObservation" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="4842.17,659.685,4856.7564,671.8192,4861.1196,660.6405,4842.17,659.685" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link ExecutableAction to AgentRecallAction--><g id="link_ExecutableAction_AgentRecallAction"><path codeLine="183" d="M1482.6893,858.1999 C1648.2193,874.8819 2011.72,916.805 2127,975.5 C2154.38,989.44 2179.13,1013.565 2197.03,1034.205 " fill="none" id="ExecutableAction-backto-AgentRecallAction" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="1464.78,856.395,1482.0877,864.1696,1483.2909,852.2301,1464.78,856.395" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link Observation to AgentRecallObservation--><g id="link_Observation_AgentRecallObservation"><path codeLine="184" d="M4860.0646,647.2181 C5021.4046,664.7551 5446.67,711.983 5475,726 C5509.86,743.248 5540.41,774.879 5561.82,801.475 " fill="none" id="Observation-backto-AgentRecallObservation" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="4842.17,645.273,4859.4162,653.1829,4860.713,641.2532,4842.17,645.273" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link NotExecutableAction to AgentSummarizeAction--><g id="link_NotExecutableAction_AgentSummarizeAction"><path codeLine="185" d="M1204.9749,885.4974 C1221.9649,913.7144 1247.13,947.154 1292,967.5 C1333.09,986.133 1655.69,959.83 1698,975.5 C1730.35,987.479 1760.22,1012.467 1781.69,1034.014 " fill="none" id="NotExecutableAction-backto-AgentSummarizeAction" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="1195.69,870.077,1199.8348,888.5924,1210.1151,882.4025,1195.69,870.077" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link NotExecutableAction to AgentThinkAction--><g id="link_NotExecutableAction_AgentThinkAction"><path codeLine="186" d="M1205.4261,885.7752 C1222.5861,913.8962 1247.61,946.766 1292,967.5 C1330.09,985.292 1441.65,960.7 1481,975.5 C1509.78,986.324 1536.91,1006.897 1558.08,1026.276 " fill="none" id="NotExecutableAction-backto-AgentThinkAction" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="1196.05,870.41,1200.3044,888.9005,1210.5479,882.6498,1196.05,870.41" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link Action to ExecutableAction--><g id="link_Action_ExecutableAction"><path codeLine="187" d="M1383.7531,678.0857 C1384.5131,717.9517 1385.83,785.946 1386.59,825.855 " fill="none" id="Action-backto-ExecutableAction" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="1383.41,660.089,1377.7542,678.2001,1389.752,677.9714,1383.41,660.089" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link Action to NotExecutableAction--><g id="link_Action_NotExecutableAction"><path codeLine="188" d="M1346.5,672.5576 C1327.82,689.8756 1314.33,702.895 1292,726 C1259.13,760.017 1222.89,801.497 1201.86,825.995 " fill="none" id="Action-backto-NotExecutableAction" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="1359.7,660.32,1342.4208,668.1576,1350.5792,676.9576,1359.7,660.32" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link NotExecutableAction to NullAction--><g id="link_NotExecutableAction_NullAction"><path codeLine="189" d="M1184,888.382 C1184,928.499 1184,997.104 1184,1042.646 " fill="none" id="NotExecutableAction-backto-NullAction" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="1184,870.382,1178,888.382,1190,888.382,1184,870.382" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link ExecutableAction to CmdKillAction--><g id="link_ExecutableAction_CmdKillAction"><path codeLine="190" d="M1482.718,852.1521 C1705.478,860.2771 2324.21,889.919 2512,975.5 C2541.06,988.745 2567.5,1013.145 2586.57,1034.094 " fill="none" id="ExecutableAction-backto-CmdKillAction" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="1464.73,851.496,1482.4993,858.1481,1482.9367,846.1561,1464.73,851.496" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link ExecutableAction to CmdRunAction--><g id="link_ExecutableAction_CmdRunAction"><path codeLine="191" d="M1482.5595,849.3387 C1730.2295,851.1227 2480.58,865.476 2699,975.5 C2721.87,987.018 2741.56,1007.291 2756.39,1026.293 " fill="none" id="ExecutableAction-backto-CmdRunAction" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="1464.56,849.209,1482.5163,855.3385,1482.6028,843.3388,1464.56,849.209" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link ExecutableAction to BrowseURLAction--><g id="link_ExecutableAction_BrowseURLAction"><path codeLine="192" d="M1482.499,849.7576 C1749.679,852.6316 2612.13,869.89 2871,975.5 C2902.69,988.43 2932.37,1013.113 2953.9,1034.277 " fill="none" id="ExecutableAction-backto-BrowseURLAction" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="1464.5,849.564,1482.4344,855.7573,1482.5635,843.758,1464.5,849.564" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link Observation to BrowserOutputObservation--><g id="link_Observation_BrowserOutputObservation"><path codeLine="193" d="M4707.7848,643.4485 C4569.2348,652.0825 4241.84,676.897 4138,726 C4104.97,741.619 4074.66,768.705 4051.64,793.295 " fill="none" id="Observation-backto-BrowserOutputObservation" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="4725.75,642.329,4707.4117,637.4601,4708.158,649.4369,4725.75,642.329" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link ExecutableAction to FileReadAction--><g id="link_ExecutableAction_FileReadAction"><path codeLine="194" d="M1482.6469,852.549 C1794.8669,864.457 2931,911.748 3081,975.5 C3111.08,988.286 3138.46,1012.971 3158.13,1034.173 " fill="none" id="ExecutableAction-backto-FileReadAction" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="1464.66,851.863,1482.4183,858.5447,1482.8756,846.5534,1464.66,851.863" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link Observation to FileReadObservation--><g id="link_Observation_FileReadObservation"><path codeLine="195" d="M4707.8076,639.5894 C4620.4276,642.1314 4470.72,656.14 4350,726 C4315.19,746.143 4286,781.91 4267.13,809.351 " fill="none" id="Observation-backto-FileReadObservation" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="4725.8,639.066,4707.6331,633.592,4707.9821,645.5869,4725.8,639.066" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link ExecutableAction to FileWriteAction--><g id="link_ExecutableAction_FileWriteAction"><path codeLine="196" d="M1482.7546,851.2435 C1817.6246,859.4605 3109.11,896.014 3274,975.5 C3297.39,986.773 3317.46,1007.267 3332.5,1026.477 " fill="none" id="ExecutableAction-backto-FileWriteAction" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="1464.76,850.802,1482.6074,857.2417,1482.9018,845.2454,1464.76,850.802" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link Observation to FileWriteObservation--><g id="link_Observation_FileWriteObservation"><path codeLine="197" d="M4708.3985,659.6903 C4662.5585,673.6283 4615.76,691.965 4567,726 C4534.31,748.819 4504.56,783.208 4484.44,809.499 " fill="none" id="Observation-backto-FileWriteObservation" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="4725.62,654.454,4706.653,653.9498,4710.1439,665.4308,4725.62,654.454" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link NotExecutableAction to AddTaskAction--><g id="link_NotExecutableAction_AddTaskAction"><path codeLine="198" d="M1204.876,885.6288 C1221.816,913.9658 1246.97,947.513 1292,967.5 C1319.37,979.648 3420.04,964.77 3448,975.5 C3471.59,984.555 3493.31,1001.372 3510.98,1018.462 " fill="none" id="NotExecutableAction-backto-AddTaskAction" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="1195.64,870.179,1199.726,888.7075,1210.0259,882.5502,1195.64,870.179" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link NotExecutableAction to ModifyTaskAction--><g id="link_NotExecutableAction_ModifyTaskAction"><path codeLine="199" d="M1204.8755,885.6311 C1221.8155,913.9701 1246.96,947.52 1292,967.5 C1321.82,980.731 3610.9,962.924 3641,975.5 C3666.29,986.066 3688.38,1006.871 3704.96,1026.465 " fill="none" id="NotExecutableAction-backto-ModifyTaskAction" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="1195.64,870.181,1199.7255,888.7096,1210.0255,882.5526,1195.64,870.181" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link Agent to Agent--><g id="link_Agent_Agent"><path codeLine="200" d="M778.6667,604.0754 C799.3387,609.0984 802,618.518 802,638 C802,657.482 787.678,669.735 767.006,674.758 " fill="none" id="Agent-backto-Agent" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="#D9D3D0" points="767.006,601.242,771.8919,606.5456,778.6667,604.0754,773.7808,598.7718,767.006,601.242" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link Agent to LLM--><g id="link_Agent_LLM"><path codeLine="201" d="M646,696.646 C646,721.281 646,740.375 646,768.742 " fill="none" id="Agent-backto-LLM" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="#D9D3D0" points="646,684.646,642,690.646,646,696.646,650,690.646,646,684.646" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link AgentController to Agent--><g id="link_AgentController_Agent"><path codeLine="202" d="M831.954,481.9314 C785.476,520.6904 740.205,558.441 700.632,591.442 " fill="none" id="AgentController-backto-Agent" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="#D9D3D0" points="841.17,474.246,834.0002,475.0167,831.954,481.9314,839.1238,481.1607,841.17,474.246" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link Observation to AgentErrorObservation--><g id="link_Observation_AgentErrorObservation"><path codeLine="203" d="M4761.6747,684.5213 C4742.2347,724.1633 4715.73,778.224 4696.32,817.789 " fill="none" id="Observation-backto-AgentErrorObservation" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="4769.6,668.36,4756.2875,681.8796,4767.0618,687.1631,4769.6,668.36" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link Observation to NullObservation--><g id="link_Observation_NullObservation"><path codeLine="204" d="M4806.3253,684.5213 C4825.7653,724.1633 4852.27,778.224 4871.68,817.789 " fill="none" id="Observation-backto-NullObservation" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="4798.4,668.36,4800.9382,687.1631,4811.7125,681.8796,4798.4,668.36" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link Plan to Task--><g id="link_Plan_Task"><path codeLine="205" d="M929.6447,704.5251 C928.1497,722.8211 927.407,731.905 925.727,752.453 " fill="none" id="Plan-backto-Task" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="#D9D3D0" points="930.622,692.565,926.1466,698.2193,929.6447,704.5251,934.1201,698.8708,930.622,692.565" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link State to Plan--><g id="link_State_Plan"><path codeLine="206" d="M1238.4982,462.4218 C1191.2682,483.5738 1148.53,502.035 1099,522 C1089.35,525.89 1086.14,525.037 1077,530 C1047.16,546.197 1016.74,568.23 991.758,588.094 " fill="none" id="State-backto-Plan" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="#D9D3D0" points="1249.45,457.517,1242.3391,456.3188,1238.4982,462.4218,1245.609,463.62,1249.45,457.517" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link State to CmdOutputObservation--><g id="link_State_CmdOutputObservation"><path codeLine="207" d="M1611.2886,399.2144 C2268.7286,409.2644 4225.15,445.588 4860,530 C5245.6,581.27 5373.87,535.458 5713,726 C5742.8,742.745 5769.92,769.308 5790.62,793.285 " fill="none" id="State-backto-CmdOutputObservation" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="#D9D3D0" points="1599.29,399.031,1605.2282,403.1222,1611.2886,399.2144,1605.3504,395.1232,1599.29,399.031" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link State to Action--><g id="link_State_Action"><path codeLine="208" d="M1383,469.751 C1383,521.631 1383,580.747 1383,615.76 " fill="none" id="State-backto-Action" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="#D9D3D0" points="1383,457.751,1379,463.751,1383,469.751,1387,463.751,1383,457.751" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link State to Observation--><g id="link_State_Observation"><path codeLine="209" d="M1611.27,412.1752 C2291.47,460.3752 4352.11,606.395 4725.91,632.884 " fill="none" id="State-backto-Observation" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="#D9D3D0" points="1599.3,411.327,1605.0023,415.7411,1611.27,412.1752,1605.5677,407.7611,1599.3,411.327" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link Observation to CmdOutputObservation--><g id="link_Observation_CmdOutputObservation"><path codeLine="210" d="M4859.958,649.0702 C4968.568,663.2742 5191.95,691.296 5396,708.5 C5466.3,714.427 5648.77,696.811 5713,726 C5745.19,740.629 5773.22,768.295 5793.87,793.483 " fill="none" id="Observation-backto-CmdOutputObservation" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="4842.11,646.736,4859.18,655.0195,4860.7361,643.1208,4842.11,646.736" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link DockerInteractive to BackgroundCommand--><g id="link_DockerInteractive_BackgroundCommand"><path codeLine="211" d="M260,502.558 C260,548.449 260,587.609 260,615.676 " fill="none" id="DockerInteractive-backto-BackgroundCommand" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="#D9D3D0" points="260,490.558,256,496.558,260,502.558,264,496.558,260,490.558" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link Observation to UserMessageObservation--><g id="link_Observation_UserMessageObservation"><path codeLine="212" d="M4860.1972,640.3987 C4949.0572,643.7517 5103.65,658.602 5231,726 C5268.97,746.094 5302.82,781.867 5325.18,809.323 " fill="none" id="Observation-backto-UserMessageObservation" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="4842.21,639.72,4859.971,646.3945,4860.4234,634.403,4842.21,639.72" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link Task to Task--><g id="link_Task_Task"><path codeLine="213" d="M1006.521,810.4654 C1026.414,812.8604 1029.5,824.416 1029.5,848 C1029.5,871.584 1014.5,884.574 994.607,886.969 " fill="none" id="Task-backto-Task" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="#D9D3D0" points="994.607,809.031,1000.0859,813.7195,1006.521,810.4654,1001.0421,805.7769,994.607,809.031" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link Session to AgentController--><g id="link_Session_AgentController"><path codeLine="214" d="M776.2487,207.1651 C805.4487,241.5341 836.093,277.598 868.667,315.933 " fill="none" id="Session-backto-AgentController" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="#D9D3D0" points="768.479,198.02,769.3155,205.1824,776.2487,207.1651,775.4122,200.0026,768.479,198.02" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link Session to Agent--><g id="link_Session_Agent"><path codeLine="215" d="M573.0465,205.0112 C561.5085,214.2312 560.714,217.485 553,230 C484.902,340.476 509.72,399.652 553,522 C562.077,547.659 579.582,571.786 596.979,591.25 " fill="none" id="Session-backto-Agent" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="#D9D3D0" points="582.421,197.52,575.2367,198.1407,573.0465,205.0112,580.2308,204.3904,582.421,197.52" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--link AgentController to State--><g id="link_AgentController_State"><path codeLine="216" d="M1083.31,395 C1111.12,395 1132.92,395 1160.72,395 " fill="none" id="AgentController-to-State" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="#D9D3D0" points="1166.72,395,1157.72,391,1161.72,395,1157.72,399,1166.72,395" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--link AgentController to Plan--><g id="link_AgentController_Plan"><path codeLine="217" d="M935,474.246 C935,509.843 935,545.074 935,577.129 " fill="none" id="AgentController-to-Plan" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="#D9D3D0" points="935,583.129,939,574.129,935,578.129,931,574.129,935,583.129" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--link AgentController to CommandManager--><g id="link_AgentController_CommandManager"><path codeLine="218" d="M786.977,395 C768.408,395 755.839,395 737.27,395 " fill="none" id="AgentController-to-CommandManager" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="#D9D3D0" points="731.27,395,740.27,399,736.27,395,740.27,391,731.27,395" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--link CommandManager to DockerInteractive--><g id="link_CommandManager_DockerInteractive"><path codeLine="219" d="M568.916,395 C535.514,395 508.113,395 474.711,395 " fill="none" id="CommandManager-to-DockerInteractive" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="#D9D3D0" points="468.711,395,477.711,399,473.711,395,477.711,391,468.711,395" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><text fill="#D9D3D0" font-family="Verdana" font-size="10" lengthAdjust="spacing" textLength="175" x="2874" y="1211.7822">Based on f3fda42; Generated by</text><text fill="#D9D3D0" font-family="Verdana" font-size="10" font-style="italic" lengthAdjust="spacing" textLength="43" x="3052" y="1211.7822">py2puml</text><!--SRC=[hLZVRzis47xNNy6-3ea3T7loXW5fcWx3agP8KkmXC0HAEjk49L4ZgIHUs_-zHygIA9cEAKiFjgJJyUF7-qMUtgarP42Yj8H2i5m5xmf1LnabfOI_SmKYWuHH1LzelA4ha6H9Kmb14ATKIi8Bo1DuPlcCnefnlAmWLxDB_NyTh_cbaP9l0I4nHxHSpObK0Xz5cUSqIc5E8ivJ55G0rUiV7l2VMCxasffW82AF98XdQc0Du2r8YVXthRo2vHgo8csDyITw3p5DKuleVoM8RGqva6G5rkUOGSO50padDqog9yHQJC7yeSmoAjZ_O96NHkP9Vn_oSStoZGMdrhnShKT6HKGbpAvV8IwL7jp0lptWCrTUOsmVz0tV2Ugtf_DbLNPYnNVzwzbLblp3EcDPCYSwemUYt9Tv9stHttbIEoZ2Ch0IlDIIGIuI_0LNzy5SljxVM3EK8XsU31MGk2jLKQg-Lon4gQWgPHZp16fZW11SDEpz4sF9Kk35x1DUxe4crWeAgjR3br03zTdRQ2Un-rSm1GVexG9MdaRN84_3Lr6vaRFB97d4cmvPOUqIAqvRLvQH6JGdAHOvty2hvhdb2LjkUrEnn8uIS9k4HdX54Td3RukQGGi5h92NBeqVMMoAy1bvt1RmP7GM2_9DJyFY7wYSfXdMwfjRFGuph4X1p_-Pv-1O2IgR7-fNrHw3ETrf8zs2XHlODi-wYeGc0tQ2C86eN8K94tqHIrxtHQraHymOum0r7KwupQGWAdk4bi0i-wfvhihPoZZNlD8heQyXHfGm0IFh17tXOcFOrY5hAb28VpWSnLULuBPwRjtte2ywX5AAZB_WlnwDswKkMlNUU8NFkk0lV7RRQrqg-l7k4UEM5NhiPrto1X3N2h7YelMXN4EQ7ZIwJLDl5oSGr2QQQGjL0KLP7ZQfPiUfpfuvqNbZIxlwZTe1kiOxC-ESAiDjzpJUhvtVRZ3XpdGon0NLtikIlPAlZpfhV6aCQBGUIupRfohJpuYjgdNB8a4gISZo9VSOyBRzNOJiVJDiD-7UJWglJ7Ns9G-tIHmVyTVc-f776n3ccAwhrdDbO8S9TpK99peZ7vhNkrZiL2QMutqUWrq9N3ATfBAWABGBon2fOXdmKhNcoHN65OYGPPWQZLehpsa6Nadn5M-dESsRFAd2lzqmR7CviwRUmyp0xuQn_RhToAhWm_kk2opBjxSrwExHlJFkZBCVEBXGB3uIZQ8Dz51TpQ9U898wZ5J7ubNrcfExGfk7fa-zQhveYtbNfNaHTef2u7be_-Fx-RbdLndu7-kFejhDP73ywD_3ysWb9rk_tKrEm7IldvpIght-SKfeguyCtkott4XEuvyCv5Z1wBNsci5nyRFV84w3rxIA8-6SpU6uw3xK88vZwkm1nn5rj86JSRGwmV4a-ytVw11tj80JOVRRlS3TjltIHMZVUEbRRLbmMaVaC_-fXRtVkeo3xBKPWQkJwAwcEJa5xax0eMrQ0X_jOmTmBv3z4ZzuxidCUsmHHu_zNOvz_RqJ_pYsxkDru3erUyI4-sJQ7JWWgOP2kxDkI1QV_-bkTgU0S-N5oM3UNoM2KxvaTCrmB6A3OCavFc4tAY4Xw9Rbhyk4_lR-T_8NvFgR04gZBRcuABRlYp9BBov-0W00]--></g></svg>+<?xml version="1.0" encoding="us-ascii" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" contentStyleType="text/css" height="1227px" preserveAspectRatio="none" style="width:5978px;height:1227px;background:#003153;" version="1.1" viewBox="0 0 5978 1227" width="5978px" zoomAndPan="magnify"><defs/><g><rect fill="#003153" height="1227" style="stroke:none;stroke-width:1.0;" width="5978" x="0" y="0"/><!--cluster openhands--><g id="cluster_openhands"><path d="M13.5,11 L96.5,11 A3.75,3.75 0 0 1 99,13.5 L106,33.2969 L5968.5,33.2969 A2.5,2.5 0 0 1 5971,35.7969 L5971,1189 A2.5,2.5 0 0 1 5968.5,1191.5 L13.5,1191.5 A2.5,2.5 0 0 1 11,1189 L11,13.5 A2.5,2.5 0 0 1 13.5,11 " fill="#003153" style="stroke:#D9D3D0;stroke-width:1.0;"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="11" x2="106" y1="33.2969" y2="33.2969"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="82" x="15" y="25.9951">openhands</text></g><!--cluster action--><g id="cluster_action"><path d="M1055.5,538 L1108.5,538 A3.75,3.75 0 0 1 1111,540.5 L1118,560.2969 L3852.5,560.2969 A2.5,2.5 0 0 1 3855,562.7969 L3855,1165 A2.5,2.5 0 0 1 3852.5,1167.5 L1055.5,1167.5 A2.5,2.5 0 0 1 1053,1165 L1053,540.5 A2.5,2.5 0 0 1 1055.5,538 " fill="#003153" style="stroke:#D9D3D0;stroke-width:1.0;"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="1053" x2="1118" y1="560.2969" y2="560.2969"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="52" x="1057" y="552.9951">action</text></g><!--cluster agent--><g id="cluster_agent"><path d="M1507.5,991.5 L1555.5,991.5 A3.75,3.75 0 0 1 1558,994 L1565,1013.7969 L2509.5,1013.7969 A2.5,2.5 0 0 1 2512,1016.2969 L2512,1133 A2.5,2.5 0 0 1 2509.5,1135.5 L1507.5,1135.5 A2.5,2.5 0 0 1 1505,1133 L1505,994 A2.5,2.5 0 0 1 1507.5,991.5 " fill="#003153" style="stroke:#D9D3D0;stroke-width:1.0;"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="1505" x2="1565" y1="1013.7969" y2="1013.7969"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="47" x="1509" y="1006.4951">agent</text></g><!--cluster base--><g id="cluster_base"><path d="M1079.5,581 L1118.5,581 A3.75,3.75 0 0 1 1121,583.5 L1128,603.2969 L1478.5,603.2969 A2.5,2.5 0 0 1 1481,605.7969 L1481,1116.5 A2.5,2.5 0 0 1 1478.5,1119 L1079.5,1119 A2.5,2.5 0 0 1 1077,1116.5 L1077,583.5 A2.5,2.5 0 0 1 1079.5,581 " fill="#003153" style="stroke:#D9D3D0;stroke-width:1.0;"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="1077" x2="1128" y1="603.2969" y2="603.2969"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="38" x="1081" y="595.9951">base</text></g><!--cluster bash--><g id="cluster_bash"><path d="M2538.5,991.5 L2578.5,991.5 A3.75,3.75 0 0 1 2581,994 L2588,1013.7969 L2868.5,1013.7969 A2.5,2.5 0 0 1 2871,1016.2969 L2871,1133 A2.5,2.5 0 0 1 2868.5,1135.5 L2538.5,1135.5 A2.5,2.5 0 0 1 2536,1133 L2536,994 A2.5,2.5 0 0 1 2538.5,991.5 " fill="#003153" style="stroke:#D9D3D0;stroke-width:1.0;"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="2536" x2="2588" y1="1013.7969" y2="1013.7969"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="39" x="2540" y="1006.4951">bash</text></g><!--cluster browse--><g id="cluster_browse"><path d="M2897.5,999.5 L2956.5,999.5 A3.75,3.75 0 0 1 2959,1002 L2966,1021.7969 L3078.5,1021.7969 A2.5,2.5 0 0 1 3081,1024.2969 L3081,1125 A2.5,2.5 0 0 1 3078.5,1127.5 L2897.5,1127.5 A2.5,2.5 0 0 1 2895,1125 L2895,1002 A2.5,2.5 0 0 1 2897.5,999.5 " fill="#003153" style="stroke:#D9D3D0;stroke-width:1.0;"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="2895" x2="2966" y1="1021.7969" y2="1021.7969"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="58" x="2899" y="1014.4951">browse</text></g><!--cluster fileop--><g id="cluster_fileop"><path d="M3107.5,991.5 L3154.5,991.5 A3.75,3.75 0 0 1 3157,994 L3164,1013.7969 L3445.5,1013.7969 A2.5,2.5 0 0 1 3448,1016.2969 L3448,1133 A2.5,2.5 0 0 1 3445.5,1135.5 L3107.5,1135.5 A2.5,2.5 0 0 1 3105,1133 L3105,994 A2.5,2.5 0 0 1 3107.5,991.5 " fill="#003153" style="stroke:#D9D3D0;stroke-width:1.0;"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="3105" x2="3164" y1="1013.7969" y2="1013.7969"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="46" x="3109" y="1006.4951">fileop</text></g><!--cluster tasks--><g id="cluster_tasks"><path d="M3474.5,983.5 L3520.5,983.5 A3.75,3.75 0 0 1 3523,986 L3530,1005.7969 L3828.5,1005.7969 A2.5,2.5 0 0 1 3831,1008.2969 L3831,1141 A2.5,2.5 0 0 1 3828.5,1143.5 L3474.5,1143.5 A2.5,2.5 0 0 1 3472,1141 L3472,986 A2.5,2.5 0 0 1 3474.5,983.5 " fill="#003153" style="stroke:#D9D3D0;stroke-width:1.0;"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="3472" x2="3530" y1="1005.7969" y2="1005.7969"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="45" x="3476" y="998.4951">tasks</text></g><!--cluster observation--><g id="cluster_observation"><path d="M3881.5,573 L3979.5,573 A3.75,3.75 0 0 1 3982,575.5 L3989,595.2969 L5944.5,595.2969 A2.5,2.5 0 0 1 5947,597.7969 L5947,916 A2.5,2.5 0 0 1 5944.5,918.5 L3881.5,918.5 A2.5,2.5 0 0 1 3879,916 L3879,575.5 A2.5,2.5 0 0 1 3881.5,573 " fill="#003153" style="stroke:#D9D3D0;stroke-width:1.0;"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="3879" x2="3989" y1="595.2969" y2="595.2969"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="97" x="3883" y="587.9951">observation</text></g><!--cluster agent--><g id="cluster_agent"><path d="M511.5,556.5 L559.5,556.5 A3.75,3.75 0 0 1 562,559 L569,578.7969 L798.5,578.7969 A2.5,2.5 0 0 1 801,581.2969 L801,698 A2.5,2.5 0 0 1 798.5,700.5 L511.5,700.5 A2.5,2.5 0 0 1 509,698 L509,559 A2.5,2.5 0 0 1 511.5,556.5 " fill="#003153" style="stroke:#D9D3D0;stroke-width:1.0;"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="509" x2="569" y1="578.7969" y2="578.7969"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="47" x="513" y="571.4951">agent</text></g><!--cluster llm--><g id="cluster_llm"><path d="M558.5,734 L614.5,734 A3.75,3.75 0 0 1 617,736.5 L624,756.2969 L733.5,756.2969 A2.5,2.5 0 0 1 736,758.7969 L736,940.5 A2.5,2.5 0 0 1 733.5,943 L558.5,943 A2.5,2.5 0 0 1 556,940.5 L556,736.5 A2.5,2.5 0 0 1 558.5,734 " fill="#003153" style="stroke:#D9D3D0;stroke-width:1.0;"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="556" x2="624" y1="756.2969" y2="756.2969"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="55" x="560" y="748.9951">llm.llm</text></g><!--cluster controller--><g id="cluster_controller"><path d="M531.5,238 L612.5,238 A3.75,3.75 0 0 1 615,240.5 L622,260.2969 L1120.5,260.2969 A2.5,2.5 0 0 1 1123,262.7969 L1123,511.5 A2.5,2.5 0 0 1 1120.5,514 L531.5,514 A2.5,2.5 0 0 1 529,511.5 L529,240.5 A2.5,2.5 0 0 1 531.5,238 " fill="#003153" style="stroke:#D9D3D0;stroke-width:1.0;"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="529" x2="622" y1="260.2969" y2="260.2969"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="80" x="533" y="252.9951">controller</text></g><!--cluster agent_controller--><g id="cluster_agent_controller"><path d="M773.5,281 L908.5,281 A3.75,3.75 0 0 1 911,283.5 L918,303.2969 L1096.5,303.2969 A2.5,2.5 0 0 1 1099,305.7969 L1099,487.5 A2.5,2.5 0 0 1 1096.5,490 L773.5,490 A2.5,2.5 0 0 1 771,487.5 L771,283.5 A2.5,2.5 0 0 1 773.5,281 " fill="#003153" style="stroke:#D9D3D0;stroke-width:1.0;"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="771" x2="918" y1="303.2969" y2="303.2969"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="134" x="775" y="295.9951">agent_controller</text></g><!--cluster command_manager--><g id="cluster_command_manager"><path d="M555.5,321.5 L713.5,321.5 A3.75,3.75 0 0 1 716,324 L723,343.7969 L744.5,343.7969 A2.5,2.5 0 0 1 747,346.2969 L747,447 A2.5,2.5 0 0 1 744.5,449.5 L555.5,449.5 A2.5,2.5 0 0 1 553,447 L553,324 A2.5,2.5 0 0 1 555.5,321.5 " fill="#003153" style="stroke:#D9D3D0;stroke-width:1.0;"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="553" x2="723" y1="343.7969" y2="343.7969"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="157" x="557" y="336.4951">command_manager</text></g><!--cluster plan--><g id="cluster_plan"><path d="M827.5,548.5 L863.5,548.5 A3.75,3.75 0 0 1 866,551 L873,570.7969 L1026.5,570.7969 A2.5,2.5 0 0 1 1029,573.2969 L1029,957 A2.5,2.5 0 0 1 1026.5,959.5 L827.5,959.5 A2.5,2.5 0 0 1 825,957 L825,551 A2.5,2.5 0 0 1 827.5,548.5 " fill="#003153" style="stroke:#D9D3D0;stroke-width:1.0;"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="825" x2="873" y1="570.7969" y2="570.7969"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="35" x="829" y="563.4951">plan</text></g><!--cluster state--><g id="cluster_state"><path d="M1153.5,297.5 L1198.5,297.5 A3.75,3.75 0 0 1 1201,300 L1208,319.7969 L1612.5,319.7969 A2.5,2.5 0 0 1 1615,322.2969 L1615,471 A2.5,2.5 0 0 1 1612.5,473.5 L1153.5,473.5 A2.5,2.5 0 0 1 1151,471 L1151,300 A2.5,2.5 0 0 1 1153.5,297.5 " fill="#003153" style="stroke:#D9D3D0;stroke-width:1.0;"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="1151" x2="1208" y1="319.7969" y2="319.7969"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="44" x="1155" y="312.4951">state</text></g><!--cluster sandbox--><g id="cluster_sandbox"><path d="M37.5,264.5 L179.5,264.5 A3.75,3.75 0 0 1 182,267 L189,286.7969 L482.5,286.7969 A2.5,2.5 0 0 1 485,289.2969 L485,673.5 A2.5,2.5 0 0 1 482.5,676 L37.5,676 A2.5,2.5 0 0 1 35,673.5 L35,267 A2.5,2.5 0 0 1 37.5,264.5 " fill="#003153" style="stroke:#D9D3D0;stroke-width:1.0;"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="35" x2="189" y1="286.7969" y2="286.7969"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="141" x="39" y="279.4951">sandbox.sandbox</text></g><!--cluster session--><g id="cluster_session"><path d="M568.5,54 L685.5,54 A3.75,3.75 0 0 1 688,56.5 L695,76.2969 L877.5,76.2969 A2.5,2.5 0 0 1 880,78.7969 L880,211.5 A2.5,2.5 0 0 1 877.5,214 L568.5,214 A2.5,2.5 0 0 1 566,211.5 L566,56.5 A2.5,2.5 0 0 1 568.5,54 " fill="#003153" style="stroke:#D9D3D0;stroke-width:1.0;"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="566" x2="695" y1="76.2969" y2="76.2969"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" font-weight="bold" lengthAdjust="spacing" textLength="116" x="570" y="68.9951">server.session</text></g><!--class AgentEchoAction--><g id="elem_AgentEchoAction"><rect codeLine="4" fill="#003153" height="92.8906" id="AgentEchoAction" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="154" x="2342" y="1026.5"/><ellipse cx="2355" cy="1040.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M2357.3438,1036.1719 C2356.4063,1035.7344 2355.8125,1035.5938 2354.9375,1035.5938 C2352.3125,1035.5938 2350.3125,1037.6719 2350.3125,1040.3906 L2350.3125,1041.5156 C2350.3125,1044.0938 2352.4219,1045.9844 2355.3125,1045.9844 C2356.5313,1045.9844 2357.6875,1045.6875 2358.4375,1045.1406 C2359.0156,1044.7344 2359.3438,1044.2813 2359.3438,1043.8906 C2359.3438,1043.4375 2358.9531,1043.0469 2358.4844,1043.0469 C2358.2656,1043.0469 2358.0625,1043.125 2357.875,1043.3125 C2357.4219,1043.7969 2357.4219,1043.7969 2357.2344,1043.8906 C2356.8125,1044.1563 2356.125,1044.2813 2355.3594,1044.2813 C2353.3125,1044.2813 2352.0156,1043.1875 2352.0156,1041.4844 L2352.0156,1040.3906 C2352.0156,1038.6094 2353.2656,1037.2969 2355,1037.2969 C2355.5781,1037.2969 2356.1875,1037.4531 2356.6563,1037.7031 C2357.1406,1037.9844 2357.3125,1038.2031 2357.4063,1038.6094 C2357.4688,1039.0156 2357.5,1039.1406 2357.6406,1039.2656 C2357.7813,1039.4063 2358.0156,1039.5156 2358.2344,1039.5156 C2358.5,1039.5156 2358.7656,1039.375 2358.9375,1039.1563 C2359.0469,1039 2359.0781,1038.8125 2359.0781,1038.3906 L2359.0781,1036.9688 C2359.0781,1036.5313 2359.0625,1036.4063 2358.9688,1036.25 C2358.8125,1035.9844 2358.5313,1035.8438 2358.2344,1035.8438 C2357.9375,1035.8438 2357.7344,1035.9375 2357.5156,1036.25 L2357.3438,1036.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="126" x="2367" y="1045.3467">AgentEchoAction</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="2343" x2="2495" y1="1054.5" y2="1054.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="87" x="2348" y="1071.4951">content: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="104" x="2348" y="1087.792">runnable: bool</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="74" x="2348" y="1104.0889">action: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="2343" x2="2495" y1="1111.3906" y2="1111.3906"/></g><!--class AgentFinishAction--><g id="elem_AgentFinishAction"><rect codeLine="9" fill="#003153" height="76.5938" id="AgentFinishAction" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="160" x="1950" y="1034.5"/><ellipse cx="1963" cy="1048.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M1965.3438,1044.1719 C1964.4063,1043.7344 1963.8125,1043.5938 1962.9375,1043.5938 C1960.3125,1043.5938 1958.3125,1045.6719 1958.3125,1048.3906 L1958.3125,1049.5156 C1958.3125,1052.0938 1960.4219,1053.9844 1963.3125,1053.9844 C1964.5313,1053.9844 1965.6875,1053.6875 1966.4375,1053.1406 C1967.0156,1052.7344 1967.3438,1052.2813 1967.3438,1051.8906 C1967.3438,1051.4375 1966.9531,1051.0469 1966.4844,1051.0469 C1966.2656,1051.0469 1966.0625,1051.125 1965.875,1051.3125 C1965.4219,1051.7969 1965.4219,1051.7969 1965.2344,1051.8906 C1964.8125,1052.1563 1964.125,1052.2813 1963.3594,1052.2813 C1961.3125,1052.2813 1960.0156,1051.1875 1960.0156,1049.4844 L1960.0156,1048.3906 C1960.0156,1046.6094 1961.2656,1045.2969 1963,1045.2969 C1963.5781,1045.2969 1964.1875,1045.4531 1964.6563,1045.7031 C1965.1406,1045.9844 1965.3125,1046.2031 1965.4063,1046.6094 C1965.4688,1047.0156 1965.5,1047.1406 1965.6406,1047.2656 C1965.7813,1047.4063 1966.0156,1047.5156 1966.2344,1047.5156 C1966.5,1047.5156 1966.7656,1047.375 1966.9375,1047.1563 C1967.0469,1047 1967.0781,1046.8125 1967.0781,1046.3906 L1967.0781,1044.9688 C1967.0781,1044.5313 1967.0625,1044.4063 1966.9688,1044.25 C1966.8125,1043.9844 1966.5313,1043.8438 1966.2344,1043.8438 C1965.9375,1043.8438 1965.7344,1043.9375 1965.5156,1044.25 L1965.3438,1044.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="132" x="1975" y="1053.3467">AgentFinishAction</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="1951" x2="2109" y1="1062.5" y2="1062.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="104" x="1956" y="1079.4951">runnable: bool</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="74" x="1956" y="1095.792">action: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="1951" x2="2109" y1="1103.0938" y2="1103.0938"/></g><!--class AgentRecallAction--><g id="elem_AgentRecallAction"><rect codeLine="17" fill="#003153" height="76.5938" id="AgentRecallAction" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="162" x="2145" y="1034.5"/><ellipse cx="2158" cy="1048.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M2160.3438,1044.1719 C2159.4063,1043.7344 2158.8125,1043.5938 2157.9375,1043.5938 C2155.3125,1043.5938 2153.3125,1045.6719 2153.3125,1048.3906 L2153.3125,1049.5156 C2153.3125,1052.0938 2155.4219,1053.9844 2158.3125,1053.9844 C2159.5313,1053.9844 2160.6875,1053.6875 2161.4375,1053.1406 C2162.0156,1052.7344 2162.3438,1052.2813 2162.3438,1051.8906 C2162.3438,1051.4375 2161.9531,1051.0469 2161.4844,1051.0469 C2161.2656,1051.0469 2161.0625,1051.125 2160.875,1051.3125 C2160.4219,1051.7969 2160.4219,1051.7969 2160.2344,1051.8906 C2159.8125,1052.1563 2159.125,1052.2813 2158.3594,1052.2813 C2156.3125,1052.2813 2155.0156,1051.1875 2155.0156,1049.4844 L2155.0156,1048.3906 C2155.0156,1046.6094 2156.2656,1045.2969 2158,1045.2969 C2158.5781,1045.2969 2159.1875,1045.4531 2159.6563,1045.7031 C2160.1406,1045.9844 2160.3125,1046.2031 2160.4063,1046.6094 C2160.4688,1047.0156 2160.5,1047.1406 2160.6406,1047.2656 C2160.7813,1047.4063 2161.0156,1047.5156 2161.2344,1047.5156 C2161.5,1047.5156 2161.7656,1047.375 2161.9375,1047.1563 C2162.0469,1047 2162.0781,1046.8125 2162.0781,1046.3906 L2162.0781,1044.9688 C2162.0781,1044.5313 2162.0625,1044.4063 2161.9688,1044.25 C2161.8125,1043.9844 2161.5313,1043.8438 2161.2344,1043.8438 C2160.9375,1043.8438 2160.7344,1043.9375 2160.5156,1044.25 L2160.3438,1044.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="134" x="2170" y="1053.3467">AgentRecallAction</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="2146" x2="2306" y1="1062.5" y2="1062.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="69" x="2151" y="1079.4951">query: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="74" x="2151" y="1095.792">action: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="2146" x2="2306" y1="1103.0938" y2="1103.0938"/></g><!--class AgentSummarizeAction--><g id="elem_AgentSummarizeAction"><rect codeLine="26" fill="#003153" height="76.5938" id="AgentSummarizeAction" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="199" x="1715.5" y="1034.5"/><ellipse cx="1728.5" cy="1048.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M1730.8438,1044.1719 C1729.9063,1043.7344 1729.3125,1043.5938 1728.4375,1043.5938 C1725.8125,1043.5938 1723.8125,1045.6719 1723.8125,1048.3906 L1723.8125,1049.5156 C1723.8125,1052.0938 1725.9219,1053.9844 1728.8125,1053.9844 C1730.0313,1053.9844 1731.1875,1053.6875 1731.9375,1053.1406 C1732.5156,1052.7344 1732.8438,1052.2813 1732.8438,1051.8906 C1732.8438,1051.4375 1732.4531,1051.0469 1731.9844,1051.0469 C1731.7656,1051.0469 1731.5625,1051.125 1731.375,1051.3125 C1730.9219,1051.7969 1730.9219,1051.7969 1730.7344,1051.8906 C1730.3125,1052.1563 1729.625,1052.2813 1728.8594,1052.2813 C1726.8125,1052.2813 1725.5156,1051.1875 1725.5156,1049.4844 L1725.5156,1048.3906 C1725.5156,1046.6094 1726.7656,1045.2969 1728.5,1045.2969 C1729.0781,1045.2969 1729.6875,1045.4531 1730.1563,1045.7031 C1730.6406,1045.9844 1730.8125,1046.2031 1730.9063,1046.6094 C1730.9688,1047.0156 1731,1047.1406 1731.1406,1047.2656 C1731.2813,1047.4063 1731.5156,1047.5156 1731.7344,1047.5156 C1732,1047.5156 1732.2656,1047.375 1732.4375,1047.1563 C1732.5469,1047 1732.5781,1046.8125 1732.5781,1046.3906 L1732.5781,1044.9688 C1732.5781,1044.5313 1732.5625,1044.4063 1732.4688,1044.25 C1732.3125,1043.9844 1732.0313,1043.8438 1731.7344,1043.8438 C1731.4375,1043.8438 1731.2344,1043.9375 1731.0156,1044.25 L1730.8438,1044.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="171" x="1740.5" y="1053.3467">AgentSummarizeAction</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="1716.5" x2="1913.5" y1="1062.5" y2="1062.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="94" x="1721.5" y="1079.4951">summary: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="74" x="1721.5" y="1095.792">action: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="1716.5" x2="1913.5" y1="1103.0938" y2="1103.0938"/></g><!--class AgentThinkAction--><g id="elem_AgentThinkAction"><rect codeLine="30" fill="#003153" height="92.8906" id="AgentThinkAction" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="159" x="1521.5" y="1026.5"/><ellipse cx="1534.5" cy="1040.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M1536.8438,1036.1719 C1535.9063,1035.7344 1535.3125,1035.5938 1534.4375,1035.5938 C1531.8125,1035.5938 1529.8125,1037.6719 1529.8125,1040.3906 L1529.8125,1041.5156 C1529.8125,1044.0938 1531.9219,1045.9844 1534.8125,1045.9844 C1536.0313,1045.9844 1537.1875,1045.6875 1537.9375,1045.1406 C1538.5156,1044.7344 1538.8438,1044.2813 1538.8438,1043.8906 C1538.8438,1043.4375 1538.4531,1043.0469 1537.9844,1043.0469 C1537.7656,1043.0469 1537.5625,1043.125 1537.375,1043.3125 C1536.9219,1043.7969 1536.9219,1043.7969 1536.7344,1043.8906 C1536.3125,1044.1563 1535.625,1044.2813 1534.8594,1044.2813 C1532.8125,1044.2813 1531.5156,1043.1875 1531.5156,1041.4844 L1531.5156,1040.3906 C1531.5156,1038.6094 1532.7656,1037.2969 1534.5,1037.2969 C1535.0781,1037.2969 1535.6875,1037.4531 1536.1563,1037.7031 C1536.6406,1037.9844 1536.8125,1038.2031 1536.9063,1038.6094 C1536.9688,1039.0156 1537,1039.1406 1537.1406,1039.2656 C1537.2813,1039.4063 1537.5156,1039.5156 1537.7344,1039.5156 C1538,1039.5156 1538.2656,1039.375 1538.4375,1039.1563 C1538.5469,1039 1538.5781,1038.8125 1538.5781,1038.3906 L1538.5781,1036.9688 C1538.5781,1036.5313 1538.5625,1036.4063 1538.4688,1036.25 C1538.3125,1035.9844 1538.0313,1035.8438 1537.7344,1035.8438 C1537.4375,1035.8438 1537.2344,1035.9375 1537.0156,1036.25 L1536.8438,1036.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="131" x="1546.5" y="1045.3467">AgentThinkAction</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="1522.5" x2="1679.5" y1="1054.5" y2="1054.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="87" x="1527.5" y="1071.4951">thought: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="104" x="1527.5" y="1087.792">runnable: bool</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="74" x="1527.5" y="1104.0889">action: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="1522.5" x2="1679.5" y1="1111.3906" y2="1111.3906"/></g><!--class ExecutableAction--><g id="elem_ExecutableAction"><rect codeLine="35" fill="#003153" height="44" id="ExecutableAction" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="155" x="1309.5" y="826"/><ellipse cx="1322.5" cy="840" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M1324.8438,835.6719 C1323.9063,835.2344 1323.3125,835.0938 1322.4375,835.0938 C1319.8125,835.0938 1317.8125,837.1719 1317.8125,839.8906 L1317.8125,841.0156 C1317.8125,843.5938 1319.9219,845.4844 1322.8125,845.4844 C1324.0313,845.4844 1325.1875,845.1875 1325.9375,844.6406 C1326.5156,844.2344 1326.8438,843.7813 1326.8438,843.3906 C1326.8438,842.9375 1326.4531,842.5469 1325.9844,842.5469 C1325.7656,842.5469 1325.5625,842.625 1325.375,842.8125 C1324.9219,843.2969 1324.9219,843.2969 1324.7344,843.3906 C1324.3125,843.6563 1323.625,843.7813 1322.8594,843.7813 C1320.8125,843.7813 1319.5156,842.6875 1319.5156,840.9844 L1319.5156,839.8906 C1319.5156,838.1094 1320.7656,836.7969 1322.5,836.7969 C1323.0781,836.7969 1323.6875,836.9531 1324.1563,837.2031 C1324.6406,837.4844 1324.8125,837.7031 1324.9063,838.1094 C1324.9688,838.5156 1325,838.6406 1325.1406,838.7656 C1325.2813,838.9063 1325.5156,839.0156 1325.7344,839.0156 C1326,839.0156 1326.2656,838.875 1326.4375,838.6563 C1326.5469,838.5 1326.5781,838.3125 1326.5781,837.8906 L1326.5781,836.4688 C1326.5781,836.0313 1326.5625,835.9063 1326.4688,835.75 C1326.3125,835.4844 1326.0313,835.3438 1325.7344,835.3438 C1325.4375,835.3438 1325.2344,835.4375 1325.0156,835.75 L1324.8438,835.6719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="127" x="1334.5" y="844.8467">ExecutableAction</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="1310.5" x2="1463.5" y1="854" y2="854"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="1310.5" x2="1463.5" y1="862" y2="862"/></g><!--class NotExecutableAction--><g id="elem_NotExecutableAction"><rect codeLine="37" fill="#003153" height="44" id="NotExecutableAction" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="181" x="1093.5" y="826"/><ellipse cx="1106.5" cy="840" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M1108.8438,835.6719 C1107.9063,835.2344 1107.3125,835.0938 1106.4375,835.0938 C1103.8125,835.0938 1101.8125,837.1719 1101.8125,839.8906 L1101.8125,841.0156 C1101.8125,843.5938 1103.9219,845.4844 1106.8125,845.4844 C1108.0313,845.4844 1109.1875,845.1875 1109.9375,844.6406 C1110.5156,844.2344 1110.8438,843.7813 1110.8438,843.3906 C1110.8438,842.9375 1110.4531,842.5469 1109.9844,842.5469 C1109.7656,842.5469 1109.5625,842.625 1109.375,842.8125 C1108.9219,843.2969 1108.9219,843.2969 1108.7344,843.3906 C1108.3125,843.6563 1107.625,843.7813 1106.8594,843.7813 C1104.8125,843.7813 1103.5156,842.6875 1103.5156,840.9844 L1103.5156,839.8906 C1103.5156,838.1094 1104.7656,836.7969 1106.5,836.7969 C1107.0781,836.7969 1107.6875,836.9531 1108.1563,837.2031 C1108.6406,837.4844 1108.8125,837.7031 1108.9063,838.1094 C1108.9688,838.5156 1109,838.6406 1109.1406,838.7656 C1109.2813,838.9063 1109.5156,839.0156 1109.7344,839.0156 C1110,839.0156 1110.2656,838.875 1110.4375,838.6563 C1110.5469,838.5 1110.5781,838.3125 1110.5781,837.8906 L1110.5781,836.4688 C1110.5781,836.0313 1110.5625,835.9063 1110.4688,835.75 C1110.3125,835.4844 1110.0313,835.3438 1109.7344,835.3438 C1109.4375,835.3438 1109.2344,835.4375 1109.0156,835.75 L1108.8438,835.6719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="153" x="1118.5" y="844.8467">NotExecutableAction</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="1094.5" x2="1273.5" y1="854" y2="854"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="1094.5" x2="1273.5" y1="862" y2="862"/></g><!--class Action--><g id="elem_Action"><rect codeLine="42" fill="#003153" height="44" id="Action" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="75" x="1345.5" y="616"/><ellipse cx="1358.5" cy="630" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M1360.8438,625.6719 C1359.9063,625.2344 1359.3125,625.0938 1358.4375,625.0938 C1355.8125,625.0938 1353.8125,627.1719 1353.8125,629.8906 L1353.8125,631.0156 C1353.8125,633.5938 1355.9219,635.4844 1358.8125,635.4844 C1360.0313,635.4844 1361.1875,635.1875 1361.9375,634.6406 C1362.5156,634.2344 1362.8438,633.7813 1362.8438,633.3906 C1362.8438,632.9375 1362.4531,632.5469 1361.9844,632.5469 C1361.7656,632.5469 1361.5625,632.625 1361.375,632.8125 C1360.9219,633.2969 1360.9219,633.2969 1360.7344,633.3906 C1360.3125,633.6563 1359.625,633.7813 1358.8594,633.7813 C1356.8125,633.7813 1355.5156,632.6875 1355.5156,630.9844 L1355.5156,629.8906 C1355.5156,628.1094 1356.7656,626.7969 1358.5,626.7969 C1359.0781,626.7969 1359.6875,626.9531 1360.1563,627.2031 C1360.6406,627.4844 1360.8125,627.7031 1360.9063,628.1094 C1360.9688,628.5156 1361,628.6406 1361.1406,628.7656 C1361.2813,628.9063 1361.5156,629.0156 1361.7344,629.0156 C1362,629.0156 1362.2656,628.875 1362.4375,628.6563 C1362.5469,628.5 1362.5781,628.3125 1362.5781,627.8906 L1362.5781,626.4688 C1362.5781,626.0313 1362.5625,625.9063 1362.4688,625.75 C1362.3125,625.4844 1362.0313,625.3438 1361.7344,625.3438 C1361.4375,625.3438 1361.2344,625.4375 1361.0156,625.75 L1360.8438,625.6719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="47" x="1370.5" y="634.8467">Action</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="1346.5" x2="1419.5" y1="644" y2="644"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="1346.5" x2="1419.5" y1="652" y2="652"/></g><!--class NullAction--><g id="elem_NullAction"><rect codeLine="44" fill="#003153" height="60.2969" id="NullAction" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="101" x="1133.5" y="1043"/><ellipse cx="1146.5" cy="1057" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M1148.8438,1052.6719 C1147.9063,1052.2344 1147.3125,1052.0938 1146.4375,1052.0938 C1143.8125,1052.0938 1141.8125,1054.1719 1141.8125,1056.8906 L1141.8125,1058.0156 C1141.8125,1060.5938 1143.9219,1062.4844 1146.8125,1062.4844 C1148.0313,1062.4844 1149.1875,1062.1875 1149.9375,1061.6406 C1150.5156,1061.2344 1150.8438,1060.7813 1150.8438,1060.3906 C1150.8438,1059.9375 1150.4531,1059.5469 1149.9844,1059.5469 C1149.7656,1059.5469 1149.5625,1059.625 1149.375,1059.8125 C1148.9219,1060.2969 1148.9219,1060.2969 1148.7344,1060.3906 C1148.3125,1060.6563 1147.625,1060.7813 1146.8594,1060.7813 C1144.8125,1060.7813 1143.5156,1059.6875 1143.5156,1057.9844 L1143.5156,1056.8906 C1143.5156,1055.1094 1144.7656,1053.7969 1146.5,1053.7969 C1147.0781,1053.7969 1147.6875,1053.9531 1148.1563,1054.2031 C1148.6406,1054.4844 1148.8125,1054.7031 1148.9063,1055.1094 C1148.9688,1055.5156 1149,1055.6406 1149.1406,1055.7656 C1149.2813,1055.9063 1149.5156,1056.0156 1149.7344,1056.0156 C1150,1056.0156 1150.2656,1055.875 1150.4375,1055.6563 C1150.5469,1055.5 1150.5781,1055.3125 1150.5781,1054.8906 L1150.5781,1053.4688 C1150.5781,1053.0313 1150.5625,1052.9063 1150.4688,1052.75 C1150.3125,1052.4844 1150.0313,1052.3438 1149.7344,1052.3438 C1149.4375,1052.3438 1149.2344,1052.4375 1149.0156,1052.75 L1148.8438,1052.6719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="73" x="1158.5" y="1061.8467">NullAction</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="1134.5" x2="1233.5" y1="1071" y2="1071"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="74" x="1139.5" y="1087.9951">action: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="1134.5" x2="1233.5" y1="1095.2969" y2="1095.2969"/></g><!--class CmdKillAction--><g id="elem_CmdKillAction"><rect codeLine="47" fill="#003153" height="76.5938" id="CmdKillAction" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="130" x="2552" y="1034.5"/><ellipse cx="2565" cy="1048.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M2567.3438,1044.1719 C2566.4063,1043.7344 2565.8125,1043.5938 2564.9375,1043.5938 C2562.3125,1043.5938 2560.3125,1045.6719 2560.3125,1048.3906 L2560.3125,1049.5156 C2560.3125,1052.0938 2562.4219,1053.9844 2565.3125,1053.9844 C2566.5313,1053.9844 2567.6875,1053.6875 2568.4375,1053.1406 C2569.0156,1052.7344 2569.3438,1052.2813 2569.3438,1051.8906 C2569.3438,1051.4375 2568.9531,1051.0469 2568.4844,1051.0469 C2568.2656,1051.0469 2568.0625,1051.125 2567.875,1051.3125 C2567.4219,1051.7969 2567.4219,1051.7969 2567.2344,1051.8906 C2566.8125,1052.1563 2566.125,1052.2813 2565.3594,1052.2813 C2563.3125,1052.2813 2562.0156,1051.1875 2562.0156,1049.4844 L2562.0156,1048.3906 C2562.0156,1046.6094 2563.2656,1045.2969 2565,1045.2969 C2565.5781,1045.2969 2566.1875,1045.4531 2566.6563,1045.7031 C2567.1406,1045.9844 2567.3125,1046.2031 2567.4063,1046.6094 C2567.4688,1047.0156 2567.5,1047.1406 2567.6406,1047.2656 C2567.7813,1047.4063 2568.0156,1047.5156 2568.2344,1047.5156 C2568.5,1047.5156 2568.7656,1047.375 2568.9375,1047.1563 C2569.0469,1047 2569.0781,1046.8125 2569.0781,1046.3906 L2569.0781,1044.9688 C2569.0781,1044.5313 2569.0625,1044.4063 2568.9688,1044.25 C2568.8125,1043.9844 2568.5313,1043.8438 2568.2344,1043.8438 C2567.9375,1043.8438 2567.7344,1043.9375 2567.5156,1044.25 L2567.3438,1044.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="102" x="2577" y="1053.3467">CmdKillAction</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="2553" x2="2681" y1="1062.5" y2="1062.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="42" x="2558" y="1079.4951">id: int</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="74" x="2558" y="1095.792">action: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="2553" x2="2681" y1="1103.0938" y2="1103.0938"/></g><!--class CmdRunAction--><g id="elem_CmdRunAction"><rect codeLine="51" fill="#003153" height="92.8906" id="CmdRunAction" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="138" x="2717" y="1026.5"/><ellipse cx="2731.35" cy="1040.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M2733.6938,1036.1719 C2732.7563,1035.7344 2732.1625,1035.5938 2731.2875,1035.5938 C2728.6625,1035.5938 2726.6625,1037.6719 2726.6625,1040.3906 L2726.6625,1041.5156 C2726.6625,1044.0938 2728.7719,1045.9844 2731.6625,1045.9844 C2732.8813,1045.9844 2734.0375,1045.6875 2734.7875,1045.1406 C2735.3656,1044.7344 2735.6938,1044.2813 2735.6938,1043.8906 C2735.6938,1043.4375 2735.3031,1043.0469 2734.8344,1043.0469 C2734.6156,1043.0469 2734.4125,1043.125 2734.225,1043.3125 C2733.7719,1043.7969 2733.7719,1043.7969 2733.5844,1043.8906 C2733.1625,1044.1563 2732.475,1044.2813 2731.7094,1044.2813 C2729.6625,1044.2813 2728.3656,1043.1875 2728.3656,1041.4844 L2728.3656,1040.3906 C2728.3656,1038.6094 2729.6156,1037.2969 2731.35,1037.2969 C2731.9281,1037.2969 2732.5375,1037.4531 2733.0063,1037.7031 C2733.4906,1037.9844 2733.6625,1038.2031 2733.7563,1038.6094 C2733.8188,1039.0156 2733.85,1039.1406 2733.9906,1039.2656 C2734.1313,1039.4063 2734.3656,1039.5156 2734.5844,1039.5156 C2734.85,1039.5156 2735.1156,1039.375 2735.2875,1039.1563 C2735.3969,1039 2735.4281,1038.8125 2735.4281,1038.3906 L2735.4281,1036.9688 C2735.4281,1036.5313 2735.4125,1036.4063 2735.3188,1036.25 C2735.1625,1035.9844 2734.8813,1035.8438 2734.5844,1035.8438 C2734.2875,1035.8438 2734.0844,1035.9375 2733.8656,1036.25 L2733.6938,1036.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="107" x="2743.65" y="1045.3467">CmdRunAction</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="2718" x2="2854" y1="1054.5" y2="1054.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="100" x="2723" y="1071.4951">command: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="126" x="2723" y="1087.792">background: bool</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="74" x="2723" y="1104.0889">action: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="2718" x2="2854" y1="1111.3906" y2="1111.3906"/></g><!--class BrowseURLAction--><g id="elem_BrowseURLAction"><rect codeLine="56" fill="#003153" height="76.5938" id="BrowseURLAction" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="154" x="2911" y="1034.5"/><ellipse cx="2924" cy="1048.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M2926.3438,1044.1719 C2925.4063,1043.7344 2924.8125,1043.5938 2923.9375,1043.5938 C2921.3125,1043.5938 2919.3125,1045.6719 2919.3125,1048.3906 L2919.3125,1049.5156 C2919.3125,1052.0938 2921.4219,1053.9844 2924.3125,1053.9844 C2925.5313,1053.9844 2926.6875,1053.6875 2927.4375,1053.1406 C2928.0156,1052.7344 2928.3438,1052.2813 2928.3438,1051.8906 C2928.3438,1051.4375 2927.9531,1051.0469 2927.4844,1051.0469 C2927.2656,1051.0469 2927.0625,1051.125 2926.875,1051.3125 C2926.4219,1051.7969 2926.4219,1051.7969 2926.2344,1051.8906 C2925.8125,1052.1563 2925.125,1052.2813 2924.3594,1052.2813 C2922.3125,1052.2813 2921.0156,1051.1875 2921.0156,1049.4844 L2921.0156,1048.3906 C2921.0156,1046.6094 2922.2656,1045.2969 2924,1045.2969 C2924.5781,1045.2969 2925.1875,1045.4531 2925.6563,1045.7031 C2926.1406,1045.9844 2926.3125,1046.2031 2926.4063,1046.6094 C2926.4688,1047.0156 2926.5,1047.1406 2926.6406,1047.2656 C2926.7813,1047.4063 2927.0156,1047.5156 2927.2344,1047.5156 C2927.5,1047.5156 2927.7656,1047.375 2927.9375,1047.1563 C2928.0469,1047 2928.0781,1046.8125 2928.0781,1046.3906 L2928.0781,1044.9688 C2928.0781,1044.5313 2928.0625,1044.4063 2927.9688,1044.25 C2927.8125,1043.9844 2927.5313,1043.8438 2927.2344,1043.8438 C2926.9375,1043.8438 2926.7344,1043.9375 2926.5156,1044.25 L2926.3438,1044.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="126" x="2936" y="1053.3467">BrowseURLAction</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="2912" x2="3064" y1="1062.5" y2="1062.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="47" x="2917" y="1079.4951">url: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="74" x="2917" y="1095.792">action: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="2912" x2="3064" y1="1103.0938" y2="1103.0938"/></g><!--class FileReadAction--><g id="elem_FileReadAction"><rect codeLine="66" fill="#003153" height="76.5938" id="FileReadAction" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="136" x="3121" y="1034.5"/><ellipse cx="3134" cy="1048.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M3136.3438,1044.1719 C3135.4063,1043.7344 3134.8125,1043.5938 3133.9375,1043.5938 C3131.3125,1043.5938 3129.3125,1045.6719 3129.3125,1048.3906 L3129.3125,1049.5156 C3129.3125,1052.0938 3131.4219,1053.9844 3134.3125,1053.9844 C3135.5313,1053.9844 3136.6875,1053.6875 3137.4375,1053.1406 C3138.0156,1052.7344 3138.3438,1052.2813 3138.3438,1051.8906 C3138.3438,1051.4375 3137.9531,1051.0469 3137.4844,1051.0469 C3137.2656,1051.0469 3137.0625,1051.125 3136.875,1051.3125 C3136.4219,1051.7969 3136.4219,1051.7969 3136.2344,1051.8906 C3135.8125,1052.1563 3135.125,1052.2813 3134.3594,1052.2813 C3132.3125,1052.2813 3131.0156,1051.1875 3131.0156,1049.4844 L3131.0156,1048.3906 C3131.0156,1046.6094 3132.2656,1045.2969 3134,1045.2969 C3134.5781,1045.2969 3135.1875,1045.4531 3135.6563,1045.7031 C3136.1406,1045.9844 3136.3125,1046.2031 3136.4063,1046.6094 C3136.4688,1047.0156 3136.5,1047.1406 3136.6406,1047.2656 C3136.7813,1047.4063 3137.0156,1047.5156 3137.2344,1047.5156 C3137.5,1047.5156 3137.7656,1047.375 3137.9375,1047.1563 C3138.0469,1047 3138.0781,1046.8125 3138.0781,1046.3906 L3138.0781,1044.9688 C3138.0781,1044.5313 3138.0625,1044.4063 3137.9688,1044.25 C3137.8125,1043.9844 3137.5313,1043.8438 3137.2344,1043.8438 C3136.9375,1043.8438 3136.7344,1043.9375 3136.5156,1044.25 L3136.3438,1044.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="108" x="3146" y="1053.3467">FileReadAction</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="3122" x2="3256" y1="1062.5" y2="1062.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="63" x="3127" y="1079.4951">path: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="74" x="3127" y="1095.792">action: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="3122" x2="3256" y1="1103.0938" y2="1103.0938"/></g><!--class FileWriteAction--><g id="elem_FileWriteAction"><rect codeLine="74" fill="#003153" height="92.8906" id="FileWriteAction" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="140" x="3292" y="1026.5"/><ellipse cx="3305" cy="1040.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M3307.3438,1036.1719 C3306.4063,1035.7344 3305.8125,1035.5938 3304.9375,1035.5938 C3302.3125,1035.5938 3300.3125,1037.6719 3300.3125,1040.3906 L3300.3125,1041.5156 C3300.3125,1044.0938 3302.4219,1045.9844 3305.3125,1045.9844 C3306.5313,1045.9844 3307.6875,1045.6875 3308.4375,1045.1406 C3309.0156,1044.7344 3309.3438,1044.2813 3309.3438,1043.8906 C3309.3438,1043.4375 3308.9531,1043.0469 3308.4844,1043.0469 C3308.2656,1043.0469 3308.0625,1043.125 3307.875,1043.3125 C3307.4219,1043.7969 3307.4219,1043.7969 3307.2344,1043.8906 C3306.8125,1044.1563 3306.125,1044.2813 3305.3594,1044.2813 C3303.3125,1044.2813 3302.0156,1043.1875 3302.0156,1041.4844 L3302.0156,1040.3906 C3302.0156,1038.6094 3303.2656,1037.2969 3305,1037.2969 C3305.5781,1037.2969 3306.1875,1037.4531 3306.6563,1037.7031 C3307.1406,1037.9844 3307.3125,1038.2031 3307.4063,1038.6094 C3307.4688,1039.0156 3307.5,1039.1406 3307.6406,1039.2656 C3307.7813,1039.4063 3308.0156,1039.5156 3308.2344,1039.5156 C3308.5,1039.5156 3308.7656,1039.375 3308.9375,1039.1563 C3309.0469,1039 3309.0781,1038.8125 3309.0781,1038.3906 L3309.0781,1036.9688 C3309.0781,1036.5313 3309.0625,1036.4063 3308.9688,1036.25 C3308.8125,1035.9844 3308.5313,1035.8438 3308.2344,1035.8438 C3307.9375,1035.8438 3307.7344,1035.9375 3307.5156,1036.25 L3307.3438,1036.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="112" x="3317" y="1045.3467">FileWriteAction</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="3293" x2="3431" y1="1054.5" y2="1054.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="63" x="3298" y="1071.4951">path: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="94" x="3298" y="1087.792">contents: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="74" x="3298" y="1104.0889">action: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="3293" x2="3431" y1="1111.3906" y2="1111.3906"/></g><!--class AddTaskAction--><g id="elem_AddTaskAction"><rect codeLine="83" fill="#003153" height="109.1875" id="AddTaskAction" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="136" x="3488" y="1018.5"/><ellipse cx="3501" cy="1032.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M3503.3438,1028.1719 C3502.4063,1027.7344 3501.8125,1027.5938 3500.9375,1027.5938 C3498.3125,1027.5938 3496.3125,1029.6719 3496.3125,1032.3906 L3496.3125,1033.5156 C3496.3125,1036.0938 3498.4219,1037.9844 3501.3125,1037.9844 C3502.5313,1037.9844 3503.6875,1037.6875 3504.4375,1037.1406 C3505.0156,1036.7344 3505.3438,1036.2813 3505.3438,1035.8906 C3505.3438,1035.4375 3504.9531,1035.0469 3504.4844,1035.0469 C3504.2656,1035.0469 3504.0625,1035.125 3503.875,1035.3125 C3503.4219,1035.7969 3503.4219,1035.7969 3503.2344,1035.8906 C3502.8125,1036.1563 3502.125,1036.2813 3501.3594,1036.2813 C3499.3125,1036.2813 3498.0156,1035.1875 3498.0156,1033.4844 L3498.0156,1032.3906 C3498.0156,1030.6094 3499.2656,1029.2969 3501,1029.2969 C3501.5781,1029.2969 3502.1875,1029.4531 3502.6563,1029.7031 C3503.1406,1029.9844 3503.3125,1030.2031 3503.4063,1030.6094 C3503.4688,1031.0156 3503.5,1031.1406 3503.6406,1031.2656 C3503.7813,1031.4063 3504.0156,1031.5156 3504.2344,1031.5156 C3504.5,1031.5156 3504.7656,1031.375 3504.9375,1031.1563 C3505.0469,1031 3505.0781,1030.8125 3505.0781,1030.3906 L3505.0781,1028.9688 C3505.0781,1028.5313 3505.0625,1028.4063 3504.9688,1028.25 C3504.8125,1027.9844 3504.5313,1027.8438 3504.2344,1027.8438 C3503.9375,1027.8438 3503.7344,1027.9375 3503.5156,1028.25 L3503.3438,1028.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="108" x="3513" y="1037.3467">AddTaskAction</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="3489" x2="3623" y1="1046.5" y2="1046.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="78" x="3494" y="1063.4951">parent: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="59" x="3494" y="1079.792">goal: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="94" x="3494" y="1096.0889">subtasks: list</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="74" x="3494" y="1112.3857">action: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="3489" x2="3623" y1="1119.6875" y2="1119.6875"/></g><!--class ModifyTaskAction--><g id="elem_ModifyTaskAction"><rect codeLine="89" fill="#003153" height="92.8906" id="ModifyTaskAction" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="156" x="3659" y="1026.5"/><ellipse cx="3672" cy="1040.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M3674.3438,1036.1719 C3673.4063,1035.7344 3672.8125,1035.5938 3671.9375,1035.5938 C3669.3125,1035.5938 3667.3125,1037.6719 3667.3125,1040.3906 L3667.3125,1041.5156 C3667.3125,1044.0938 3669.4219,1045.9844 3672.3125,1045.9844 C3673.5313,1045.9844 3674.6875,1045.6875 3675.4375,1045.1406 C3676.0156,1044.7344 3676.3438,1044.2813 3676.3438,1043.8906 C3676.3438,1043.4375 3675.9531,1043.0469 3675.4844,1043.0469 C3675.2656,1043.0469 3675.0625,1043.125 3674.875,1043.3125 C3674.4219,1043.7969 3674.4219,1043.7969 3674.2344,1043.8906 C3673.8125,1044.1563 3673.125,1044.2813 3672.3594,1044.2813 C3670.3125,1044.2813 3669.0156,1043.1875 3669.0156,1041.4844 L3669.0156,1040.3906 C3669.0156,1038.6094 3670.2656,1037.2969 3672,1037.2969 C3672.5781,1037.2969 3673.1875,1037.4531 3673.6563,1037.7031 C3674.1406,1037.9844 3674.3125,1038.2031 3674.4063,1038.6094 C3674.4688,1039.0156 3674.5,1039.1406 3674.6406,1039.2656 C3674.7813,1039.4063 3675.0156,1039.5156 3675.2344,1039.5156 C3675.5,1039.5156 3675.7656,1039.375 3675.9375,1039.1563 C3676.0469,1039 3676.0781,1038.8125 3676.0781,1038.3906 L3676.0781,1036.9688 C3676.0781,1036.5313 3676.0625,1036.4063 3675.9688,1036.25 C3675.8125,1035.9844 3675.5313,1035.8438 3675.2344,1035.8438 C3674.9375,1035.8438 3674.7344,1035.9375 3674.5156,1036.25 L3674.3438,1036.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="128" x="3684" y="1045.3467">ModifyTaskAction</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="3660" x2="3814" y1="1054.5" y2="1054.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="42" x="3665" y="1071.4951">id: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="67" x="3665" y="1087.792">state: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="74" x="3665" y="1104.0889">action: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="3660" x2="3814" y1="1111.3906" y2="1111.3906"/></g><!--class AgentMessageObservation--><g id="elem_AgentMessageObservation"><rect codeLine="13" fill="#003153" height="76.5938" id="AgentMessageObservation" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="221" x="4992.5" y="809.5"/><ellipse cx="5005.5" cy="823.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M5007.8438,819.1719 C5006.9063,818.7344 5006.3125,818.5938 5005.4375,818.5938 C5002.8125,818.5938 5000.8125,820.6719 5000.8125,823.3906 L5000.8125,824.5156 C5000.8125,827.0938 5002.9219,828.9844 5005.8125,828.9844 C5007.0313,828.9844 5008.1875,828.6875 5008.9375,828.1406 C5009.5156,827.7344 5009.8438,827.2813 5009.8438,826.8906 C5009.8438,826.4375 5009.4531,826.0469 5008.9844,826.0469 C5008.7656,826.0469 5008.5625,826.125 5008.375,826.3125 C5007.9219,826.7969 5007.9219,826.7969 5007.7344,826.8906 C5007.3125,827.1563 5006.625,827.2813 5005.8594,827.2813 C5003.8125,827.2813 5002.5156,826.1875 5002.5156,824.4844 L5002.5156,823.3906 C5002.5156,821.6094 5003.7656,820.2969 5005.5,820.2969 C5006.0781,820.2969 5006.6875,820.4531 5007.1563,820.7031 C5007.6406,820.9844 5007.8125,821.2031 5007.9063,821.6094 C5007.9688,822.0156 5008,822.1406 5008.1406,822.2656 C5008.2813,822.4063 5008.5156,822.5156 5008.7344,822.5156 C5009,822.5156 5009.2656,822.375 5009.4375,822.1563 C5009.5469,822 5009.5781,821.8125 5009.5781,821.3906 L5009.5781,819.9688 C5009.5781,819.5313 5009.5625,819.4063 5009.4688,819.25 C5009.3125,818.9844 5009.0313,818.8438 5008.7344,818.8438 C5008.4375,818.8438 5008.2344,818.9375 5008.0156,819.25 L5007.8438,819.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="193" x="5017.5" y="828.3467">AgentMessageObservation</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="4993.5" x2="5212.5" y1="837.5" y2="837.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="57" x="4998.5" y="854.4951">role: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="115" x="4998.5" y="870.792">observation: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="4993.5" x2="5212.5" y1="878.0938" y2="878.0938"/></g><!--class AgentRecallObservation--><g id="elem_AgentRecallObservation"><rect codeLine="21" fill="#003153" height="92.8906" id="AgentRecallObservation" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="203" x="5492.5" y="801.5"/><ellipse cx="5505.5" cy="815.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M5507.8438,811.1719 C5506.9063,810.7344 5506.3125,810.5938 5505.4375,810.5938 C5502.8125,810.5938 5500.8125,812.6719 5500.8125,815.3906 L5500.8125,816.5156 C5500.8125,819.0938 5502.9219,820.9844 5505.8125,820.9844 C5507.0313,820.9844 5508.1875,820.6875 5508.9375,820.1406 C5509.5156,819.7344 5509.8438,819.2813 5509.8438,818.8906 C5509.8438,818.4375 5509.4531,818.0469 5508.9844,818.0469 C5508.7656,818.0469 5508.5625,818.125 5508.375,818.3125 C5507.9219,818.7969 5507.9219,818.7969 5507.7344,818.8906 C5507.3125,819.1563 5506.625,819.2813 5505.8594,819.2813 C5503.8125,819.2813 5502.5156,818.1875 5502.5156,816.4844 L5502.5156,815.3906 C5502.5156,813.6094 5503.7656,812.2969 5505.5,812.2969 C5506.0781,812.2969 5506.6875,812.4531 5507.1563,812.7031 C5507.6406,812.9844 5507.8125,813.2031 5507.9063,813.6094 C5507.9688,814.0156 5508,814.1406 5508.1406,814.2656 C5508.2813,814.4063 5508.5156,814.5156 5508.7344,814.5156 C5509,814.5156 5509.2656,814.375 5509.4375,814.1563 C5509.5469,814 5509.5781,813.8125 5509.5781,813.3906 L5509.5781,811.9688 C5509.5781,811.5313 5509.5625,811.4063 5509.4688,811.25 C5509.3125,810.9844 5509.0313,810.8438 5508.7344,810.8438 C5508.4375,810.8438 5508.2344,810.9375 5508.0156,811.25 L5507.8438,811.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="175" x="5517.5" y="820.3467">AgentRecallObservation</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="5493.5" x2="5694.5" y1="829.5" y2="829.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="137" x="5498.5" y="846.4951">memories: List[str]</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="57" x="5498.5" y="862.792">role: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="115" x="5498.5" y="879.0889">observation: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="5493.5" x2="5694.5" y1="886.3906" y2="886.3906"/></g><!--class Observation--><g id="elem_Observation"><rect codeLine="39" fill="#003153" height="60.2969" id="Observation" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="116" x="4726" y="608"/><ellipse cx="4739" cy="622" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M4741.3438,617.6719 C4740.4063,617.2344 4739.8125,617.0938 4738.9375,617.0938 C4736.3125,617.0938 4734.3125,619.1719 4734.3125,621.8906 L4734.3125,623.0156 C4734.3125,625.5938 4736.4219,627.4844 4739.3125,627.4844 C4740.5313,627.4844 4741.6875,627.1875 4742.4375,626.6406 C4743.0156,626.2344 4743.3438,625.7813 4743.3438,625.3906 C4743.3438,624.9375 4742.9531,624.5469 4742.4844,624.5469 C4742.2656,624.5469 4742.0625,624.625 4741.875,624.8125 C4741.4219,625.2969 4741.4219,625.2969 4741.2344,625.3906 C4740.8125,625.6563 4740.125,625.7813 4739.3594,625.7813 C4737.3125,625.7813 4736.0156,624.6875 4736.0156,622.9844 L4736.0156,621.8906 C4736.0156,620.1094 4737.2656,618.7969 4739,618.7969 C4739.5781,618.7969 4740.1875,618.9531 4740.6563,619.2031 C4741.1406,619.4844 4741.3125,619.7031 4741.4063,620.1094 C4741.4688,620.5156 4741.5,620.6406 4741.6406,620.7656 C4741.7813,620.9063 4742.0156,621.0156 4742.2344,621.0156 C4742.5,621.0156 4742.7656,620.875 4742.9375,620.6563 C4743.0469,620.5 4743.0781,620.3125 4743.0781,619.8906 L4743.0781,618.4688 C4743.0781,618.0313 4743.0625,617.9063 4742.9688,617.75 C4742.8125,617.4844 4742.5313,617.3438 4742.2344,617.3438 C4741.9375,617.3438 4741.7344,617.4375 4741.5156,617.75 L4741.3438,617.6719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="88" x="4751" y="626.8467">Observation</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="4727" x2="4841" y1="636" y2="636"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="87" x="4732" y="652.9951">content: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="4727" x2="4841" y1="660.2969" y2="660.2969"/></g><!--class BrowserOutputObservation--><g id="elem_BrowserOutputObservation"><rect codeLine="60" fill="#003153" height="109.1875" id="BrowserOutputObservation" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="225" x="3895.5" y="793.5"/><ellipse cx="3908.5" cy="807.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M3910.8438,803.1719 C3909.9063,802.7344 3909.3125,802.5938 3908.4375,802.5938 C3905.8125,802.5938 3903.8125,804.6719 3903.8125,807.3906 L3903.8125,808.5156 C3903.8125,811.0938 3905.9219,812.9844 3908.8125,812.9844 C3910.0313,812.9844 3911.1875,812.6875 3911.9375,812.1406 C3912.5156,811.7344 3912.8438,811.2813 3912.8438,810.8906 C3912.8438,810.4375 3912.4531,810.0469 3911.9844,810.0469 C3911.7656,810.0469 3911.5625,810.125 3911.375,810.3125 C3910.9219,810.7969 3910.9219,810.7969 3910.7344,810.8906 C3910.3125,811.1563 3909.625,811.2813 3908.8594,811.2813 C3906.8125,811.2813 3905.5156,810.1875 3905.5156,808.4844 L3905.5156,807.3906 C3905.5156,805.6094 3906.7656,804.2969 3908.5,804.2969 C3909.0781,804.2969 3909.6875,804.4531 3910.1563,804.7031 C3910.6406,804.9844 3910.8125,805.2031 3910.9063,805.6094 C3910.9688,806.0156 3911,806.1406 3911.1406,806.2656 C3911.2813,806.4063 3911.5156,806.5156 3911.7344,806.5156 C3912,806.5156 3912.2656,806.375 3912.4375,806.1563 C3912.5469,806 3912.5781,805.8125 3912.5781,805.3906 L3912.5781,803.9688 C3912.5781,803.5313 3912.5625,803.4063 3912.4688,803.25 C3912.3125,802.9844 3912.0313,802.8438 3911.7344,802.8438 C3911.4375,802.8438 3911.2344,802.9375 3911.0156,803.25 L3910.8438,803.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="197" x="3920.5" y="812.3467">BrowserOutputObservation</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="3896.5" x2="4119.5" y1="821.5" y2="821.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="47" x="3901.5" y="838.4951">url: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="115" x="3901.5" y="854.792">status_code: int</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="77" x="3901.5" y="871.0889">error: bool</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="115" x="3901.5" y="887.3857">observation: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="3896.5" x2="4119.5" y1="894.6875" y2="894.6875"/></g><!--class FileReadObservation--><g id="elem_FileReadObservation"><rect codeLine="70" fill="#003153" height="76.5938" id="FileReadObservation" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="177" x="4155.5" y="809.5"/><ellipse cx="4168.5" cy="823.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M4170.8438,819.1719 C4169.9063,818.7344 4169.3125,818.5938 4168.4375,818.5938 C4165.8125,818.5938 4163.8125,820.6719 4163.8125,823.3906 L4163.8125,824.5156 C4163.8125,827.0938 4165.9219,828.9844 4168.8125,828.9844 C4170.0313,828.9844 4171.1875,828.6875 4171.9375,828.1406 C4172.5156,827.7344 4172.8438,827.2813 4172.8438,826.8906 C4172.8438,826.4375 4172.4531,826.0469 4171.9844,826.0469 C4171.7656,826.0469 4171.5625,826.125 4171.375,826.3125 C4170.9219,826.7969 4170.9219,826.7969 4170.7344,826.8906 C4170.3125,827.1563 4169.625,827.2813 4168.8594,827.2813 C4166.8125,827.2813 4165.5156,826.1875 4165.5156,824.4844 L4165.5156,823.3906 C4165.5156,821.6094 4166.7656,820.2969 4168.5,820.2969 C4169.0781,820.2969 4169.6875,820.4531 4170.1563,820.7031 C4170.6406,820.9844 4170.8125,821.2031 4170.9063,821.6094 C4170.9688,822.0156 4171,822.1406 4171.1406,822.2656 C4171.2813,822.4063 4171.5156,822.5156 4171.7344,822.5156 C4172,822.5156 4172.2656,822.375 4172.4375,822.1563 C4172.5469,822 4172.5781,821.8125 4172.5781,821.3906 L4172.5781,819.9688 C4172.5781,819.5313 4172.5625,819.4063 4172.4688,819.25 C4172.3125,818.9844 4172.0313,818.8438 4171.7344,818.8438 C4171.4375,818.8438 4171.2344,818.9375 4171.0156,819.25 L4170.8438,819.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="149" x="4180.5" y="828.3467">FileReadObservation</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="4156.5" x2="4331.5" y1="837.5" y2="837.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="63" x="4161.5" y="854.4951">path: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="115" x="4161.5" y="870.792">observation: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="4156.5" x2="4331.5" y1="878.0938" y2="878.0938"/></g><!--class FileWriteObservation--><g id="elem_FileWriteObservation"><rect codeLine="79" fill="#003153" height="76.5938" id="FileWriteObservation" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="181" x="4367.5" y="809.5"/><ellipse cx="4380.5" cy="823.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M4382.8438,819.1719 C4381.9063,818.7344 4381.3125,818.5938 4380.4375,818.5938 C4377.8125,818.5938 4375.8125,820.6719 4375.8125,823.3906 L4375.8125,824.5156 C4375.8125,827.0938 4377.9219,828.9844 4380.8125,828.9844 C4382.0313,828.9844 4383.1875,828.6875 4383.9375,828.1406 C4384.5156,827.7344 4384.8438,827.2813 4384.8438,826.8906 C4384.8438,826.4375 4384.4531,826.0469 4383.9844,826.0469 C4383.7656,826.0469 4383.5625,826.125 4383.375,826.3125 C4382.9219,826.7969 4382.9219,826.7969 4382.7344,826.8906 C4382.3125,827.1563 4381.625,827.2813 4380.8594,827.2813 C4378.8125,827.2813 4377.5156,826.1875 4377.5156,824.4844 L4377.5156,823.3906 C4377.5156,821.6094 4378.7656,820.2969 4380.5,820.2969 C4381.0781,820.2969 4381.6875,820.4531 4382.1563,820.7031 C4382.6406,820.9844 4382.8125,821.2031 4382.9063,821.6094 C4382.9688,822.0156 4383,822.1406 4383.1406,822.2656 C4383.2813,822.4063 4383.5156,822.5156 4383.7344,822.5156 C4384,822.5156 4384.2656,822.375 4384.4375,822.1563 C4384.5469,822 4384.5781,821.8125 4384.5781,821.3906 L4384.5781,819.9688 C4384.5781,819.5313 4384.5625,819.4063 4384.4688,819.25 C4384.3125,818.9844 4384.0313,818.8438 4383.7344,818.8438 C4383.4375,818.8438 4383.2344,818.9375 4383.0156,819.25 L4382.8438,819.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="153" x="4392.5" y="828.3467">FileWriteObservation</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="4368.5" x2="4547.5" y1="837.5" y2="837.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="63" x="4373.5" y="854.4951">path: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="115" x="4373.5" y="870.792">observation: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="4368.5" x2="4547.5" y1="878.0938" y2="878.0938"/></g><!--class AgentErrorObservation--><g id="elem_AgentErrorObservation"><rect codeLine="117" fill="#003153" height="60.2969" id="AgentErrorObservation" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="196" x="4584" y="818"/><ellipse cx="4597" cy="832" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M4599.3438,827.6719 C4598.4063,827.2344 4597.8125,827.0938 4596.9375,827.0938 C4594.3125,827.0938 4592.3125,829.1719 4592.3125,831.8906 L4592.3125,833.0156 C4592.3125,835.5938 4594.4219,837.4844 4597.3125,837.4844 C4598.5313,837.4844 4599.6875,837.1875 4600.4375,836.6406 C4601.0156,836.2344 4601.3438,835.7813 4601.3438,835.3906 C4601.3438,834.9375 4600.9531,834.5469 4600.4844,834.5469 C4600.2656,834.5469 4600.0625,834.625 4599.875,834.8125 C4599.4219,835.2969 4599.4219,835.2969 4599.2344,835.3906 C4598.8125,835.6563 4598.125,835.7813 4597.3594,835.7813 C4595.3125,835.7813 4594.0156,834.6875 4594.0156,832.9844 L4594.0156,831.8906 C4594.0156,830.1094 4595.2656,828.7969 4597,828.7969 C4597.5781,828.7969 4598.1875,828.9531 4598.6563,829.2031 C4599.1406,829.4844 4599.3125,829.7031 4599.4063,830.1094 C4599.4688,830.5156 4599.5,830.6406 4599.6406,830.7656 C4599.7813,830.9063 4600.0156,831.0156 4600.2344,831.0156 C4600.5,831.0156 4600.7656,830.875 4600.9375,830.6563 C4601.0469,830.5 4601.0781,830.3125 4601.0781,829.8906 L4601.0781,828.4688 C4601.0781,828.0313 4601.0625,827.9063 4600.9688,827.75 C4600.8125,827.4844 4600.5313,827.3438 4600.2344,827.3438 C4599.9375,827.3438 4599.7344,827.4375 4599.5156,827.75 L4599.3438,827.6719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="168" x="4609" y="836.8467">AgentErrorObservation</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="4585" x2="4779" y1="846" y2="846"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="115" x="4590" y="862.9951">observation: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="4585" x2="4779" y1="870.2969" y2="870.2969"/></g><!--class NullObservation--><g id="elem_NullObservation"><rect codeLine="124" fill="#003153" height="60.2969" id="NullObservation" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="142" x="4815" y="818"/><ellipse cx="4828" cy="832" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M4830.3438,827.6719 C4829.4063,827.2344 4828.8125,827.0938 4827.9375,827.0938 C4825.3125,827.0938 4823.3125,829.1719 4823.3125,831.8906 L4823.3125,833.0156 C4823.3125,835.5938 4825.4219,837.4844 4828.3125,837.4844 C4829.5313,837.4844 4830.6875,837.1875 4831.4375,836.6406 C4832.0156,836.2344 4832.3438,835.7813 4832.3438,835.3906 C4832.3438,834.9375 4831.9531,834.5469 4831.4844,834.5469 C4831.2656,834.5469 4831.0625,834.625 4830.875,834.8125 C4830.4219,835.2969 4830.4219,835.2969 4830.2344,835.3906 C4829.8125,835.6563 4829.125,835.7813 4828.3594,835.7813 C4826.3125,835.7813 4825.0156,834.6875 4825.0156,832.9844 L4825.0156,831.8906 C4825.0156,830.1094 4826.2656,828.7969 4828,828.7969 C4828.5781,828.7969 4829.1875,828.9531 4829.6563,829.2031 C4830.1406,829.4844 4830.3125,829.7031 4830.4063,830.1094 C4830.4688,830.5156 4830.5,830.6406 4830.6406,830.7656 C4830.7813,830.9063 4831.0156,831.0156 4831.2344,831.0156 C4831.5,831.0156 4831.7656,830.875 4831.9375,830.6563 C4832.0469,830.5 4832.0781,830.3125 4832.0781,829.8906 L4832.0781,828.4688 C4832.0781,828.0313 4832.0625,827.9063 4831.9688,827.75 C4831.8125,827.4844 4831.5313,827.3438 4831.2344,827.3438 C4830.9375,827.3438 4830.7344,827.4375 4830.5156,827.75 L4830.3438,827.6719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="114" x="4840" y="836.8467">NullObservation</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="4816" x2="4956" y1="846" y2="846"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="115" x="4821" y="862.9951">observation: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="4816" x2="4956" y1="870.2969" y2="870.2969"/></g><!--class CmdOutputObservation--><g id="elem_CmdOutputObservation"><rect codeLine="140" fill="#003153" height="109.1875" id="CmdOutputObservation" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="200" x="5731" y="793.5"/><ellipse cx="5744" cy="807.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M5746.3438,803.1719 C5745.4063,802.7344 5744.8125,802.5938 5743.9375,802.5938 C5741.3125,802.5938 5739.3125,804.6719 5739.3125,807.3906 L5739.3125,808.5156 C5739.3125,811.0938 5741.4219,812.9844 5744.3125,812.9844 C5745.5313,812.9844 5746.6875,812.6875 5747.4375,812.1406 C5748.0156,811.7344 5748.3438,811.2813 5748.3438,810.8906 C5748.3438,810.4375 5747.9531,810.0469 5747.4844,810.0469 C5747.2656,810.0469 5747.0625,810.125 5746.875,810.3125 C5746.4219,810.7969 5746.4219,810.7969 5746.2344,810.8906 C5745.8125,811.1563 5745.125,811.2813 5744.3594,811.2813 C5742.3125,811.2813 5741.0156,810.1875 5741.0156,808.4844 L5741.0156,807.3906 C5741.0156,805.6094 5742.2656,804.2969 5744,804.2969 C5744.5781,804.2969 5745.1875,804.4531 5745.6563,804.7031 C5746.1406,804.9844 5746.3125,805.2031 5746.4063,805.6094 C5746.4688,806.0156 5746.5,806.1406 5746.6406,806.2656 C5746.7813,806.4063 5747.0156,806.5156 5747.2344,806.5156 C5747.5,806.5156 5747.7656,806.375 5747.9375,806.1563 C5748.0469,806 5748.0781,805.8125 5748.0781,805.3906 L5748.0781,803.9688 C5748.0781,803.5313 5748.0625,803.4063 5747.9688,803.25 C5747.8125,802.9844 5747.5313,802.8438 5747.2344,802.8438 C5746.9375,802.8438 5746.7344,802.9375 5746.5156,803.25 L5746.3438,803.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="172" x="5756" y="812.3467">CmdOutputObservation</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="5732" x2="5930" y1="821.5" y2="821.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="120" x="5737" y="838.4951">command_id: int</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="100" x="5737" y="854.792">command: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="99" x="5737" y="871.0889">exit_code: int</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="115" x="5737" y="887.3857">observation: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="5732" x2="5930" y1="894.6875" y2="894.6875"/></g><!--class UserMessageObservation--><g id="elem_UserMessageObservation"><rect codeLine="157" fill="#003153" height="76.5938" id="UserMessageObservation" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="208" x="5249" y="809.5"/><ellipse cx="5262" cy="823.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M5264.3438,819.1719 C5263.4063,818.7344 5262.8125,818.5938 5261.9375,818.5938 C5259.3125,818.5938 5257.3125,820.6719 5257.3125,823.3906 L5257.3125,824.5156 C5257.3125,827.0938 5259.4219,828.9844 5262.3125,828.9844 C5263.5313,828.9844 5264.6875,828.6875 5265.4375,828.1406 C5266.0156,827.7344 5266.3438,827.2813 5266.3438,826.8906 C5266.3438,826.4375 5265.9531,826.0469 5265.4844,826.0469 C5265.2656,826.0469 5265.0625,826.125 5264.875,826.3125 C5264.4219,826.7969 5264.4219,826.7969 5264.2344,826.8906 C5263.8125,827.1563 5263.125,827.2813 5262.3594,827.2813 C5260.3125,827.2813 5259.0156,826.1875 5259.0156,824.4844 L5259.0156,823.3906 C5259.0156,821.6094 5260.2656,820.2969 5262,820.2969 C5262.5781,820.2969 5263.1875,820.4531 5263.6563,820.7031 C5264.1406,820.9844 5264.3125,821.2031 5264.4063,821.6094 C5264.4688,822.0156 5264.5,822.1406 5264.6406,822.2656 C5264.7813,822.4063 5265.0156,822.5156 5265.2344,822.5156 C5265.5,822.5156 5265.7656,822.375 5265.9375,822.1563 C5266.0469,822 5266.0781,821.8125 5266.0781,821.3906 L5266.0781,819.9688 C5266.0781,819.5313 5266.0625,819.4063 5265.9688,819.25 C5265.8125,818.9844 5265.5313,818.8438 5265.2344,818.8438 C5264.9375,818.8438 5264.7344,818.9375 5264.5156,819.25 L5264.3438,819.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="180" x="5274" y="828.3467">UserMessageObservation</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="5250" x2="5456" y1="837.5" y2="837.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="57" x="5255" y="854.4951">role: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="115" x="5255" y="870.792">observation: str</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="5250" x2="5456" y1="878.0938" y2="878.0938"/></g><!--class Agent--><g id="elem_Agent"><rect codeLine="94" fill="#003153" height="92.8906" id="Agent" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="242" x="525" y="591.5"/><ellipse cx="621.25" cy="605.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M623.3281,607.3125 L623.7188,608.2969 L623.3281,608.2969 C622.875,608.2969 622.7656,608.3125 622.6094,608.4219 C622.3594,608.5781 622.2031,608.8594 622.2031,609.1563 C622.2031,609.4219 622.3438,609.6719 622.5625,609.8281 C622.7031,609.9531 622.9063,610 623.3281,610 L625.6875,610 C626.0469,610 626.2656,609.9688 626.4063,609.875 C626.6563,609.7344 626.8125,609.4375 626.8125,609.1563 C626.8125,608.875 626.6719,608.625 626.4531,608.4688 C626.2813,608.3281 626.125,608.2969 625.6563,608.2969 L622.2656,600.0938 L618.5938,600.0938 C618.1406,600.0938 618.0156,600.1094 617.8594,600.2031 C617.6094,600.375 617.4531,600.6563 617.4531,600.9375 C617.4531,601.2188 617.5938,601.4688 617.8125,601.6406 C617.9844,601.75 618.1563,601.7813 618.5938,601.7813 L619.6719,601.7813 L617.0313,608.2969 C616.6094,608.2969 616.4531,608.3125 616.2969,608.4219 C616.0469,608.5781 615.8906,608.8594 615.8906,609.1563 C615.8906,609.7188 616.2656,610 617.0156,610 L619.2813,610 C619.6406,610 619.8594,609.9688 619.9844,609.875 C620.25,609.7344 620.3906,609.4375 620.3906,609.1563 C620.3906,608.875 620.2656,608.625 620.0469,608.4531 C619.875,608.3281 619.7344,608.2969 619.2813,608.2969 L618.8906,608.2969 L619.2813,607.3125 L623.3281,607.3125 Z M622.625,605.6094 L619.9531,605.6094 L621.2969,602.3438 L622.625,605.6094 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" font-style="italic" lengthAdjust="spacing" textLength="42" x="638.75" y="610.3467">Agent</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="526" x2="766" y1="619.5" y2="619.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" text-decoration="underline" textLength="230" x="531" y="636.4951">_registry: Dict[str, Type[Agent]]</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="59" x="531" y="652.792">llm: LLM</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="123" x="531" y="669.0889">_complete: None</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="526" x2="766" y1="676.3906" y2="676.3906"/></g><!--class LLM--><g id="elem_LLM"><rect codeLine="99" fill="#003153" height="158.0781" id="LLM" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="148" x="572" y="769"/><ellipse cx="628.25" cy="783" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M630.5938,778.6719 C629.6563,778.2344 629.0625,778.0938 628.1875,778.0938 C625.5625,778.0938 623.5625,780.1719 623.5625,782.8906 L623.5625,784.0156 C623.5625,786.5938 625.6719,788.4844 628.5625,788.4844 C629.7813,788.4844 630.9375,788.1875 631.6875,787.6406 C632.2656,787.2344 632.5938,786.7813 632.5938,786.3906 C632.5938,785.9375 632.2031,785.5469 631.7344,785.5469 C631.5156,785.5469 631.3125,785.625 631.125,785.8125 C630.6719,786.2969 630.6719,786.2969 630.4844,786.3906 C630.0625,786.6563 629.375,786.7813 628.6094,786.7813 C626.5625,786.7813 625.2656,785.6875 625.2656,783.9844 L625.2656,782.8906 C625.2656,781.1094 626.5156,779.7969 628.25,779.7969 C628.8281,779.7969 629.4375,779.9531 629.9063,780.2031 C630.3906,780.4844 630.5625,780.7031 630.6563,781.1094 C630.7188,781.5156 630.75,781.6406 630.8906,781.7656 C631.0313,781.9063 631.2656,782.0156 631.4844,782.0156 C631.75,782.0156 632.0156,781.875 632.1875,781.6563 C632.2969,781.5 632.3281,781.3125 632.3281,780.8906 L632.3281,779.4688 C632.3281,779.0313 632.3125,778.9063 632.2188,778.75 C632.0625,778.4844 631.7813,778.3438 631.4844,778.3438 C631.1875,778.3438 630.9844,778.4375 630.7656,778.75 L630.5938,778.6719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="28" x="645.75" y="787.8467">LLM</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="573" x2="719" y1="797" y2="797"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="91" x="578" y="813.9951">model: None</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="101" x="578" y="830.292">api_key: None</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="105" x="578" y="846.5889">base_url: None</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="124" x="578" y="862.8857">_debug_dir: None</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="126" x="578" y="879.1826">_debug_idx: None</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="118" x="578" y="895.4795">_debug_id: None</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="136" x="578" y="911.7764">_completion: None</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="573" x2="719" y1="919.0781" y2="919.0781"/></g><!--class AgentController--><g id="elem_AgentController"><rect codeLine="108" fill="#003153" height="158.0781" id="AgentController" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="296" x="787" y="316"/><ellipse cx="872.75" cy="330" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M875.0938,325.6719 C874.1563,325.2344 873.5625,325.0938 872.6875,325.0938 C870.0625,325.0938 868.0625,327.1719 868.0625,329.8906 L868.0625,331.0156 C868.0625,333.5938 870.1719,335.4844 873.0625,335.4844 C874.2813,335.4844 875.4375,335.1875 876.1875,334.6406 C876.7656,334.2344 877.0938,333.7813 877.0938,333.3906 C877.0938,332.9375 876.7031,332.5469 876.2344,332.5469 C876.0156,332.5469 875.8125,332.625 875.625,332.8125 C875.1719,333.2969 875.1719,333.2969 874.9844,333.3906 C874.5625,333.6563 873.875,333.7813 873.1094,333.7813 C871.0625,333.7813 869.7656,332.6875 869.7656,330.9844 L869.7656,329.8906 C869.7656,328.1094 871.0156,326.7969 872.75,326.7969 C873.3281,326.7969 873.9375,326.9531 874.4063,327.2031 C874.8906,327.4844 875.0625,327.7031 875.1563,328.1094 C875.2188,328.5156 875.25,328.6406 875.3906,328.7656 C875.5313,328.9063 875.7656,329.0156 875.9844,329.0156 C876.25,329.0156 876.5156,328.875 876.6875,328.6563 C876.7969,328.5 876.8281,328.3125 876.8281,327.8906 L876.8281,326.4688 C876.8281,326.0313 876.8125,325.9063 876.7188,325.75 C876.5625,325.4844 876.2813,325.3438 875.9844,325.3438 C875.6875,325.3438 875.4844,325.4375 875.2656,325.75 L875.0938,325.6719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="117" x="890.25" y="334.8467">AgentController</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="788" x2="1082" y1="344" y2="344"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="95" x="793" y="360.9951">agent: Agent</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="136" x="793" y="377.292">max_iterations: int</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="83" x="793" y="393.5889">workdir: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="284" x="793" y="409.8857">command_manager: CommandManager</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="87" x="793" y="426.1826">state: State</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="70" x="793" y="442.4795">plan: Plan</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="168" x="793" y="458.7764">callbacks: List[Callable]</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="788" x2="1082" y1="466.0781" y2="466.0781"/></g><!--class CommandManager--><g id="elem_CommandManager"><rect codeLine="120" fill="#003153" height="76.5938" id="CommandManager" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="162" x="569" y="356.5"/><ellipse cx="582" cy="370.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M584.3438,366.1719 C583.4063,365.7344 582.8125,365.5938 581.9375,365.5938 C579.3125,365.5938 577.3125,367.6719 577.3125,370.3906 L577.3125,371.5156 C577.3125,374.0938 579.4219,375.9844 582.3125,375.9844 C583.5313,375.9844 584.6875,375.6875 585.4375,375.1406 C586.0156,374.7344 586.3438,374.2813 586.3438,373.8906 C586.3438,373.4375 585.9531,373.0469 585.4844,373.0469 C585.2656,373.0469 585.0625,373.125 584.875,373.3125 C584.4219,373.7969 584.4219,373.7969 584.2344,373.8906 C583.8125,374.1563 583.125,374.2813 582.3594,374.2813 C580.3125,374.2813 579.0156,373.1875 579.0156,371.4844 L579.0156,370.3906 C579.0156,368.6094 580.2656,367.2969 582,367.2969 C582.5781,367.2969 583.1875,367.4531 583.6563,367.7031 C584.1406,367.9844 584.3125,368.2031 584.4063,368.6094 C584.4688,369.0156 584.5,369.1406 584.6406,369.2656 C584.7813,369.4063 585.0156,369.5156 585.2344,369.5156 C585.5,369.5156 585.7656,369.375 585.9375,369.1563 C586.0469,369 586.0781,368.8125 586.0781,368.3906 L586.0781,366.9688 C586.0781,366.5313 586.0625,366.4063 585.9688,366.25 C585.8125,365.9844 585.5313,365.8438 585.2344,365.8438 C584.9375,365.8438 584.7344,365.9375 584.5156,366.25 L584.3438,366.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="134" x="594" y="375.3467">CommandManager</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="570" x2="730" y1="384.5" y2="384.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="112" x="575" y="401.4951">directory: None</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="79" x="575" y="417.792">shell: None</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="570" x2="730" y1="425.0938" y2="425.0938"/></g><!--class Plan--><g id="elem_Plan"><rect codeLine="127" fill="#003153" height="109.1875" id="Plan" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="113" x="878.5" y="583.5"/><ellipse cx="916.25" cy="597.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M918.5938,593.1719 C917.6563,592.7344 917.0625,592.5938 916.1875,592.5938 C913.5625,592.5938 911.5625,594.6719 911.5625,597.3906 L911.5625,598.5156 C911.5625,601.0938 913.6719,602.9844 916.5625,602.9844 C917.7813,602.9844 918.9375,602.6875 919.6875,602.1406 C920.2656,601.7344 920.5938,601.2813 920.5938,600.8906 C920.5938,600.4375 920.2031,600.0469 919.7344,600.0469 C919.5156,600.0469 919.3125,600.125 919.125,600.3125 C918.6719,600.7969 918.6719,600.7969 918.4844,600.8906 C918.0625,601.1563 917.375,601.2813 916.6094,601.2813 C914.5625,601.2813 913.2656,600.1875 913.2656,598.4844 L913.2656,597.3906 C913.2656,595.6094 914.5156,594.2969 916.25,594.2969 C916.8281,594.2969 917.4375,594.4531 917.9063,594.7031 C918.3906,594.9844 918.5625,595.2031 918.6563,595.6094 C918.7188,596.0156 918.75,596.1406 918.8906,596.2656 C919.0313,596.4063 919.2656,596.5156 919.4844,596.5156 C919.75,596.5156 920.0156,596.375 920.1875,596.1563 C920.2969,596 920.3281,595.8125 920.3281,595.3906 L920.3281,593.9688 C920.3281,593.5313 920.3125,593.4063 920.2188,593.25 C920.0625,592.9844 919.7813,592.8438 919.4844,592.8438 C919.1875,592.8438 918.9844,592.9375 918.7656,593.25 L918.5938,593.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="30" x="933.75" y="602.3467">Plan</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="879.5" x2="990.5" y1="611.5" y2="611.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" text-decoration="underline" textLength="101" x="884.5" y="628.4951">main_goal: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" text-decoration="underline" textLength="73" x="884.5" y="644.792">task: Task</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="101" x="884.5" y="661.0889">main_goal: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="77" x="884.5" y="677.3857">task: None</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="879.5" x2="990.5" y1="684.6875" y2="684.6875"/></g><!--class Task--><g id="elem_Task"><rect codeLine="161" fill="#003153" height="190.6719" id="Task" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="153" x="841.5" y="752.5"/><ellipse cx="897.75" cy="766.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M900.0938,762.1719 C899.1563,761.7344 898.5625,761.5938 897.6875,761.5938 C895.0625,761.5938 893.0625,763.6719 893.0625,766.3906 L893.0625,767.5156 C893.0625,770.0938 895.1719,771.9844 898.0625,771.9844 C899.2813,771.9844 900.4375,771.6875 901.1875,771.1406 C901.7656,770.7344 902.0938,770.2813 902.0938,769.8906 C902.0938,769.4375 901.7031,769.0469 901.2344,769.0469 C901.0156,769.0469 900.8125,769.125 900.625,769.3125 C900.1719,769.7969 900.1719,769.7969 899.9844,769.8906 C899.5625,770.1563 898.875,770.2813 898.1094,770.2813 C896.0625,770.2813 894.7656,769.1875 894.7656,767.4844 L894.7656,766.3906 C894.7656,764.6094 896.0156,763.2969 897.75,763.2969 C898.3281,763.2969 898.9375,763.4531 899.4063,763.7031 C899.8906,763.9844 900.0625,764.2031 900.1563,764.6094 C900.2188,765.0156 900.25,765.1406 900.3906,765.2656 C900.5313,765.4063 900.7656,765.5156 900.9844,765.5156 C901.25,765.5156 901.5156,765.375 901.6875,765.1563 C901.7969,765 901.8281,764.8125 901.8281,764.3906 L901.8281,762.9688 C901.8281,762.5313 901.8125,762.4063 901.7188,762.25 C901.5625,761.9844 901.2813,761.8438 900.9844,761.8438 C900.6875,761.8438 900.4844,761.9375 900.2656,762.25 L900.0938,762.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="33" x="915.25" y="771.3467">Task</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="842.5" x2="993.5" y1="780.5" y2="780.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" text-decoration="underline" textLength="42" x="847.5" y="797.4951">id: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" text-decoration="underline" textLength="59" x="847.5" y="813.792">goal: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" text-decoration="underline" textLength="141" x="847.5" y="830.0889">parent: Task | None</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" text-decoration="underline" textLength="141" x="847.5" y="846.3857">subtasks: List[Task]</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="59" x="847.5" y="862.6826">id: None</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="59" x="847.5" y="878.9795">id: None</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="95" x="847.5" y="895.2764">parent: None</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="59" x="847.5" y="911.5732">goal: str</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="109" x="847.5" y="927.8701">subtasks: None</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="842.5" x2="993.5" y1="935.1719" y2="935.1719"/></g><!--class State--><g id="elem_State"><rect codeLine="133" fill="#003153" height="125.4844" id="State" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="432" x="1167" y="332.5"/><ellipse cx="1359.25" cy="346.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M1361.5938,342.1719 C1360.6563,341.7344 1360.0625,341.5938 1359.1875,341.5938 C1356.5625,341.5938 1354.5625,343.6719 1354.5625,346.3906 L1354.5625,347.5156 C1354.5625,350.0938 1356.6719,351.9844 1359.5625,351.9844 C1360.7813,351.9844 1361.9375,351.6875 1362.6875,351.1406 C1363.2656,350.7344 1363.5938,350.2813 1363.5938,349.8906 C1363.5938,349.4375 1363.2031,349.0469 1362.7344,349.0469 C1362.5156,349.0469 1362.3125,349.125 1362.125,349.3125 C1361.6719,349.7969 1361.6719,349.7969 1361.4844,349.8906 C1361.0625,350.1563 1360.375,350.2813 1359.6094,350.2813 C1357.5625,350.2813 1356.2656,349.1875 1356.2656,347.4844 L1356.2656,346.3906 C1356.2656,344.6094 1357.5156,343.2969 1359.25,343.2969 C1359.8281,343.2969 1360.4375,343.4531 1360.9063,343.7031 C1361.3906,343.9844 1361.5625,344.2031 1361.6563,344.6094 C1361.7188,345.0156 1361.75,345.1406 1361.8906,345.2656 C1362.0313,345.4063 1362.2656,345.5156 1362.4844,345.5156 C1362.75,345.5156 1363.0156,345.375 1363.1875,345.1563 C1363.2969,345 1363.3281,344.8125 1363.3281,344.3906 L1363.3281,342.9688 C1363.3281,342.5313 1363.3125,342.4063 1363.2188,342.25 C1363.0625,341.9844 1362.7813,341.8438 1362.4844,341.8438 C1362.1875,341.8438 1361.9844,341.9375 1361.7656,342.25 L1361.5938,342.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="40" x="1376.75" y="351.3467">State</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="1168" x2="1598" y1="360.5" y2="360.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="70" x="1173" y="377.4951">plan: Plan</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="92" x="1173" y="393.792">iteration: int</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="420" x="1173" y="410.0889">background_commands_obs: List[CmdOutputObservation]</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="288" x="1173" y="426.3857">history: List[Tuple[Action, Observation]]</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="333" x="1173" y="442.6826">updated_info: List[Tuple[Action, Observation]]</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="1168" x2="1598" y1="449.9844" y2="449.9844"/></g><!--class DockerInteractive--><g id="elem_DockerInteractive"><rect codeLine="146" fill="#003153" height="190.6719" id="DockerInteractive" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="417" x="51.5" y="299.5"/><ellipse cx="190.75" cy="313.5" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M193.0938,309.1719 C192.1563,308.7344 191.5625,308.5938 190.6875,308.5938 C188.0625,308.5938 186.0625,310.6719 186.0625,313.3906 L186.0625,314.5156 C186.0625,317.0938 188.1719,318.9844 191.0625,318.9844 C192.2813,318.9844 193.4375,318.6875 194.1875,318.1406 C194.7656,317.7344 195.0938,317.2813 195.0938,316.8906 C195.0938,316.4375 194.7031,316.0469 194.2344,316.0469 C194.0156,316.0469 193.8125,316.125 193.625,316.3125 C193.1719,316.7969 193.1719,316.7969 192.9844,316.8906 C192.5625,317.1563 191.875,317.2813 191.1094,317.2813 C189.0625,317.2813 187.7656,316.1875 187.7656,314.4844 L187.7656,313.3906 C187.7656,311.6094 189.0156,310.2969 190.75,310.2969 C191.3281,310.2969 191.9375,310.4531 192.4063,310.7031 C192.8906,310.9844 193.0625,311.2031 193.1563,311.6094 C193.2188,312.0156 193.25,312.1406 193.3906,312.2656 C193.5313,312.4063 193.7656,312.5156 193.9844,312.5156 C194.25,312.5156 194.5156,312.375 194.6875,312.1563 C194.7969,312 194.8281,311.8125 194.8281,311.3906 L194.8281,309.9688 C194.8281,309.5313 194.8125,309.4063 194.7188,309.25 C194.5625,308.9844 194.2813,308.8438 193.9844,308.8438 C193.6875,308.8438 193.4844,308.9375 193.2656,309.25 L193.0938,309.1719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="131" x="208.25" y="318.3467">DockerInteractive</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="52.5" x2="467.5" y1="327.5" y2="327.5"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" text-decoration="underline" textLength="405" x="57.5" y="344.4951">background_commands: Dict[int, BackgroundCommand]</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="127" x="57.5" y="360.792">instance_id: None</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="127" x="57.5" y="377.0889">instance_id: None</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="149" x="57.5" y="393.3857">workspace_dir: None</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="149" x="57.5" y="409.6826">workspace_dir: None</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="149" x="57.5" y="425.9795">workspace_dir: None</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="87" x="57.5" y="442.2764">timeout: int</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="166" x="57.5" y="458.5732">container_image: None</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="162" x="57.5" y="474.8701">container_name: None</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="52.5" x2="467.5" y1="482.1719" y2="482.1719"/></g><!--class BackgroundCommand--><g id="elem_BackgroundCommand"><rect fill="#003153" height="44" id="BackgroundCommand" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="186" x="167" y="616"/><ellipse cx="180" cy="630" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M182.3438,625.6719 C181.4063,625.2344 180.8125,625.0938 179.9375,625.0938 C177.3125,625.0938 175.3125,627.1719 175.3125,629.8906 L175.3125,631.0156 C175.3125,633.5938 177.4219,635.4844 180.3125,635.4844 C181.5313,635.4844 182.6875,635.1875 183.4375,634.6406 C184.0156,634.2344 184.3438,633.7813 184.3438,633.3906 C184.3438,632.9375 183.9531,632.5469 183.4844,632.5469 C183.2656,632.5469 183.0625,632.625 182.875,632.8125 C182.4219,633.2969 182.4219,633.2969 182.2344,633.3906 C181.8125,633.6563 181.125,633.7813 180.3594,633.7813 C178.3125,633.7813 177.0156,632.6875 177.0156,630.9844 L177.0156,629.8906 C177.0156,628.1094 178.2656,626.7969 180,626.7969 C180.5781,626.7969 181.1875,626.9531 181.6563,627.2031 C182.1406,627.4844 182.3125,627.7031 182.4063,628.1094 C182.4688,628.5156 182.5,628.6406 182.6406,628.7656 C182.7813,628.9063 183.0156,629.0156 183.2344,629.0156 C183.5,629.0156 183.7656,628.875 183.9375,628.6563 C184.0469,628.5 184.0781,628.3125 184.0781,627.8906 L184.0781,626.4688 C184.0781,626.0313 184.0625,625.9063 183.9688,625.75 C183.8125,625.4844 183.5313,625.3438 183.2344,625.3438 C182.9375,625.3438 182.7344,625.4375 182.5156,625.75 L182.3438,625.6719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="158" x="192" y="634.8467">BackgroundCommand</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="168" x2="352" y1="644" y2="644"/><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="168" x2="352" y1="652" y2="652"/></g><!--class Session--><g id="elem_Session"><rect codeLine="173" fill="#003153" height="109.1875" id="Session" rx="2.5" ry="2.5" style="stroke:#D9D3D0;stroke-width:1.0;" width="281" x="582.5" y="89"/><ellipse cx="692.25" cy="103" fill="#003153" rx="9" ry="9" style="stroke:#D9D3D0;stroke-width:1.0;"/><path d="M694.5938,98.6719 C693.6563,98.2344 693.0625,98.0938 692.1875,98.0938 C689.5625,98.0938 687.5625,100.1719 687.5625,102.8906 L687.5625,104.0156 C687.5625,106.5938 689.6719,108.4844 692.5625,108.4844 C693.7813,108.4844 694.9375,108.1875 695.6875,107.6406 C696.2656,107.2344 696.5938,106.7813 696.5938,106.3906 C696.5938,105.9375 696.2031,105.5469 695.7344,105.5469 C695.5156,105.5469 695.3125,105.625 695.125,105.8125 C694.6719,106.2969 694.6719,106.2969 694.4844,106.3906 C694.0625,106.6563 693.375,106.7813 692.6094,106.7813 C690.5625,106.7813 689.2656,105.6875 689.2656,103.9844 L689.2656,102.8906 C689.2656,101.1094 690.5156,99.7969 692.25,99.7969 C692.8281,99.7969 693.4375,99.9531 693.9063,100.2031 C694.3906,100.4844 694.5625,100.7031 694.6563,101.1094 C694.7188,101.5156 694.75,101.6406 694.8906,101.7656 C695.0313,101.9063 695.2656,102.0156 695.4844,102.0156 C695.75,102.0156 696.0156,101.875 696.1875,101.6563 C696.2969,101.5 696.3281,101.3125 696.3281,100.8906 L696.3281,99.4688 C696.3281,99.0313 696.3125,98.9063 696.2188,98.75 C696.0625,98.4844 695.7813,98.3438 695.4844,98.3438 C695.1875,98.3438 694.9844,98.4375 694.7656,98.75 L694.5938,98.6719 Z " fill="#D9D3D0"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="54" x="709.75" y="107.8467">Session</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="583.5" x2="862.5" y1="117" y2="117"/><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="125" x="588.5" y="133.9951">websocket: None</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="269" x="588.5" y="150.292">controller: Optional[AgentController]</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="167" x="588.5" y="166.5889">agent: Optional[Agent]</text><text fill="#D9D3D0" font-family="Verdana" font-size="14" lengthAdjust="spacing" textLength="126" x="588.5" y="182.8857">agent_task: None</text><line style="stroke:#D9D3D0;stroke-width:1.0;" x1="583.5" x2="862.5" y1="190.1875" y2="190.1875"/></g><!--reverse link ExecutableAction to AgentEchoAction--><g id="link_ExecutableAction_AgentEchoAction"><path codeLine="180" d="M1482.7207,854.0654 C1679.2907,865.2924 2173.24,900.107 2324,975.5 C2347.76,987.382 2369.05,1007.577 2385.43,1026.43 " fill="none" id="ExecutableAction-backto-AgentEchoAction" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="1464.75,853.039,1482.3786,860.0556,1483.0628,848.0752,1464.75,853.039" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link NotExecutableAction to AgentFinishAction--><g id="link_NotExecutableAction_AgentFinishAction"><path codeLine="181" d="M1204.9299,885.5585 C1221.8899,913.8295 1247.06,947.315 1292,967.5 C1324.44,982.068 1899.18,961.814 1932,975.5 C1960.87,987.539 1985.86,1012.526 2003.37,1034.057 " fill="none" id="NotExecutableAction-backto-AgentFinishAction" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="1195.67,870.123,1199.7847,888.6451,1210.075,882.4719,1195.67,870.123" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link Observation to AgentMessageObservation--><g id="link_Observation_AgentMessageObservation"><path codeLine="182" d="M4858.938,666.2298 C4898.188,681.5498 4933.43,698.027 4975,726 C5010.39,749.817 5045.22,783.607 5069.59,809.429 " fill="none" id="Observation-backto-AgentMessageObservation" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="4842.17,659.685,4856.7564,671.8192,4861.1196,660.6405,4842.17,659.685" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link ExecutableAction to AgentRecallAction--><g id="link_ExecutableAction_AgentRecallAction"><path codeLine="183" d="M1482.6893,858.1999 C1648.2193,874.8819 2011.72,916.805 2127,975.5 C2154.38,989.44 2179.13,1013.565 2197.03,1034.205 " fill="none" id="ExecutableAction-backto-AgentRecallAction" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="1464.78,856.395,1482.0877,864.1696,1483.2909,852.2301,1464.78,856.395" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link Observation to AgentRecallObservation--><g id="link_Observation_AgentRecallObservation"><path codeLine="184" d="M4860.0646,647.2181 C5021.4046,664.7551 5446.67,711.983 5475,726 C5509.86,743.248 5540.41,774.879 5561.82,801.475 " fill="none" id="Observation-backto-AgentRecallObservation" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="4842.17,645.273,4859.4162,653.1829,4860.713,641.2532,4842.17,645.273" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link NotExecutableAction to AgentSummarizeAction--><g id="link_NotExecutableAction_AgentSummarizeAction"><path codeLine="185" d="M1204.9749,885.4974 C1221.9649,913.7144 1247.13,947.154 1292,967.5 C1333.09,986.133 1655.69,959.83 1698,975.5 C1730.35,987.479 1760.22,1012.467 1781.69,1034.014 " fill="none" id="NotExecutableAction-backto-AgentSummarizeAction" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="1195.69,870.077,1199.8348,888.5924,1210.1151,882.4025,1195.69,870.077" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link NotExecutableAction to AgentThinkAction--><g id="link_NotExecutableAction_AgentThinkAction"><path codeLine="186" d="M1205.4261,885.7752 C1222.5861,913.8962 1247.61,946.766 1292,967.5 C1330.09,985.292 1441.65,960.7 1481,975.5 C1509.78,986.324 1536.91,1006.897 1558.08,1026.276 " fill="none" id="NotExecutableAction-backto-AgentThinkAction" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="1196.05,870.41,1200.3044,888.9005,1210.5479,882.6498,1196.05,870.41" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link Action to ExecutableAction--><g id="link_Action_ExecutableAction"><path codeLine="187" d="M1383.7531,678.0857 C1384.5131,717.9517 1385.83,785.946 1386.59,825.855 " fill="none" id="Action-backto-ExecutableAction" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="1383.41,660.089,1377.7542,678.2001,1389.752,677.9714,1383.41,660.089" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link Action to NotExecutableAction--><g id="link_Action_NotExecutableAction"><path codeLine="188" d="M1346.5,672.5576 C1327.82,689.8756 1314.33,702.895 1292,726 C1259.13,760.017 1222.89,801.497 1201.86,825.995 " fill="none" id="Action-backto-NotExecutableAction" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="1359.7,660.32,1342.4208,668.1576,1350.5792,676.9576,1359.7,660.32" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link NotExecutableAction to NullAction--><g id="link_NotExecutableAction_NullAction"><path codeLine="189" d="M1184,888.382 C1184,928.499 1184,997.104 1184,1042.646 " fill="none" id="NotExecutableAction-backto-NullAction" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="1184,870.382,1178,888.382,1190,888.382,1184,870.382" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link ExecutableAction to CmdKillAction--><g id="link_ExecutableAction_CmdKillAction"><path codeLine="190" d="M1482.718,852.1521 C1705.478,860.2771 2324.21,889.919 2512,975.5 C2541.06,988.745 2567.5,1013.145 2586.57,1034.094 " fill="none" id="ExecutableAction-backto-CmdKillAction" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="1464.73,851.496,1482.4993,858.1481,1482.9367,846.1561,1464.73,851.496" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link ExecutableAction to CmdRunAction--><g id="link_ExecutableAction_CmdRunAction"><path codeLine="191" d="M1482.5595,849.3387 C1730.2295,851.1227 2480.58,865.476 2699,975.5 C2721.87,987.018 2741.56,1007.291 2756.39,1026.293 " fill="none" id="ExecutableAction-backto-CmdRunAction" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="1464.56,849.209,1482.5163,855.3385,1482.6028,843.3388,1464.56,849.209" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link ExecutableAction to BrowseURLAction--><g id="link_ExecutableAction_BrowseURLAction"><path codeLine="192" d="M1482.499,849.7576 C1749.679,852.6316 2612.13,869.89 2871,975.5 C2902.69,988.43 2932.37,1013.113 2953.9,1034.277 " fill="none" id="ExecutableAction-backto-BrowseURLAction" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="1464.5,849.564,1482.4344,855.7573,1482.5635,843.758,1464.5,849.564" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link Observation to BrowserOutputObservation--><g id="link_Observation_BrowserOutputObservation"><path codeLine="193" d="M4707.7848,643.4485 C4569.2348,652.0825 4241.84,676.897 4138,726 C4104.97,741.619 4074.66,768.705 4051.64,793.295 " fill="none" id="Observation-backto-BrowserOutputObservation" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="4725.75,642.329,4707.4117,637.4601,4708.158,649.4369,4725.75,642.329" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link ExecutableAction to FileReadAction--><g id="link_ExecutableAction_FileReadAction"><path codeLine="194" d="M1482.6469,852.549 C1794.8669,864.457 2931,911.748 3081,975.5 C3111.08,988.286 3138.46,1012.971 3158.13,1034.173 " fill="none" id="ExecutableAction-backto-FileReadAction" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="1464.66,851.863,1482.4183,858.5447,1482.8756,846.5534,1464.66,851.863" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link Observation to FileReadObservation--><g id="link_Observation_FileReadObservation"><path codeLine="195" d="M4707.8076,639.5894 C4620.4276,642.1314 4470.72,656.14 4350,726 C4315.19,746.143 4286,781.91 4267.13,809.351 " fill="none" id="Observation-backto-FileReadObservation" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="4725.8,639.066,4707.6331,633.592,4707.9821,645.5869,4725.8,639.066" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link ExecutableAction to FileWriteAction--><g id="link_ExecutableAction_FileWriteAction"><path codeLine="196" d="M1482.7546,851.2435 C1817.6246,859.4605 3109.11,896.014 3274,975.5 C3297.39,986.773 3317.46,1007.267 3332.5,1026.477 " fill="none" id="ExecutableAction-backto-FileWriteAction" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="1464.76,850.802,1482.6074,857.2417,1482.9018,845.2454,1464.76,850.802" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link Observation to FileWriteObservation--><g id="link_Observation_FileWriteObservation"><path codeLine="197" d="M4708.3985,659.6903 C4662.5585,673.6283 4615.76,691.965 4567,726 C4534.31,748.819 4504.56,783.208 4484.44,809.499 " fill="none" id="Observation-backto-FileWriteObservation" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="4725.62,654.454,4706.653,653.9498,4710.1439,665.4308,4725.62,654.454" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link NotExecutableAction to AddTaskAction--><g id="link_NotExecutableAction_AddTaskAction"><path codeLine="198" d="M1204.876,885.6288 C1221.816,913.9658 1246.97,947.513 1292,967.5 C1319.37,979.648 3420.04,964.77 3448,975.5 C3471.59,984.555 3493.31,1001.372 3510.98,1018.462 " fill="none" id="NotExecutableAction-backto-AddTaskAction" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="1195.64,870.179,1199.726,888.7075,1210.0259,882.5502,1195.64,870.179" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link NotExecutableAction to ModifyTaskAction--><g id="link_NotExecutableAction_ModifyTaskAction"><path codeLine="199" d="M1204.8755,885.6311 C1221.8155,913.9701 1246.96,947.52 1292,967.5 C1321.82,980.731 3610.9,962.924 3641,975.5 C3666.29,986.066 3688.38,1006.871 3704.96,1026.465 " fill="none" id="NotExecutableAction-backto-ModifyTaskAction" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="1195.64,870.181,1199.7255,888.7096,1210.0255,882.5526,1195.64,870.181" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link Agent to Agent--><g id="link_Agent_Agent"><path codeLine="200" d="M778.6667,604.0754 C799.3387,609.0984 802,618.518 802,638 C802,657.482 787.678,669.735 767.006,674.758 " fill="none" id="Agent-backto-Agent" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="#D9D3D0" points="767.006,601.242,771.8919,606.5456,778.6667,604.0754,773.7808,598.7718,767.006,601.242" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link Agent to LLM--><g id="link_Agent_LLM"><path codeLine="201" d="M646,696.646 C646,721.281 646,740.375 646,768.742 " fill="none" id="Agent-backto-LLM" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="#D9D3D0" points="646,684.646,642,690.646,646,696.646,650,690.646,646,684.646" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link AgentController to Agent--><g id="link_AgentController_Agent"><path codeLine="202" d="M831.954,481.9314 C785.476,520.6904 740.205,558.441 700.632,591.442 " fill="none" id="AgentController-backto-Agent" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="#D9D3D0" points="841.17,474.246,834.0002,475.0167,831.954,481.9314,839.1238,481.1607,841.17,474.246" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link Observation to AgentErrorObservation--><g id="link_Observation_AgentErrorObservation"><path codeLine="203" d="M4761.6747,684.5213 C4742.2347,724.1633 4715.73,778.224 4696.32,817.789 " fill="none" id="Observation-backto-AgentErrorObservation" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="4769.6,668.36,4756.2875,681.8796,4767.0618,687.1631,4769.6,668.36" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link Observation to NullObservation--><g id="link_Observation_NullObservation"><path codeLine="204" d="M4806.3253,684.5213 C4825.7653,724.1633 4852.27,778.224 4871.68,817.789 " fill="none" id="Observation-backto-NullObservation" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="4798.4,668.36,4800.9382,687.1631,4811.7125,681.8796,4798.4,668.36" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link Plan to Task--><g id="link_Plan_Task"><path codeLine="205" d="M929.6447,704.5251 C928.1497,722.8211 927.407,731.905 925.727,752.453 " fill="none" id="Plan-backto-Task" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="#D9D3D0" points="930.622,692.565,926.1466,698.2193,929.6447,704.5251,934.1201,698.8708,930.622,692.565" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link State to Plan--><g id="link_State_Plan"><path codeLine="206" d="M1238.4982,462.4218 C1191.2682,483.5738 1148.53,502.035 1099,522 C1089.35,525.89 1086.14,525.037 1077,530 C1047.16,546.197 1016.74,568.23 991.758,588.094 " fill="none" id="State-backto-Plan" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="#D9D3D0" points="1249.45,457.517,1242.3391,456.3188,1238.4982,462.4218,1245.609,463.62,1249.45,457.517" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link State to CmdOutputObservation--><g id="link_State_CmdOutputObservation"><path codeLine="207" d="M1611.2886,399.2144 C2268.7286,409.2644 4225.15,445.588 4860,530 C5245.6,581.27 5373.87,535.458 5713,726 C5742.8,742.745 5769.92,769.308 5790.62,793.285 " fill="none" id="State-backto-CmdOutputObservation" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="#D9D3D0" points="1599.29,399.031,1605.2282,403.1222,1611.2886,399.2144,1605.3504,395.1232,1599.29,399.031" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link State to Action--><g id="link_State_Action"><path codeLine="208" d="M1383,469.751 C1383,521.631 1383,580.747 1383,615.76 " fill="none" id="State-backto-Action" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="#D9D3D0" points="1383,457.751,1379,463.751,1383,469.751,1387,463.751,1383,457.751" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link State to Observation--><g id="link_State_Observation"><path codeLine="209" d="M1611.27,412.1752 C2291.47,460.3752 4352.11,606.395 4725.91,632.884 " fill="none" id="State-backto-Observation" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="#D9D3D0" points="1599.3,411.327,1605.0023,415.7411,1611.27,412.1752,1605.5677,407.7611,1599.3,411.327" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link Observation to CmdOutputObservation--><g id="link_Observation_CmdOutputObservation"><path codeLine="210" d="M4859.958,649.0702 C4968.568,663.2742 5191.95,691.296 5396,708.5 C5466.3,714.427 5648.77,696.811 5713,726 C5745.19,740.629 5773.22,768.295 5793.87,793.483 " fill="none" id="Observation-backto-CmdOutputObservation" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="4842.11,646.736,4859.18,655.0195,4860.7361,643.1208,4842.11,646.736" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link DockerInteractive to BackgroundCommand--><g id="link_DockerInteractive_BackgroundCommand"><path codeLine="211" d="M260,502.558 C260,548.449 260,587.609 260,615.676 " fill="none" id="DockerInteractive-backto-BackgroundCommand" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="#D9D3D0" points="260,490.558,256,496.558,260,502.558,264,496.558,260,490.558" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link Observation to UserMessageObservation--><g id="link_Observation_UserMessageObservation"><path codeLine="212" d="M4860.1972,640.3987 C4949.0572,643.7517 5103.65,658.602 5231,726 C5268.97,746.094 5302.82,781.867 5325.18,809.323 " fill="none" id="Observation-backto-UserMessageObservation" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="none" points="4842.21,639.72,4859.971,646.3945,4860.4234,634.403,4842.21,639.72" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link Task to Task--><g id="link_Task_Task"><path codeLine="213" d="M1006.521,810.4654 C1026.414,812.8604 1029.5,824.416 1029.5,848 C1029.5,871.584 1014.5,884.574 994.607,886.969 " fill="none" id="Task-backto-Task" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="#D9D3D0" points="994.607,809.031,1000.0859,813.7195,1006.521,810.4654,1001.0421,805.7769,994.607,809.031" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link Session to AgentController--><g id="link_Session_AgentController"><path codeLine="214" d="M776.2487,207.1651 C805.4487,241.5341 836.093,277.598 868.667,315.933 " fill="none" id="Session-backto-AgentController" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="#D9D3D0" points="768.479,198.02,769.3155,205.1824,776.2487,207.1651,775.4122,200.0026,768.479,198.02" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--reverse link Session to Agent--><g id="link_Session_Agent"><path codeLine="215" d="M573.0465,205.0112 C561.5085,214.2312 560.714,217.485 553,230 C484.902,340.476 509.72,399.652 553,522 C562.077,547.659 579.582,571.786 596.979,591.25 " fill="none" id="Session-backto-Agent" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="#D9D3D0" points="582.421,197.52,575.2367,198.1407,573.0465,205.0112,580.2308,204.3904,582.421,197.52" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--link AgentController to State--><g id="link_AgentController_State"><path codeLine="216" d="M1083.31,395 C1111.12,395 1132.92,395 1160.72,395 " fill="none" id="AgentController-to-State" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="#D9D3D0" points="1166.72,395,1157.72,391,1161.72,395,1157.72,399,1166.72,395" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--link AgentController to Plan--><g id="link_AgentController_Plan"><path codeLine="217" d="M935,474.246 C935,509.843 935,545.074 935,577.129 " fill="none" id="AgentController-to-Plan" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="#D9D3D0" points="935,583.129,939,574.129,935,578.129,931,574.129,935,583.129" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--link AgentController to CommandManager--><g id="link_AgentController_CommandManager"><path codeLine="218" d="M786.977,395 C768.408,395 755.839,395 737.27,395 " fill="none" id="AgentController-to-CommandManager" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="#D9D3D0" points="731.27,395,740.27,399,736.27,395,740.27,391,731.27,395" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><!--link CommandManager to DockerInteractive--><g id="link_CommandManager_DockerInteractive"><path codeLine="219" d="M568.916,395 C535.514,395 508.113,395 474.711,395 " fill="none" id="CommandManager-to-DockerInteractive" style="stroke:#D9D3D0;stroke-width:1.0;"/><polygon fill="#D9D3D0" points="468.711,395,477.711,399,473.711,395,477.711,391,468.711,395" style="stroke:#D9D3D0;stroke-width:1.0;"/></g><text fill="#D9D3D0" font-family="Verdana" font-size="10" lengthAdjust="spacing" textLength="175" x="2874" y="1211.7822">Based on f3fda42; Generated by</text><text fill="#D9D3D0" font-family="Verdana" font-size="10" font-style="italic" lengthAdjust="spacing" textLength="43" x="3052" y="1211.7822">py2puml</text><!--SRC=[hLZVRzis47xNNy6-3ea3T7loXW5fcWx3agP8KkmXC0HAEjk49L4ZgIHUs_-zHygIA9cEAKiFjgJJyUF7-qMUtgarP42Yj8H2i5m5xmf1LnabfOI_SmKYWuHH1LzelA4ha6H9Kmb14ATKIi8Bo1DuPlcCnefnlAmWLxDB_NyTh_cbaP9l0I4nHxHSpObK0Xz5cUSqIc5E8ivJ55G0rUiV7l2VMCxasffW82AF98XdQc0Du2r8YVXthRo2vHgo8csDyITw3p5DKuleVoM8RGqva6G5rkUOGSO50padDqog9yHQJC7yeSmoAjZ_O96NHkP9Vn_oSStoZGMdrhnShKT6HKGbpAvV8IwL7jp0lptWCrTUOsmVz0tV2Ugtf_DbLNPYnNVzwzbLblp3EcDPCYSwemUYt9Tv9stHttbIEoZ2Ch0IlDIIGIuI_0LNzy5SljxVM3EK8XsU31MGk2jLKQg-Lon4gQWgPHZp16fZW11SDEpz4sF9Kk35x1DUxe4crWeAgjR3br03zTdRQ2Un-rSm1GVexG9MdaRN84_3Lr6vaRFB97d4cmvPOUqIAqvRLvQH6JGdAHOvty2hvhdb2LjkUrEnn8uIS9k4HdX54Td3RukQGGi5h92NBeqVMMoAy1bvt1RmP7GM2_9DJyFY7wYSfXdMwfjRFGuph4X1p_-Pv-1O2IgR7-fNrHw3ETrf8zs2XHlODi-wYeGc0tQ2C86eN8K94tqHIrxtHQraHymOum0r7KwupQGWAdk4bi0i-wfvhihPoZZNlD8heQyXHfGm0IFh17tXOcFOrY5hAb28VpWSnLULuBPwRjtte2ywX5AAZB_WlnwDswKkMlNUU8NFkk0lV7RRQrqg-l7k4UEM5NhiPrto1X3N2h7YelMXN4EQ7ZIwJLDl5oSGr2QQQGjL0KLP7ZQfPiUfpfuvqNbZIxlwZTe1kiOxC-ESAiDjzpJUhvtVRZ3XpdGon0NLtikIlPAlZpfhV6aCQBGUIupRfohJpuYjgdNB8a4gISZo9VSOyBRzNOJiVJDiD-7UJWglJ7Ns9G-tIHmVyTVc-f776n3ccAwhrdDbO8S9TpK99peZ7vhNkrZiL2QMutqUWrq9N3ATfBAWABGBon2fOXdmKhNcoHN65OYGPPWQZLehpsa6Nadn5M-dESsRFAd2lzqmR7CviwRUmyp0xuQn_RhToAhWm_kk2opBjxSrwExHlJFkZBCVEBXGB3uIZQ8Dz51TpQ9U898wZ5J7ubNrcfExGfk7fa-zQhveYtbNfNaHTef2u7be_-Fx-RbdLndu7-kFejhDP73ywD_3ysWb9rk_tKrEm7IldvpIght-SKfeguyCtkott4XEuvyCv5Z1wBNsci5nyRFV84w3rxIA8-6SpU6uw3xK88vZwkm1nn5rj86JSRGwmV4a-ytVw11tj80JOVRRlS3TjltIHMZVUEbRRLbmMaVaC_-fXRtVkeo3xBKPWQkJwAwcEJa5xax0eMrQ0X_jOmTmBv3z4ZzuxidCUsmHHu_zNOvz_RqJ_pYsxkDru3erUyI4-sJQ7JWWgOP2kxDkI1QV_-bkTgU0S-N5oM3UNoM2KxvaTCrmB6A3OCavFc4tAY4Xw9Rbhyk4_lR-T_8NvFgR04gZBRcuABRlYp9BBov-0W00]--></g></svg>diff --git a/docs/static/img/teaser.mp4 b/docs/static/img/teaser.mp4index 6a3cc0821b..648bb9f4e5 100644Binary files a/docs/static/img/teaser.mp4 and b/docs/static/img/teaser.mp4 differdiff --git a/evaluation/EDA/README.md b/evaluation/EDA/README.mdindex 06e453ec7f..a8a2e4fbf0 100644--- a/evaluation/EDA/README.md+++ b/evaluation/EDA/README.md@@ -20,7 +20,7 @@ where `model_config` is mandatory, while `git-version`, `agent`, `dataset` and `- `model_config`, e.g. `eval_gpt4_1106_preview`, is the config group name for yourLLM settings, as defined in your `config.toml`.-- `git-version`, e.g. `HEAD`, is the git commit hash of the OpenDevin version you would+- `git-version`, e.g. `HEAD`, is the git commit hash of the OpenHands version you wouldlike to evaluate. It could also be a release tag like `0.6.2`.- `agent`, e.g. `CodeActAgent`, is the name of the agent for benchmarks, defaultingdiff --git a/evaluation/EDA/run_infer.py b/evaluation/EDA/run_infer.pyindex 29ce4241c6..9abbf9f424 100644--- a/evaluation/EDA/run_infer.py+++ b/evaluation/EDA/run_infer.py@@ -13,15 +13,15 @@ from evaluation.utils.shared import (reset_logger_for_multiprocessing,run_evaluation,)-from opendevin.controller.state.state import State-from opendevin.core.config import (+from openhands.controller.state.state import State+from openhands.core.config import (AppConfig,SandboxConfig,get_llm_config_arg,get_parser,)-from opendevin.core.logger import opendevin_logger as logger-from opendevin.core.main import create_runtime, run_controller+from openhands.core.logger import openhands_logger as logger+from openhands.core.main import create_runtime, run_controllergame = None@@ -58,7 +58,7 @@ def get_config() -> AppConfig:config = AppConfig(default_agent=metadata.agent_class,- run_as_devin=False,+ run_as_openhands=False,runtime='eventstream',max_iterations=metadata.max_iterations,sandbox=SandboxConfig(diff --git a/evaluation/EDA/scripts/run_infer.sh b/evaluation/EDA/scripts/run_infer.shindex eeaa43a830..bd52c613ff 100755--- a/evaluation/EDA/scripts/run_infer.sh+++ b/evaluation/EDA/scripts/run_infer.sh@@ -34,9 +34,9 @@ if [ -z "$OPENAI_API_KEY" ]; thenexit 1fi-# IMPORTANT: Because Agent's prompt changes fairly often in the rapidly evolving codebase of OpenDevin+# IMPORTANT: Because Agent's prompt changes fairly often in the rapidly evolving codebase of OpenHands# We need to track the version of Agent in the evaluation to make sure results are comparable-AGENT_VERSION=v$(poetry run python -c "import agenthub; from opendevin.controller.agent import Agent; print(Agent.get_cls('$AGENT').VERSION)")+AGENT_VERSION=v$(poetry run python -c "import agenthub; from openhands.controller.agent import Agent; print(Agent.get_cls('$AGENT').VERSION)")echo "AGENT: $AGENT"echo "AGENT_VERSION: $AGENT_VERSION"diff --git a/evaluation/README.md b/evaluation/README.mdindex 7ede494b8e..8813e4e883 100644--- a/evaluation/README.md+++ b/evaluation/README.md@@ -7,12 +7,12 @@ To better organize the evaluation folder, we should follow the rules below:- Each subfolder contains a specific benchmark or experiment. For example, `evaluation/swe_bench` should containall the preprocessing/evaluation/analysis scripts.- Raw data and experimental records should not be stored within this repo.- - For model outputs, they should be stored at [this huggingface space](https://huggingface.co/spaces/OpenDevin/evaluation) for visualization.+ - For model outputs, they should be stored at [this huggingface space](https://huggingface.co/spaces/OpenHands/evaluation) for visualization.- Important data files of manageable size and analysis scripts (e.g., jupyter notebooks) can be directly uploaded to this repo.## Supported Benchmarks-To learn more about how to integrate your benchmark into OpenDevin, check out [tutorial here](https://docs.all-hands.dev/modules/usage/evaluation_harness).+To learn more about how to integrate your benchmark into OpenHands, check out [tutorial here](https://docs.all-hands.dev/modules/usage/evaluation_harness).### Software Engineering@@ -41,9 +41,9 @@ To learn more about how to integrate your benchmark into OpenDevin, check out [t## Before everything begins: Setup Environment and LLM Configuration-Please follow instruction [here](https://github.com/OpenDevin/OpenDevin/blob/main/Development.md) to setup your local development environment and LLM.+Please follow instruction [here](https://github.com/All-Hands-AI/OpenHands/blob/main/Development.md) to setup your local development environment and LLM.-OpenDevin in development mode uses `config.toml` to keep track of most configurations.+OpenHands in development mode uses `config.toml` to keep track of most configurations.Here's an example configuration file you can use to define and use multiple LLMs:@@ -68,9 +68,9 @@ temperature = 0.0### Result Visualization-Check [this huggingface space](https://huggingface.co/spaces/OpenDevin/evaluation) for visualization of existing experimental results.+Check [this huggingface space](https://huggingface.co/spaces/OpenHands/evaluation) for visualization of existing experimental results.### Upload your results-You can start your own fork of [our huggingface evaluation outputs](https://huggingface.co/spaces/OpenDevin/evaluation) and submit a PR of your evaluation results to our hosted huggingface repo via PR following the guide [here](https://huggingface.co/docs/hub/en/repositories-pull-requests-discussions#pull-requests-and-discussions).+You can start your own fork of [our huggingface evaluation outputs](https://huggingface.co/spaces/OpenHands/evaluation) and submit a PR of your evaluation results to our hosted huggingface repo via PR following the guide [here](https://huggingface.co/docs/hub/en/repositories-pull-requests-discussions#pull-requests-and-discussions).diff --git a/evaluation/agent_bench/README.md b/evaluation/agent_bench/README.mdindex f656e17ba7..1133a09a5c 100644--- a/evaluation/agent_bench/README.md+++ b/evaluation/agent_bench/README.md@@ -14,7 +14,7 @@ Please follow instruction [here](../README.md#setup) to setup your local develop- `model_config`, e.g. `eval_gpt4_1106_preview`, is the config group name for yourLLM settings, as defined in your `config.toml`.-- `git-version`, e.g. `HEAD`, is the git commit hash of the OpenDevin version you would+- `git-version`, e.g. `HEAD`, is the git commit hash of the OpenHands version you wouldlike to evaluate. It could also be a release tag like `0.6.2`.- `agent`, e.g. `CodeActAgent`, is the name of the agent for benchmarks, defaultingto `CodeActAgent`.diff --git a/evaluation/agent_bench/helper.py b/evaluation/agent_bench/helper.pyindex ca17e4f97d..c16fed97bc 100644--- a/evaluation/agent_bench/helper.py+++ b/evaluation/agent_bench/helper.py@@ -3,7 +3,7 @@ import refrom functools import partialfrom evaluation.utils.shared import codeact_user_response-from opendevin.events.action import CmdRunAction, MessageAction+from openhands.events.action import CmdRunAction, MessageActiondef try_parse_answer(act) -> str | None:diff --git a/evaluation/agent_bench/run_infer.py b/evaluation/agent_bench/run_infer.pyindex 77b7a1e002..63948a3c83 100644--- a/evaluation/agent_bench/run_infer.py+++ b/evaluation/agent_bench/run_infer.py@@ -21,18 +21,18 @@ from evaluation.utils.shared import (reset_logger_for_multiprocessing,run_evaluation,)-from opendevin.controller.state.state import State-from opendevin.core.config import (+from openhands.controller.state.state import State+from openhands.core.config import (AppConfig,SandboxConfig,get_llm_config_arg,parse_arguments,)-from opendevin.core.logger import opendevin_logger as logger-from opendevin.core.main import create_runtime, run_controller-from opendevin.events.action import AgentFinishAction, CmdRunAction, MessageAction-from opendevin.events.observation import CmdOutputObservation-from opendevin.runtime.runtime import Runtime+from openhands.core.logger import openhands_logger as logger+from openhands.core.main import create_runtime, run_controller+from openhands.events.action import AgentFinishAction, CmdRunAction, MessageAction+from openhands.events.observation import CmdOutputObservation+from openhands.runtime.runtime import Runtimedef get_config(@@ -40,7 +40,7 @@ def get_config() -> AppConfig:config = AppConfig(default_agent=metadata.agent_class,- run_as_devin=False,+ run_as_openhands=False,runtime='eventstream',max_iterations=metadata.max_iterations,sandbox=SandboxConfig(diff --git a/evaluation/biocoder/README.md b/evaluation/biocoder/README.mdindex c549afc9c1..ad9cf55f53 100644--- a/evaluation/biocoder/README.md+++ b/evaluation/biocoder/README.md@@ -1,4 +1,4 @@-# BioCoder Evaluation with Opendevin+# BioCoder Evaluation with OpenopenhandsImplements evaluation of agents on BioCoder from the BioCoder benchmark introduced in [BioCoder: A Benchmark for Bioinformatics Code Generation with Large Language Models](https://arxiv.org/abs/2308.16458). Please see [here](https://github.com/bigcode-project/bigcode-evaluation-harness/blob/main/bigcode_eval/tasks/humanevalpack.py) for the reference implementation used in the paper.@@ -8,14 +8,14 @@ Please follow instruction [here](../README.md#setup) to setup your local develop## BioCoder Docker Image-In the opendevin branch of the Biocoder repository, we have slightly modified our original Docker image to work with the OpenDevin environment. In the Docker image are testing scripts (`/testing/start_test_opendevin.py` and aux files in `/testing_files/`) to assist with evaluation. Additionally, we have installed all dependencies, including OpenJDK, mamba (with Python 3.6), and many system libraries. Notably, we have **not** packaged all repositories into the image, so they are downloaded at runtime.+In the openhands branch of the Biocoder repository, we have slightly modified our original Docker image to work with the OpenHands environment. In the Docker image are testing scripts (`/testing/start_test_openhands.py` and aux files in `/testing_files/`) to assist with evaluation. Additionally, we have installed all dependencies, including OpenJDK, mamba (with Python 3.6), and many system libraries. Notably, we have **not** packaged all repositories into the image, so they are downloaded at runtime.**Before first execution, pull our Docker image with the following command**```bashdocker pull public.ecr.aws/i5g0m1f6/eval_biocoder:v1.0```-To reproduce this image, please see the Dockerfile_Opendevin in the `biocoder` repository.+To reproduce this image, please see the Dockerfile_Openopenhands in the `biocoder` repository.## Start the evaluation@@ -29,7 +29,7 @@ where `model_config` is mandatory, while `git-version`, `agent`, `dataset` and `- `model_config`, e.g. `eval_gpt4_1106_preview`, is the config group name for yourLLM settings, as defined in your `config.toml`.-- `git-version`, e.g. `HEAD`, is the git commit hash of the OpenDevin version you would+- `git-version`, e.g. `HEAD`, is the git commit hash of the OpenHands version you wouldlike to evaluate. It could also be a release tag like `0.6.2`.- `agent`, e.g. `CodeActAgent`, is the name of the agent for benchmarks, defaulting@@ -38,7 +38,7 @@ to `CodeActAgent`.- `eval_limit`, e.g. `10`, limits the evaluation to the first `eval_limit` instances. By default it infers all instances.Let's say you'd like to run 1 instance using `eval_gpt4_1106_eval_gpt4o_2024_05_13preview` and CodeActAgent-with current OpenDevin version, then your command would be:+with current OpenHands version, then your command would be:## Examplesdiff --git a/evaluation/biocoder/run_infer.py b/evaluation/biocoder/run_infer.pyindex 3fb2137440..29e8bda37a 100644--- a/evaluation/biocoder/run_infer.py+++ b/evaluation/biocoder/run_infer.py@@ -18,18 +18,18 @@ from evaluation.utils.shared import (reset_logger_for_multiprocessing,run_evaluation,)-from opendevin.controller.state.state import State-from opendevin.core.config import (+from openhands.controller.state.state import State+from openhands.core.config import (AppConfig,SandboxConfig,get_llm_config_arg,parse_arguments,)-from opendevin.core.logger import opendevin_logger as logger-from opendevin.core.main import create_runtime, run_controller-from opendevin.events.action import CmdRunAction-from opendevin.events.observation import CmdOutputObservation-from opendevin.runtime.runtime import Runtime+from openhands.core.logger import openhands_logger as logger+from openhands.core.main import create_runtime, run_controller+from openhands.events.action import CmdRunAction+from openhands.events.observation import CmdOutputObservation+from openhands.runtime.runtime import RuntimeAGENT_CLS_TO_FAKE_USER_RESPONSE_FN = {'CodeActAgent': functools.partial(@@ -58,7 +58,7 @@ def get_config(config = AppConfig(default_agent=metadata.agent_class,- run_as_devin=False,+ run_as_openhands=False,runtime='eventstream',max_iterations=metadata.max_iterations,sandbox=SandboxConfig(@@ -212,7 +212,7 @@ async def complete_runtime(assert obs.exit_code == 0action = CmdRunAction(- command='/home/devin/mambaforge/bin/mamba run -n test python3 /testing/start_test_opendevin.py'+ command='/home/openhands/mambaforge/bin/mamba run -n test python3 /testing/start_test_openhands.py')logger.info(action, extra={'msg_type': 'ACTION'})obs = await runtime.run_action(action)diff --git a/evaluation/bird/README.md b/evaluation/bird/README.mdindex 072da010f8..7818cdbf5a 100644--- a/evaluation/bird/README.md+++ b/evaluation/bird/README.md@@ -1,4 +1,4 @@-# BIRD Evaluation with OpenDevin+# BIRD Evaluation with OpenHandsImplements evaluation of agents on BIRD introduced in [Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLs](https://arxiv.org/abs/2305.03111). Please see [here](https://bird-bench.github.io/) for the reference implementation used in the paper.@@ -15,12 +15,12 @@ Please follow instruction [here](../README.md#setup) to setup your local develop- `model_config`, e.g. `eval_gpt4_1106_preview`, is the config group name for yourLLM settings, as defined in your `config.toml`.-- `git-version`, e.g. `HEAD`, is the git commit hash of the OpenDevin version you would+- `git-version`, e.g. `HEAD`, is the git commit hash of the OpenHands version you wouldlike to evaluate. It could also be a release tag like `0.6.2`.## Examples-For each problem, OpenDevin is given a set number of iterations to fix the failing code. The history field shows each iteration's response to correct its code that fails any test case.+For each problem, OpenHands is given a set number of iterations to fix the failing code. The history field shows each iteration's response to correct its code that fails any test case.```diff --git a/evaluation/bird/run_infer.py b/evaluation/bird/run_infer.pyindex 86db5eb9eb..1c3666638d 100644--- a/evaluation/bird/run_infer.py+++ b/evaluation/bird/run_infer.py@@ -21,18 +21,18 @@ from evaluation.utils.shared import (reset_logger_for_multiprocessing,run_evaluation,)-from opendevin.controller.state.state import State-from opendevin.core.config import (+from openhands.controller.state.state import State+from openhands.core.config import (AppConfig,SandboxConfig,get_llm_config_arg,parse_arguments,)-from opendevin.core.logger import opendevin_logger as logger-from opendevin.core.main import create_runtime, run_controller-from opendevin.events.action import CmdRunAction, MessageAction-from opendevin.events.observation import CmdOutputObservation-from opendevin.runtime.runtime import Runtime+from openhands.core.logger import openhands_logger as logger+from openhands.core.main import create_runtime, run_controller+from openhands.events.action import CmdRunAction, MessageAction+from openhands.events.observation import CmdOutputObservation+from openhands.runtime.runtime import Runtimedef codeact_user_response(state: State) -> str:@@ -71,7 +71,7 @@ def get_config() -> AppConfig:config = AppConfig(default_agent=metadata.agent_class,- run_as_devin=False,+ run_as_openhands=False,runtime='eventstream',max_iterations=metadata.max_iterations,sandbox=SandboxConfig(diff --git a/evaluation/browsing_delegation/README.md b/evaluation/browsing_delegation/README.mdindex fe71dacb88..92e9410971 100644--- a/evaluation/browsing_delegation/README.md+++ b/evaluation/browsing_delegation/README.md@@ -1,6 +1,6 @@# Browsing Delegation Evalution-Some of OpenDevin's agent supports agent delegation action, for example, CodeActAgent can delegate browsing tasks to BrowsingAgent.+Some of OpenHands's agent supports agent delegation action, for example, CodeActAgent can delegate browsing tasks to BrowsingAgent.This evaluation tests whether CodeActAgent can correctly delegate the instruction from WebArena and MiniWob benchmark to the BrowsingAgent.If so, the browsing performance upper-bound of CodeActAgent will be the performance of BrowsingAgent.@@ -21,7 +21,7 @@ where `model_config` is mandatory, while `agent` and `eval_limit` are optional.`model_config`, e.g. `eval_gpt4_1106_preview`, is the config group name for yourLLM settings, as defined in your `config.toml`.-`git-version`, e.g. `HEAD`, is the git commit hash of the OpenDevin version you would+`git-version`, e.g. `HEAD`, is the git commit hash of the OpenHands version you wouldlike to evaluate. It could also be a release tag like `0.6.2`.`agent`, e.g. `CodeActAgent`, is the name of the agent for benchmarks, defaultingdiff --git a/evaluation/browsing_delegation/run_infer.py b/evaluation/browsing_delegation/run_infer.pyindex c4d5ecd4d6..746ccd1a2a 100644--- a/evaluation/browsing_delegation/run_infer.py+++ b/evaluation/browsing_delegation/run_infer.py@@ -14,15 +14,15 @@ from evaluation.utils.shared import (reset_logger_for_multiprocessing,run_evaluation,)-from opendevin.controller.state.state import State-from opendevin.core.config import (+from openhands.controller.state.state import State+from openhands.core.config import (AppConfig,SandboxConfig,get_llm_config_arg,parse_arguments,)-from opendevin.core.logger import opendevin_logger as logger-from opendevin.core.main import create_runtime, run_controller+from openhands.core.logger import openhands_logger as logger+from openhands.core.main import create_runtime, run_controller# Only CodeActAgent can delegate to BrowsingAgentSUPPORTED_AGENT_CLS = {'CodeActAgent'}@@ -36,7 +36,7 @@ def get_config(), 'max_iterations must be 1 for browsing delegation evaluation.'config = AppConfig(default_agent=metadata.agent_class,- run_as_devin=False,+ run_as_openhands=False,runtime='eventstream',max_iterations=metadata.max_iterations,sandbox=SandboxConfig(@@ -131,7 +131,7 @@ async def process_instance(if __name__ == '__main__':args = parse_arguments()- dataset = load_dataset('OpenDevin/eval-browsing-instructions')+ dataset = load_dataset('OpenHands/eval-browsing-instructions')dataset = dataset['train'].to_pandas()assert dataset.columns.tolist() == ['instance_id', 'instruction']diff --git a/evaluation/gaia/README.md b/evaluation/gaia/README.mdindex cd7e7c9677..bf1c701328 100644--- a/evaluation/gaia/README.md+++ b/evaluation/gaia/README.md@@ -22,7 +22,7 @@ where `model_config` is mandatory, while `git-version`, `agent`, `eval_limit` an- `model_config`, e.g. `eval_gpt4_1106_preview`, is the config group name for yourLLM settings, as defined in your `config.toml`, defaulting to `gpt-3.5-turbo`-- `git-version`, e.g. `HEAD`, is the git commit hash of the OpenDevin version you would+- `git-version`, e.g. `HEAD`, is the git commit hash of the OpenHands version you wouldlike to evaluate. It could also be a release tag like `0.6.2`.- `agent`, e.g. `CodeActAgent`, is the name of the agent for benchmarks, defaultingdiff --git a/evaluation/gaia/run_infer.py b/evaluation/gaia/run_infer.pyindex 0ff4b1a434..b3330632c3 100644--- a/evaluation/gaia/run_infer.py+++ b/evaluation/gaia/run_infer.py@@ -17,18 +17,18 @@ from evaluation.utils.shared import (reset_logger_for_multiprocessing,run_evaluation,)-from opendevin.controller.state.state import State-from opendevin.core.config import (+from openhands.controller.state.state import State+from openhands.core.config import (AppConfig,SandboxConfig,get_llm_config_arg,get_parser,)-from opendevin.core.logger import opendevin_logger as logger-from opendevin.core.main import create_runtime, run_controller-from opendevin.events.action import AgentFinishAction, CmdRunAction, MessageAction-from opendevin.events.observation import CmdOutputObservation-from opendevin.runtime.runtime import Runtime+from openhands.core.logger import openhands_logger as logger+from openhands.core.main import create_runtime, run_controller+from openhands.events.action import AgentFinishAction, CmdRunAction, MessageAction+from openhands.events.observation import CmdOutputObservation+from openhands.runtime.runtime import RuntimeDATASET_CACHE_DIR = os.path.join(os.path.dirname(__file__), 'data')@@ -47,7 +47,7 @@ def get_config() -> AppConfig:config = AppConfig(default_agent=metadata.agent_class,- run_as_devin=False,+ run_as_openhands=False,runtime='eventstream',max_iterations=metadata.max_iterations,sandbox=SandboxConfig(diff --git a/evaluation/gorilla/README.md b/evaluation/gorilla/README.mdindex 106a83a251..4cd90f554a 100644--- a/evaluation/gorilla/README.md+++ b/evaluation/gorilla/README.md@@ -1,4 +1,4 @@-# Gorilla APIBench Evaluation with OpenDevin+# Gorilla APIBench Evaluation with OpenHandsThis folder contains evaluation harness we built on top of the original [Gorilla APIBench](https://github.com/ShishirPatil/gorilla) ([paper](https://arxiv.org/pdf/2305.15334)).@@ -19,7 +19,7 @@ where `model_config` is mandatory, while all other arguments are optional.`model_config`, e.g. `llm`, is the config group name for yourLLM settings, as defined in your `config.toml`.-`git-version`, e.g. `HEAD`, is the git commit hash of the OpenDevin version you would+`git-version`, e.g. `HEAD`, is the git commit hash of the OpenHands version you wouldlike to evaluate. It could also be a release tag like `0.6.2`.`agent`, e.g. `CodeActAgent`, is the name of the agent for benchmarks, defaultingdiff --git a/evaluation/gorilla/run_infer.py b/evaluation/gorilla/run_infer.pyindex 44fb73c234..94f14f0a58 100644--- a/evaluation/gorilla/run_infer.py+++ b/evaluation/gorilla/run_infer.py@@ -15,15 +15,15 @@ from evaluation.utils.shared import (reset_logger_for_multiprocessing,run_evaluation,)-from opendevin.controller.state.state import State-from opendevin.core.config import (+from openhands.controller.state.state import State+from openhands.core.config import (AppConfig,SandboxConfig,get_llm_config_arg,get_parser,)-from opendevin.core.logger import opendevin_logger as logger-from opendevin.core.main import create_runtime, run_controller+from openhands.core.logger import openhands_logger as logger+from openhands.core.main import create_runtime, run_controllerAGENT_CLS_TO_FAKE_USER_RESPONSE_FN = {'CodeActAgent': codeact_user_response,@@ -39,7 +39,7 @@ def get_config() -> AppConfig:config = AppConfig(default_agent=metadata.agent_class,- run_as_devin=False,+ run_as_openhands=False,runtime='eventstream',max_iterations=metadata.max_iterations,sandbox=SandboxConfig(diff --git a/evaluation/gpqa/README.md b/evaluation/gpqa/README.mdindex 7e1981c1f0..b96c5913cb 100644--- a/evaluation/gpqa/README.md+++ b/evaluation/gpqa/README.md@@ -1,4 +1,4 @@-# Evaluating GPQA (A Graduate-Level Google-Proof Q&A Benchmark) with OpenDevin+# Evaluating GPQA (A Graduate-Level Google-Proof Q&A Benchmark) with OpenHandsImplements the evaluation of agents on the GPQA benchmark introduced in [GPQA: A Graduate-Level Google-Proof Q&A Benchmark](https://arxiv.org/abs/2308.07124).@@ -21,14 +21,14 @@ Please follow instruction [here](../README.md#setup) to setup your local develop## Run Inference on GPQA Benchmark'gpqa_main', 'gqpa_diamond', 'gpqa_experts', 'gpqa_extended' -- data split options-From the root of the OpenDevin repo, run the following command:+From the root of the OpenHands repo, run the following command:```bash./evaluation/gpqa/scripts/run_infer.sh [model_config_name] [git-version] [num_samples_eval] [data_split] [AgentClass]```You can replace `model_config_name` with any model you set up in `config.toml`.- `model_config_name`: The model configuration name from `config.toml` that you want to evaluate.-- `git-version`, e.g. `HEAD`, is the git commit hash of the OpenDevin version you would+- `git-version`, e.g. `HEAD`, is the git commit hash of the OpenHands version you wouldlike to evaluate. It could also be a release tag like `0.6.2`.- `num_samples_eval`: Number of samples to evaluate (useful for testing and debugging).- `data_split`: The data split to evaluate on. Must be one of `gpqa_main`, `gqpa_diamond`, `gpqa_experts`, `gpqa_extended`. Defaults to `gpqa_diamond` as done in the paper.diff --git a/evaluation/gpqa/run_infer.py b/evaluation/gpqa/run_infer.pyindex 8f2df78e5e..0d085cb95e 100644--- a/evaluation/gpqa/run_infer.py+++ b/evaluation/gpqa/run_infer.py@@ -33,21 +33,21 @@ from evaluation.utils.shared import (reset_logger_for_multiprocessing,run_evaluation,)-from opendevin.controller.state.state import State-from opendevin.core.config import (+from openhands.controller.state.state import State+from openhands.core.config import (AppConfig,SandboxConfig,get_llm_config_arg,get_parser,)-from opendevin.core.logger import opendevin_logger as logger-from opendevin.core.main import create_runtime, run_controller-from opendevin.events.action import (+from openhands.core.logger import openhands_logger as logger+from openhands.core.main import create_runtime, run_controller+from openhands.events.action import (Action,AgentFinishAction,MessageAction,)-from opendevin.events.observation import Observation+from openhands.events.observation import ObservationACTION_FORMAT = """<<FINAL_ANSWER||@@ -61,7 +61,7 @@ def get_config() -> AppConfig:config = AppConfig(default_agent=metadata.agent_class,- run_as_devin=False,+ run_as_openhands=False,runtime='eventstream',max_iterations=metadata.max_iterations,sandbox=SandboxConfig(@@ -328,7 +328,7 @@ if __name__ == '__main__':raise ValueError(f'Could not find LLM config: --llm_config {args.llm_config}')# NOTE: It is preferable to load datasets from huggingface datasets and perform post-processing- # so we don't need to manage file uploading to OpenDevin's repo+ # so we don't need to manage file uploading to OpenHands's repodataset = load_dataset('Idavidrein/gpqa', args.data_split)gpqa_dataset = dataset['train']# preprocess the datasetdiff --git a/evaluation/humanevalfix/README.md b/evaluation/humanevalfix/README.mdindex 5a056a54da..45967214c4 100644--- a/evaluation/humanevalfix/README.md+++ b/evaluation/humanevalfix/README.md@@ -1,4 +1,4 @@-# HumanEvalFix Evaluation with OpenDevin+# HumanEvalFix Evaluation with OpenHandsImplements evaluation of agents on HumanEvalFix from the HumanEvalPack benchmark introduced in [OctoPack: Instruction Tuning Code Large Language Models](https://arxiv.org/abs/2308.07124). Please see [here](https://github.com/bigcode-project/bigcode-evaluation-harness/blob/main/bigcode_eval/tasks/humanevalpack.py) for the reference implementation used in the paper. Currently only `python` evaluation is supported.@@ -17,7 +17,7 @@ You can replace `eval_gpt4_1106_preview` with any model you set up in `config.to## Examples-For each problem, OpenDevin is given a set number of iterations to fix the failing code. The history field shows each iteration's response to correct its code that fails any test case.+For each problem, OpenHands is given a set number of iterations to fix the failing code. The history field shows each iteration's response to correct its code that fails any test case.```diff --git a/evaluation/humanevalfix/run_infer.py b/evaluation/humanevalfix/run_infer.pyindex 8fc8950428..6b0adc569e 100644--- a/evaluation/humanevalfix/run_infer.py+++ b/evaluation/humanevalfix/run_infer.py@@ -26,18 +26,18 @@ from evaluation.utils.shared import (reset_logger_for_multiprocessing,run_evaluation,)-from opendevin.controller.state.state import State-from opendevin.core.config import (+from openhands.controller.state.state import State+from openhands.core.config import (AppConfig,SandboxConfig,get_llm_config_arg,parse_arguments,)-from opendevin.core.logger import opendevin_logger as logger-from opendevin.core.main import create_runtime, run_controller-from opendevin.events.action import CmdRunAction-from opendevin.events.observation import CmdOutputObservation-from opendevin.runtime.runtime import Runtime+from openhands.core.logger import openhands_logger as logger+from openhands.core.main import create_runtime, run_controller+from openhands.events.action import CmdRunAction+from openhands.events.observation import CmdOutputObservation+from openhands.runtime.runtime import RuntimeIMPORT_HELPER = {'python': [@@ -82,7 +82,7 @@ def get_config() -> AppConfig:config = AppConfig(default_agent=metadata.agent_class,- run_as_devin=False,+ run_as_openhands=False,runtime='eventstream',max_iterations=metadata.max_iterations,sandbox=SandboxConfig(@@ -270,7 +270,7 @@ if __name__ == '__main__':args = parse_arguments()# NOTE: It is preferable to load datasets from huggingface datasets and perform post-processing- # so we don't need to manage file uploading to OpenDevin's repo+ # so we don't need to manage file uploading to OpenHands's repodataset = load_dataset('bigcode/humanevalpack', 'python') # TODO: Support other languagesdiff --git a/evaluation/logic_reasoning/run_infer.py b/evaluation/logic_reasoning/run_infer.pyindex d0739d4f39..cba25d7c45 100644--- a/evaluation/logic_reasoning/run_infer.py+++ b/evaluation/logic_reasoning/run_infer.py@@ -13,23 +13,23 @@ from evaluation.utils.shared import (reset_logger_for_multiprocessing,run_evaluation,)-from opendevin.controller.state.state import State-from opendevin.core.config import (+from openhands.controller.state.state import State+from openhands.core.config import (AppConfig,SandboxConfig,get_llm_config_arg,get_parser,)-from opendevin.core.logger import opendevin_logger as logger-from opendevin.core.main import create_runtime, run_controller-from opendevin.events.action import (+from openhands.core.logger import openhands_logger as logger+from openhands.core.main import create_runtime, run_controller+from openhands.events.action import (AgentFinishAction,CmdRunAction,IPythonRunCellAction,MessageAction,)-from opendevin.events.observation import CmdOutputObservation-from opendevin.runtime.runtime import Runtime+from openhands.events.observation import CmdOutputObservation+from openhands.runtime.runtime import RuntimeAGENT_CLS_TO_FAKE_USER_RESPONSE_FN = {'CodeActAgent': codeact_user_response,@@ -45,7 +45,7 @@ def get_config() -> AppConfig:config = AppConfig(default_agent=metadata.agent_class,- run_as_devin=False,+ run_as_openhands=False,runtime='eventstream',max_iterations=metadata.max_iterations,sandbox=SandboxConfig(diff --git a/evaluation/miniwob/README.md b/evaluation/miniwob/README.mdindex 4426ebff70..b0b0545406 100644--- a/evaluation/miniwob/README.md+++ b/evaluation/miniwob/README.md@@ -1,4 +1,4 @@-# WebArena Evaluation with OpenDevin Browsing Agents+# WebArena Evaluation with OpenHands Browsing AgentsThis folder contains evaluation for [MiniWoB++](https://miniwob.farama.org/) benchmark, powered by [BrowserGym](https://github.com/ServiceNow/BrowserGym) for easy evaluation of how well an agent capable of browsing can perform on synthetic web browsing tasks.@@ -26,7 +26,7 @@ poetry run python evaluation/miniwob/get_success_rate.py evaluation/evaluation_o## Submit your evaluation results-You can start your own fork of [our huggingface evaluation outputs](https://huggingface.co/spaces/OpenDevin/evaluation) and submit a PR of your evaluation results following the guide [here](https://huggingface.co/docs/hub/en/repositories-pull-requests-discussions#pull-requests-and-discussions).+You can start your own fork of [our huggingface evaluation outputs](https://huggingface.co/spaces/OpenHands/evaluation) and submit a PR of your evaluation results following the guide [here](https://huggingface.co/docs/hub/en/repositories-pull-requests-discussions#pull-requests-and-discussions).## BrowsingAgent V1.0 resultdiff --git a/evaluation/miniwob/run_infer.py b/evaluation/miniwob/run_infer.pyindex 92c96bf425..2ffa8e4a4a 100644--- a/evaluation/miniwob/run_infer.py+++ b/evaluation/miniwob/run_infer.py@@ -15,26 +15,26 @@ from evaluation.utils.shared import (reset_logger_for_multiprocessing,run_evaluation,)-from opendevin.controller.state.state import State-from opendevin.core.config import (+from openhands.controller.state.state import State+from openhands.core.config import (AppConfig,SandboxConfig,get_llm_config_arg,parse_arguments,)-from opendevin.core.logger import opendevin_logger as logger-from opendevin.core.main import create_runtime, run_controller-from opendevin.events.action import (+from openhands.core.logger import openhands_logger as logger+from openhands.core.main import create_runtime, run_controller+from openhands.events.action import (BrowseInteractiveAction,CmdRunAction,MessageAction,)-from opendevin.events.observation import CmdOutputObservation-from opendevin.runtime.browser.browser_env import (+from openhands.events.observation import CmdOutputObservation+from openhands.runtime.browser.browser_env import (BROWSER_EVAL_GET_GOAL_ACTION,BROWSER_EVAL_GET_REWARDS_ACTION,)-from opendevin.runtime.runtime import Runtime+from openhands.runtime.runtime import RuntimeSUPPORTED_AGENT_CLS = {'BrowsingAgent'}@@ -45,7 +45,7 @@ def get_config() -> AppConfig:config = AppConfig(default_agent=metadata.agent_class,- run_as_devin=False,+ run_as_openhands=False,runtime='eventstream',max_iterations=metadata.max_iterations,sandbox=SandboxConfig(diff --git a/evaluation/mint/README.md b/evaluation/mint/README.mdindex 3925cf5e40..950996cc49 100644--- a/evaluation/mint/README.md+++ b/evaluation/mint/README.md@@ -22,7 +22,7 @@ where `model_config` is mandatory, while others are optional.- `model_config`, e.g. `eval_gpt4_1106_preview`, is the config group name for your LLM settings, as defined in your `config.toml`.-- `git-version`, e.g. `HEAD`, is the git commit hash of the OpenDevin version you would+- `git-version`, e.g. `HEAD`, is the git commit hash of the OpenHands version you wouldlike to evaluate. It could also be a release tag like `0.6.2`.- `subset`, e.g. `math`, is the subset of the MINT benchmark to evaluate on, defaulting to `math`. It can be either: `math`, `gsm8k`, `mmlu`, `theoremqa`, `mbpp`,`humaneval`.diff --git a/evaluation/mint/env.py b/evaluation/mint/env.pyindex 8bffb2288e..9fd4636b3c 100644--- a/evaluation/mint/env.py+++ b/evaluation/mint/env.py@@ -4,7 +4,7 @@ import tracebackfrom datatypes import ParseError, StepOutput, TaskStatefrom tasks.base import Task-from opendevin.controller.state.state import State+from openhands.controller.state.state import Stateclass SimplifiedEnv:diff --git a/evaluation/mint/run_infer.py b/evaluation/mint/run_infer.pyindex f08034ebd8..d64c89b6c8 100644--- a/evaluation/mint/run_infer.py+++ b/evaluation/mint/run_infer.py@@ -17,20 +17,20 @@ from evaluation.utils.shared import (reset_logger_for_multiprocessing,run_evaluation,)-from opendevin.controller.state.state import State-from opendevin.core.config import (+from openhands.controller.state.state import State+from openhands.core.config import (AppConfig,SandboxConfig,get_llm_config_arg,get_parser,)-from opendevin.core.logger import opendevin_logger as logger-from opendevin.core.main import create_runtime, run_controller-from opendevin.events.action import (+from openhands.core.logger import openhands_logger as logger+from openhands.core.main import create_runtime, run_controller+from openhands.events.action import (CmdRunAction,)-from opendevin.events.observation import CmdOutputObservation-from opendevin.runtime.runtime import Runtime+from openhands.events.observation import CmdOutputObservation+from openhands.runtime.runtime import Runtimedef codeact_user_response_mint(state: State, task: Task, task_config: dict[str, int]):@@ -97,7 +97,7 @@ def get_config() -> AppConfig:config = AppConfig(default_agent=metadata.agent_class,- run_as_devin=False,+ run_as_openhands=False,runtime='eventstream',max_iterations=metadata.max_iterations,sandbox=SandboxConfig(@@ -243,7 +243,7 @@ if __name__ == '__main__':args, _ = parser.parse_known_args()# NOTE: It is preferable to load datasets from huggingface datasets and perform post-processing- # so we don't need to manage file uploading to OpenDevin's repo+ # so we don't need to manage file uploading to OpenHands's repoif args.subset == 'all':subsets = SUBSETSelse:diff --git a/evaluation/ml_bench/README.md b/evaluation/ml_bench/README.mdindex e6199327a7..d2f1a2a5d7 100644--- a/evaluation/ml_bench/README.md+++ b/evaluation/ml_bench/README.md@@ -1,6 +1,6 @@-# ML-Bench Evaluation with OpenDevin+# ML-Bench Evaluation with OpenHands-This project implements the evaluation of agents on the [ML-Bench](https://arxiv.org/abs/2311.09835) dataset using OpenDevin. [ML-Bench](https://arxiv.org/abs/2311.09835) is a comprehensive benchmark designed to assess the effectiveness of Large Language Models (LLMs) in leveraging existing functions in open-source libraries for machine learning tasks. The benchmark consists of 10,040 samples spanning 130 tasks over 14 notable machine learning GitHub repositories.+This project implements the evaluation of agents on the [ML-Bench](https://arxiv.org/abs/2311.09835) dataset using OpenHands. [ML-Bench](https://arxiv.org/abs/2311.09835) is a comprehensive benchmark designed to assess the effectiveness of Large Language Models (LLMs) in leveraging existing functions in open-source libraries for machine learning tasks. The benchmark consists of 10,040 samples spanning 130 tasks over 14 notable machine learning GitHub repositories.## Task Overview@@ -47,7 +47,7 @@ This command generates a report on the evaluation output and provides insights i## Examples-For each task in the ML-Bench dataset, OpenDevin provides the agent with a set number of iterations to complete the task. The `history` field in the evaluation output shows each iteration's response and actions taken by the agent to complete the task.+For each task in the ML-Bench dataset, OpenHands provides the agent with a set number of iterations to complete the task. The `history` field in the evaluation output shows each iteration's response and actions taken by the agent to complete the task.Here's an example of the evaluation output for a single task instance:diff --git a/evaluation/ml_bench/run_analysis.py b/evaluation/ml_bench/run_analysis.pyindex 14d0acb5ac..eda8fd4bdd 100644--- a/evaluation/ml_bench/run_analysis.py+++ b/evaluation/ml_bench/run_analysis.py@@ -4,9 +4,9 @@ import pprintimport tqdm-from opendevin.core.config import get_llm_config_arg, get_parser, load_app_config-from opendevin.core.logger import opendevin_logger as logger-from opendevin.llm.llm import LLM+from openhands.core.config import get_llm_config_arg, get_parser, load_app_config+from openhands.core.logger import openhands_logger as logger+from openhands.llm.llm import LLMconfig = load_app_config()@@ -120,7 +120,7 @@ if __name__ == '__main__':)args, _ = parser.parse_known_args()- # Check https://github.com/OpenDevin/OpenDevin/blob/main/evaluation/swe_bench/README.md#configure-opendevin-and-your-llm+ # Check https://github.com/All-Hands-AI/OpenHands/blob/main/evaluation/swe_bench/README.md#configure-openhands-and-your-llm# for details of how to set `llm_config`if args.llm_config:specified_llm_config = get_llm_config_arg(args.llm_config)diff --git a/evaluation/ml_bench/run_infer.py b/evaluation/ml_bench/run_infer.pyindex c7baa77e03..f73142fd2c 100644--- a/evaluation/ml_bench/run_infer.py+++ b/evaluation/ml_bench/run_infer.py@@ -28,19 +28,19 @@ from evaluation.utils.shared import (reset_logger_for_multiprocessing,run_evaluation,)-from opendevin.controller.state.state import State-from opendevin.core.config import (+from openhands.controller.state.state import State+from openhands.core.config import (AppConfig,SandboxConfig,get_llm_config_arg,get_parser,load_app_config,)-from opendevin.core.logger import opendevin_logger as logger-from opendevin.core.main import create_runtime, run_controller-from opendevin.events.action import CmdRunAction-from opendevin.events.observation import CmdOutputObservation-from opendevin.runtime.runtime import Runtime+from openhands.core.logger import openhands_logger as logger+from openhands.core.main import create_runtime, run_controller+from openhands.events.action import CmdRunAction+from openhands.events.observation import CmdOutputObservation+from openhands.runtime.runtime import Runtimeconfig = load_app_config()@@ -76,7 +76,7 @@ def get_config() -> AppConfig:config = AppConfig(default_agent=metadata.agent_class,- run_as_devin=False,+ run_as_openhands=False,runtime='eventstream',max_iterations=metadata.max_iterations,sandbox=SandboxConfig(diff --git a/evaluation/regression/README.md b/evaluation/regression/README.mdindex 5767a4d0f2..40599ab8cc 100644--- a/evaluation/regression/README.md+++ b/evaluation/regression/README.md@@ -1,10 +1,10 @@-# OpenDevin - Regression Test Framework+# OpenHands - Regression Test Framework-OpenDevin project is an open-source software engineering AI that can solve various software engineering tasks. This repository contains the regression test framework for OpenDevin project.+OpenHands project is an open-source software engineering AI that can solve various software engineering tasks. This repository contains the regression test framework for OpenHands project.## Running the Tests-To run the tests for OpenDevin project, you can use the provided test runner script. Follow these steps:+To run the tests for OpenHands project, you can use the provided test runner script. Follow these steps:1. Ensure you have Python 3.6 or higher installed on your system.2. Install the required dependencies by running the following command in your terminal:@@ -22,7 +22,7 @@ The test runner will discover and execute all the test cases in the `cases/` dir## Test Case Structure-The test cases for OpenDevin project are organized in the `cases/` directory. Each test case has the following structure:+The test cases for OpenHands project are organized in the `cases/` directory. Each test case has the following structure:```cases/@@ -47,9 +47,9 @@ cases/```- `task.txt`: This file contains the task description provided by the user.-- `outputs/`: This directory contains the output generated by OpenDevin for each agent.-- `outputs/*/workspace/`: This directory contains the actual output files generated by OpenDevin.-- `test_*.py`: These are the test scripts that validate the output of OpenDevin.+- `outputs/`: This directory contains the output generated by OpenHands for each agent.+- `outputs/*/workspace/`: This directory contains the actual output files generated by OpenHands.+- `test_*.py`: These are the test scripts that validate the output of OpenHands.## Adding New Test Cases@@ -63,7 +63,7 @@ The test cases can be customized by modifying the fixtures defined in the `conft- `task_file`: The path to the `task.txt` file for the current test case.- `workspace_dir`: The path to the `workspace/` directory for the current test case.- `model`: The model selected start the generation.-- `run_test_case`: A fixture that runs OpenDevin and generates the workspace for the current test case.+- `run_test_case`: A fixture that runs OpenHands and generates the workspace for the current test case.You can modify these fixtures to change the behavior of the test cases or add new ones as needed.diff --git a/evaluation/regression/cases/hello-name/start/hello_world.sh b/evaluation/regression/cases/hello-name/start/hello_world.shold mode 100755new mode 100644diff --git a/evaluation/regression/conftest.py b/evaluation/regression/conftest.pyindex e824a10bd0..d514622d51 100644--- a/evaluation/regression/conftest.py+++ b/evaluation/regression/conftest.py@@ -130,7 +130,7 @@ def run_test_case(test_cases_dir, workspace_dir, request):process = subprocess.Popen(['python3',- f'{SCRIPT_DIR}/../../opendevin/main.py',+ f'{SCRIPT_DIR}/../../openhands/main.py','-d',f"{os.path.join(agent_dir, 'workspace')}",'-c',diff --git a/evaluation/regression/run_tests.py b/evaluation/regression/run_tests.pyindex ed2429b029..1c0af98ffd 100644--- a/evaluation/regression/run_tests.py+++ b/evaluation/regression/run_tests.py@@ -2,7 +2,7 @@ import argparseimport pytest-from opendevin.config import load_app_config+from openhands.config import load_app_configconfig = load_app_config()diff --git a/evaluation/swe_bench/README.md b/evaluation/swe_bench/README.mdindex 5475590e43..ee0a901234 100644--- a/evaluation/swe_bench/README.md+++ b/evaluation/swe_bench/README.md@@ -1,4 +1,4 @@-# SWE-Bench Evaluation with OpenDevin SWE-Bench Docker Image+# SWE-Bench Evaluation with OpenHands SWE-Bench Docker ImageThis folder contains the evaluation harness that we built on top of the original [SWE-Bench benchmark](https://www.swebench.com/) ([paper](https://arxiv.org/abs/2310.06770)).@@ -6,7 +6,7 @@ This folder contains the evaluation harness that we built on top of the originalThe evaluation consists of three steps:-1. Environment setup: [install python environment](../README.md#development-environment), [configure LLM config](../README.md#configure-opendevin-and-your-llm), and [pull docker](#opendevin-swe-bench-instance-level-docker-support).+1. Environment setup: [install python environment](../README.md#development-environment), [configure LLM config](../README.md#configure-openhands-and-your-llm), and [pull docker](#openhands-swe-bench-instance-level-docker-support).2. [Run inference](#run-inference-on-swe-bench-instances): Generate a edit patch for each Github issue3. [Evaluate patches using SWE-Bench docker](#evaluate-generated-patches)@@ -14,9 +14,9 @@ The evaluation consists of three steps:Please follow instruction [here](../README.md#setup) to setup your local development environment and LLM.-## OpenDevin SWE-Bench Instance-level Docker Support+## OpenHands SWE-Bench Instance-level Docker Support-OpenDevin now support using the [official evaluation docker](https://github.com/princeton-nlp/SWE-bench/blob/main/docs/20240627_docker/README.md) for both **[inference](#run-inference-on-swe-bench-instances) and [evaluation](#evaluate-generated-patches)**.+OpenHands now support using the [official evaluation docker](https://github.com/princeton-nlp/SWE-bench/blob/main/docs/20240627_docker/README.md) for both **[inference](#run-inference-on-swe-bench-instances) and [evaluation](#evaluate-generated-patches)**.This is now the default behavior.### Download Docker Images@@ -35,7 +35,7 @@ evaluation/swe_bench/scripts/docker/pull_all_eval_docker.sh env## Run Inference on SWE-Bench Instances-Make sure your Docker daemon is running, and you have pulled the [instance-level docker image](#opendevin-swe-bench-instance-level-docker-support).+Make sure your Docker daemon is running, and you have pulled the [instance-level docker image](#openhands-swe-bench-instance-level-docker-support).```bash./evaluation/swe_bench/scripts/run_infer.sh [model_config] [git-version] [agent] [eval_limit] [max_iter] [num_workers]@@ -46,7 +46,7 @@ where `model_config` is mandatory, and the rest are optional.- `model_config`, e.g. `eval_gpt4_1106_preview`, is the config group name for yourLLM settings, as defined in your `config.toml`.-- `git-version`, e.g. `HEAD`, is the git commit hash of the OpenDevin version you would+- `git-version`, e.g. `HEAD`, is the git commit hash of the OpenHands version you wouldlike to evaluate. It could also be a release tag like `0.6.2`.- `agent`, e.g. `CodeActAgent`, is the name of the agent for benchmarks, defaultingto `CodeActAgent`.@@ -95,10 +95,10 @@ With `output.jsonl` file, you can run `eval_infer.sh` to evaluate generated patc> If you want to evaluate existing results, you should first run this to clone existing outputs>```bash->git clone https://huggingface.co/spaces/OpenDevin/evaluation evaluation/evaluation_outputs+>git clone https://huggingface.co/spaces/OpenHands/evaluation evaluation/evaluation_outputs>```-NOTE, you should have already pulled the instance-level OR env-level docker images following [this section](#opendevin-swe-bench-instance-level-docker-support).+NOTE, you should have already pulled the instance-level OR env-level docker images following [this section](#openhands-swe-bench-instance-level-docker-support).Then you can run the following:@@ -129,10 +129,10 @@ The final results will be saved to `evaluation/evaluation_outputs/outputs/swe_be## Visualize Results-First you need to clone `https://huggingface.co/spaces/OpenDevin/evaluation` and add your own running results from opendevin into the `outputs` of the cloned repo.+First you need to clone `https://huggingface.co/spaces/OpenHands/evaluation` and add your own running results from openhands into the `outputs` of the cloned repo.```bash-git clone https://huggingface.co/spaces/OpenDevin/evaluation+git clone https://huggingface.co/spaces/OpenHands/evaluation```**(optional) setup streamlit environment with conda**:@@ -149,11 +149,11 @@ Then, in a separate Python environment with `streamlit` library, you can run the```bash# Make sure you are inside the cloned `evaluation` repoconda activate streamlit # if you follow the optional conda env setup above-streamlit run 0_📊_OpenDevin_Benchmark.py --server.port 8501 --server.address 0.0.0.0+streamlit run 0_📊_OpenHands_Benchmark.py --server.port 8501 --server.address 0.0.0.0```Then you can access the SWE-Bench trajectory visualizer at `localhost:8501`.## Submit your evaluation results-You can start your own fork of [our huggingface evaluation outputs](https://huggingface.co/spaces/OpenDevin/evaluation) and submit a PR of your evaluation results following the guide [here](https://huggingface.co/docs/hub/en/repositories-pull-requests-discussions#pull-requests-and-discussions).+You can start your own fork of [our huggingface evaluation outputs](https://huggingface.co/spaces/OpenHands/evaluation) and submit a PR of your evaluation results following the guide [here](https://huggingface.co/docs/hub/en/repositories-pull-requests-discussions#pull-requests-and-discussions).diff --git a/evaluation/swe_bench/examples/example_model_output.json b/evaluation/swe_bench/examples/example_model_output.jsonindex f2395c093f..e603884143 100644--- a/evaluation/swe_bench/examples/example_model_output.json+++ b/evaluation/swe_bench/examples/example_model_output.json@@ -2,151 +2,151 @@{"instance_id": "sphinx-doc__sphinx-8721","model_patch": "diff --git a/sphinx/ext/viewcode.py b/sphinx/ext/viewcode.py\r\nindex a7d52a91c..e5f058693 100644\r\n--- a/sphinx/ext/viewcode.py\r\n+++ b/sphinx/ext/viewcode.py\r\n@@ -159,6 +159,10 @@ def get_module_filename(app: Sphinx, modname: str) -> Optional[str]:\r\n \r\n def should_generate_module_page(app: Sphinx, modname: str) -> bool:\r\n \"\"\"Check generation of module page is needed.\"\"\"\r\n+ # Do not generate module page if viewcode is disabled for epub\r\n+ if app.builder.name.startswith('epub') and not app.config.viewcode_enable_epub:\r\n+ return False\r\n+\r\n module_filename = get_module_filename(app, modname)\r\n if module_filename is None:\r\n # Always (re-)generate module page when module filename is not found.",- "model_name_or_path": "opendevin"+ "model_name_or_path": "openhands"},{"instance_id": "django__django-15202","model_patch": "diff --git a/django/core/validators.py b/django/core/validators.py\r\nindex 72fbe15551..14a9eafbab 100644\r\n--- a/django/core/validators.py\r\n+++ b/django/core/validators.py\r\n@@ -127,20 +127,15 @@ class URLValidator(RegexValidator):\r\n raise\r\n else:\r\n # Now verify IPv6 in the netloc part\r\n- host_match = re.search(r'^\\[(.+)\\](?::\\d{1,5})?$', urlsplit(value).netloc)\r\n- if host_match:\r\n- potential_ip = host_match[1]\r\n- try:\r\n+ try:\r\n+ host_match = re.search(r'^\\[(.+)\\](?::\\d{1,5})?$', urlsplit(value).netloc)\r\n+ if host_match:\r\n+ potential_ip = host_match[1]\r\n validate_ipv6_address(potential_ip)\r\n- except ValidationError:\r\n- raise ValidationError(self.message, code=self.code, params={'value': value})\r\n-\r\n- # The maximum length of a full host name is 253 characters per RFC 1034\r\n- # section 3.1. It's defined to be 255 bytes or less, but this includes\r\n- # one byte for the length of the name and one byte for the trailing dot\r\n- # that's used to indicate absolute names in DNS.\r\n- if len(urlsplit(value).hostname) > 253:\r\n- raise ValidationError(self.message, code=self.code, params={'value': value})\r\n+ except ValidationError:\r\n+ raise ValidationError(self.message, code=self.code, params={'value': value})\r\n+ except ValueError:\r\n+ raise ValidationError(self.message, code=self.code, params={'value': value})\r\n \r\n \r\n integer_validator = RegexValidator(\r\ndiff --git a/django/forms/fields.py b/django/forms/fields.py\r\nindex 65d6a9ec82..f02d6d6245 100644\r\n--- a/django/forms/fields.py\r\n+++ b/django/forms/fields.py\r\n@@ -687,10 +687,8 @@ class URLField(CharField):\r\n \"\"\"\r\n try:\r\n return list(urlsplit(url))\r\n- except ValueError:\r\n- # urlparse.urlsplit can raise a ValueError with some\r\n- # misformatted URLs.\r\n- raise ValidationError(self.error_messages['invalid'], code='invalid')\r\n+ except ValueError as e:\r\n+ raise ValidationError(self.error_messages['invalid'], code='invalid') from e\r\n \r\n value = super().to_python(value)\r\n if value:\r\ndiff --git a/tests/forms_tests/field_tests/test_urlfield.py b/tests/forms_tests/field_tests/test_urlfield.py\r\nindex 152456f216..90d4f15736 100644\r\n--- a/tests/forms_tests/field_tests/test_urlfield.py\r\n+++ b/tests/forms_tests/field_tests/test_urlfield.py\r\n@@ -129,3 +129,8 @@ class URLFieldTest(FormFieldAssertionsMixin, SimpleTestCase):\r\n msg = \"__init__() got multiple values for keyword argument 'strip'\"\r\n with self.assertRaisesMessage(TypeError, msg):\r\n URLField(strip=False)\r\n+\r\n+ def test_urlfield_clean_value_error(self):\r\n+ f = URLField()\r\n+ with self.assertRaises(ValidationError):\r\n+ f.clean('////]@N.AN')",- "model_name_or_path": "opendevin"+ "model_name_or_path": "openhands"},{"instance_id": "django__django-14017","model_patch": "diff --git a/django/db/models/expressions.py b/django/db/models/expressions.py\r\nindex ffc3a7fda5..593a34f95a 100644\r\n--- a/django/db/models/expressions.py\r\n+++ b/django/db/models/expressions.py\r\n@@ -1151,10 +1151,10 @@ class Exists(Subquery):\r\n template = 'EXISTS(%(subquery)s)'\r\n output_field = fields.BooleanField()\r\n \r\n- def __init__(self, queryset, negated=False, **kwargs):\r\n- self.negated = negated\r\n- super().__init__(queryset, **kwargs)\r\n-\r\n+def __rand__(self, other):\r\n+ if not isinstance(other, Q):\r\n+ raise TypeError('Cannot combine a Q object with %s' % type(other))\r\n+ return other & self\r\n def __invert__(self):\r\n clone = self.copy()\r\n clone.negated = not self.negated",- "model_name_or_path": "opendevin"+ "model_name_or_path": "openhands"},{"instance_id": "sympy__sympy-14774","model_patch": "diff --git a/sympy/printing/latex.py b/sympy/printing/latex.py\r\nindex a3ead157c1..f3b7669e96 100644\r\n--- a/sympy/printing/latex.py\r\n+++ b/sympy/printing/latex.py\r\n@@ -740,7 +740,7 @@ def _print_Function(self, expr, exp=None):\r\n len(args) == 1 and \\\r\n not self._needs_function_brackets(expr.args[0])\r\n \r\n- inv_trig_table = [\"asin\", \"acos\", \"atan\", \"acot\"]\r\n+ inv_trig_table = [\"asin\", \"acos\", \"atan\", \"acsc\", \"asec\", \"acot\"]\r\n \r\n # If the function is an inverse trig function, handle the style\r\n if func in inv_trig_table:",- "model_name_or_path": "opendevin"+ "model_name_or_path": "openhands"},{"instance_id": "scikit-learn__scikit-learn-10508","model_patch": "diff --git a/sklearn/preprocessing/label.py b/sklearn/preprocessing/label.py\r\nindex 61b8d4a21..6f9c43807 100644\r\n--- a/sklearn/preprocessing/label.py\r\n+++ b/sklearn/preprocessing/label.py\r\n@@ -124,9 +124,14 @@ class LabelEncoder(BaseEstimator, TransformerMixin):\r\n -------\r\n y : array-like of shape [n_samples]\r\n \"\"\"\r\n- check_is_fitted(self, 'classes_')\r\n+ # Directly return an empty array with the expected dtype for empty input\r\n+ if len(y) == 0:\r\n+ return np.array([], dtype='<U32' if self.classes_.dtype.kind == 'U' else int)\r\n+ # Return an empty array with the same dtype as the classes_ if the input is empty\r\n+ if len(y) == 0:\r\n+ return np.array([], dtype=self.classes_.dtype)\r\n y = column_or_1d(y, warn=True)\r\n-\r\n+ \r\n classes = np.unique(y)\r\n if len(np.intersect1d(classes, self.classes_)) < len(classes):\r\n diff = np.setdiff1d(classes, self.classes_)",- "model_name_or_path": "opendevin"+ "model_name_or_path": "openhands"},{"instance_id": "django__django-14915","model_patch": "diff --git a/django/forms/models.py b/django/forms/models.py\r\nindex 5dcf923c12..c6d4c2c36c 100644\r\n--- a/django/forms/models.py\r\n+++ b/django/forms/models.py\r\n@@ -1321,7 +1321,8 @@ class ModelChoiceField(ChoiceField):\r\n data_value = data if data is not None else ''\r\n return str(self.prepare_value(initial_value)) != str(data_value)\r\n \r\n-\r\n+ def __hash__(self):\r\n+ return hash(self.value)\r\n class ModelMultipleChoiceField(ModelChoiceField):\r\n \"\"\"A MultipleChoiceField whose choices are a model QuerySet.\"\"\"\r\n widget = SelectMultiple",- "model_name_or_path": "opendevin"+ "model_name_or_path": "openhands"},{"instance_id": "django__django-17087","model_patch": "diff --git a/django/db/migrations/serializer.py b/django/db/migrations/serializer.py\r\nindex d88cda6e20..06657ebaab 100644\r\n--- a/django/db/migrations/serializer.py\r\n+++ b/django/db/migrations/serializer.py\r\n@@ -168,7 +168,7 @@ class FunctionTypeSerializer(BaseSerializer):\r\n ):\r\n klass = self.value.__self__\r\n module = klass.__module__\r\n- return \"%s.%s.%s\" % (module, klass.__name__, self.value.__name__), {\r\n+ return \"%s.%s.%s\" % (module, klass.__qualname__, self.value.__name__), {\r\n \"import %s\" % module\r\n }\r\n # Further error checking\r\ndiff --git a/tests/migrations/test_writer/test_nested_class_default.py b/tests/migrations/test_writer/test_nested_class_default.py\r\nnew file mode 100644\r\nindex 0000000000..93ecf2ea6b\r\n--- /dev/null\r\n+++ b/tests/migrations/test_writer/test_nested_class_default.py\r\n@@ -0,0 +1,23 @@\r\n+from django.db import migrations, models\r\n+from django.db.migrations.writer import MigrationWriter\r\n+from django.test import SimpleTestCase\r\n+\r\n+class MockModel(models.Model):\r\n+ class MockNestedClass:\r\n+ @classmethod\r\n+ def default(cls):\r\n+ return 'default_value'\r\n+\r\n+ field = models.CharField(\r\n+ max_length=100,\r\n+ default=MockNestedClass.default,\r\n+ )\r\n+\r\n+class TestNestedClassDefault(SimpleTestCase):\r\n+\r\n+ def test_serialize_nested_class_method_as_default(self):\r\n+ field = MockModel._meta.get_field('field')\r\n+ statement, imports = MigrationWriter.serialize(field)\r\n+\r\n+ # Check that the default is correctly serialized\r\n+ self.assertIn('MockModel.MockNestedClass.default', statement)\r\ndiff --git a/tests/test_settings.py b/tests/test_settings.py\r\nnew file mode 100644\r\nindex 0000000000..93ecf2ea6b\r\n--- /dev/null\r\n+++ b/tests/test_settings.py\r\n@@ -0,0 +1,23 @@\r\n+from django.db import migrations, models\r\n+from django.db.migrations.writer import MigrationWriter\r\n+from django.test import SimpleTestCase\r\n+\r\n+class MockModel(models.Model):\r\n+ class MockNestedClass:\r\n+ @classmethod\r\n+ def default(cls):\r\n+ return 'default_value'\r\n+\r\n+ field = models.CharField(\r\n+ max_length=100,\r\n+ default=MockNestedClass.default,\r\n+ )\r\n+\r\n+class TestNestedClassDefault(SimpleTestCase):\r\n+\r\n+ def test_serialize_nested_class_method_as_default(self):\r\n+ field = MockModel._meta.get_field('field')\r\n+ statement, imports = MigrationWriter.serialize(field)\r\n+\r\n+ # Check that the default is correctly serialized\r\n+ self.assertIn('MockModel.MockNestedClass.default', statement)",- "model_name_or_path": "opendevin"+ "model_name_or_path": "openhands"},{"instance_id": "sympy__sympy-22005","model_patch": "diff --git a/sympy/solvers/polysys.py b/sympy/solvers/polysys.py\r\nindex b9809fd4e9..1cd89c1add 100644\r\n--- a/sympy/solvers/polysys.py\r\n+++ b/sympy/solvers/polysys.py\r\n@@ -241,8 +241,12 @@ def _solve_reduced_system(system, gens, entry=False):\r\n univariate = list(filter(_is_univariate, basis))\r\n \r\n if len(univariate) == 1:\r\n- f = univariate.pop()\r\n- else:\r\n+ if len(gens) == 1:\r\n+ f = univariate.pop()\r\n+ else:\r\n+ raise NotImplementedError(filldedent('''\r\n+ only zero-dimensional systems supported\r\n+ (finite number of solutions)'''))\r\n raise NotImplementedError(filldedent('''\r\n only zero-dimensional systems supported\r\n (finite number of solutions)\r\ndiff --git a/sympy/solvers/tests/test_polysys.py b/sympy/solvers/tests/test_polysys.py\r\nindex 58419f8762..15cb70bc53 100644\r\n--- a/sympy/solvers/tests/test_polysys.py\r\n+++ b/sympy/solvers/tests/test_polysys.py\r\n@@ -47,7 +47,10 @@ def test_solve_poly_system():\r\n raises(NotImplementedError, lambda: solve_poly_system([x**3 - y**3], x, y))\r\n raises(NotImplementedError, lambda: solve_poly_system(\r\n [z, -2*x*y**2 + x + y**2*z, y**2*(-z - 4) + 2]))\r\n- raises(PolynomialError, lambda: solve_poly_system([1/x], x))\r\n+ raises(NotImplementedError, lambda: solve_poly_system(\r\n+ [Poly(x - 1, x, y)], (x, y)))\r\n+ raises(NotImplementedError, lambda: solve_poly_system(\r\n+ [Poly(y - 1, x, y)], (x, y)))\r\n \r\n \r\n def test_solve_biquadratic():",- "model_name_or_path": "opendevin"+ "model_name_or_path": "openhands"},{"instance_id": "pytest-dev__pytest-5221","model_patch": "diff --git a/src/_pytest/python.py b/src/_pytest/python.py\r\nindex 377357846..f15299a41 100644\r\n--- a/src/_pytest/python.py\r\n+++ b/src/_pytest/python.py\r\n@@ -1342,10 +1342,11 @@ def _showfixtures_main(config, session):\r\n currentmodule = module\r\n if verbose <= 0 and argname[0] == \"_\":\r\n continue\r\n+ scope = fixturedef.scope\r\n if verbose > 0:\r\n- funcargspec = \"%s -- %s\" % (argname, bestrel)\r\n+ funcargspec = f\"{argname} -- scope: {scope} -- {bestrel}\"\r\n else:\r\n- funcargspec = argname\r\n+ funcargspec = f\"{argname} -- scope: {scope}\"\r\n tw.line(funcargspec, green=True)\r\n loc = getlocation(fixturedef.func, curdir)\r\n doc = fixturedef.func.__doc__ or \"\"",- "model_name_or_path": "opendevin"+ "model_name_or_path": "openhands"},{"instance_id": "sympy__sympy-17022","model_patch": "diff --git a/sympy/printing/lambdarepr.py b/sympy/printing/lambdarepr.py\r\nindex 8f60434e89..851530c286 100644\r\n--- a/sympy/printing/lambdarepr.py\r\n+++ b/sympy/printing/lambdarepr.py\r\n@@ -89,7 +89,12 @@ class NumExprPrinter(LambdaPrinter):\r\n 'contains' : 'contains',\r\n }\r\n \r\n- def _print_ImaginaryUnit(self, expr):\r\n+def _print_Identity(self, expr):\r\n+ from sympy import Integer\r\n+ if isinstance(expr.args[0], Integer):\r\n+ return f\"numpy.eye({expr.args[0]})\"\r\n+ else:\r\n+ raise ValueError(\"Identity matrix dimension must be an Integer\")\r\n return '1j'\r\n \r\n def _print_seq(self, seq, delimiter=', '):",- "model_name_or_path": "opendevin"+ "model_name_or_path": "openhands"},{"instance_id": "django__django-11422","model_patch": "diff --git a/django/utils/autoreload.py b/django/utils/autoreload.py\r\nindex 7ca0d68fae..9e4a806c31 100644\r\n--- a/django/utils/autoreload.py\r\n+++ b/django/utils/autoreload.py\r\n@@ -114,14 +114,17 @@ def iter_modules_and_files(modules, extra_files):\r\n # During debugging (with PyDev) the 'typing.io' and 'typing.re' objects\r\n # are added to sys.modules, however they are types not modules and so\r\n # cause issues here.\r\n- if not isinstance(module, ModuleType) or getattr(module, '__spec__', None) is None:\r\n+ if not isinstance(module, ModuleType):\r\n continue\r\n- spec = module.__spec__\r\n- # Modules could be loaded from places without a concrete location. If\r\n- # this is the case, skip them.\r\n- if spec.has_location:\r\n- origin = spec.loader.archive if isinstance(spec.loader, zipimporter) else spec.origin\r\n- sys_file_paths.append(origin)\r\n+ if module.__name__ == '__main__':\r\n+ filename = getattr(module, '__file__', None)\r\n+ if filename:\r\n+ sys_file_paths.append(filename)\r\n+ elif getattr(module, '__spec__', None) is not None:\r\n+ spec = module.__spec__\r\n+ if spec.has_location:\r\n+ origin = spec.loader.archive if isinstance(spec.loader, zipimporter) else spec.origin\r\n+ sys_file_paths.append(origin)\r\n \r\n results = set()\r\n for filename in itertools.chain(sys_file_paths, extra_files):\r\ndiff --git a/tests/i18n/sampleproject/sampleproject/settings.py b/tests/i18n/sampleproject/sampleproject/settings.py\r\nindex e69de29bb2..d6cccb516b 100644\r\n--- a/tests/i18n/sampleproject/sampleproject/settings.py\r\n+++ b/tests/i18n/sampleproject/sampleproject/settings.py\r\n@@ -0,0 +1,34 @@\r\n+SECRET_KEY = 'fake-secret-key-for-testing'\r\n+DEBUG = True\r\n+ALLOWED_HOSTS = []\r\n+INSTALLED_APPS = [\r\n+ 'django.contrib.admin',\r\n+ 'django.contrib.auth',\r\n+ 'django.contrib.contenttypes',\r\n+ 'django.contrib.sessions',\r\n+ 'django.contrib.messages',\r\n+ 'django.contrib.staticfiles',\r\n+]\r\n+MIDDLEWARE = [\r\n+ 'django.middleware.security.SecurityMiddleware',\r\n+ 'django.contrib.sessions.middleware.SessionMiddleware',\r\n+ 'django.middleware.common.CommonMiddleware',\r\n+ 'django.middleware.csrf.CsrfViewMiddleware',\r\n+ 'django.contrib.auth.middleware.AuthenticationMiddleware',\r\n+ 'django.contrib.messages.middleware.MessageMiddleware',\r\n+ 'django.middleware.clickjacking.XFrameOptionsMiddleware',\r\n+]\r\n+TEMPLATES = [\r\n+ {\r\n+ 'BACKEND': 'django.template.backends.django.DjangoTemplates',\r\n+ 'APP_DIRS': True,\r\n+ 'OPTIONS': {\r\n+ 'context_processors': [\r\n+ 'django.template.context_processors.debug',\r\n+ 'django.template.context_processors.request',\r\n+ 'django.contrib.auth.context_processors.auth',\r\n+ 'django.contrib.messages.context_processors.messages',\r\n+ ],\r\n+ },\r\n+ },\r\n+]",- "model_name_or_path": "opendevin"+ "model_name_or_path": "openhands"},{"instance_id": "sympy__sympy-20590","model_patch": "diff --git a/sympy/core/_print_helpers.py b/sympy/core/_print_helpers.py\r\nindex 96d7e72676..b72e022e68 100644\r\n--- a/sympy/core/_print_helpers.py\r\n+++ b/sympy/core/_print_helpers.py\r\n@@ -6,6 +6,7 @@\r\n \"\"\"\r\n \r\n class Printable:\r\n+ __slots__ = ()\r\n \"\"\"\r\n The default implementation of printing for SymPy classes.",- "model_name_or_path": "opendevin"+ "model_name_or_path": "openhands"},{"instance_id": "django__django-15996","model_patch": "diff --git a/django/db/migrations/serializer.py b/django/db/migrations/serializer.py\r\nindex 38da1e6ecc..f59fd93415 100644\r\n--- a/django/db/migrations/serializer.py\r\n+++ b/django/db/migrations/serializer.py\r\n@@ -121,14 +121,31 @@ class DictionarySerializer(BaseSerializer):\r\n return \"{%s}\" % (\", \".join(\"%s: %s\" % (k, v) for k, v in strings)), imports\r\n \r\n \r\n+from django.utils.module_loading import import_string\r\n+\r\n+from django.utils.module_loading import import_string\r\n+\r\n class EnumSerializer(BaseSerializer):\r\n def serialize(self):\r\n enum_class = self.value.__class__\r\n module = enum_class.__module__\r\n- return (\r\n- \"%s.%s[%r]\" % (module, enum_class.__qualname__, self.value.name),\r\n- {\"import %s\" % module},\r\n- )\r\n+ enum_value = self.value\r\n+\r\n+ # Check if the value is a single enum member\r\n+ if isinstance(enum_value, enum.Enum):\r\n+ value = \"%s.%s['%s']\" % (module, enum_class.__qualname__, enum_value.name)\r\n+ else:\r\n+ # Decompose the value into individual flags\r\n+ enum_member = enum_class._decompose(enum_class, enum_value)\r\n+ if isinstance(enum_member, list):\r\n+ # Create an expression by ORing the individual flags\r\n+ member_names = [member.name for member in enum_member]\r\n+ value = ' | '.join([\"%s.%s['%s']\" % (module, enum_class.__qualname__, name) for name in member_names])\r\n+ else:\r\n+ # It's a single enum member after all\r\n+ value = \"%s.%s['%s']\" % (module, enum_class.__qualname__, enum_member.name)\r\n+\r\n+ return value, {\"import %s\" % module}\r\n \r\n \r\n class FloatSerializer(BaseSimpleSerializer):\r\ndiff --git a/tests/migrations/test_enum_serializer.py b/tests/migrations/test_enum_serializer.py\r\nnew file mode 100644\r\nindex 0000000000..02f4c2f554\r\n--- /dev/null\r\n+++ b/tests/migrations/test_enum_serializer.py\r\n@@ -0,0 +1,15 @@\r\n+import enum\r\n+from django.db.migrations.serializer import EnumSerializer\r\n+\r\n+class TestEnumSerializer:\r\n+ def test_enum_flag_combination_serialization(self):\r\n+ class RegexFlag(enum.IntFlag):\r\n+ IGNORECASE = enum.auto()\r\n+ UNICODE = enum.auto()\r\n+\r\n+ combined_flags = RegexFlag.IGNORECASE | RegexFlag.UNICODE\r\n+ serializer = EnumSerializer(combined_flags)\r\n+\r\n+ serialized_value, imports = serializer.serialize()\r\n+ assert serialized_value == \"tests.migrations.test_enum_serializer.RegexFlag.IGNORECASE | tests.migrations.test_enum_serializer.RegexFlag.UNICODE\"\r\n+ assert \"import tests.migrations.test_enum_serializer\" in imports",- "model_name_or_path": "opendevin"+ "model_name_or_path": "openhands"},{"instance_id": "matplotlib__matplotlib-23476","model_patch": "diff --git a/lib/matplotlib/figure.py b/lib/matplotlib/figure.py\r\nindex c55864243a..a9526e5039 100644\r\n--- a/lib/matplotlib/figure.py\r\n+++ b/lib/matplotlib/figure.py\r\n@@ -2264,7 +2264,7 @@ class Figure(FigureBase):\r\n \r\n dpi : float, default: :rc:`figure.dpi`\r\n Dots per inch.\r\n-\r\n+self._original_dpi = dpi\r\n facecolor : default: :rc:`figure.facecolor`\r\n The figure patch facecolor.\r\n \r\n@@ -3014,7 +3014,7 @@ class Figure(FigureBase):\r\n \r\n def __getstate__(self):\r\n state = super().__getstate__()\r\n-\r\n+ state['dpi'] = self._original_dpi\r\n # The canvas cannot currently be pickled, but this has the benefit\r\n # of meaning that a figure can be detached from one canvas, and\r\n # re-attached to another.",- "model_name_or_path": "opendevin"+ "model_name_or_path": "openhands"},{"instance_id": "django__django-15252","model_patch": "diff --git a/django/db/migrations/recorder.py b/django/db/migrations/recorder.py\r\nindex 1a37c6b7d0..03a1a4879b 100644\r\n--- a/django/db/migrations/recorder.py\r\n+++ b/django/db/migrations/recorder.py\r\n@@ -56,18 +56,23 @@ class MigrationRecorder:\r\n tables = self.connection.introspection.table_names(cursor)\r\n return self.Migration._meta.db_table in tables\r\n \r\n- def ensure_schema(self):\r\n- \"\"\"Ensure the table exists and has the correct schema.\"\"\"\r\n- # If the table's there, that's fine - we've never changed its schema\r\n- # in the codebase.\r\n- if self.has_table():\r\n- return\r\n- # Make the table\r\n- try:\r\n- with self.connection.schema_editor() as editor:\r\n- editor.create_model(self.Migration)\r\n- except DatabaseError as exc:\r\n- raise MigrationSchemaMissing(\"Unable to create the django_migrations table (%s)\" % exc)\r\n+from django.db import models, DatabaseError, router\r\n+\r\n+def ensure_schema(self):\r\n+ \"\"\"Ensure the table exists and has the correct schema.\"\"\"\r\n+ # If the table's there, that's fine - we've never changed its schema\r\n+ # in the codebase.\r\n+ if self.has_table():\r\n+ return\r\n+ # Check if we're allowed to migrate\r\n+ if not router.allow_migrate(self.connection.alias, self.Migration):\r\n+ return\r\n+ # Make the table\r\n+ try:\r\n+ with self.connection.schema_editor() as editor:\r\n+ editor.create_model(self.Migration)\r\n+ except DatabaseError as exc:\r\n+ raise MigrationSchemaMissing(\"Unable to create the django_migrations table (%s)\" % exc)\r\n \r\n def applied_migrations(self):\r\n \"\"\"",- "model_name_or_path": "opendevin"+ "model_name_or_path": "openhands"},{"instance_id": "sympy__sympy-11897","model_patch": "",- "model_name_or_path": "opendevin"+ "model_name_or_path": "openhands"},{"instance_id": "matplotlib__matplotlib-23987","model_patch": "diff --git a/lib/matplotlib/figure.py b/lib/matplotlib/figure.py\r\nindex 5bbb786984..5600a3fcb5 100644\r\n--- a/lib/matplotlib/figure.py\r\n+++ b/lib/matplotlib/figure.py\r\n@@ -1310,7 +1310,8 @@ default: %(va)s\r\n as a fraction of the average Axes height.\r\n \"\"\"\r\n if (self.get_layout_engine() is not None and\r\n- not self.get_layout_engine().adjust_compatible):\r\n+ not self.get_layout_engine().adjust_compatible and\r\n+ self.get_constrained_layout()):\r\n _api.warn_external(\r\n \"This figure was using a layout engine that is \"\r\n \"incompatible with subplots_adjust and/or tight_layout; \"",- "model_name_or_path": "opendevin"+ "model_name_or_path": "openhands"},{"instance_id": "sympy__sympy-21171","model_patch": "",- "model_name_or_path": "opendevin"+ "model_name_or_path": "openhands"},{"instance_id": "django__django-11797","model_patch": "diff --git a/django/db/models/lookups.py b/django/db/models/lookups.py\r\nindex 105dc93251..9b1355dd29 100644\r\n--- a/django/db/models/lookups.py\r\n+++ b/django/db/models/lookups.py\r\n@@ -261,16 +261,11 @@ class Exact(FieldGetDbPrepValueMixin, BuiltinLookup):\r\n def process_rhs(self, compiler, connection):\r\n from django.db.models.sql.query import Query\r\n if isinstance(self.rhs, Query):\r\n- if self.rhs.has_limit_one():\r\n+ # If the subquery is sliced or has a group by clause, do not alter it.\r\n+ if not (self.rhs.is_sliced or self.rhs.group_by):\r\n # The subquery must select only the pk.\r\n self.rhs.clear_select_clause()\r\n self.rhs.add_fields(['pk'])\r\n- else:\r\n- raise ValueError(\r\n- 'The QuerySet value for an exact lookup must be limited to '\r\n- 'one result using slicing.'\r\n- )\r\n- return super().process_rhs(compiler, connection)\r\n \r\n \r\n @Field.register_lookup\r\ndiff --git a/tests/auth_tests/test_group_by.py b/tests/auth_tests/test_group_by.py\r\nnew file mode 100644\r\nindex 0000000000..38f88cefe3\r\n--- /dev/null\r\n+++ b/tests/auth_tests/test_group_by.py\r\n@@ -0,0 +1,13 @@\r\n+from django.contrib.auth.models import User\r\n+from django.db.models import Max\r\n+from django.test import TestCase\r\n+\r\n+class GroupByTestCase(TestCase):\r\n+ def setUp(self):\r\n+ User.objects.create_user('user1', '[email protected]')\r\n+ User.objects.create_user('user2', '[email protected]')\r\n+\r\n+ def test_group_by_override(self):\r\n+ a = User.objects.filter(email__isnull=True).values('email').annotate(m=Max('id')).values('m')\r\n+ b = User.objects.filter(id=a[:1])\r\n+ self.assertIn('GROUP BY \"auth_user\".\"email\"', str(b.query))\r\ndiff --git a/tests/test_settings.py b/tests/test_settings.py\r\nnew file mode 100644\r\nindex 0000000000..942e75c86e\r\n--- /dev/null\r\n+++ b/tests/test_settings.py\r\n@@ -0,0 +1,42 @@\r\n+SECRET_KEY = 'fake-key-for-testing'\r\n+\r\n+INSTALLED_APPS = [\r\n+ 'django.contrib.auth',\r\n+ 'django.contrib.contenttypes',\r\n+ 'django.contrib.sessions',\r\n+ 'django.contrib.messages',\r\n+ 'django.contrib.admin',\r\n+]\r\n+\r\n+DATABASES = {\r\n+ 'default': {\r\n+ 'ENGINE': 'django.db.backends.sqlite3',\r\n+ 'NAME': ':memory:',\r\n+ }\r\n+}\r\n+\r\n+MIDDLEWARE = [\r\n+ 'django.middleware.security.SecurityMiddleware',\r\n+ 'django.contrib.sessions.middleware.SessionMiddleware',\r\n+ 'django.middleware.common.CommonMiddleware',\r\n+ 'django.middleware.csrf.CsrfViewMiddleware',\r\n+ 'django.contrib.auth.middleware.AuthenticationMiddleware',\r\n+ 'django.contrib.messages.middleware.MessageMiddleware',\r\n+ 'django.middleware.clickjacking.XFrameOptionsMiddleware',\r\n+]\r\n+\r\n+\r\n+TEMPLATES = [\r\n+ {\r\n+ 'BACKEND': 'django.template.backends.django.DjangoTemplates',\r\n+ 'APP_DIRS': True,\r\n+ 'OPTIONS': {\r\n+ 'context_processors': [\r\n+ 'django.template.context_processors.debug',\r\n+ 'django.template.context_processors.request',\r\n+ 'django.contrib.auth.context_processors.auth',\r\n+ 'django.contrib.messages.context_processors.messages',\r\n+ ],\r\n+ },\r\n+ },\r\n+]",- "model_name_or_path": "opendevin"+ "model_name_or_path": "openhands"},{"instance_id": "scikit-learn__scikit-learn-13142","model_patch": "diff --git a/sklearn/mixture/base.py b/sklearn/mixture/base.py\r\nindex bd34333c0..4ed41389c 100644\r\n--- a/sklearn/mixture/base.py\r\n+++ b/sklearn/mixture/base.py\r\n@@ -369,9 +369,9 @@ class BaseMixture(DensityMixin, BaseEstimator, metaclass=ABCMeta):\r\n labels : array, shape (n_samples,)\r\n Component labels.\r\n \"\"\"\r\n- self._check_is_fitted()\r\n- X = _check_X(X, None, self.means_.shape[1])\r\n- return self._estimate_weighted_log_prob(X).argmax(axis=1)\r\n+ # Perform an expectation step to ensure the most up-to-date parameters are used\r\n+ _, log_resp = self._e_step(X)\r\n+ return log_resp.argmax(axis=1)\r\n \r\n def predict_proba(self, X):\r\n \"\"\"Predict posterior probability of each component given the data.",- "model_name_or_path": "opendevin"+ "model_name_or_path": "openhands"},{"instance_id": "matplotlib__matplotlib-18869","model_patch": "",- "model_name_or_path": "opendevin"+ "model_name_or_path": "openhands"},{"instance_id": "django__django-11583","model_patch": "diff --git a/django/utils/autoreload.py b/django/utils/autoreload.py\r\nindex 25c3b44250..3636ca7a4a 100644\r\n--- a/django/utils/autoreload.py\r\n+++ b/django/utils/autoreload.py\r\n@@ -139,6 +139,9 @@ def iter_modules_and_files(modules, extra_files):\r\n path = Path(filename)\r\n try:\r\n resolved_path = path.resolve(strict=True).absolute()\r\n+ except ValueError:\r\n+ # If a ValueError is encountered, skip this path and continue.\r\n+ continue\r\n except FileNotFoundError:\r\n # The module could have been removed, don't fail loudly if this\r\n # is the case.",- "model_name_or_path": "opendevin"+ "model_name_or_path": "openhands"},{"instance_id": "matplotlib__matplotlib-25311","model_patch": "diff --git a/draggable_legend_patch.diff b/draggable_legend_patch.diff\r\nnew file mode 100644\r\nindex 0000000000..f2e13c267c\r\n--- /dev/null\r\n+++ b/draggable_legend_patch.diff\r\n@@ -0,0 +1,22 @@\r\n+--- a/lib/matplotlib/legend.py\r\n++++ b/lib/matplotlib/legend.py\r\n+@@ -96,6 +96,21 @@\r\n+ self.legend.set_bbox_to_anchor(loc_in_bbox)\r\n+ \r\n++ def disable_draggable(self):\r\n++ \"\"\"\r\n++ Disable the draggable feature of the legend to allow pickling.\r\n++ \"\"\"\r\n++ if hasattr(self, '_draggable'):\r\n++ self._draggable.disconnect_events()\r\n++ self._draggable = None\r\n++\r\n++ def enable_draggable(self, use_blit=False, update='loc'):\r\n++ \"\"\"\r\n++ Re-enable the draggable feature of the legend after pickling.\r\n++ \"\"\"\r\n++ self.set_draggable(True, use_blit=use_blit, update=update)\r\n++\r\n++\r\n+ _legend_kw_doc_base = \"\"\"\r\n+ bbox_to_anchor : `.BboxBase`, 2-tuple, or 4-tuple of floats\r\ndiff --git a/lib/matplotlib/legend.py.orig b/lib/matplotlib/legend.py.orig\r\nnew file mode 100644\r\nindex 0000000000..ff6abdb958\r\n--- /dev/null\r\n+++ b/lib/matplotlib/legend.py.orig\r\n@@ -0,0 +1,1355 @@\r\n+\"\"\"\r\n+The legend module defines the Legend class, which is responsible for\r\n+drawing legends associated with axes and/or figures.\r\n+\r\n+.. important::\r\n+\r\n+ It is unlikely that you would ever create a Legend instance manually.\r\n+ Most users would normally create a legend via the `~.Axes.legend`\r\n+ function. For more details on legends there is also a :doc:`legend guide\r\n+ </tutorials/intermediate/legend_guide>`.\r\n+\r\n+The `Legend` class is a container of legend handles and legend texts.\r\n+\r\n+The legend handler map specifies how to create legend handles from artists\r\n+(lines, patches, etc.) in the axes or figures. Default legend handlers are\r\n+defined in the :mod:`~matplotlib.legend_handler` module. While not all artist\r\n+types are covered by the default legend handlers, custom legend handlers can be\r\n+defined to support arbitrary objects.\r\n+\r\n+See the :doc:`legend guide </tutorials/intermediate/legend_guide>` for more\r\n+information.\r\n+\"\"\"\r\n+\r\n+import itertools\r\n+import logging\r\n+import time\r\n+\r\n+import numpy as np\r\n+\r\n+import matplotlib as mpl\r\n+from matplotlib import _api, _docstring, colors, offsetbox\r\n+from matplotlib.artist import Artist, allow_rasterization\r\n+from matplotlib.cbook import silent_list\r\n+from matplotlib.font_manager import FontProperties\r\n+from matplotlib.lines import Line2D\r\n+from matplotlib.patches import (Patch, Rectangle, Shadow, FancyBboxPatch,\r\n+ StepPatch)\r\n+from matplotlib.collections import (\r\n+ Collection, CircleCollection, LineCollection, PathCollection,\r\n+ PolyCollection, RegularPolyCollection)\r\n+from matplotlib.text import Text\r\n+from matplotlib.transforms import Bbox, BboxBase, TransformedBbox\r\n+from matplotlib.transforms import BboxTransformTo, BboxTransformFrom\r\n+from matplotlib.offsetbox import (\r\n+ AnchoredOffsetbox, DraggableOffsetBox,\r\n+ HPacker, VPacker,\r\n+ DrawingArea, TextArea,\r\n+)\r\n+from matplotlib.container import ErrorbarContainer, BarContainer, StemContainer\r\n+from . import legend_handler\r\n+\r\n+\r\n+class DraggableLegend(DraggableOffsetBox):\r\n+ def __init__(self, legend, use_blit=False, update=\"loc\"):\r\n+ \"\"\"\r\n+ Wrapper around a `.Legend` to support mouse dragging.\r\n+\r\n+ Parameters\r\n+ ----------\r\n+ legend : `.Legend`\r\n+ The `.Legend` instance to wrap.\r\n+ use_blit : bool, optional\r\n+ Use blitting for faster image composition. For details see\r\n+ :ref:`func-animation`.\r\n+ update : {'loc', 'bbox'}, optional\r\n+ If \"loc\", update the *loc* parameter of the legend upon finalizing.\r\n+ If \"bbox\", update the *bbox_to_anchor* parameter.\r\n+ \"\"\"\r\n+ self.legend = legend\r\n+\r\n+ _api.check_in_list([\"loc\", \"bbox\"], update=update)\r\n+ self._update = update\r\n+\r\n+ super().__init__(legend, legend._legend_box, use_blit=use_blit)\r\n+\r\n+ def finalize_offset(self):\r\n+ if self._update == \"loc\":\r\n+ self._update_loc(self.get_loc_in_canvas())\r\n+ elif self._update == \"bbox\":\r\n+ self._bbox_to_anchor(self.get_loc_in_canvas())\r\n+\r\n+ def _update_loc(self, loc_in_canvas):\r\n+ bbox = self.legend.get_bbox_to_anchor()\r\n+ # if bbox has zero width or height, the transformation is\r\n+ # ill-defined. Fall back to the default bbox_to_anchor.\r\n+ if bbox.width == 0 or bbox.height == 0:\r\n+ self.legend.set_bbox_to_anchor(None)\r\n+ bbox = self.legend.get_bbox_to_anchor()\r\n+ _bbox_transform = BboxTransformFrom(bbox)\r\n+ self.legend._loc = tuple(_bbox_transform.transform(loc_in_canvas))\r\n+\r\n+ def _update_bbox_to_anchor(self, loc_in_canvas):\r\n+ loc_in_bbox = self.legend.axes.transAxes.transform(loc_in_canvas)\r\n+ self.legend.set_bbox_to_anchor(loc_in_bbox)\r\n+\r\n+\r\n+_legend_kw_doc_base = \"\"\"\r\n+bbox_to_anchor : `.BboxBase`, 2-tuple, or 4-tuple of floats\r\n+ Box that is used to position the legend in conjunction with *loc*.\r\n+ Defaults to `axes.bbox` (if called as a method to `.Axes.legend`) or\r\n+ `figure.bbox` (if `.Figure.legend`). This argument allows arbitrary\r\n+ placement of the legend.\r\n+\r\n+ Bbox coordinates are interpreted in the coordinate system given by\r\n+ *bbox_transform*, with the default transform\r\n+ Axes or Figure coordinates, depending on which ``legend`` is called.\r\n+\r\n+ If a 4-tuple or `.BboxBase` is given, then it specifies the bbox\r\n+ ``(x, y, width, height)`` that the legend is placed in.\r\n+ To put the legend in the best location in the bottom right\r\n+ quadrant of the axes (or figure)::\r\n+\r\n+ loc='best', bbox_to_anchor=(0.5, 0., 0.5, 0.5)\r\n+\r\n+ A 2-tuple ``(x, y)`` places the corner of the legend specified by *loc* at\r\n+ x, y. For example, to put the legend's upper right-hand corner in the\r\n+ center of the axes (or figure) the following keywords can be used::\r\n+\r\n+ loc='upper right', bbox_to_anchor=(0.5, 0.5)\r\n+\r\n+ncols : int, default: 1\r\n+ The number of columns that the legend has.\r\n+\r\n+ For backward compatibility, the spelling *ncol* is also supported\r\n+ but it is discouraged. If both are given, *ncols* takes precedence.\r\n+\r\n+prop : None or `matplotlib.font_manager.FontProperties` or dict\r\n+ The font properties of the legend. If None (default), the current\r\n+ :data:`matplotlib.rcParams` will be used.\r\n+\r\n+fontsize : int or {'xx-small', 'x-small', 'small', 'medium', 'large', \\\r\n+'x-large', 'xx-large'}\r\n+ The font size of the legend. If the value is numeric the size will be the\r\n+ absolute font size in points. String values are relative to the current\r\n+ default font size. This argument is only used if *prop* is not specified.\r\n+\r\n+labelcolor : str or list, default: :rc:`legend.labelcolor`\r\n+ The color of the text in the legend. Either a valid color string\r\n+ (for example, 'red'), or a list of color strings. The labelcolor can\r\n+ also be made to match the color of the line or marker using 'linecolor',\r\n+ 'markerfacecolor' (or 'mfc'), or 'markeredgecolor' (or 'mec').\r\n+\r\n+ Labelcolor can be set globally using :rc:`legend.labelcolor`. If None,\r\n+ use :rc:`text.color`.\r\n+\r\n+numpoints : int, default: :rc:`legend.numpoints`\r\n+ The number of marker points in the legend when creating a legend\r\n+ entry for a `.Line2D` (line).\r\n+\r\n+scatterpoints : int, default: :rc:`legend.scatterpoints`\r\n+ The number of marker points in the legend when creating\r\n+ a legend entry for a `.PathCollection` (scatter plot).\r\n+\r\n+scatteryoffsets : iterable of floats, default: ``[0.375, 0.5, 0.3125]``\r\n+ The vertical offset (relative to the font size) for the markers\r\n+ created for a scatter plot legend entry. 0.0 is at the base the\r\n+ legend text, and 1.0 is at the top. To draw all markers at the\r\n+ same height, set to ``[0.5]``.\r\n+\r\n+markerscale : float, default: :rc:`legend.markerscale`\r\n+ The relative size of legend markers compared with the originally\r\n+ drawn ones.\r\n+\r\n+markerfirst : bool, default: True\r\n+ If *True*, legend marker is placed to the left of the legend label.\r\n+ If *False*, legend marker is placed to the right of the legend label.\r\n+\r\n+reverse : bool, default: False\r\n+ If *True*, the legend labels are displayed in reverse order from the input.\r\n+ If *False*, the legend labels are displayed in the same order as the input.\r\n+\r\n+ .. versionadded:: 3.7\r\n+\r\n+frameon : bool, default: :rc:`legend.frameon`\r\n+ Whether the legend should be drawn on a patch (frame).\r\n+\r\n+fancybox : bool, default: :rc:`legend.fancybox`\r\n+ Whether round edges should be enabled around the `.FancyBboxPatch` which\r\n+ makes up the legend's background.\r\n+\r\n+shadow : bool, default: :rc:`legend.shadow`\r\n+ Whether to draw a shadow behind the legend.\r\n+\r\n+framealpha : float, default: :rc:`legend.framealpha`\r\n+ The alpha transparency of the legend's background.\r\n+ If *shadow* is activated and *framealpha* is ``None``, the default value is\r\n+ ignored.\r\n+\r\n+facecolor : \"inherit\" or color, default: :rc:`legend.facecolor`\r\n+ The legend's background color.\r\n+ If ``\"inherit\"``, use :rc:`axes.facecolor`.\r\n+\r\n+edgecolor : \"inherit\" or color, default: :rc:`legend.edgecolor`\r\n+ The legend's background patch edge color.\r\n+ If ``\"inherit\"``, use take :rc:`axes.edgecolor`.\r\n+\r\n+mode : {\"expand\", None}\r\n+ If *mode* is set to ``\"expand\"`` the legend will be horizontally\r\n+ expanded to fill the axes area (or *bbox_to_anchor* if defines\r\n+ the legend's size).\r\n+\r\n+bbox_transform : None or `matplotlib.transforms.Transform`\r\n+ The transform for the bounding box (*bbox_to_anchor*). For a value\r\n+ of ``None`` (default) the Axes'\r\n+ :data:`~matplotlib.axes.Axes.transAxes` transform will be used.\r\n+\r\n+title : str or None\r\n+ The legend's title. Default is no title (``None``).\r\n+\r\n+title_fontproperties : None or `matplotlib.font_manager.FontProperties` or dict\r\n+ The font properties of the legend's title. If None (default), the\r\n+ *title_fontsize* argument will be used if present; if *title_fontsize* is\r\n+ also None, the current :rc:`legend.title_fontsize` will be used.\r\n+\r\n+title_fontsize : int or {'xx-small', 'x-small', 'small', 'medium', 'large', \\\r\n+'x-large', 'xx-large'}, default: :rc:`legend.title_fontsize`\r\n+ The font size of the legend's title.\r\n+ Note: This cannot be combined with *title_fontproperties*. If you want\r\n+ to set the fontsize alongside other font properties, use the *size*\r\n+ parameter in *title_fontproperties*.\r\n+\r\n+alignment : {'center', 'left', 'right'}, default: 'center'\r\n+ The alignment of the legend title and the box of entries. The entries\r\n+ are aligned as a single block, so that markers always lined up.\r\n+\r\n+borderpad : float, default: :rc:`legend.borderpad`\r\n+ The fractional whitespace inside the legend border, in font-size units.\r\n+\r\n+labelspacing : float, default: :rc:`legend.labelspacing`\r\n+ The vertical space between the legend entries, in font-size units.\r\n+\r\n+handlelength : float, default: :rc:`legend.handlelength`\r\n+ The length of the legend handles, in font-size units.\r\n+\r\n+handleheight : float, default: :rc:`legend.handleheight`\r\n+ The height of the legend handles, in font-size units.\r\n+\r\n+handletextpad : float, default: :rc:`legend.handletextpad`\r\n+ The pad between the legend handle and text, in font-size units.\r\n+\r\n+borderaxespad : float, default: :rc:`legend.borderaxespad`\r\n+ The pad between the axes and legend border, in font-size units.\r\n+\r\n+columnspacing : float, default: :rc:`legend.columnspacing`\r\n+ The spacing between columns, in font-size units.\r\n+\r\n+handler_map : dict or None\r\n+ The custom dictionary mapping instances or types to a legend\r\n+ handler. This *handler_map* updates the default handler map\r\n+ found at `matplotlib.legend.Legend.get_legend_handler_map`.\r\n+\r\n+draggable : bool, default: False\r\n+ Whether the legend can be dragged with the mouse.\r\n+\"\"\"\r\n+\r\n+_loc_doc_base = \"\"\"\r\n+loc : str or pair of floats, {0}\r\n+ The location of the legend.\r\n+\r\n+ The strings\r\n+ ``'upper left', 'upper right', 'lower left', 'lower right'``\r\n+ place the legend at the corresponding corner of the axes/figure.\r\n+\r\n+ The strings\r\n+ ``'upper center', 'lower center', 'center left', 'center right'``\r\n+ place the legend at the center of the corresponding edge of the\r\n+ axes/figure.\r\n+\r\n+ The string ``'center'`` places the legend at the center of the axes/figure.\r\n+\r\n+ The string ``'best'`` places the legend at the location, among the nine\r\n+ locations defined so far, with the minimum overlap with other drawn\r\n+ artists. This option can be quite slow for plots with large amounts of\r\n+ data; your plotting speed may benefit from providing a specific location.\r\n+\r\n+ The location can also be a 2-tuple giving the coordinates of the lower-left\r\n+ corner of the legend in axes coordinates (in which case *bbox_to_anchor*\r\n+ will be ignored).\r\n+\r\n+ For back-compatibility, ``'center right'`` (but no other location) can also\r\n+ be spelled ``'right'``, and each \"string\" locations can also be given as a\r\n+ numeric value:\r\n+\r\n+ =============== =============\r\n+ Location String Location Code\r\n+ =============== =============\r\n+ 'best' 0\r\n+ 'upper right' 1\r\n+ 'upper left' 2\r\n+ 'lower left' 3\r\n+ 'lower right' 4\r\n+ 'right' 5\r\n+ 'center left' 6\r\n+ 'center right' 7\r\n+ 'lower center' 8\r\n+ 'upper center' 9\r\n+ 'center' 10\r\n+ =============== =============\r\n+ {1}\"\"\"\r\n+\r\n+_legend_kw_axes_st = (_loc_doc_base.format(\"default: :rc:`legend.loc`\", '') +\r\n+ _legend_kw_doc_base)\r\n+_docstring.interpd.update(_legend_kw_axes=_legend_kw_axes_st)\r\n+\r\n+_outside_doc = \"\"\"\r\n+ If a figure is using the constrained layout manager, the string codes\r\n+ of the *loc* keyword argument can get better layout behaviour using the\r\n+ prefix 'outside'. There is ambiguity at the corners, so 'outside\r\n+ upper right' will make space for the legend above the rest of the\r\n+ axes in the layout, and 'outside right upper' will make space on the\r\n+ right side of the layout. In addition to the values of *loc*\r\n+ listed above, we have 'outside right upper', 'outside right lower',\r\n+ 'outside left upper', and 'outside left lower'. See\r\n+ :doc:`/tutorials/intermediate/legend_guide` for more details.\r\n+\"\"\"\r\n+\r\n+_legend_kw_figure_st = (_loc_doc_base.format(\"default: 'upper right'\",\r\n+ _outside_doc) +\r\n+ _legend_kw_doc_base)\r\n+_docstring.interpd.update(_legend_kw_figure=_legend_kw_figure_st)\r\n+\r\n+_legend_kw_both_st = (\r\n+ _loc_doc_base.format(\"default: 'best' for axes, 'upper right' for figures\",\r\n+ _outside_doc) +\r\n+ _legend_kw_doc_base)\r\n+_docstring.interpd.update(_legend_kw_doc=_legend_kw_both_st)\r\n+\r\n+\r\n+class Legend(Artist):\r\n+ \"\"\"\r\n+ Place a legend on the axes at location loc.\r\n+ \"\"\"\r\n+\r\n+ # 'best' is only implemented for axes legends\r\n+ codes = {'best': 0, **AnchoredOffsetbox.codes}\r\n+ zorder = 5\r\n+\r\n+ def __str__(self):\r\n+ return \"Legend\"\r\n+\r\n+ @_api.make_keyword_only(\"3.6\", \"loc\")\r\n+ @_docstring.dedent_interpd\r\n+ def __init__(\r\n+ self, parent, handles, labels,\r\n+ loc=None,\r\n+ numpoints=None, # number of points in the legend line\r\n+ markerscale=None, # relative size of legend markers vs. original\r\n+ markerfirst=True, # left/right ordering of legend marker and label\r\n+ reverse=False, # reverse ordering of legend marker and label\r\n+ scatterpoints=None, # number of scatter points\r\n+ scatteryoffsets=None,\r\n+ prop=None, # properties for the legend texts\r\n+ fontsize=None, # keyword to set font size directly\r\n+ labelcolor=None, # keyword to set the text color\r\n+\r\n+ # spacing & pad defined as a fraction of the font-size\r\n+ borderpad=None, # whitespace inside the legend border\r\n+ labelspacing=None, # vertical space between the legend entries\r\n+ handlelength=None, # length of the legend handles\r\n+ handleheight=None, # height of the legend handles\r\n+ handletextpad=None, # pad between the legend handle and text\r\n+ borderaxespad=None, # pad between the axes and legend border\r\n+ columnspacing=None, # spacing between columns\r\n+\r\n+ ncols=1, # number of columns\r\n+ mode=None, # horizontal distribution of columns: None or \"expand\"\r\n+\r\n+ fancybox=None, # True: fancy box, False: rounded box, None: rcParam\r\n+ shadow=None,\r\n+ title=None, # legend title\r\n+ title_fontsize=None, # legend title font size\r\n+ framealpha=None, # set frame alpha\r\n+ edgecolor=None, # frame patch edgecolor\r\n+ facecolor=None, # frame patch facecolor\r\n+\r\n+ bbox_to_anchor=None, # bbox to which the legend will be anchored\r\n+ bbox_transform=None, # transform for the bbox\r\n+ frameon=None, # draw frame\r\n+ handler_map=None,\r\n+ title_fontproperties=None, # properties for the legend title\r\n+ alignment=\"center\", # control the alignment within the legend box\r\n+ *,\r\n+ ncol=1, # synonym for ncols (backward compatibility)\r\n+ draggable=False # whether the legend can be dragged with the mouse\r\n+ ):\r\n+ \"\"\"\r\n+ Parameters\r\n+ ----------\r\n+ parent : `~matplotlib.axes.Axes` or `.Figure`\r\n+ The artist that contains the legend.\r\n+\r\n+ handles : list of `.Artist`\r\n+ A list of Artists (lines, patches) to be added to the legend.\r\n+\r\n+ labels : list of str\r\n+ A list of labels to show next to the artists. The length of handles\r\n+ and labels should be the same. If they are not, they are truncated\r\n+ to the length of the shorter list.\r\n+\r\n+ Other Parameters\r\n+ ----------------\r\n+ %(_legend_kw_doc)s\r\n+\r\n+ Attributes\r\n+ ----------\r\n+ legend_handles\r\n+ List of `.Artist` objects added as legend entries.\r\n+\r\n+ .. versionadded:: 3.7\r\n+\r\n+ Notes\r\n+ -----\r\n+ Users can specify any arbitrary location for the legend using the\r\n+ *bbox_to_anchor* keyword argument. *bbox_to_anchor* can be a\r\n+ `.BboxBase` (or derived there from) or a tuple of 2 or 4 floats.\r\n+ See `set_bbox_to_anchor` for more detail.\r\n+\r\n+ The legend location can be specified by setting *loc* with a tuple of\r\n+ 2 floats, which is interpreted as the lower-left corner of the legend\r\n+ in the normalized axes coordinate.\r\n+ \"\"\"\r\n+ # local import only to avoid circularity\r\n+ from matplotlib.axes import Axes\r\n+ from matplotlib.figure import FigureBase\r\n+\r\n+ super().__init__()\r\n+\r\n+ if prop is None:\r\n+ if fontsize is not None:\r\n+ self.prop = FontProperties(size=fontsize)\r\n+ else:\r\n+ self.prop = FontProperties(\r\n+ size=mpl.rcParams[\"legend.fontsize\"])\r\n+ else:\r\n+ self.prop = FontProperties._from_any(prop)\r\n+ if isinstance(prop, dict) and \"size\" not in prop:\r\n+ self.prop.set_size(mpl.rcParams[\"legend.fontsize\"])\r\n+\r\n+ self._fontsize = self.prop.get_size_in_points()\r\n+\r\n+ self.texts = []\r\n+ self.legend_handles = []\r\n+ self._legend_title_box = None\r\n+\r\n+ #: A dictionary with the extra handler mappings for this Legend\r\n+ #: instance.\r\n+ self._custom_handler_map = handler_map\r\n+\r\n+ def val_or_rc(val, rc_name):\r\n+ return val if val is not None else mpl.rcParams[rc_name]\r\n+\r\n+ self.numpoints = val_or_rc(numpoints, 'legend.numpoints')\r\n+ self.markerscale = val_or_rc(markerscale, 'legend.markerscale')\r\n+ self.scatterpoints = val_or_rc(scatterpoints, 'legend.scatterpoints')\r\n+ self.borderpad = val_or_rc(borderpad, 'legend.borderpad')\r\n+ self.labelspacing = val_or_rc(labelspacing, 'legend.labelspacing')\r\n+ self.handlelength = val_or_rc(handlelength, 'legend.handlelength')\r\n+ self.handleheight = val_or_rc(handleheight, 'legend.handleheight')\r\n+ self.handletextpad = val_or_rc(handletextpad, 'legend.handletextpad')\r\n+ self.borderaxespad = val_or_rc(borderaxespad, 'legend.borderaxespad')\r\n+ self.columnspacing = val_or_rc(columnspacing, 'legend.columnspacing')\r\n+ self.shadow = val_or_rc(shadow, 'legend.shadow')\r\n+ # trim handles and labels if illegal label...\r\n+ _lab, _hand = [], []\r\n+ for label, handle in zip(labels, handles):\r\n+ if isinstance(label, str) and label.startswith('_'):\r\n+ _api.warn_external(f\"The label {label!r} of {handle!r} starts \"\r\n+ \"with '_'. It is thus excluded from the \"\r\n+ \"legend.\")\r\n+ else:\r\n+ _lab.append(label)\r\n+ _hand.append(handle)\r\n+ labels, handles = _lab, _hand\r\n+\r\n+ if reverse:\r\n+ labels.reverse()\r\n+ handles.reverse()\r\n+\r\n+ if len(handles) < 2:\r\n+ ncols = 1\r\n+ self._ncols = ncols if ncols != 1 else ncol\r\n+\r\n+ if self.numpoints <= 0:\r\n+ raise ValueError(\"numpoints must be > 0; it was %d\" % numpoints)\r\n+\r\n+ # introduce y-offset for handles of the scatter plot\r\n+ if scatteryoffsets is None:\r\n+ self._scatteryoffsets = np.array([3. / 8., 4. / 8., 2.5 / 8.])\r\n+ else:\r\n+ self._scatteryoffsets = np.asarray(scatteryoffsets)\r\n+ reps = self.scatterpoints // len(self._scatteryoffsets) + 1\r\n+ self._scatteryoffsets = np.tile(self._scatteryoffsets,\r\n+ reps)[:self.scatterpoints]\r\n+\r\n+ # _legend_box is a VPacker instance that contains all\r\n+ # legend items and will be initialized from _init_legend_box()\r\n+ # method.\r\n+ self._legend_box = None\r\n+\r\n+ if isinstance(parent, Axes):\r\n+ self.isaxes = True\r\n+ self.axes = parent\r\n+ self.set_figure(parent.figure)\r\n+ elif isinstance(parent, FigureBase):\r\n+ self.isaxes = False\r\n+ self.set_figure(parent)\r\n+ else:\r\n+ raise TypeError(\r\n+ \"Legend needs either Axes or FigureBase as parent\"\r\n+ )\r\n+ self.parent = parent\r\n+\r\n+ loc0 = loc\r\n+ self._loc_used_default = loc is None\r\n+ if loc is None:\r\n+ loc = mpl.rcParams[\"legend.loc\"]\r\n+ if not self.isaxes and loc in [0, 'best']:\r\n+ loc = 'upper right'\r\n+\r\n+ # handle outside legends:\r\n+ self._outside_loc = None\r\n+ if isinstance(loc, str):\r\n+ if loc.split()[0] == 'outside':\r\n+ # strip outside:\r\n+ loc = loc.split('outside ')[1]\r\n+ # strip \"center\" at the beginning\r\n+ self._outside_loc = loc.replace('center ', '')\r\n+ # strip first\r\n+ self._outside_loc = self._outside_loc.split()[0]\r\n+ locs = loc.split()\r\n+ if len(locs) > 1 and locs[0] in ('right', 'left'):\r\n+ # locs doesn't accept \"left upper\", etc, so swap\r\n+ if locs[0] != 'center':\r\n+ locs = locs[::-1]\r\n+ loc = locs[0] + ' ' + locs[1]\r\n+ # check that loc is in acceptable strings\r\n+ loc = _api.check_getitem(self.codes, loc=loc)\r\n+\r\n+ if self.isaxes and self._outside_loc:\r\n+ raise ValueError(\r\n+ f\"'outside' option for loc='{loc0}' keyword argument only \"\r\n+ \"works for figure legends\")\r\n+\r\n+ if not self.isaxes and loc == 0:\r\n+ raise ValueError(\r\n+ \"Automatic legend placement (loc='best') not implemented for \"\r\n+ \"figure legend\")\r\n+\r\n+ self._mode = mode\r\n+ self.set_bbox_to_anchor(bbox_to_anchor, bbox_transform)\r\n+\r\n+ # We use FancyBboxPatch to draw a legend frame. The location\r\n+ # and size of the box will be updated during the drawing time.\r\n+\r\n+ if facecolor is None:\r\n+ facecolor = mpl.rcParams[\"legend.facecolor\"]\r\n+ if facecolor == 'inherit':\r\n+ facecolor = mpl.rcParams[\"axes.facecolor\"]\r\n+\r\n+ if edgecolor is None:\r\n+ edgecolor = mpl.rcParams[\"legend.edgecolor\"]\r\n+ if edgecolor == 'inherit':\r\n+ edgecolor = mpl.rcParams[\"axes.edgecolor\"]\r\n+\r\n+ if fancybox is None:\r\n+ fancybox = mpl.rcParams[\"legend.fancybox\"]\r\n+\r\n+ self.legendPatch = FancyBboxPatch(\r\n+ xy=(0, 0), width=1, height=1,\r\n+ facecolor=facecolor, edgecolor=edgecolor,\r\n+ # If shadow is used, default to alpha=1 (#8943).\r\n+ alpha=(framealpha if framealpha is not None\r\n+ else 1 if shadow\r\n+ else mpl.rcParams[\"legend.framealpha\"]),\r\n+ # The width and height of the legendPatch will be set (in draw())\r\n+ # to the length that includes the padding. Thus we set pad=0 here.\r\n+ boxstyle=(\"round,pad=0,rounding_size=0.2\" if fancybox\r\n+ else \"square,pad=0\"),\r\n+ mutation_scale=self._fontsize,\r\n+ snap=True,\r\n+ visible=(frameon if frameon is not None\r\n+ else mpl.rcParams[\"legend.frameon\"])\r\n+ )\r\n+ self._set_artist_props(self.legendPatch)\r\n+\r\n+ _api.check_in_list([\"center\", \"left\", \"right\"], alignment=alignment)\r\n+ self._alignment = alignment\r\n+\r\n+ # init with null renderer\r\n+ self._init_legend_box(handles, labels, markerfirst)\r\n+\r\n+ tmp = self._loc_used_default\r\n+ self._set_loc(loc)\r\n+ self._loc_used_default = tmp # ignore changes done by _set_loc\r\n+\r\n+ # figure out title font properties:\r\n+ if title_fontsize is not None and title_fontproperties is not None:\r\n+ raise ValueError(\r\n+ \"title_fontsize and title_fontproperties can't be specified \"\r\n+ \"at the same time. Only use one of them. \")\r\n+ title_prop_fp = FontProperties._from_any(title_fontproperties)\r\n+ if isinstance(title_fontproperties, dict):\r\n+ if \"size\" not in title_fontproperties:\r\n+ title_fontsize = mpl.rcParams[\"legend.title_fontsize\"]\r\n+ title_prop_fp.set_size(title_fontsize)\r\n+ elif title_fontsize is not None:\r\n+ title_prop_fp.set_size(title_fontsize)\r\n+ elif not isinstance(title_fontproperties, FontProperties):\r\n+ title_fontsize = mpl.rcParams[\"legend.title_fontsize\"]\r\n+ title_prop_fp.set_size(title_fontsize)\r\n+\r\n+ self.set_title(title, prop=title_prop_fp)\r\n+\r\n+ self._draggable = None\r\n+ self.set_draggable(state=draggable)\r\n+\r\n+ # set the text color\r\n+\r\n+ color_getters = { # getter function depends on line or patch\r\n+ 'linecolor': ['get_color', 'get_facecolor'],\r\n+ 'markerfacecolor': ['get_markerfacecolor', 'get_facecolor'],\r\n+ 'mfc': ['get_markerfacecolor', 'get_facecolor'],\r\n+ 'markeredgecolor': ['get_markeredgecolor', 'get_edgecolor'],\r\n+ 'mec': ['get_markeredgecolor', 'get_edgecolor'],\r\n+ }\r\n+ if labelcolor is None:\r\n+ if mpl.rcParams['legend.labelcolor'] is not None:\r\n+ labelcolor = mpl.rcParams['legend.labelcolor']\r\n+ else:\r\n+ labelcolor = mpl.rcParams['text.color']\r\n+ if isinstance(labelcolor, str) and labelcolor in color_getters:\r\n+ getter_names = color_getters[labelcolor]\r\n+ for handle, text in zip(self.legend_handles, self.texts):\r\n+ try:\r\n+ if handle.get_array() is not None:\r\n+ continue\r\n+ except AttributeError:\r\n+ pass\r\n+ for getter_name in getter_names:\r\n+ try:\r\n+ color = getattr(handle, getter_name)()\r\n+ if isinstance(color, np.ndarray):\r\n+ if (\r\n+ color.shape[0] == 1\r\n+ or np.isclose(color, color[0]).all()\r\n+ ):\r\n+ text.set_color(color[0])\r\n+ else:\r\n+ pass\r\n+ else:\r\n+ text.set_color(color)\r\n+ break\r\n+ except AttributeError:\r\n+ pass\r\n+ elif isinstance(labelcolor, str) and labelcolor == 'none':\r\n+ for text in self.texts:\r\n+ text.set_color(labelcolor)\r\n+ elif np.iterable(labelcolor):\r\n+ for text, color in zip(self.texts,\r\n+ itertools.cycle(\r\n+ colors.to_rgba_array(labelcolor))):\r\n+ text.set_color(color)\r\n+ else:\r\n+ raise ValueError(f\"Invalid labelcolor: {labelcolor!r}\")\r\n+\r\n+ legendHandles = _api.deprecated('3.7', alternative=\"legend_handles\")(\r\n+ property(lambda self: self.legend_handles))\r\n+\r\n+ def _set_artist_props(self, a):\r\n+ \"\"\"\r\n+ Set the boilerplate props for artists added to axes.\r\n+ \"\"\"\r\n+ a.set_figure(self.figure)\r\n+ if self.isaxes:\r\n+ # a.set_axes(self.axes)\r\n+ a.axes = self.axes\r\n+\r\n+ a.set_transform(self.get_transform())\r\n+\r\n+ def _set_loc(self, loc):\r\n+ # find_offset function will be provided to _legend_box and\r\n+ # _legend_box will draw itself at the location of the return\r\n+ # value of the find_offset.\r\n+ self._loc_used_default = False\r\n+ self._loc_real = loc\r\n+ self.stale = True\r\n+ self._legend_box.set_offset(self._findoffset)\r\n+\r\n+ def set_ncols(self, ncols):\r\n+ \"\"\"Set the number of columns.\"\"\"\r\n+ self._ncols = ncols\r\n+\r\n+ def _get_loc(self):\r\n+ return self._loc_real\r\n+\r\n+ _loc = property(_get_loc, _set_loc)\r\n+\r\n+ def _findoffset(self, width, height, xdescent, ydescent, renderer):\r\n+ \"\"\"Helper function to locate the legend.\"\"\"\r\n+\r\n+ if self._loc == 0: # \"best\".\r\n+ x, y = self._find_best_position(width, height, renderer)\r\n+ elif self._loc in Legend.codes.values(): # Fixed location.\r\n+ bbox = Bbox.from_bounds(0, 0, width, height)\r\n+ x, y = self._get_anchored_bbox(self._loc, bbox,\r\n+ self.get_bbox_to_anchor(),\r\n+ renderer)\r\n+ else: # Axes or figure coordinates.\r\n+ fx, fy = self._loc\r\n+ bbox = self.get_bbox_to_anchor()\r\n+ x, y = bbox.x0 + bbox.width * fx, bbox.y0 + bbox.height * fy\r\n+\r\n+ return x + xdescent, y + ydescent\r\n+\r\n+ @allow_rasterization\r\n+ def draw(self, renderer):\r\n+ # docstring inherited\r\n+ if not self.get_visible():\r\n+ return\r\n+\r\n+ renderer.open_group('legend', gid=self.get_gid())\r\n+\r\n+ fontsize = renderer.points_to_pixels(self._fontsize)\r\n+\r\n+ # if mode == fill, set the width of the legend_box to the\r\n+ # width of the parent (minus pads)\r\n+ if self._mode in [\"expand\"]:\r\n+ pad = 2 * (self.borderaxespad + self.borderpad) * fontsize\r\n+ self._legend_box.set_width(self.get_bbox_to_anchor().width - pad)\r\n+\r\n+ # update the location and size of the legend. This needs to\r\n+ # be done in any case to clip the figure right.\r\n+ bbox = self._legend_box.get_window_extent(renderer)\r\n+ self.legendPatch.set_bounds(bbox.bounds)\r\n+ self.legendPatch.set_mutation_scale(fontsize)\r\n+\r\n+ if self.shadow:\r\n+ Shadow(self.legendPatch, 2, -2).draw(renderer)\r\n+\r\n+ self.legendPatch.draw(renderer)\r\n+ self._legend_box.draw(renderer)\r\n+\r\n+ renderer.close_group('legend')\r\n+ self.stale = False\r\n+\r\n+ # _default_handler_map defines the default mapping between plot\r\n+ # elements and the legend handlers.\r\n+\r\n+ _default_handler_map = {\r\n+ StemContainer: legend_handler.HandlerStem(),\r\n+ ErrorbarContainer: legend_handler.HandlerErrorbar(),\r\n+ Line2D: legend_handler.HandlerLine2D(),\r\n+ Patch: legend_handler.HandlerPatch(),\r\n+ StepPatch: legend_handler.HandlerStepPatch(),\r\n+ LineCollection: legend_handler.HandlerLineCollection(),\r\n+ RegularPolyCollection: legend_handler.HandlerRegularPolyCollection(),\r\n+ CircleCollection: legend_handler.HandlerCircleCollection(),\r\n+ BarContainer: legend_handler.HandlerPatch(\r\n+ update_func=legend_handler.update_from_first_child),\r\n+ tuple: legend_handler.HandlerTuple(),\r\n+ PathCollection: legend_handler.HandlerPathCollection(),\r\n+ PolyCollection: legend_handler.HandlerPolyCollection()\r\n+ }\r\n+\r\n+ # (get|set|update)_default_handler_maps are public interfaces to\r\n+ # modify the default handler map.\r\n+\r\n+ @classmethod\r\n+ def get_default_handler_map(cls):\r\n+ \"\"\"Return the global default handler map, shared by all legends.\"\"\"\r\n+ return cls._default_handler_map\r\n+\r\n+ @classmethod\r\n+ def set_default_handler_map(cls, handler_map):\r\n+ \"\"\"Set the global default handler map, shared by all legends.\"\"\"\r\n+ cls._default_handler_map = handler_map\r\n+\r\n+ @classmethod\r\n+ def update_default_handler_map(cls, handler_map):\r\n+ \"\"\"Update the global default handler map, shared by all legends.\"\"\"\r\n+ cls._default_handler_map.update(handler_map)\r\n+\r\n+ def get_legend_handler_map(self):\r\n+ \"\"\"Return this legend instance's handler map.\"\"\"\r\n+ default_handler_map = self.get_default_handler_map()\r\n+ return ({**default_handler_map, **self._custom_handler_map}\r\n+ if self._custom_handler_map else default_handler_map)\r\n+\r\n+ @staticmethod\r\n+ def get_legend_handler(legend_handler_map, orig_handle):\r\n+ \"\"\"\r\n+ Return a legend handler from *legend_handler_map* that\r\n+ corresponds to *orig_handler*.\r\n+\r\n+ *legend_handler_map* should be a dictionary object (that is\r\n+ returned by the get_legend_handler_map method).\r\n+\r\n+ It first checks if the *orig_handle* itself is a key in the\r\n+ *legend_handler_map* and return the associated value.\r\n+ Otherwise, it checks for each of the classes in its\r\n+ method-resolution-order. If no matching key is found, it\r\n+ returns ``None``.\r\n+ \"\"\"\r\n+ try:\r\n+ return legend_handler_map[orig_handle]\r\n+ except (TypeError, KeyError): # TypeError if unhashable.\r\n+ pass\r\n+ for handle_type in type(orig_handle).mro():\r\n+ try:\r\n+ return legend_handler_map[handle_type]\r\n+ except KeyError:\r\n+ pass\r\n+ return None\r\n+\r\n+ def _init_legend_box(self, handles, labels, markerfirst=True):\r\n+ \"\"\"\r\n+ Initialize the legend_box. The legend_box is an instance of\r\n+ the OffsetBox, which is packed with legend handles and\r\n+ texts. Once packed, their location is calculated during the\r\n+ drawing time.\r\n+ \"\"\"\r\n+\r\n+ fontsize = self._fontsize\r\n+\r\n+ # legend_box is a HPacker, horizontally packed with columns.\r\n+ # Each column is a VPacker, vertically packed with legend items.\r\n+ # Each legend item is a HPacker packed with:\r\n+ # - handlebox: a DrawingArea which contains the legend handle.\r\n+ # - labelbox: a TextArea which contains the legend text.\r\n+\r\n+ text_list = [] # the list of text instances\r\n+ handle_list = [] # the list of handle instances\r\n+ handles_and_labels = []\r\n+\r\n+ # The approximate height and descent of text. These values are\r\n+ # only used for plotting the legend handle.\r\n+ descent = 0.35 * fontsize * (self.handleheight - 0.7) # heuristic.\r\n+ height = fontsize * self.handleheight - descent\r\n+ # each handle needs to be drawn inside a box of (x, y, w, h) =\r\n+ # (0, -descent, width, height). And their coordinates should\r\n+ # be given in the display coordinates.\r\n+\r\n+ # The transformation of each handle will be automatically set\r\n+ # to self.get_transform(). If the artist does not use its\r\n+ # default transform (e.g., Collections), you need to\r\n+ # manually set their transform to the self.get_transform().\r\n+ legend_handler_map = self.get_legend_handler_map()\r\n+\r\n+ for orig_handle, label in zip(handles, labels):\r\n+ handler = self.get_legend_handler(legend_handler_map, orig_handle)\r\n+ if handler is None:\r\n+ _api.warn_external(\r\n+ \"Legend does not support handles for \"\r\n+ f\"{type(orig_handle).__name__} \"\r\n+ \"instances.\\nA proxy artist may be used \"\r\n+ \"instead.\\nSee: https://matplotlib.org/\"\r\n+ \"stable/tutorials/intermediate/legend_guide.html\"\r\n+ \"#controlling-the-legend-entries\")\r\n+ # No handle for this artist, so we just defer to None.\r\n+ handle_list.append(None)\r\n+ else:\r\n+ textbox = TextArea(label, multilinebaseline=True,\r\n+ textprops=dict(\r\n+ verticalalignment='baseline',\r\n+ horizontalalignment='left',\r\n+ fontproperties=self.prop))\r\n+ handlebox = DrawingArea(width=self.handlelength * fontsize,\r\n+ height=height,\r\n+ xdescent=0., ydescent=descent)\r\n+\r\n+ text_list.append(textbox._text)\r\n+ # Create the artist for the legend which represents the\r\n+ # original artist/handle.\r\n+ handle_list.append(handler.legend_artist(self, orig_handle,\r\n+ fontsize, handlebox))\r\n+ handles_and_labels.append((handlebox, textbox))\r\n+\r\n+ columnbox = []\r\n+ # array_split splits n handles_and_labels into ncols columns, with the\r\n+ # first n%ncols columns having an extra entry. filter(len, ...)\r\n+ # handles the case where n < ncols: the last ncols-n columns are empty\r\n+ # and get filtered out.\r\n+ for handles_and_labels_column in filter(\r\n+ len, np.array_split(handles_and_labels, self._ncols)):\r\n+ # pack handlebox and labelbox into itembox\r\n+ itemboxes = [HPacker(pad=0,\r\n+ sep=self.handletextpad * fontsize,\r\n+ children=[h, t] if markerfirst else [t, h],\r\n+ align=\"baseline\")\r\n+ for h, t in handles_and_labels_column]\r\n+ # pack columnbox\r\n+ alignment = \"baseline\" if markerfirst else \"right\"\r\n+ columnbox.append(VPacker(pad=0,\r\n+ sep=self.labelspacing * fontsize,\r\n+ align=alignment,\r\n+ children=itemboxes))\r\n+\r\n+ mode = \"expand\" if self._mode == \"expand\" else \"fixed\"\r\n+ sep = self.columnspacing * fontsize\r\n+ self._legend_handle_box = HPacker(pad=0,\r\n+ sep=sep, align=\"baseline\",\r\n+ mode=mode,\r\n+ children=columnbox)\r\n+ self._legend_title_box = TextArea(\"\")\r\n+ self._legend_box = VPacker(pad=self.borderpad * fontsize,\r\n+ sep=self.labelspacing * fontsize,\r\n+ align=self._alignment,\r\n+ children=[self._legend_title_box,\r\n+ self._legend_handle_box])\r\n+ self._legend_box.set_figure(self.figure)\r\n+ self._legend_box.axes = self.axes\r\n+ self.texts = text_list\r\n+ self.legend_handles = handle_list\r\n+\r\n+ def _auto_legend_data(self):\r\n+ \"\"\"\r\n+ Return display coordinates for hit testing for \"best\" positioning.\r\n+\r\n+ Returns\r\n+ -------\r\n+ bboxes\r\n+ List of bounding boxes of all patches.\r\n+ lines\r\n+ List of `.Path` corresponding to each line.\r\n+ offsets\r\n+ List of (x, y) offsets of all collection.\r\n+ \"\"\"\r\n+ assert self.isaxes # always holds, as this is only called internally\r\n+ bboxes = []\r\n+ lines = []\r\n+ offsets = []\r\n+ for artist in self.parent._children:\r\n+ if isinstance(artist, Line2D):\r\n+ lines.append(\r\n+ artist.get_transform().transform_path(artist.get_path()))\r\n+ elif isinstance(artist, Rectangle):\r\n+ bboxes.append(\r\n+ artist.get_bbox().transformed(artist.get_data_transform()))\r\n+ elif isinstance(artist, Patch):\r\n+ lines.append(\r\n+ artist.get_transform().transform_path(artist.get_path()))\r\n+ elif isinstance(artist, Collection):\r\n+ transform, transOffset, hoffsets, _ = artist._prepare_points()\r\n+ if len(hoffsets):\r\n+ for offset in transOffset.transform(hoffsets):\r\n+ offsets.append(offset)\r\n+\r\n+ return bboxes, lines, offsets\r\n+\r\n+ def get_children(self):\r\n+ # docstring inherited\r\n+ return [self._legend_box, self.get_frame()]\r\n+\r\n+ def get_frame(self):\r\n+ \"\"\"Return the `~.patches.Rectangle` used to frame the legend.\"\"\"\r\n+ return self.legendPatch\r\n+\r\n+ def get_lines(self):\r\n+ r\"\"\"Return the list of `~.lines.Line2D`\\s in the legend.\"\"\"\r\n+ return [h for h in self.legend_handles if isinstance(h, Line2D)]\r\n+\r\n+ def get_patches(self):\r\n+ r\"\"\"Return the list of `~.patches.Patch`\\s in the legend.\"\"\"\r\n+ return silent_list('Patch',\r\n+ [h for h in self.legend_handles\r\n+ if isinstance(h, Patch)])\r\n+\r\n+ def get_texts(self):\r\n+ r\"\"\"Return the list of `~.text.Text`\\s in the legend.\"\"\"\r\n+ return silent_list('Text', self.texts)\r\n+\r\n+ def set_alignment(self, alignment):\r\n+ \"\"\"\r\n+ Set the alignment of the legend title and the box of entries.\r\n+\r\n+ The entries are aligned as a single block, so that markers always\r\n+ lined up.\r\n+\r\n+ Parameters\r\n+ ----------\r\n+ alignment : {'center', 'left', 'right'}.\r\n+\r\n+ \"\"\"\r\n+ _api.check_in_list([\"center\", \"left\", \"right\"], alignment=alignment)\r\n+ self._alignment = alignment\r\n+ self._legend_box.align = alignment\r\n+\r\n+ def get_alignment(self):\r\n+ \"\"\"Get the alignment value of the legend box\"\"\"\r\n+ return self._legend_box.align\r\n+\r\n+ def set_title(self, title, prop=None):\r\n+ \"\"\"\r\n+ Set legend title and title style.\r\n+\r\n+ Parameters\r\n+ ----------\r\n+ title : str\r\n+ The legend title.\r\n+\r\n+ prop : `.font_manager.FontProperties` or `str` or `pathlib.Path`\r\n+ The font properties of the legend title.\r\n+ If a `str`, it is interpreted as a fontconfig pattern parsed by\r\n+ `.FontProperties`. If a `pathlib.Path`, it is interpreted as the\r\n+ absolute path to a font file.\r\n+\r\n+ \"\"\"\r\n+ self._legend_title_box._text.set_text(title)\r\n+ if title:\r\n+ self._legend_title_box._text.set_visible(True)\r\n+ self._legend_title_box.set_visible(True)\r\n+ else:\r\n+ self._legend_title_box._text.set_visible(False)\r\n+ self._legend_title_box.set_visible(False)\r\n+\r\n+ if prop is not None:\r\n+ self._legend_title_box._text.set_fontproperties(prop)\r\n+\r\n+ self.stale = True\r\n+\r\n+ def get_title(self):\r\n+ \"\"\"Return the `.Text` instance for the legend title.\"\"\"\r\n+ return self._legend_title_box._text\r\n+\r\n+ def get_window_extent(self, renderer=None):\r\n+ # docstring inherited\r\n+ if renderer is None:\r\n+ renderer = self.figure._get_renderer()\r\n+ return self._legend_box.get_window_extent(renderer=renderer)\r\n+\r\n+ def get_tightbbox(self, renderer=None):\r\n+ # docstring inherited\r\n+ return self._legend_box.get_window_extent(renderer)\r\n+\r\n+ def get_frame_on(self):\r\n+ \"\"\"Get whether the legend box patch is drawn.\"\"\"\r\n+ return self.legendPatch.get_visible()\r\n+\r\n+ def set_frame_on(self, b):\r\n+ \"\"\"\r\n+ Set whether the legend box patch is drawn.\r\n+\r\n+ Parameters\r\n+ ----------\r\n+ b : bool\r\n+ \"\"\"\r\n+ self.legendPatch.set_visible(b)\r\n+ self.stale = True\r\n+\r\n+ draw_frame = set_frame_on # Backcompat alias.\r\n+\r\n+ def get_bbox_to_anchor(self):\r\n+ \"\"\"Return the bbox that the legend will be anchored to.\"\"\"\r\n+ if self._bbox_to_anchor is None:\r\n+ return self.parent.bbox\r\n+ else:\r\n+ return self._bbox_to_anchor\r\n+\r\n+ def set_bbox_to_anchor(self, bbox, transform=None):\r\n+ \"\"\"\r\n+ Set the bbox that the legend will be anchored to.\r\n+\r\n+ Parameters\r\n+ ----------\r\n+ bbox : `~matplotlib.transforms.BboxBase` or tuple\r\n+ The bounding box can be specified in the following ways:\r\n+\r\n+ - A `.BboxBase` instance\r\n+ - A tuple of ``(left, bottom, width, height)`` in the given\r\n+ transform (normalized axes coordinate if None)\r\n+ - A tuple of ``(left, bottom)`` where the width and height will be\r\n+ assumed to be zero.\r\n+ - *None*, to remove the bbox anchoring, and use the parent bbox.\r\n+\r\n+ transform : `~matplotlib.transforms.Transform`, optional\r\n+ A transform to apply to the bounding box. If not specified, this\r\n+ will use a transform to the bounding box of the parent.\r\n+ \"\"\"\r\n+ if bbox is None:\r\n+ self._bbox_to_anchor = None\r\n+ return\r\n+ elif isinstance(bbox, BboxBase):\r\n+ self._bbox_to_anchor = bbox\r\n+ else:\r\n+ try:\r\n+ l = len(bbox)\r\n+ except TypeError as err:\r\n+ raise ValueError(f\"Invalid bbox: {bbox}\") from err\r\n+\r\n+ if l == 2:\r\n+ bbox = [bbox[0], bbox[1], 0, 0]\r\n+\r\n+ self._bbox_to_anchor = Bbox.from_bounds(*bbox)\r\n+\r\n+ if transform is None:\r\n+ transform = BboxTransformTo(self.parent.bbox)\r\n+\r\n+ self._bbox_to_anchor = TransformedBbox(self._bbox_to_anchor,\r\n+ transform)\r\n+ self.stale = True\r\n+\r\n+ def _get_anchored_bbox(self, loc, bbox, parentbbox, renderer):\r\n+ \"\"\"\r\n+ Place the *bbox* inside the *parentbbox* according to a given\r\n+ location code. Return the (x, y) coordinate of the bbox.\r\n+\r\n+ Parameters\r\n+ ----------\r\n+ loc : int\r\n+ A location code in range(1, 11). This corresponds to the possible\r\n+ values for ``self._loc``, excluding \"best\".\r\n+ bbox : `~matplotlib.transforms.Bbox`\r\n+ bbox to be placed, in display coordinates.\r\n+ parentbbox : `~matplotlib.transforms.Bbox`\r\n+ A parent box which will contain the bbox, in display coordinates.\r\n+ \"\"\"\r\n+ return offsetbox._get_anchored_bbox(\r\n+ loc, bbox, parentbbox,\r\n+ self.borderaxespad * renderer.points_to_pixels(self._fontsize))\r\n+\r\n+ def _find_best_position(self, width, height, renderer, consider=None):\r\n+ \"\"\"\r\n+ Determine the best location to place the legend.\r\n+\r\n+ *consider* is a list of ``(x, y)`` pairs to consider as a potential\r\n+ lower-left corner of the legend. All are display coords.\r\n+ \"\"\"\r\n+ assert self.isaxes # always holds, as this is only called internally\r\n+\r\n+ start_time = time.perf_counter()\r\n+\r\n+ bboxes, lines, offsets = self._auto_legend_data()\r\n+\r\n+ bbox = Bbox.from_bounds(0, 0, width, height)\r\n+ if consider is None:\r\n+ consider = [self._get_anchored_bbox(x, bbox,\r\n+ self.get_bbox_to_anchor(),\r\n+ renderer)\r\n+ for x in range(1, len(self.codes))]\r\n+\r\n+ candidates = []\r\n+ for idx, (l, b) in enumerate(consider):\r\n+ legendBox = Bbox.from_bounds(l, b, width, height)\r\n+ badness = 0\r\n+ # XXX TODO: If markers are present, it would be good to take them\r\n+ # into account when checking vertex overlaps in the next line.\r\n+ badness = (sum(legendBox.count_contains(line.vertices)\r\n+ for line in lines)\r\n+ + legendBox.count_contains(offsets)\r\n+ + legendBox.count_overlaps(bboxes)\r\n+ + sum(line.intersects_bbox(legendBox, filled=False)\r\n+ for line in lines))\r\n+ if badness == 0:\r\n+ return l, b\r\n+ # Include the index to favor lower codes in case of a tie.\r\n+ candidates.append((badness, idx, (l, b)))\r\n+\r\n+ _, _, (l, b) = min(candidates)\r\n+\r\n+ if self._loc_used_default and time.perf_counter() - start_time > 1:\r\n+ _api.warn_external(\r\n+ 'Creating legend with loc=\"best\" can be slow with large '\r\n+ 'amounts of data.')\r\n+\r\n+ return l, b\r\n+\r\n+ def contains(self, event):\r\n+ inside, info = self._default_contains(event)\r\n+ if inside is not None:\r\n+ return inside, info\r\n+ return self.legendPatch.contains(event)\r\n+\r\n+ def set_draggable(self, state, use_blit=False, update='loc'):\r\n+ \"\"\"\r\n+ Enable or disable mouse dragging support of the legend.\r\n+\r\n+ Parameters\r\n+ ----------\r\n+ state : bool\r\n+ Whether mouse dragging is enabled.\r\n+ use_blit : bool, optional\r\n+ Use blitting for faster image composition. For details see\r\n+ :ref:`func-animation`.\r\n+ update : {'loc', 'bbox'}, optional\r\n+ The legend parameter to be changed when dragged:\r\n+\r\n+ - 'loc': update the *loc* parameter of the legend\r\n+ - 'bbox': update the *bbox_to_anchor* parameter of the legend\r\n+\r\n+ Returns\r\n+ -------\r\n+ `.DraggableLegend` or *None*\r\n+ If *state* is ``True`` this returns the `.DraggableLegend` helper\r\n+ instance. Otherwise this returns *None*.\r\n+ \"\"\"\r\n+ if state:\r\n+ if self._draggable is None:\r\n+ self._draggable = DraggableLegend(self,\r\n+ use_blit,\r\n+ update=update)\r\n+ else:\r\n+ if self._draggable is not None:\r\n+ self._draggable.disconnect()\r\n+ self._draggable = None\r\n+ return self._draggable\r\n+\r\n+ def get_draggable(self):\r\n+ \"\"\"Return ``True`` if the legend is draggable, ``False`` otherwise.\"\"\"\r\n+ return self._draggable is not None\r\n+\r\n+\r\n+# Helper functions to parse legend arguments for both `figure.legend` and\r\n+# `axes.legend`:\r\n+def _get_legend_handles(axs, legend_handler_map=None):\r\n+ \"\"\"Yield artists that can be used as handles in a legend.\"\"\"\r\n+ handles_original = []\r\n+ for ax in axs:\r\n+ handles_original += [\r\n+ *(a for a in ax._children\r\n+ if isinstance(a, (Line2D, Patch, Collection, Text))),\r\n+ *ax.containers]\r\n+ # support parasite axes:\r\n+ if hasattr(ax, 'parasites'):\r\n+ for axx in ax.parasites:\r\n+ handles_original += [\r\n+ *(a for a in axx._children\r\n+ if isinstance(a, (Line2D, Patch, Collection, Text))),\r\n+ *axx.containers]\r\n+\r\n+ handler_map = {**Legend.get_default_handler_map(),\r\n+ **(legend_handler_map or {})}\r\n+ has_handler = Legend.get_legend_handler\r\n+ for handle in handles_original:\r\n+ label = handle.get_label()\r\n+ if label != '_nolegend_' and has_handler(handler_map, handle):\r\n+ yield handle\r\n+ elif (label and not label.startswith('_') and\r\n+ not has_handler(handler_map, handle)):\r\n+ _api.warn_external(\r\n+ \"Legend does not support handles for \"\r\n+ f\"{type(handle).__name__} \"\r\n+ \"instances.\\nSee: https://matplotlib.org/stable/\"\r\n+ \"tutorials/intermediate/legend_guide.html\"\r\n+ \"#implementing-a-custom-legend-handler\")\r\n+ continue\r\n+\r\n+\r\n+def _get_legend_handles_labels(axs, legend_handler_map=None):\r\n+ \"\"\"Return handles and labels for legend.\"\"\"\r\n+ handles = []\r\n+ labels = []\r\n+ for handle in _get_legend_handles(axs, legend_handler_map):\r\n+ label = handle.get_label()\r\n+ if label and not label.startswith('_'):\r\n+ handles.append(handle)\r\n+ labels.append(label)\r\n+ return handles, labels\r\n+\r\n+\r\n+def _parse_legend_args(axs, *args, handles=None, labels=None, **kwargs):\r\n+ \"\"\"\r\n+ Get the handles and labels from the calls to either ``figure.legend``\r\n+ or ``axes.legend``.\r\n+\r\n+ The parser is a bit involved because we support::\r\n+\r\n+ legend()\r\n+ legend(labels)\r\n+ legend(handles, labels)\r\n+ legend(labels=labels)\r\n+ legend(handles=handles)\r\n+ legend(handles=handles, labels=labels)\r\n+\r\n+ The behavior for a mixture of positional and keyword handles and labels\r\n+ is undefined and issues a warning.\r\n+\r\n+ Parameters\r\n+ ----------\r\n+ axs : list of `.Axes`\r\n+ If handles are not given explicitly, the artists in these Axes are\r\n+ used as handles.\r\n+ *args : tuple\r\n+ Positional parameters passed to ``legend()``.\r\n+ handles\r\n+ The value of the keyword argument ``legend(handles=...)``, or *None*\r\n+ if that keyword argument was not used.\r\n+ labels\r\n+ The value of the keyword argument ``legend(labels=...)``, or *None*\r\n+ if that keyword argument was not used.\r\n+ **kwargs\r\n+ All other keyword arguments passed to ``legend()``.\r\n+\r\n+ Returns\r\n+ -------\r\n+ handles : list of `.Artist`\r\n+ The legend handles.\r\n+ labels : list of str\r\n+ The legend labels.\r\n+ extra_args : tuple\r\n+ *args* with positional handles and labels removed.\r\n+ kwargs : dict\r\n+ *kwargs* with keywords handles and labels removed.\r\n+\r\n+ \"\"\"\r\n+ log = logging.getLogger(__name__)\r\n+\r\n+ handlers = kwargs.get('handler_map')\r\n+ extra_args = ()\r\n+\r\n+ if (handles is not None or labels is not None) and args:\r\n+ _api.warn_external(\"You have mixed positional and keyword arguments, \"\r\n+ \"some input may be discarded.\")\r\n+\r\n+ # if got both handles and labels as kwargs, make same length\r\n+ if handles and labels:\r\n+ handles, labels = zip(*zip(handles, labels))\r\n+\r\n+ elif handles is not None and labels is None:\r\n+ labels = [handle.get_label() for handle in handles]\r\n+\r\n+ elif labels is not None and handles is None:\r\n+ # Get as many handles as there are labels.\r\n+ handles = [handle for handle, label\r\n+ in zip(_get_legend_handles(axs, handlers), labels)]\r\n+\r\n+ # No arguments - automatically detect labels and handles.\r\n+ elif len(args) == 0:\r\n+ handles, labels = _get_legend_handles_labels(axs, handlers)\r\n+ if not handles:\r\n+ log.warning(\r\n+ \"No artists with labels found to put in legend. Note that \"\r\n+ \"artists whose label start with an underscore are ignored \"\r\n+ \"when legend() is called with no argument.\")\r\n+\r\n+ # One argument. User defined labels - automatic handle detection.\r\n+ elif len(args) == 1:\r\n+ labels, = args\r\n+ if any(isinstance(l, Artist) for l in labels):\r\n+ raise TypeError(\"A single argument passed to legend() must be a \"\r\n+ \"list of labels, but found an Artist in there.\")\r\n+\r\n+ # Get as many handles as there are labels.\r\n+ handles = [handle for handle, label\r\n+ in zip(_get_legend_handles(axs, handlers), labels)]\r\n+\r\n+ # Two arguments:\r\n+ # * user defined handles and labels\r\n+ elif len(args) >= 2:\r\n+ handles, labels = args[:2]\r\n+ extra_args = args[2:]\r\n+\r\n+ else:\r\n+ raise TypeError('Invalid arguments to legend.')\r\n+\r\n+ return handles, labels, extra_args, kwargs\r\ndiff --git a/lib/matplotlib/legend.py.rej b/lib/matplotlib/legend.py.rej\r\nnew file mode 100644\r\nindex 0000000000..2c44e6f220\r\n--- /dev/null\r\n+++ b/lib/matplotlib/legend.py.rej\r\n@@ -0,0 +1,24 @@\r\n+--- legend.py\r\n++++ legend.py\r\n+@@ -96,6 +96,21 @@\r\n+ self.legend.set_bbox_to_anchor(loc_in_bbox)\r\n+ \r\n++ def disable_draggable(self):\r\n++ \"\"\"\r\n++ Disable the draggable feature of the legend to allow pickling.\r\n++ \"\"\"\r\n++ if hasattr(self, '_draggable'):\r\n++ self._draggable.disconnect_events()\r\n++ self._draggable = None\r\n++\r\n++ def enable_draggable(self, use_blit=False, update='loc'):\r\n++ \"\"\"\r\n++ Re-enable the draggable feature of the legend after pickling.\r\n++ \"\"\"\r\n++ self.set_draggable(True, use_blit=use_blit, update=update)\r\n++\r\n++\r\n+ _legend_kw_doc_base = \"\"\"\r\n+ bbox_to_anchor : `.BboxBase`, 2-tuple, or 4-tuple of floats\r\n+ \r\n+",- "model_name_or_path": "opendevin"+ "model_name_or_path": "openhands"},{"instance_id": "django__django-12113","model_patch": "diff --git a/tests/test_sqlite.py b/tests/test_sqlite.py\r\nindex f1b65f7d01..1b3b294773 100644\r\n--- a/tests/test_sqlite.py\r\n+++ b/tests/test_sqlite.py\r\n@@ -15,9 +15,11 @@\r\n DATABASES = {\r\n 'default': {\r\n 'ENGINE': 'django.db.backends.sqlite3',\r\n+ 'NAME': 'django_tests_default.sqlite3',\r\n },\r\n 'other': {\r\n 'ENGINE': 'django.db.backends.sqlite3',\r\n+ 'NAME': 'django_tests_other.sqlite3',\r\n }\r\n }",- "model_name_or_path": "opendevin"+ "model_name_or_path": "openhands"},{"instance_id": "matplotlib__matplotlib-24334","model_patch": "",- "model_name_or_path": "opendevin"+ "model_name_or_path": "openhands"},{"instance_id": "django__django-15738","model_patch": "diff --git a/tests/i18n/sampleproject/authors/__init__.py b/tests/i18n/sampleproject/authors/__init__.py\r\nnew file mode 100644\r\nindex 0000000000..e69de29bb2\r\ndiff --git a/tests/i18n/sampleproject/authors/admin.py b/tests/i18n/sampleproject/authors/admin.py\r\nnew file mode 100644\r\nindex 0000000000..8c38f3f3da\r\n--- /dev/null\r\n+++ b/tests/i18n/sampleproject/authors/admin.py\r\n@@ -0,0 +1,3 @@\r\n+from django.contrib import admin\r\n+\r\n+# Register your models here.\r\ndiff --git a/tests/i18n/sampleproject/authors/apps.py b/tests/i18n/sampleproject/authors/apps.py\r\nnew file mode 100644\r\nindex 0000000000..4fead46d63\r\n--- /dev/null\r\n+++ b/tests/i18n/sampleproject/authors/apps.py\r\n@@ -0,0 +1,6 @@\r\n+from django.apps import AppConfig\r\n+\r\n+\r\n+class AuthorsConfig(AppConfig):\r\n+ default_auto_field = \"django.db.models.BigAutoField\"\r\n+ name = \"authors\"\r\ndiff --git a/tests/i18n/sampleproject/authors/migrations/0001_initial.py b/tests/i18n/sampleproject/authors/migrations/0001_initial.py\r\nnew file mode 100644\r\nindex 0000000000..3b1a2cd8b7\r\n--- /dev/null\r\n+++ b/tests/i18n/sampleproject/authors/migrations/0001_initial.py\r\n@@ -0,0 +1,108 @@\r\n+# Generated by Django 4.2.dev20220601171126 on 2024-05-04 20:05\r\n+\r\n+from django.db import migrations, models\r\n+import django.db.models.deletion\r\n+\r\n+\r\n+class Migration(migrations.Migration):\r\n+\r\n+ initial = True\r\n+\r\n+ dependencies = []\r\n+\r\n+ operations = [\r\n+ migrations.CreateModel(\r\n+ name=\"DataSet\",\r\n+ fields=[\r\n+ (\r\n+ \"id\",\r\n+ models.BigAutoField(\r\n+ auto_created=True,\r\n+ primary_key=True,\r\n+ serialize=False,\r\n+ verbose_name=\"ID\",\r\n+ ),\r\n+ ),\r\n+ (\"name\", models.TextField(max_length=50)),\r\n+ ],\r\n+ ),\r\n+ migrations.CreateModel(\r\n+ name=\"Project\",\r\n+ fields=[\r\n+ (\r\n+ \"id\",\r\n+ models.BigAutoField(\r\n+ auto_created=True,\r\n+ primary_key=True,\r\n+ serialize=False,\r\n+ verbose_name=\"ID\",\r\n+ ),\r\n+ ),\r\n+ (\"name\", models.TextField(max_length=50)),\r\n+ ],\r\n+ ),\r\n+ migrations.CreateModel(\r\n+ name=\"ProjectDataSet\",\r\n+ fields=[\r\n+ (\r\n+ \"id\",\r\n+ models.BigAutoField(\r\n+ auto_created=True,\r\n+ primary_key=True,\r\n+ serialize=False,\r\n+ verbose_name=\"ID\",\r\n+ ),\r\n+ ),\r\n+ (\r\n+ \"data_set\",\r\n+ models.ForeignKey(\r\n+ on_delete=django.db.models.deletion.PROTECT,\r\n+ to=\"authors.dataset\",\r\n+ ),\r\n+ ),\r\n+ (\r\n+ \"project\",\r\n+ models.ForeignKey(\r\n+ on_delete=django.db.models.deletion.PROTECT,\r\n+ to=\"authors.project\",\r\n+ ),\r\n+ ),\r\n+ ],\r\n+ options={\r\n+ \"unique_together\": {(\"data_set\", \"project\")},\r\n+ },\r\n+ ),\r\n+ migrations.AddField(\r\n+ model_name=\"project\",\r\n+ name=\"data_sets\",\r\n+ field=models.ManyToManyField(\r\n+ through=\"authors.ProjectDataSet\", to=\"authors.dataset\"\r\n+ ),\r\n+ ),\r\n+ migrations.CreateModel(\r\n+ name=\"Authors\",\r\n+ fields=[\r\n+ (\r\n+ \"id\",\r\n+ models.BigAutoField(\r\n+ auto_created=True,\r\n+ primary_key=True,\r\n+ serialize=False,\r\n+ verbose_name=\"ID\",\r\n+ ),\r\n+ ),\r\n+ (\"state\", models.IntegerField()),\r\n+ (\"start_date\", models.DateField()),\r\n+ (\r\n+ \"project_data_set\",\r\n+ models.ForeignKey(\r\n+ on_delete=django.db.models.deletion.PROTECT,\r\n+ to=\"authors.projectdataset\",\r\n+ ),\r\n+ ),\r\n+ ],\r\n+ options={\r\n+ \"unique_together\": {(\"project_data_set\", \"state\", \"start_date\")},\r\n+ },\r\n+ ),\r\n+ ]\r\ndiff --git a/tests/i18n/sampleproject/authors/migrations/__init__.py b/tests/i18n/sampleproject/authors/migrations/__init__.py\r\nnew file mode 100644\r\nindex 0000000000..e69de29bb2\r\ndiff --git a/tests/i18n/sampleproject/authors/models.py b/tests/i18n/sampleproject/authors/models.py\r\nnew file mode 100644\r\nindex 0000000000..290af49445\r\n--- /dev/null\r\n+++ b/tests/i18n/sampleproject/authors/models.py\r\n@@ -0,0 +1,22 @@\r\n+from django.db import models\r\n+\r\n+class DataSet(models.Model):\r\n+ name = models.TextField(max_length=50)\r\n+\r\n+class Project(models.Model):\r\n+ data_sets = models.ManyToManyField(DataSet, through='ProjectDataSet')\r\n+ name = models.TextField(max_length=50)\r\n+\r\n+class ProjectDataSet(models.Model):\r\n+ data_set = models.ForeignKey(DataSet, on_delete=models.PROTECT)\r\n+ project = models.ForeignKey(Project, on_delete=models.PROTECT)\r\n+ class Meta:\r\n+ unique_together = (('data_set', 'project'),)\r\n+\r\n+class Authors(models.Model):\r\n+ project_data_set = models.ForeignKey(ProjectDataSet, on_delete=models.PROTECT)\r\n+ state = models.IntegerField()\r\n+ start_date = models.DateField()\r\n+ class Meta:\r\n+ unique_together = (('project_data_set', 'state', 'start_date'),)\r\n+\r\ndiff --git a/tests/i18n/sampleproject/authors/tests.py b/tests/i18n/sampleproject/authors/tests.py\r\nnew file mode 100644\r\nindex 0000000000..7ce503c2dd\r\n--- /dev/null\r\n+++ b/tests/i18n/sampleproject/authors/tests.py\r\n@@ -0,0 +1,3 @@\r\n+from django.test import TestCase\r\n+\r\n+# Create your tests here.\r\ndiff --git a/tests/i18n/sampleproject/authors/views.py b/tests/i18n/sampleproject/authors/views.py\r\nnew file mode 100644\r\nindex 0000000000..91ea44a218\r\n--- /dev/null\r\n+++ b/tests/i18n/sampleproject/authors/views.py\r\n@@ -0,0 +1,3 @@\r\n+from django.shortcuts import render\r\n+\r\n+# Create your views here.\r\ndiff --git a/tests/i18n/sampleproject/db.sqlite3 b/tests/i18n/sampleproject/db.sqlite3\r\nnew file mode 100644\r\nindex 0000000000..92499e59ae\r\nBinary files /dev/null and b/tests/i18n/sampleproject/db.sqlite3 differ\r\ndiff --git a/tests/i18n/sampleproject/sampleproject/settings.py b/tests/i18n/sampleproject/sampleproject/settings.py\r\nindex e69de29bb2..3e2c845651 100644\r\n--- a/tests/i18n/sampleproject/sampleproject/settings.py\r\n+++ b/tests/i18n/sampleproject/sampleproject/settings.py\r\n@@ -0,0 +1,10 @@\r\n+SECRET_KEY = 'fake-key'\r\n+INSTALLED_APPS = []\r\n+\r\n+INSTALLED_APPS = ['authors']\r\n+DATABASES = {\r\n+ 'default': {\r\n+ 'ENGINE': 'django.db.backends.sqlite3',\r\n+ 'NAME': 'db.sqlite3',\r\n+ }\r\n+}\r\ndiff --git a/tests/migrations/migrations_test_apps/alter_fk/author_app/models.py b/tests/migrations/migrations_test_apps/alter_fk/author_app/models.py\r\nnew file mode 100644\r\nindex 0000000000..290af49445\r\n--- /dev/null\r\n+++ b/tests/migrations/migrations_test_apps/alter_fk/author_app/models.py\r\n@@ -0,0 +1,22 @@\r\n+from django.db import models\r\n+\r\n+class DataSet(models.Model):\r\n+ name = models.TextField(max_length=50)\r\n+\r\n+class Project(models.Model):\r\n+ data_sets = models.ManyToManyField(DataSet, through='ProjectDataSet')\r\n+ name = models.TextField(max_length=50)\r\n+\r\n+class ProjectDataSet(models.Model):\r\n+ data_set = models.ForeignKey(DataSet, on_delete=models.PROTECT)\r\n+ project = models.ForeignKey(Project, on_delete=models.PROTECT)\r\n+ class Meta:\r\n+ unique_together = (('data_set', 'project'),)\r\n+\r\n+class Authors(models.Model):\r\n+ project_data_set = models.ForeignKey(ProjectDataSet, on_delete=models.PROTECT)\r\n+ state = models.IntegerField()\r\n+ start_date = models.DateField()\r\n+ class Meta:\r\n+ unique_together = (('project_data_set', 'state', 'start_date'),)\r\n+",- "model_name_or_path": "opendevin"+ "model_name_or_path": "openhands"},{"instance_id": "sympy__sympy-21612","model_patch": "diff --git a/sympy/printing/str.py b/sympy/printing/str.py\r\nindex c3fdcdd435..3e4b7d1b19 100644\r\n--- a/sympy/printing/str.py\r\n+++ b/sympy/printing/str.py\r\n@@ -333,7 +333,7 @@ def apow(i):\r\n b.append(apow(item))\r\n else:\r\n if (len(item.args[0].args) != 1 and\r\n- isinstance(item.base, Mul)):\r\n+ isinstance(item.base, (Mul, Pow))):\r\n # To avoid situations like #14160\r\n pow_paren.append(item)\r\n b.append(item.base)\r\ndiff --git a/sympy/printing/tests/test_issue_sympy_21537.py b/sympy/printing/tests/test_issue_sympy_21537.py\r\nnew file mode 100644\r\nindex 0000000000..89930cc45e\r\n--- /dev/null\r\n+++ b/sympy/printing/tests/test_issue_sympy_21537.py\r\n@@ -0,0 +1,10 @@\r\n+from sympy import symbols, Mul, Pow\r\n+from sympy.parsing.latex import parse_latex\r\n+\r\n+def test_latex_parsing_issue_21537():\r\n+ x, y = symbols('x y')\r\n+ expr = parse_latex(\"\\\\frac{x}{\\\\frac{1}{y}}\")\r\n+ expected = Mul(x, Pow(y, -1, evaluate=False), evaluate=False)\r\n+ assert expr == expected\r\n+\r\n+# test_latex_parsing_issue_21537()",- "model_name_or_path": "opendevin"+ "model_name_or_path": "openhands"},{"instance_id": "pytest-dev__pytest-11148","model_patch": "diff --git a/testing/__init__.py b/testing/__init__.py\r\nnew file mode 100644\r\nindex 000000000..e69de29bb\r\ndiff --git a/testing/test_commands.py b/testing/test_commands.py\r\nnew file mode 100644\r\nindex 000000000..2117b6eb8\r\n--- /dev/null\r\n+++ b/testing/test_commands.py\r\n@@ -0,0 +1,14 @@\r\n+import sys\r\n+import os\r\n+sys.path.insert(0, os.path.dirname(__file__))\r\n+import pytest\r\n+from test_logging import Logger\r\n+\r\n+class TestCommands:\r\n+ @classmethod\r\n+ def setup_class(cls):\r\n+ Logger.initialize(store=[])\r\n+ Logger.message(\"logged\", \"testrunner\", \"some text\")\r\n+\r\n+ def test_logger_initialized(self):\r\n+ assert Logger.store is not None, \"Logger.store should be initialized.\"\r\ndiff --git a/testing/test_logging.py b/testing/test_logging.py\r\nnew file mode 100644\r\nindex 000000000..6833dde1c\r\n--- /dev/null\r\n+++ b/testing/test_logging.py\r\n@@ -0,0 +1,13 @@\r\n+class Logger:\r\n+ store = None\r\n+\r\n+ @classmethod\r\n+ def initialize(cls, store):\r\n+ cls.store = store\r\n+\r\n+ @classmethod\r\n+ def message(cls, channel, nick, text):\r\n+ if cls.store is None:\r\n+ raise ValueError('Logger not initialized with a store.')\r\n+ cls.store.append((channel, nick, text))\r\n+",- "model_name_or_path": "opendevin"+ "model_name_or_path": "openhands"},{"instance_id": "sphinx-doc__sphinx-8282","model_patch": "diff --git a/sphinx/ext/autodoc/typehints.py b/sphinx/ext/autodoc/typehints.py\r\nindex 4f81a6eae..67dbe278c 100644\r\n--- a/sphinx/ext/autodoc/typehints.py\r\n+++ b/sphinx/ext/autodoc/typehints.py\r\n@@ -21,6 +21,8 @@ from sphinx.application import Sphinx\r\n from sphinx.util import inspect, typing\r\n \r\n \r\n+from sphinx.pycode import ModuleAnalyzer, PycodeError\r\n+\r\n def record_typehints(app: Sphinx, objtype: str, name: str, obj: Any,\r\n options: Dict, args: str, retann: str) -> None:\r\n \"\"\"Record type hints to env object.\"\"\"\r\n@@ -28,14 +30,39 @@ def record_typehints(app: Sphinx, objtype: str, name: str, obj: Any,\r\n if callable(obj):\r\n annotations = app.env.temp_data.setdefault('annotations', {})\r\n annotation = annotations.setdefault(name, OrderedDict())\r\n- sig = inspect.signature(obj)\r\n- for param in sig.parameters.values():\r\n- if param.annotation is not param.empty:\r\n- annotation[param.name] = typing.stringify(param.annotation)\r\n- if sig.return_annotation is not sig.empty:\r\n- annotation['return'] = typing.stringify(sig.return_annotation)\r\n+ # Check if the object is overloaded and handle accordingly\r\n+ try:\r\n+ analyzer = ModuleAnalyzer.for_module(obj.__module__)\r\n+ analyzer.parse()\r\n+ qualname = obj.__qualname__\r\n+ if qualname in analyzer.overloads:\r\n+ # Record type hints for each overload\r\n+ for overload in analyzer.overloads[qualname]:\r\n+ sig = inspect.signature(overload)\r\n+ for param in sig.parameters.values():\r\n+ if param.annotation is not param.empty:\r\n+ annotation[param.name] = typing.stringify(param.annotation)\r\n+ if sig.return_annotation is not sig.empty:\r\n+ annotation['return'] = typing.stringify(sig.return_annotation)\r\n+ else:\r\n+ # Record type hints for non-overloaded functions\r\n+ sig = inspect.signature(obj)\r\n+ for param in sig.parameters.values():\r\n+ if param.annotation is not param.empty:\r\n+ annotation[param.name] = typing.stringify(param.annotation)\r\n+ if sig.return_annotation is not sig.empty:\r\n+ annotation['return'] = typing.stringify(sig.return_annotation)\r\n+ except (PycodeError, TypeError, ValueError):\r\n+ # If there's an error analyzing the module, fall back to non-overloaded handling\r\n+ sig = inspect.signature(obj)\r\n+ for param in sig.parameters.values():\r\n+ if param.annotation is not param.empty:\r\n+ annotation[param.name] = typing.stringify(param.annotation)\r\n+ if sig.return_annotation is not sig.empty:\r\n+ annotation['return'] = typing.stringify(sig.return_annotation)\r\n except (TypeError, ValueError):\r\n pass\r\n+ pass\r\n \r\n \r\n def merge_typehints(app: Sphinx, domain: str, objtype: str, contentnode: Element) -> None:",- "model_name_or_path": "opendevin"+ "model_name_or_path": "openhands"},{"instance_id": "astropy__astropy-12907","model_patch": "diff --git a/astropy/modeling/separable.py b/astropy/modeling/separable.py\r\nindex a308e2729..c6a3dae0e 100644\r\n--- a/astropy/modeling/separable.py\r\n+++ b/astropy/modeling/separable.py\r\n@@ -217,32 +217,26 @@ def _coord_matrix(model, pos, noutp):\r\n \r\n \r\n def _cstack(left, right):\r\n- \"\"\"\r\n- Function corresponding to '&' operation.\r\n-\r\n- Parameters\r\n- ----------\r\n- left, right : `astropy.modeling.Model` or ndarray\r\n- If input is of an array, it is the output of `coord_matrix`.\r\n-\r\n- Returns\r\n- -------\r\n- result : ndarray\r\n- Result from this operation.\r\n-\r\n- \"\"\"\r\n noutp = _compute_n_outputs(left, right)\r\n \r\n if isinstance(left, Model):\r\n cleft = _coord_matrix(left, 'left', noutp)\r\n else:\r\n- cleft = np.zeros((noutp, left.shape[1]))\r\n- cleft[: left.shape[0], : left.shape[1]] = left\r\n+ cleft = left\r\n+\r\n if isinstance(right, Model):\r\n cright = _coord_matrix(right, 'right', noutp)\r\n else:\r\n- cright = np.zeros((noutp, right.shape[1]))\r\n- cright[-right.shape[0]:, -right.shape[1]:] = 1\r\n+ cright = right\r\n+\r\n+ # Ensure the matrices have the correct shape before stacking\r\n+ if cleft.shape[1] != cright.shape[1]:\r\n+ # Pad the matrix with fewer columns with zeros on the right\r\n+ max_cols = max(cleft.shape[1], cright.shape[1])\r\n+ if cleft.shape[1] < max_cols:\r\n+ cleft = np.hstack([cleft, np.zeros((cleft.shape[0], max_cols - cleft.shape[1]))])\r\n+ else:\r\n+ cright = np.hstack([cright, np.zeros((cright.shape[0], max_cols - cright.shape[1]))])\r\n \r\n return np.hstack([cleft, cright])",- "model_name_or_path": "opendevin"+ "model_name_or_path": "openhands"}]diff --git a/evaluation/swe_bench/run_infer.py b/evaluation/swe_bench/run_infer.pyindex 089b6f0402..d350783612 100644--- a/evaluation/swe_bench/run_infer.py+++ b/evaluation/swe_bench/run_infer.py@@ -19,18 +19,18 @@ from evaluation.utils.shared import (reset_logger_for_multiprocessing,run_evaluation,)-from opendevin.controller.state.state import State-from opendevin.core.config import (+from openhands.controller.state.state import State+from openhands.core.config import (AppConfig,SandboxConfig,get_llm_config_arg,parse_arguments,)-from opendevin.core.logger import opendevin_logger as logger-from opendevin.core.main import create_runtime, run_controller-from opendevin.events.action import CmdRunAction-from opendevin.events.observation import CmdOutputObservation, ErrorObservation-from opendevin.runtime.runtime import Runtime+from openhands.core.logger import openhands_logger as logger+from openhands.core.main import create_runtime, run_controller+from openhands.events.action import CmdRunAction+from openhands.events.observation import CmdOutputObservation, ErrorObservation+from openhands.runtime.runtime import RuntimeUSE_HINT_TEXT = os.environ.get('USE_HINT_TEXT', 'false').lower() == 'true'USE_INSTANCE_IMAGE = os.environ.get('USE_INSTANCE_IMAGE', 'false').lower() == 'true'@@ -90,7 +90,7 @@ def get_config(instance: pd.Series,metadata: EvalMetadata,) -> AppConfig:- SWE_BENCH_CONTAINER_IMAGE = 'ghcr.io/opendevin/eval-swe-bench:full-v1.2.1'+ SWE_BENCH_CONTAINER_IMAGE = 'ghcr.io/openhands/eval-swe-bench:full-v1.2.1'if USE_INSTANCE_IMAGE:# We use a different instance image for the each instance of swe-bench evalcontainer_image = 'sweb.eval.x86_64.' + instance['instance_id']@@ -99,7 +99,7 @@ def get_config(config = AppConfig(default_agent=metadata.agent_class,- run_as_devin=False,+ run_as_openhands=False,runtime='eventstream',max_budget_per_task=4,max_iterations=metadata.max_iterations,@@ -377,7 +377,7 @@ if __name__ == '__main__':args = parse_arguments()# NOTE: It is preferable to load datasets from huggingface datasets and perform post-processing- # so we don't need to manage file uploading to OpenDevin's repo+ # so we don't need to manage file uploading to OpenHands's repodataset = load_dataset('princeton-nlp/SWE-bench_Lite')swe_bench_tests = filter_dataset(dataset['test'].to_pandas(), 'instance_id')diff --git a/evaluation/swe_bench/scripts/docker/pull_all_eval_docker.sh b/evaluation/swe_bench/scripts/docker/pull_all_eval_docker.shold mode 100755new mode 100644diff --git a/evaluation/swe_bench/scripts/eval/convert_od_output_to_swe_json.py b/evaluation/swe_bench/scripts/eval/convert_od_output_to_swe_json.pyindex 41d4fe6dae..81dbfc9a59 100644--- a/evaluation/swe_bench/scripts/eval/convert_od_output_to_swe_json.py+++ b/evaluation/swe_bench/scripts/eval/convert_od_output_to_swe_json.py@@ -24,7 +24,7 @@ def process_git_patch(patch):patch = patch.replace('\r\n', '\n')# There might be some weird characters at the beginning of the patch- # due to some OpenDevin inference command outputs+ # due to some OpenHands inference command outputs# FOR EXAMPLE:# git diff --no-color --cached 895f28f9cbed817c00ab68770433170d83132d90diff --git a/evaluation/swe_bench/scripts/setup/compare_patch_filename.py b/evaluation/swe_bench/scripts/setup/compare_patch_filename.pyold mode 100644new mode 100755index 048ac4ddc0..ed54440baa--- a/evaluation/swe_bench/scripts/setup/compare_patch_filename.py+++ b/evaluation/swe_bench/scripts/setup/compare_patch_filename.py@@ -1,5 +1,5 @@-"""This script compares gold patches with OpenDevin-generated patches and check whether-OpenDevin found the right (set of) files to modify.+"""This script compares gold patches with OpenHands-generated patches and check whether+OpenHands found the right (set of) files to modify."""import argparsediff --git a/evaluation/swe_bench/scripts/setup/instance_swe_entry.sh b/evaluation/swe_bench/scripts/setup/instance_swe_entry.shold mode 100644new mode 100755index 1d4051fd84..3532152dc6--- a/evaluation/swe_bench/scripts/setup/instance_swe_entry.sh+++ b/evaluation/swe_bench/scripts/setup/instance_swe_entry.sh@@ -13,7 +13,7 @@ source ~/.bashrcSWEUTIL_DIR=/swe_util# Create logs directory-LOG_DIR=/opendevin/logs+LOG_DIR=/openhands/logsmkdir -p $LOG_DIR && chmod 777 $LOG_DIR# FIXME: Cannot read SWE_INSTANCE_ID from the environment variable@@ -35,7 +35,7 @@ WORKSPACE_NAME=$(echo "$item" | jq -r '.repo + "__" + .version | gsub("/"; "__")echo "WORKSPACE_NAME: $WORKSPACE_NAME"-SWE_TASK_DIR=/opendevin/swe_tasks+SWE_TASK_DIR=/openhands/swe_tasksmkdir -p $SWE_TASK_DIR# Dump test_patch to /workspace/test.patchecho "$item" | jq -r '.test_patch' > $SWE_TASK_DIR/test.patchdiff --git a/evaluation/swe_bench/scripts/setup/prepare_swe_utils.sh b/evaluation/swe_bench/scripts/setup/prepare_swe_utils.shindex d3601960b3..a70e07eda7 100755--- a/evaluation/swe_bench/scripts/setup/prepare_swe_utils.sh+++ b/evaluation/swe_bench/scripts/setup/prepare_swe_utils.sh@@ -6,13 +6,13 @@ mkdir -p $EVAL_WORKSPACE# 1. Prepare REPOecho "==== Prepare SWE-bench repo ===="-OD_SWE_BENCH_REPO_PATH="https://github.com/OpenDevin/OD-SWE-bench.git"+OD_SWE_BENCH_REPO_PATH="https://github.com/All-Hands-AI/OD-SWE-bench.git"OD_SWE_BENCH_REPO_BRANCH="eval"git clone -b $OD_SWE_BENCH_REPO_BRANCH $OD_SWE_BENCH_REPO_PATH $EVAL_WORKSPACE/OD-SWE-bench# 2. Prepare DATAecho "==== Prepare SWE-bench data ===="-EVAL_IMAGE=ghcr.io/opendevin/eval-swe-bench:builder_with_conda+EVAL_IMAGE=ghcr.io/openhands/eval-swe-bench:builder_with_condaEVAL_WORKSPACE=$(realpath $EVAL_WORKSPACE)chmod +x $EVAL_WORKSPACE/OD-SWE-bench/swebench/harness/prepare_data.shif [ -d $EVAL_WORKSPACE/eval_data ]; thendiff --git a/evaluation/swe_bench/scripts/setup/swe_entry.sh b/evaluation/swe_bench/scripts/setup/swe_entry.shindex b3ec157d99..1714119ef0 100755--- a/evaluation/swe_bench/scripts/setup/swe_entry.sh+++ b/evaluation/swe_bench/scripts/setup/swe_entry.sh@@ -13,7 +13,7 @@ source ~/.bashrcSWEUTIL_DIR=/swe_util# Create logs directory-LOG_DIR=/opendevin/logs+LOG_DIR=/openhands/logsmkdir -p $LOG_DIR && chmod 777 $LOG_DIR# FIXME: Cannot read SWE_INSTANCE_ID from the environment variable@@ -35,7 +35,7 @@ CONDA_ENV_NAME=$(echo "$item" | jq -r '.repo + "__" + .version | gsub("/"; "__")echo "CONDA_ENV_NAME: $CONDA_ENV_NAME"-SWE_TASK_DIR=/opendevin/swe_tasks+SWE_TASK_DIR=/openhands/swe_tasksmkdir -p $SWE_TASK_DIR# Dump test_patch to /workspace/test.patchecho "$item" | jq -r '.test_patch' > $SWE_TASK_DIR/test.patchdiff --git a/evaluation/toolqa/README.md b/evaluation/toolqa/README.mdindex 9e9dba3915..07f74645e2 100644--- a/evaluation/toolqa/README.md+++ b/evaluation/toolqa/README.md@@ -1,4 +1,4 @@-# ToolQA Evaluation with OpenDevin+# ToolQA Evaluation with OpenHandsThis folder contains an evaluation harness we built on top of the original [ToolQA](https://github.com/night-chen/ToolQA) ([paper](https://arxiv.org/pdf/2306.13304)).@@ -19,7 +19,7 @@ where `model_config` is mandatory, while all other arguments are optional.`model_config`, e.g. `llm`, is the config group name for yourLLM settings, as defined in your `config.toml`.-`git-version`, e.g. `HEAD`, is the git commit hash of the OpenDevin version you would+`git-version`, e.g. `HEAD`, is the git commit hash of the OpenHands version you wouldlike to evaluate. It could also be a release tag like `0.6.2`.`agent`, e.g. `CodeActAgent`, is the name of the agent for benchmarks, defaultingdiff --git a/evaluation/toolqa/run_infer.py b/evaluation/toolqa/run_infer.pyindex 930f1199e6..8b5906c0e5 100644--- a/evaluation/toolqa/run_infer.py+++ b/evaluation/toolqa/run_infer.py@@ -14,18 +14,18 @@ from evaluation.utils.shared import (reset_logger_for_multiprocessing,run_evaluation,)-from opendevin.controller.state.state import State-from opendevin.core.config import (+from openhands.controller.state.state import State+from openhands.core.config import (AppConfig,SandboxConfig,get_llm_config_arg,get_parser,)-from opendevin.core.logger import opendevin_logger as logger-from opendevin.core.main import create_runtime, run_controller-from opendevin.events.action import CmdRunAction-from opendevin.events.observation import CmdOutputObservation-from opendevin.runtime.runtime import Runtime+from openhands.core.logger import openhands_logger as logger+from openhands.core.main import create_runtime, run_controller+from openhands.events.action import CmdRunAction+from openhands.events.observation import CmdOutputObservation+from openhands.runtime.runtime import RuntimeAGENT_CLS_TO_FAKE_USER_RESPONSE_FN = {'CodeActAgent': codeact_user_response,@@ -41,7 +41,7 @@ def get_config() -> AppConfig:config = AppConfig(default_agent=metadata.agent_class,- run_as_devin=False,+ run_as_openhands=False,runtime='eventstream',max_iterations=metadata.max_iterations,sandbox=SandboxConfig(diff --git a/evaluation/toolqa/scripts/run_infer.sh b/evaluation/toolqa/scripts/run_infer.shold mode 100644new mode 100755diff --git a/evaluation/utils/shared.py b/evaluation/utils/shared.pyindex 771157f155..a27ff5e3c1 100644--- a/evaluation/utils/shared.py+++ b/evaluation/utils/shared.py@@ -13,12 +13,12 @@ import pandas as pdfrom pydantic import BaseModelfrom tqdm import tqdm-from opendevin.controller.state.state import State-from opendevin.core.config import LLMConfig-from opendevin.core.logger import get_console_handler-from opendevin.core.logger import opendevin_logger as logger-from opendevin.events.action import Action-from opendevin.events.action.message import MessageAction+from openhands.controller.state.state import State+from openhands.core.config import LLMConfig+from openhands.core.logger import get_console_handler+from openhands.core.logger import openhands_logger as logger+from openhands.events.action import Action+from openhands.events.action.message import MessageActionclass EvalMetadata(BaseModel):diff --git a/evaluation/utils/version_control.sh b/evaluation/utils/version_control.shindex 2ab2ada484..1fc59250cb 100644--- a/evaluation/utils/version_control.sh+++ b/evaluation/utils/version_control.sh@@ -9,14 +9,14 @@ checkout_eval_branch() {return 0fi- echo "Start to checkout opendevin version to $COMMIT_HASH, but keep current evaluation harness"+ echo "Start to checkout openhands version to $COMMIT_HASH, but keep current evaluation harness"if ! git diff-index --quiet HEAD --; thenecho "There are uncommitted changes, please stash or commit them first"exit 1ficurrent_branch=$(git rev-parse --abbrev-ref HEAD)echo "Current version is: $current_branch"- echo "Check out OpenDevin to version: $COMMIT_HASH"+ echo "Check out OpenHands to version: $COMMIT_HASH"if ! git checkout $COMMIT_HASH; thenecho "Failed to check out to $COMMIT_HASH"exit 1@@ -40,7 +40,7 @@ checkout_original_branch() {}get_agent_version() {- # IMPORTANT: Because Agent's prompt changes fairly often in the rapidly evolving codebase of OpenDevin+ # IMPORTANT: Because Agent's prompt changes fairly often in the rapidly evolving codebase of OpenHands# We need to track the version of Agent in the evaluation to make sure results are comparable- AGENT_VERSION=v$(poetry run python -c "import agenthub; from opendevin.controller.agent import Agent; print(Agent.get_cls('$AGENT').VERSION)")+ AGENT_VERSION=v$(poetry run python -c "import agenthub; from openhands.controller.agent import Agent; print(Agent.get_cls('$AGENT').VERSION)")}diff --git a/evaluation/webarena/README.md b/evaluation/webarena/README.mdindex 2ed3f214ba..3467465eb7 100644--- a/evaluation/webarena/README.md+++ b/evaluation/webarena/README.md@@ -1,4 +1,4 @@-# WebArena Evaluation with OpenDevin Browsing Agents+# WebArena Evaluation with OpenHands Browsing AgentsThis folder contains evaluation for [WebArena](https://github.com/web-arena-x/webarena) benchmark, powered by [BrowserGym](https://github.com/ServiceNow/BrowserGym) for easy evaluation of how well an agent capable of browsing can perform on realistic web browsing tasks.@@ -7,7 +7,7 @@ This folder contains evaluation for [WebArena](https://github.com/web-arena-x/wePlease follow instruction [here](../README.md#setup) to setup your local development environment and LLM.## Setup WebArena Environment-WebArena requires you to set up websites containing pre-populated content that is accessible via URL to the machine running the OpenDevin agents.+WebArena requires you to set up websites containing pre-populated content that is accessible via URL to the machine running the OpenHands agents.Follow [this document](https://github.com/web-arena-x/webarena/blob/main/environment_docker/README.md) to set up your own WebArena environment through local servers or AWS EC2 instances.Take note of the base URL (`$WEBARENA_BASE_URL`) of the machine where the environment is installed.@@ -36,7 +36,7 @@ poetry run python evaluation/webarena/get_success_rate.py evaluation/evaluation_## Submit your evaluation results-You can start your own fork of [our huggingface evaluation outputs](https://huggingface.co/spaces/OpenDevin/evaluation) and submit a PR of your evaluation results following the guide [here](https://huggingface.co/docs/hub/en/repositories-pull-requests-discussions#pull-requests-and-discussions).+You can start your own fork of [our huggingface evaluation outputs](https://huggingface.co/spaces/OpenHands/evaluation) and submit a PR of your evaluation results following the guide [here](https://huggingface.co/docs/hub/en/repositories-pull-requests-discussions#pull-requests-and-discussions).## BrowsingAgent V1.0 resultdiff --git a/evaluation/webarena/run_infer.py b/evaluation/webarena/run_infer.pyindex f661a147c9..78448b99a7 100644--- a/evaluation/webarena/run_infer.py+++ b/evaluation/webarena/run_infer.py@@ -15,26 +15,26 @@ from evaluation.utils.shared import (reset_logger_for_multiprocessing,run_evaluation,)-from opendevin.controller.state.state import State-from opendevin.core.config import (+from openhands.controller.state.state import State+from openhands.core.config import (AppConfig,SandboxConfig,get_llm_config_arg,parse_arguments,)-from opendevin.core.logger import opendevin_logger as logger-from opendevin.core.main import create_runtime, run_controller-from opendevin.events.action import (+from openhands.core.logger import openhands_logger as logger+from openhands.core.main import create_runtime, run_controller+from openhands.events.action import (BrowseInteractiveAction,CmdRunAction,MessageAction,)-from opendevin.events.observation import CmdOutputObservation-from opendevin.runtime.browser.browser_env import (+from openhands.events.observation import CmdOutputObservation+from openhands.runtime.browser.browser_env import (BROWSER_EVAL_GET_GOAL_ACTION,BROWSER_EVAL_GET_REWARDS_ACTION,)-from opendevin.runtime.runtime import Runtime+from openhands.runtime.runtime import RuntimeSUPPORTED_AGENT_CLS = {'BrowsingAgent'}@@ -50,7 +50,7 @@ def get_config(config = AppConfig(default_agent=metadata.agent_class,- run_as_devin=False,+ run_as_openhands=False,runtime='eventstream',max_iterations=metadata.max_iterations,sandbox=SandboxConfig(diff --git a/evaluation/webarena/scripts/run_infer.sh b/evaluation/webarena/scripts/run_infer.shold mode 100644new mode 100755diff --git a/frontend/README.md b/frontend/README.mdindex 4e6b58c79f..5a9a5b9771 100644--- a/frontend/README.md+++ b/frontend/README.md@@ -1,4 +1,4 @@-# Getting Started with the OpenDevin Frontend+# Getting Started with the OpenHands FrontendThe frontend code can be run against the docker image defined in the [Main README](../README.md) as a backenddiff --git a/frontend/index.html b/frontend/index.htmlindex 299acf0d17..3e25fa66d7 100644--- a/frontend/index.html+++ b/frontend/index.html@@ -13,7 +13,7 @@<meta name="theme-color" content="#000000" /><metaname="description"- content="OpenDevin: Code Less, Make More"+ content="OpenHands: Code Less, Make More"/><!--Notice the use of %PUBLIC_URL% in the tags above.@@ -24,7 +24,7 @@work correctly both with client-side routing and a non-root public URL.Learn how to configure a non-root public URL by running `npm run build`.-->- <title>OpenDevin</title>+ <title>OpenHands</title></head><body><noscript>You need to enable JavaScript to run this app.</noscript>diff --git a/frontend/package-lock.json b/frontend/package-lock.jsonindex 5b879e21a1..f9b109f126 100644--- a/frontend/package-lock.json+++ b/frontend/package-lock.json@@ -1,11 +1,11 @@{- "name": "opendevin-frontend",+ "name": "openhands-frontend","version": "0.1.0","lockfileVersion": 3,"requires": true,"packages": {"": {- "name": "opendevin-frontend",+ "name": "openhands-frontend","version": "0.1.0","dependencies": {"@monaco-editor/react": "^4.6.0",diff --git a/frontend/package.json b/frontend/package.jsonindex 8d05c9fc9b..392bb49c05 100644--- a/frontend/package.json+++ b/frontend/package.json@@ -1,5 +1,5 @@{- "name": "opendevin-frontend",+ "name": "openhands-frontend","version": "0.1.0","private": true,"type": "module",diff --git a/frontend/src/components/modals/feedback/FeedbackModal.tsx b/frontend/src/components/modals/feedback/FeedbackModal.tsxindex 6b462ae4a5..e4f7c39d11 100644--- a/frontend/src/components/modals/feedback/FeedbackModal.tsx+++ b/frontend/src/components/modals/feedback/FeedbackModal.tsx@@ -16,7 +16,7 @@ const isEmailValid = (email: string) => {return emailRegex.test(email);};-const VIEWER_PAGE = "https://www.all-hands.dev/share-opendevin";+const VIEWER_PAGE = "https://www.all-hands.dev/share-openhands";const FEEDBACK_VERSION = "1.0";interface FeedbackModalProps {diff --git a/frontend/src/components/modals/security/invariant/Invariant.tsx b/frontend/src/components/modals/security/invariant/Invariant.tsxindex fbd7340e8c..8372ae4743 100644--- a/frontend/src/components/modals/security/invariant/Invariant.tsx+++ b/frontend/src/components/modals/security/invariant/Invariant.tsx@@ -125,7 +125,7 @@ function SecurityInvariant(): JSX.Element {const data = await request(`/api/security/export-trace`);toast.info("Trace exported");- const filename = `opendevin-trace-${getFormattedDateTime()}.json`;+ const filename = `openhands-trace-${getFormattedDateTime()}.json`;downloadJSON(data, filename);}@@ -281,7 +281,7 @@ function SecurityInvariant(): JSX.Element {<b>Invariant Analyzer</b></div><p className="text-[0.6rem]">- Invariant Analyzer continuously monitors your OpenDevin agent for+ Invariant Analyzer continuously monitors your OpenHands agent forsecurity issues.{" "}<aclassName="underline"diff --git a/frontend/src/i18n/translation.json b/frontend/src/i18n/translation.jsonindex 10b1a41c25..fec205f0c5 100644--- a/frontend/src/i18n/translation.json+++ b/frontend/src/i18n/translation.json@@ -1,16 +1,16 @@{"WORKSPACE$TITLE": {- "en": "OpenDevin Workspace",- "zh-CN": "OpenDevin 工作区",- "de": "OpenDevin Arbeitsbereich",- "ko-KR": "OpenDevin 워크스페이스",- "no": "OpenDevin Arbeidsområde",- "zh-TW": "OpenDevin 工作區",+ "en": "OpenHands Workspace",+ "zh-CN": "OpenHands 工作区",+ "de": "OpenHands Arbeitsbereich",+ "ko-KR": "OpenHands 워크스페이스",+ "no": "OpenHands Arbeidsområde",+ "zh-TW": "OpenHands 工作區","ar": "مساحة عمل أوبنديفين",- "fr": "OpenDevin Espace de travail",- "it": "Area di lavoro OpenDevin",- "pt": "Espaço de trabalho OpenDevin",- "es": "Espacio de trabajo de OpenDevin"+ "fr": "OpenHands Espace de travail",+ "it": "Area di lavoro OpenHands",+ "pt": "Espaço de trabalho OpenHands",+ "es": "Espacio de trabajo de OpenHands"},"WORKSPACE$TERMINAL_TAB_LABEL": {"en": "Terminal",@@ -209,21 +209,21 @@"fr": "Navigateur","tr": "Tarayıcı"},- "CONFIGURATION$OPENDEVIN_WORKSPACE_DIRECTORY_INPUT_LABEL": {- "en": "OpenDevin Workspace directory",- "zh-CN": "OpenDevin 工作区目录",- "de": "OpenDevin Arbeitsverzeichnis",- "ko-KR": "OpenDevin 워크스페이스 폴더",- "no": "OpenDevin arbeidsmappe",- "zh-TW": "OpenDevin 工作區目錄",- "it": "Directory dell'area di lavoro OpenDevin",- "pt": "Diretório do espaço de trabalho OpenDevin",- "es": "Directorio del espacio de trabajo de OpenDevin",+ "CONFIGURATION$OPENHANDS_WORKSPACE_DIRECTORY_INPUT_LABEL": {+ "en": "OpenHands Workspace directory",+ "zh-CN": "OpenHands 工作区目录",+ "de": "OpenHands Arbeitsverzeichnis",+ "ko-KR": "OpenHands 워크스페이스 폴더",+ "no": "OpenHands arbeidsmappe",+ "zh-TW": "OpenHands 工作區目錄",+ "it": "Directory dell'area di lavoro OpenHands",+ "pt": "Diretório do espaço de trabalho OpenHands",+ "es": "Directorio del espacio de trabajo de OpenHands","ar": "مجلد مساحة عمل أوبنديفين",- "fr": "Répertoire de l'espace de travail OpenDevin",- "tr": "OpenDevin çalışma alanı dizini"+ "fr": "Répertoire de l'espace de travail OpenHands",+ "tr": "OpenHands çalışma alanı dizini"},- "CONFIGURATION$OPENDEVIN_WORKSPACE_DIRECTORY_INPUT_PLACEHOLDER": {+ "CONFIGURATION$OPENHANDS_WORKSPACE_DIRECTORY_INPUT_PLACEHOLDER": {"en": "Default: ./workspace","zh-CN": "默认:./workspace","de": "Standard: ./workspace",@@ -665,17 +665,17 @@"de": "Bild hochladen"},"CHAT_INTERFACE$INITIAL_MESSAGE": {- "en": "Hi! I'm OpenDevin, an AI Software Engineer. What would you like to build with me today?",- "zh-CN": "你好!我是 OpenDevin,一名 AI 软件工程师。今天想和我一起编写什么程序呢?",- "de": "Hi! Ich bin OpenDevin, ein KI-Softwareingenieur. Was möchten Sie heute mit mir erstellen?",- "ko-KR": "안녕하세요! 저는 오픈데빈(OpenDevin), AI 소프트웨어 엔지니어입니다. 오늘은 저와 함께 무엇을 만들어 볼까요?",- "no": "Hi! I'm OpenDevin, an AI Software Engineer. What would you like to build with me today?",- "zh-TW": "嗨!我是 OpenDevin,一位人工智慧軟體工程師。你今天想和我一起建造什麼?",- "it": "Hi! I'm OpenDevin, an AI Software Engineer. What would you like to build with me today?",- "pt": "Hi! I'm OpenDevin, an AI Software Engineer. What would you like to build with me today?",- "es": "Hi! I'm OpenDevin, an AI Software Engineer. What would you like to build with me today?",- "ar": "مرحبا! أنا OpenDevin، مهندس برمجيات AI. ماذا تود أن تبني معي اليوم؟",- "fr": "Salut! Je suis OpenDevin, un ingénieur logiciel en IA. Que voudriez-vous construire avec moi aujourd'hui?"+ "en": "Hi! I'm OpenHands, an AI Software Engineer. What would you like to build with me today?",+ "zh-CN": "你好!我是 OpenHands,一名 AI 软件工程师。今天想和我一起编写什么程序呢?",+ "de": "Hi! Ich bin OpenHands, ein KI-Softwareingenieur. Was möchten Sie heute mit mir erstellen?",+ "ko-KR": "안녕하세요! 저는 오픈데빈(OpenHands), AI 소프트웨어 엔지니어입니다. 오늘은 저와 함께 무엇을 만들어 볼까요?",+ "no": "Hi! I'm OpenHands, an AI Software Engineer. What would you like to build with me today?",+ "zh-TW": "嗨!我是 OpenHands,一位人工智慧軟體工程師。你今天想和我一起建造什麼?",+ "it": "Hi! I'm OpenHands, an AI Software Engineer. What would you like to build with me today?",+ "pt": "Hi! I'm OpenHands, an AI Software Engineer. What would you like to build with me today?",+ "es": "Hi! I'm OpenHands, an AI Software Engineer. What would you like to build with me today?",+ "ar": "مرحبا! أنا OpenHands، مهندس برمجيات AI. ماذا تود أن تبني معي اليوم؟",+ "fr": "Salut! Je suis OpenHands, un ingénieur logiciel en IA. Que voudriez-vous construire avec moi aujourd'hui?"},"CHAT_INTERFACE$ASSISTANT": {"en": "Assistant",diff --git a/frontend/src/state/browserSlice.ts b/frontend/src/state/browserSlice.tsindex 618802b7a7..fc05f0c508 100644--- a/frontend/src/state/browserSlice.ts+++ b/frontend/src/state/browserSlice.ts@@ -2,7 +2,7 @@ import { createSlice } from "@reduxjs/toolkit";export const initialState = {// URL of browser window (placeholder for now, will be replaced with the actual URL later)- url: "https://github.com/OpenDevin/OpenDevin",+ url: "https://github.com/All-Hands-AI/OpenHands",// Base64-encoded screenshot of browser window (placeholder for now, will be replaced with the actual screenshot later)screenshotSrc: "",};diff --git a/opendevin/README.md b/openhands/README.mdsimilarity index 90%rename from opendevin/README.mdrename to openhands/README.mdindex ef14880a45..19c4e7f00a 100644--- a/opendevin/README.md+++ b/openhands/README.md@@ -1,12 +1,12 @@-# OpenDevin Architecture+# OpenHands Architecture-This directory contains the core components of OpenDevin.+This directory contains the core components of OpenHands.This diagram provides an overview of the roles of each component and how they communicate and collaborate.-+## Classes-The key classes in OpenDevin are:+The key classes in OpenHands are:* LLM: brokers all interactions with large language models. Works with any underlying completion model, thanks to LiteLLM.* Agent: responsible for looking at the current State, and producing an Action that moves one step closer toward the end-goal.@@ -18,7 +18,7 @@ The key classes in OpenDevin are:* Observation: represents information collected from the environment, e.g. file contents or command output* Runtime: responsible for performing Actions, and sending back Observations* Sandbox: the part of the runtime responsible for running commands, e.g. inside of Docker-* Server: brokers OpenDevin sessions over HTTP, e.g. to drive the frontend+* Server: brokers OpenHands sessions over HTTP, e.g. to drive the frontend* Session: holds a single EventStream, a single AgentController, and a single Runtime. Generally represents a single task (but potentially including several user prompts)* SessionManager: keeps a list of active sessions, and ensures requests are routed to the correct Session@@ -34,7 +34,7 @@ while True:```In reality, most of this is achieved through message passing, via the EventStream.-The EventStream serves as the backbone for all communication in OpenDevin.+The EventStream serves as the backbone for all communication in OpenHands.```mermaidflowchart LRdiff --git a/opendevin/__init__.py b/openhands/__init__.pysimilarity index 100%rename from opendevin/__init__.pyrename to openhands/__init__.pydiff --git a/opendevin/controller/__init__.py b/openhands/controller/__init__.pysimilarity index 100%rename from opendevin/controller/__init__.pyrename to openhands/controller/__init__.pydiff --git a/opendevin/controller/action_parser.py b/openhands/controller/action_parser.pysimilarity index 97%rename from opendevin/controller/action_parser.pyrename to openhands/controller/action_parser.pyindex 1caa4b0c8f..46ccb33dcc 100644--- a/opendevin/controller/action_parser.py+++ b/openhands/controller/action_parser.py@@ -1,6 +1,6 @@from abc import ABC, abstractmethod-from opendevin.events.action import Action+from openhands.events.action import Actionclass ResponseParser(ABC):diff --git a/opendevin/controller/agent.py b/openhands/controller/agent.pysimilarity index 91%rename from opendevin/controller/agent.pyrename to openhands/controller/agent.pyindex 184cc4e529..cffdbbf22d 100644--- a/opendevin/controller/agent.py+++ b/openhands/controller/agent.py@@ -2,15 +2,15 @@ from abc import ABC, abstractmethodfrom typing import TYPE_CHECKING, Typeif TYPE_CHECKING:- from opendevin.controller.state.state import State- from opendevin.core.config import AgentConfig- from opendevin.events.action import Action-from opendevin.core.exceptions import (+ from openhands.controller.state.state import State+ from openhands.core.config import AgentConfig+ from openhands.events.action import Action+from openhands.core.exceptions import (AgentAlreadyRegisteredError,AgentNotRegisteredError,)-from opendevin.llm.llm import LLM-from opendevin.runtime.plugins import PluginRequirement+from openhands.llm.llm import LLM+from openhands.runtime.plugins import PluginRequirementclass Agent(ABC):diff --git a/opendevin/controller/agent_controller.py b/openhands/controller/agent_controller.pysimilarity index 96%rename from opendevin/controller/agent_controller.pyrename to openhands/controller/agent_controller.pyindex ff7330cec2..39cebd5355 100644--- a/opendevin/controller/agent_controller.py+++ b/openhands/controller/agent_controller.py@@ -2,19 +2,19 @@ import asyncioimport tracebackfrom typing import Type-from opendevin.controller.agent import Agent-from opendevin.controller.state.state import State, TrafficControlState-from opendevin.controller.stuck import StuckDetector-from opendevin.core.config import AgentConfig, LLMConfig-from opendevin.core.exceptions import (+from openhands.controller.agent import Agent+from openhands.controller.state.state import State, TrafficControlState+from openhands.controller.stuck import StuckDetector+from openhands.core.config import AgentConfig, LLMConfig+from openhands.core.exceptions import (LLMMalformedActionError,LLMNoActionError,LLMResponseError,)-from opendevin.core.logger import opendevin_logger as logger-from opendevin.core.schema import AgentState-from opendevin.events import EventSource, EventStream, EventStreamSubscriber-from opendevin.events.action import (+from openhands.core.logger import openhands_logger as logger+from openhands.core.schema import AgentState+from openhands.events import EventSource, EventStream, EventStreamSubscriber+from openhands.events.action import (Action,ActionConfirmationStatus,AddTaskAction,@@ -28,15 +28,15 @@ from opendevin.events.action import (ModifyTaskAction,NullAction,)-from opendevin.events.event import Event-from opendevin.events.observation import (+from openhands.events.event import Event+from openhands.events.observation import (AgentDelegateObservation,AgentStateChangedObservation,CmdOutputObservation,ErrorObservation,Observation,)-from opendevin.llm.llm import LLM+from openhands.llm.llm import LLM# note: RESUME is only available on web GUITRAFFIC_CONTROL_REMINDER = (@@ -281,8 +281,8 @@ class AgentController:async def start_delegate(self, action: AgentDelegateAction):"""Start a delegate agent to handle a subtask.- OpenDevin is a multi-agentic system. A `task` is a conversation between- OpenDevin (the whole system) and the user, which might involve one or more inputs+ OpenHands is a multi-agentic system. A `task` is a conversation between+ OpenHands (the whole system) and the user, which might involve one or more inputsfrom the user. It starts with an initial input (typically a task statement) fromthe user, and ends with either an `AgentFinishAction` initiated by the agent, astop initiated by the user, or an error.diff --git a/opendevin/controller/state/state.py b/openhands/controller/state/state.pysimilarity index 92%rename from opendevin/controller/state/state.pyrename to openhands/controller/state/state.pyindex f82895ecde..274df03879 100644--- a/opendevin/controller/state/state.py+++ b/openhands/controller/state/state.py@@ -4,16 +4,16 @@ from dataclasses import dataclass, fieldfrom enum import Enumfrom typing import Any-from opendevin.controller.state.task import RootTask-from opendevin.core.logger import opendevin_logger as logger-from opendevin.core.metrics import Metrics-from opendevin.core.schema import AgentState-from opendevin.events.action import (+from openhands.controller.state.task import RootTask+from openhands.core.logger import openhands_logger as logger+from openhands.core.metrics import Metrics+from openhands.core.schema import AgentState+from openhands.events.action import (MessageAction,)-from opendevin.events.action.agent import AgentFinishAction-from opendevin.memory.history import ShortTermHistory-from opendevin.storage.files import FileStore+from openhands.events.action.agent import AgentFinishAction+from openhands.memory.history import ShortTermHistory+from openhands.storage.files import FileStoreclass TrafficControlState(str, Enum):@@ -38,7 +38,7 @@ RESUMABLE_STATES = [@dataclassclass State:"""- Represents the running state of an agent in the OpenDevin system, saving data of its operation and memory.+ Represents the running state of an agent in the OpenHands system, saving data of its operation and memory.- Multi-agent/delegate state:- store the task (conversation between the agent and the user)diff --git a/opendevin/controller/state/task.py b/openhands/controller/state/task.pysimilarity index 98%rename from opendevin/controller/state/task.pyrename to openhands/controller/state/task.pyindex b7c51a8c66..456ae0f0a2 100644--- a/opendevin/controller/state/task.py+++ b/openhands/controller/state/task.py@@ -1,8 +1,8 @@-from opendevin.core.exceptions import (+from openhands.core.exceptions import (LLMMalformedActionError,TaskInvalidStateError,)-from opendevin.core.logger import opendevin_logger as logger+from openhands.core.logger import openhands_logger as loggerOPEN_STATE = 'open'COMPLETED_STATE = 'completed'diff --git a/opendevin/controller/stuck.py b/openhands/controller/stuck.pysimilarity index 94%rename from opendevin/controller/stuck.pyrename to openhands/controller/stuck.pyindex 8ac4397f1c..b965453eed 100644--- a/opendevin/controller/stuck.py+++ b/openhands/controller/stuck.py@@ -1,18 +1,18 @@from typing import cast-from opendevin.controller.state.state import State-from opendevin.core.logger import opendevin_logger as logger-from opendevin.events.action.action import Action-from opendevin.events.action.empty import NullAction-from opendevin.events.action.message import MessageAction-from opendevin.events.event import Event, EventSource-from opendevin.events.observation.commands import (+from openhands.controller.state.state import State+from openhands.core.logger import openhands_logger as logger+from openhands.events.action.action import Action+from openhands.events.action.empty import NullAction+from openhands.events.action.message import MessageAction+from openhands.events.event import Event, EventSource+from openhands.events.observation.commands import (CmdOutputObservation,IPythonRunCellObservation,)-from opendevin.events.observation.empty import NullObservation-from opendevin.events.observation.error import ErrorObservation-from opendevin.events.observation.observation import Observation+from openhands.events.observation.empty import NullObservation+from openhands.events.observation.error import ErrorObservation+from openhands.events.observation.observation import Observationclass StuckDetector:diff --git a/opendevin/core/config.py b/openhands/core/config.pysimilarity index 96%rename from opendevin/core/config.pyrename to openhands/core/config.pyindex d40aa09718..05549b4997 100644--- a/opendevin/core/config.py+++ b/openhands/core/config.py@@ -11,8 +11,8 @@ from typing import Any, ClassVar, MutableMapping, get_args, get_originimport tomlfrom dotenv import load_dotenv-from opendevin.core import logger-from opendevin.core.utils import Singleton+from openhands.core import logger+from openhands.core.utils import Singletonload_dotenv()@@ -45,7 +45,7 @@ class LLMConfig:max_message_chars: The approximate max number of characters in the content of an event included in the prompt to the LLM. Larger observations are truncated.temperature: The temperature for the API.top_p: The top p for the API.- custom_llm_provider: The custom LLM provider to use. This is undocumented in opendevin, and normally not used. It is documented on the litellm side.+ custom_llm_provider: The custom LLM provider to use. This is undocumented in openhands, and normally not used. It is documented on the litellm side.max_input_tokens: The maximum number of input tokens. Note that this is currently unused, and the value at runtime is actually the total tokens in OpenAI (e.g. 128,000 tokens for GPT-4).max_output_tokens: The maximum number of output tokens. This is sent to the LLM.input_cost_per_token: The cost per input token. This will available in logs for the user to check.@@ -203,7 +203,7 @@ class SandboxConfig(metaclass=Singleton):user_id: int = os.getuid() if hasattr(os, 'getuid') else 1000timeout: int = 120enable_auto_lint: bool = (- False # once enabled, OpenDevin would lint files after editing+ False # once enabled, OpenHands would lint files after editing)use_host_network: bool = Falseinitialize_plugins: bool = True@@ -253,7 +253,7 @@ class AppConfig(metaclass=Singleton):workspace_mount_path_in_sandbox: The path to mount the workspace in the sandbox. Defaults to /workspace.workspace_mount_rewrite: The path to rewrite the workspace mount path to.cache_dir: The path to the cache directory. Defaults to /tmp/cache.- run_as_devin: Whether to run as devin.+ run_as_openhands: Whether to run as openhands.max_iterations: The maximum number of iterations.max_budget_per_task: The maximum budget allowed per task, beyond which the agent will stop.e2b_api_key: The E2B API key.@@ -281,7 +281,7 @@ class AppConfig(metaclass=Singleton):workspace_mount_path_in_sandbox: str = '/workspace'workspace_mount_rewrite: str | None = Nonecache_dir: str = '/tmp/cache'- run_as_devin: bool = True+ run_as_openhands: bool = Truemax_iterations: int = _MAX_ITERATIONSmax_budget_per_task: float | None = Nonee2b_api_key: str = ''@@ -300,7 +300,7 @@ class AppConfig(metaclass=Singleton):if name in self.llms:return self.llms[name]if name is not None and name != 'llm':- logger.opendevin_logger.warning(+ logger.openhands_logger.warning(f'llm config group {name} not found, using default config')if 'llm' not in self.llms:@@ -451,7 +451,7 @@ def load_from_env(cfg: AppConfig, env_or_toml_dict: dict | MutableMapping[str, scast_value = field_type(value)setattr(sub_config, field_name, cast_value)except (ValueError, TypeError):- logger.opendevin_logger.error(+ logger.openhands_logger.error(f'Error setting env var {env_var_name}={value}: check that the value is of the right type')@@ -480,7 +480,7 @@ def load_from_toml(cfg: AppConfig, toml_file: str = 'config.toml'):except FileNotFoundError:returnexcept toml.TomlDecodeError as e:- logger.opendevin_logger.warning(+ logger.openhands_logger.warning(f'Cannot parse config from toml, toml values have not been applied.\nError: {e}',exc_info=False,)@@ -499,7 +499,7 @@ def load_from_toml(cfg: AppConfig, toml_file: str = 'config.toml'):if isinstance(value, dict):try:if key is not None and key.lower() == 'agent':- logger.opendevin_logger.info(+ logger.openhands_logger.info('Attempt to load default agent config from config toml')non_dict_fields = {@@ -509,13 +509,13 @@ def load_from_toml(cfg: AppConfig, toml_file: str = 'config.toml'):cfg.set_agent_config(agent_config, 'agent')for nested_key, nested_value in value.items():if isinstance(nested_value, dict):- logger.opendevin_logger.info(+ logger.openhands_logger.info(f'Attempt to load group {nested_key} from config toml as agent config')agent_config = AgentConfig(**nested_value)cfg.set_agent_config(agent_config, nested_key)elif key is not None and key.lower() == 'llm':- logger.opendevin_logger.info(+ logger.openhands_logger.info('Attempt to load default LLM config from config toml')non_dict_fields = {@@ -525,22 +525,22 @@ def load_from_toml(cfg: AppConfig, toml_file: str = 'config.toml'):cfg.set_llm_config(llm_config, 'llm')for nested_key, nested_value in value.items():if isinstance(nested_value, dict):- logger.opendevin_logger.info(+ logger.openhands_logger.info(f'Attempt to load group {nested_key} from config toml as llm config')llm_config = LLMConfig(**nested_value)cfg.set_llm_config(llm_config, nested_key)elif not key.startswith('sandbox') and key.lower() != 'core':- logger.opendevin_logger.warning(+ logger.openhands_logger.warning(f'Unknown key in {toml_file}: "{key}"')except (TypeError, KeyError) as e:- logger.opendevin_logger.warning(+ logger.openhands_logger.warning(f'Cannot parse config from toml, toml values have not been applied.\n Error: {e}',exc_info=False,)else:- logger.opendevin_logger.warning(f'Unknown key in {toml_file}: "{key}')+ logger.openhands_logger.warning(f'Unknown key in {toml_file}: "{key}')try:# set sandbox config from the toml file@@ -554,7 +554,7 @@ def load_from_toml(cfg: AppConfig, toml_file: str = 'config.toml'):# read the key in sandbox and remove it from coresetattr(sandbox_config, new_key, core_config.pop(key))else:- logger.opendevin_logger.warning(f'Unknown sandbox config: {key}')+ logger.openhands_logger.warning(f'Unknown sandbox config: {key}')# the new style values override the old style valuesif 'sandbox' in toml_config:@@ -563,7 +563,7 @@ def load_from_toml(cfg: AppConfig, toml_file: str = 'config.toml'):# update the config object with the new valuesAppConfig(sandbox=sandbox_config, **core_config)except (TypeError, KeyError) as e:- logger.opendevin_logger.warning(+ logger.openhands_logger.warning(f'Cannot parse config from toml, toml values have not been applied.\nError: {e}',exc_info=False,)@@ -587,7 +587,7 @@ def finalize_config(cfg: AppConfig):llm.embedding_base_url = llm.base_urlif cfg.sandbox.use_host_network and platform.system() == 'Darwin':- logger.opendevin_logger.warning(+ logger.openhands_logger.warning('Please upgrade to Docker Desktop 4.29.0 or later to use host network mode on macOS. ''See https://github.com/docker/roadmap/issues/238#issuecomment-2044688144 for more information.')@@ -632,17 +632,17 @@ def get_llm_config_arg(if llm_config_arg.startswith('llm.'):llm_config_arg = llm_config_arg[4:]- logger.opendevin_logger.info(f'Loading llm config from {llm_config_arg}')+ logger.openhands_logger.info(f'Loading llm config from {llm_config_arg}')# load the toml filetry:with open(toml_file, 'r', encoding='utf-8') as toml_contents:toml_config = toml.load(toml_contents)except FileNotFoundError as e:- logger.opendevin_logger.error(f'Config file not found: {e}')+ logger.openhands_logger.error(f'Config file not found: {e}')return Noneexcept toml.TomlDecodeError as e:- logger.opendevin_logger.error(+ logger.openhands_logger.error(f'Cannot parse llm group from {llm_config_arg}. Exception: {e}')return None@@ -650,7 +650,7 @@ def get_llm_config_arg(# update the llm config with the specified sectionif 'llm' in toml_config and llm_config_arg in toml_config['llm']:return LLMConfig(**toml_config['llm'][llm_config_arg])- logger.opendevin_logger.debug(f'Loading from toml failed for {llm_config_arg}')+ logger.openhands_logger.debug(f'Loading from toml failed for {llm_config_arg}')return Nonediff --git a/openhands/core/const/guide_url.py b/openhands/core/const/guide_url.pynew file mode 100644index 0000000000..c401de8bb6--- /dev/null+++ b/openhands/core/const/guide_url.py@@ -0,0 +1 @@+TROUBLESHOOTING_URL = 'https://docs.all-hands.dev/modules/usage/troubleshooting'diff --git a/opendevin/core/download.py b/openhands/core/download.pysimilarity index 100%rename from opendevin/core/download.pyrename to openhands/core/download.pydiff --git a/opendevin/core/exceptions.py b/openhands/core/exceptions.pysimilarity index 100%rename from opendevin/core/exceptions.pyrename to openhands/core/exceptions.pydiff --git a/opendevin/core/logger.py b/openhands/core/logger.pysimilarity index 91%rename from opendevin/core/logger.pyrename to openhands/core/logger.pyindex c054d41b26..6c7f1f1be2 100644--- a/opendevin/core/logger.py+++ b/openhands/core/logger.py@@ -127,7 +127,7 @@ def get_file_handler(log_dir):"""Returns a file handler for logging."""os.makedirs(log_dir, exist_ok=True)timestamp = datetime.now().strftime('%Y-%m-%d')- file_name = f'opendevin_{timestamp}.log'+ file_name = f'openhands_{timestamp}.log'file_handler = logging.FileHandler(os.path.join(log_dir, file_name))if DEBUG:file_handler.setLevel(logging.DEBUG)@@ -156,26 +156,26 @@ def log_uncaught_exceptions(ex_cls, ex, tb):sys.excepthook = log_uncaught_exceptions-opendevin_logger = logging.getLogger('opendevin')-opendevin_logger.setLevel(logging.INFO)+openhands_logger = logging.getLogger('openhands')+openhands_logger.setLevel(logging.INFO)LOG_DIR = os.path.join(- # parent dir of opendevin/core (i.e., root of the repo)+ # parent dir of openhands/core (i.e., root of the repo)os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))),'logs',)if DEBUG:- opendevin_logger.setLevel(logging.DEBUG)+ openhands_logger.setLevel(logging.DEBUG)if LOG_TO_FILE:# default log to project root- opendevin_logger.info('Logging to file is enabled. Logging to %s', LOG_DIR)- opendevin_logger.addHandler(get_file_handler(LOG_DIR))+ openhands_logger.info('Logging to file is enabled. Logging to %s', LOG_DIR)+ openhands_logger.addHandler(get_file_handler(LOG_DIR))-opendevin_logger.addHandler(get_console_handler())-opendevin_logger.addFilter(SensitiveDataFilter(opendevin_logger.name))-opendevin_logger.propagate = False-opendevin_logger.debug('Logging initialized')+openhands_logger.addHandler(get_console_handler())+openhands_logger.addFilter(SensitiveDataFilter(openhands_logger.name))+openhands_logger.propagate = False+openhands_logger.debug('Logging initialized')# Exclude LiteLLM from logging output@@ -211,7 +211,7 @@ class LlmFileHandler(logging.FileHandler):try:os.unlink(file_path)except Exception as e:- opendevin_logger.error(+ openhands_logger.error('Failed to delete %s. Reason: %s', file_path, e)filename = f'{self.filename}_{self.message_counter:03}.log'@@ -229,7 +229,7 @@ class LlmFileHandler(logging.FileHandler):self.stream = self._open()super().emit(record)self.stream.close()- opendevin_logger.debug('Logging to %s', self.baseFilename)+ openhands_logger.debug('Logging to %s', self.baseFilename)self.message_counter += 1diff --git a/opendevin/core/main.py b/openhands/core/main.pysimilarity index 91%rename from opendevin/core/main.pyrename to openhands/core/main.pyindex 5ce78f85f3..d85ff4b4d0 100644--- a/opendevin/core/main.py+++ b/openhands/core/main.py@@ -5,26 +5,26 @@ import uuidfrom typing import Callable, Protocol, Typeimport agenthub # noqa F401 (we import this to get the agents registered)-from opendevin.controller import AgentController-from opendevin.controller.agent import Agent-from opendevin.controller.state.state import State-from opendevin.core.config import (+from openhands.controller import AgentController+from openhands.controller.agent import Agent+from openhands.controller.state.state import State+from openhands.core.config import (AppConfig,get_llm_config_arg,load_app_config,parse_arguments,)-from opendevin.core.logger import opendevin_logger as logger-from opendevin.core.schema import AgentState-from opendevin.events import EventSource, EventStream, EventStreamSubscriber-from opendevin.events.action import MessageAction-from opendevin.events.action.action import Action-from opendevin.events.event import Event-from opendevin.events.observation import AgentStateChangedObservation-from opendevin.llm.llm import LLM-from opendevin.runtime import get_runtime_cls-from opendevin.runtime.runtime import Runtime-from opendevin.storage import get_file_store+from openhands.core.logger import openhands_logger as logger+from openhands.core.schema import AgentState+from openhands.events import EventSource, EventStream, EventStreamSubscriber+from openhands.events.action import MessageAction+from openhands.events.action.action import Action+from openhands.events.event import Event+from openhands.events.observation import AgentStateChangedObservation+from openhands.llm.llm import LLM+from openhands.runtime import get_runtime_cls+from openhands.runtime.runtime import Runtime+from openhands.storage import get_file_storeclass FakeUserResponseFunc(Protocol):@@ -95,7 +95,7 @@ async def run_controller(headless_mode: bool = True,) -> State | None:"""Main coroutine to run the agent controller with task input flexibility.- It's only used when you launch opendevin backend directly via cmdline.+ It's only used when you launch openhands backend directly via cmdline.Args:config: The app config.diff --git a/opendevin/core/message.py b/openhands/core/message.pysimilarity index 100%rename from opendevin/core/message.pyrename to openhands/core/message.pydiff --git a/opendevin/core/metrics.py b/openhands/core/metrics.pysimilarity index 100%rename from opendevin/core/metrics.pyrename to openhands/core/metrics.pydiff --git a/opendevin/core/schema/__init__.py b/openhands/core/schema/__init__.pysimilarity index 100%rename from opendevin/core/schema/__init__.pyrename to openhands/core/schema/__init__.pydiff --git a/opendevin/core/schema/action.py b/openhands/core/schema/action.pysimilarity index 100%rename from opendevin/core/schema/action.pyrename to openhands/core/schema/action.pydiff --git a/opendevin/core/schema/agent.py b/openhands/core/schema/agent.pysimilarity index 100%rename from opendevin/core/schema/agent.pyrename to openhands/core/schema/agent.pydiff --git a/opendevin/core/schema/config.py b/openhands/core/schema/config.pysimilarity index 97%rename from opendevin/core/schema/config.pyrename to openhands/core/schema/config.pyindex 2cb42bcb76..b1b19f4b23 100644--- a/opendevin/core/schema/config.py+++ b/openhands/core/schema/config.py@@ -23,7 +23,7 @@ class ConfigType(str, Enum):LLM_MODEL = 'LLM_MODEL'CONFIRMATION_MODE = 'CONFIRMATION_MODE'SANDBOX_CONTAINER_IMAGE = 'SANDBOX_CONTAINER_IMAGE'- RUN_AS_DEVIN = 'RUN_AS_DEVIN'+ RUN_AS_OPENHANDS = 'RUN_AS_OPENHANDS'LLM_EMBEDDING_MODEL = 'LLM_EMBEDDING_MODEL'LLM_EMBEDDING_BASE_URL = 'LLM_EMBEDDING_BASE_URL'LLM_EMBEDDING_DEPLOYMENT_NAME = 'LLM_EMBEDDING_DEPLOYMENT_NAME'diff --git a/opendevin/core/schema/observation.py b/openhands/core/schema/observation.pysimilarity index 100%rename from opendevin/core/schema/observation.pyrename to openhands/core/schema/observation.pydiff --git a/opendevin/core/utils/__init__.py b/openhands/core/utils/__init__.pysimilarity index 100%rename from opendevin/core/utils/__init__.pyrename to openhands/core/utils/__init__.pydiff --git a/opendevin/core/utils/json.py b/openhands/core/utils/json.pysimilarity index 90%rename from opendevin/core/utils/json.pyrename to openhands/core/utils/json.pyindex c90ea543f0..cec1fe8163 100644--- a/opendevin/core/utils/json.py+++ b/openhands/core/utils/json.py@@ -3,9 +3,9 @@ from datetime import datetimefrom json_repair import repair_json-from opendevin.core.exceptions import LLMResponseError-from opendevin.events.event import Event-from opendevin.events.serialization import event_to_dict+from openhands.core.exceptions import LLMResponseError+from openhands.events.event import Event+from openhands.events.serialization import event_to_dictdef my_default_encoder(obj):diff --git a/opendevin/core/utils/singleton.py b/openhands/core/utils/singleton.pysimilarity index 88%rename from opendevin/core/utils/singleton.pyrename to openhands/core/utils/singleton.pyindex 7cf25ad62f..dcaaf6583c 100644--- a/opendevin/core/utils/singleton.py+++ b/openhands/core/utils/singleton.py@@ -1,5 +1,7 @@import dataclasses-from opendevin.core import logger++from openhands.core import logger+class Singleton(type):_instances: dict = {}@@ -16,7 +18,9 @@ class Singleton(type):if hasattr(instance, key):setattr(instance, key, value)else:- logger.opendevin_logger.warning(f'Unknown key for {cls.__name__}: "{key}"')+ logger.openhands_logger.warning(+ f'Unknown key for {cls.__name__}: "{key}"'+ )return cls._instances[cls]@classmethoddiff --git a/opendevin/events/__init__.py b/openhands/events/__init__.pysimilarity index 100%rename from opendevin/events/__init__.pyrename to openhands/events/__init__.pydiff --git a/opendevin/events/action/__init__.py b/openhands/events/action/__init__.pysimilarity index 100%rename from opendevin/events/action/__init__.pyrename to openhands/events/action/__init__.pydiff --git a/opendevin/events/action/action.py b/openhands/events/action/action.pysimilarity index 81%rename from opendevin/events/action/action.pyrename to openhands/events/action/action.pyindex 2a2b261c01..0605af7ed5 100644--- a/opendevin/events/action/action.py+++ b/openhands/events/action/action.py@@ -2,19 +2,22 @@ from dataclasses import dataclassfrom enum import Enumfrom typing import ClassVar-from opendevin.events.event import Event+from openhands.events.event import Event+class ActionConfirmationStatus(str, Enum):CONFIRMED = 'confirmed'REJECTED = 'rejected'AWAITING_CONFIRMATION = 'awaiting_confirmation'+class ActionSecurityRisk(int, Enum):UNKNOWN = -1LOW = 0MEDIUM = 1HIGH = 2+@dataclassclass Action(Event):- runnable: ClassVar[bool] = False\ No newline at end of file+ runnable: ClassVar[bool] = Falsediff --git a/opendevin/events/action/agent.py b/openhands/events/action/agent.pysimilarity index 97%rename from opendevin/events/action/agent.pyrename to openhands/events/action/agent.pyindex d57e02b038..e4b57dc5e9 100644--- a/opendevin/events/action/agent.py+++ b/openhands/events/action/agent.py@@ -1,7 +1,7 @@from dataclasses import dataclass, fieldfrom typing import Any-from opendevin.core.schema import ActionType+from openhands.core.schema import ActionTypefrom .action import Actiondiff --git a/opendevin/events/action/browse.py b/openhands/events/action/browse.pysimilarity index 96%rename from opendevin/events/action/browse.pyrename to openhands/events/action/browse.pyindex 943cf7fd08..f3e949c021 100644--- a/opendevin/events/action/browse.py+++ b/openhands/events/action/browse.py@@ -1,7 +1,7 @@from dataclasses import dataclassfrom typing import ClassVar-from opendevin.core.schema import ActionType+from openhands.core.schema import ActionTypefrom .action import Action, ActionSecurityRiskdiff --git a/opendevin/events/action/commands.py b/openhands/events/action/commands.pysimilarity index 97%rename from opendevin/events/action/commands.pyrename to openhands/events/action/commands.pyindex 21f06b339e..848aae23c2 100644--- a/opendevin/events/action/commands.py+++ b/openhands/events/action/commands.py@@ -1,7 +1,7 @@from dataclasses import dataclassfrom typing import ClassVar-from opendevin.core.schema import ActionType+from openhands.core.schema import ActionTypefrom .action import Action, ActionConfirmationStatus, ActionSecurityRisk@@ -54,4 +54,4 @@ class IPythonRunCellAction(Action):@propertydef message(self) -> str:- return f'Running Python code interactively: {self.code}'\ No newline at end of file+ return f'Running Python code interactively: {self.code}'diff --git a/opendevin/events/action/empty.py b/openhands/events/action/empty.pysimilarity index 84%rename from opendevin/events/action/empty.pyrename to openhands/events/action/empty.pyindex 9d50e24db9..1cb885ce05 100644--- a/opendevin/events/action/empty.py+++ b/openhands/events/action/empty.py@@ -1,6 +1,6 @@from dataclasses import dataclass-from opendevin.core.schema import ActionType+from openhands.core.schema import ActionTypefrom .action import Actiondiff --git a/opendevin/events/action/files.py b/openhands/events/action/files.pysimilarity index 95%rename from opendevin/events/action/files.pyrename to openhands/events/action/files.pyindex d50081f588..dd1bf277cc 100644--- a/opendevin/events/action/files.py+++ b/openhands/events/action/files.py@@ -1,7 +1,7 @@from dataclasses import dataclassfrom typing import ClassVar-from opendevin.core.schema import ActionType+from openhands.core.schema import ActionTypefrom .action import Action, ActionSecurityRiskdiff --git a/opendevin/events/action/message.py b/openhands/events/action/message.pysimilarity index 93%rename from opendevin/events/action/message.pyrename to openhands/events/action/message.pyindex b9d1a55165..d0586330ea 100644--- a/opendevin/events/action/message.py+++ b/openhands/events/action/message.py@@ -1,9 +1,10 @@from dataclasses import dataclass-from opendevin.core.schema import ActionType+from openhands.core.schema import ActionTypefrom .action import Action, ActionSecurityRisk+@dataclassclass MessageAction(Action):content: strdiff --git a/opendevin/events/action/tasks.py b/openhands/events/action/tasks.pysimilarity index 92%rename from opendevin/events/action/tasks.pyrename to openhands/events/action/tasks.pyindex d6c3137f6d..95df784d35 100644--- a/opendevin/events/action/tasks.py+++ b/openhands/events/action/tasks.py@@ -1,6 +1,6 @@from dataclasses import dataclass, field-from opendevin.core.schema import ActionType+from openhands.core.schema import ActionTypefrom .action import Actiondiff --git a/opendevin/events/event.py b/openhands/events/event.pysimilarity index 100%rename from opendevin/events/event.pyrename to openhands/events/event.pydiff --git a/opendevin/events/observation/__init__.py b/openhands/events/observation/__init__.pysimilarity index 100%rename from opendevin/events/observation/__init__.pyrename to openhands/events/observation/__init__.pydiff --git a/opendevin/events/observation/agent.py b/openhands/events/observation/agent.pysimilarity index 87%rename from opendevin/events/observation/agent.pyrename to openhands/events/observation/agent.pyindex 43ea0184b2..f18010e8da 100644--- a/opendevin/events/observation/agent.py+++ b/openhands/events/observation/agent.py@@ -1,6 +1,6 @@from dataclasses import dataclass-from opendevin.core.schema import ObservationType+from openhands.core.schema import ObservationTypefrom .observation import Observationdiff --git a/opendevin/events/observation/browse.py b/openhands/events/observation/browse.pysimilarity index 96%rename from opendevin/events/observation/browse.pyrename to openhands/events/observation/browse.pyindex 901b9ffb75..f110f382a9 100644--- a/opendevin/events/observation/browse.py+++ b/openhands/events/observation/browse.py@@ -1,6 +1,6 @@from dataclasses import dataclass, field-from opendevin.core.schema import ObservationType+from openhands.core.schema import ObservationTypefrom .observation import Observationdiff --git a/opendevin/events/observation/commands.py b/openhands/events/observation/commands.pysimilarity index 95%rename from opendevin/events/observation/commands.pyrename to openhands/events/observation/commands.pyindex cc019e6135..1ca7d09451 100644--- a/opendevin/events/observation/commands.py+++ b/openhands/events/observation/commands.py@@ -1,6 +1,6 @@from dataclasses import dataclass-from opendevin.core.schema import ObservationType+from openhands.core.schema import ObservationTypefrom .observation import Observationdiff --git a/opendevin/events/observation/delegate.py b/openhands/events/observation/delegate.pysimilarity index 91%rename from opendevin/events/observation/delegate.pyrename to openhands/events/observation/delegate.pyindex c50a0a37da..d5c68278fd 100644--- a/opendevin/events/observation/delegate.py+++ b/openhands/events/observation/delegate.py@@ -1,6 +1,6 @@from dataclasses import dataclass-from opendevin.core.schema import ObservationType+from openhands.core.schema import ObservationTypefrom .observation import Observationdiff --git a/opendevin/events/observation/empty.py b/openhands/events/observation/empty.pysimilarity index 88%rename from opendevin/events/observation/empty.pyrename to openhands/events/observation/empty.pyindex 5558625f8a..3dcfe3ead9 100644--- a/opendevin/events/observation/empty.py+++ b/openhands/events/observation/empty.py@@ -1,6 +1,6 @@from dataclasses import dataclass-from opendevin.core.schema import ObservationType+from openhands.core.schema import ObservationTypefrom .observation import Observationdiff --git a/opendevin/events/observation/error.py b/openhands/events/observation/error.pysimilarity index 86%rename from opendevin/events/observation/error.pyrename to openhands/events/observation/error.pyindex dcd0cc9970..348b898be0 100644--- a/opendevin/events/observation/error.py+++ b/openhands/events/observation/error.py@@ -1,6 +1,6 @@from dataclasses import dataclass-from opendevin.core.schema import ObservationType+from openhands.core.schema import ObservationTypefrom .observation import Observationdiff --git a/opendevin/events/observation/files.py b/openhands/events/observation/files.pysimilarity index 92%rename from opendevin/events/observation/files.pyrename to openhands/events/observation/files.pyindex 4a2b70e32e..a1fc178f7a 100644--- a/opendevin/events/observation/files.py+++ b/openhands/events/observation/files.py@@ -1,6 +1,6 @@from dataclasses import dataclass-from opendevin.core.schema import ObservationType+from openhands.core.schema import ObservationTypefrom .observation import Observationdiff --git a/opendevin/events/observation/observation.py b/openhands/events/observation/observation.pysimilarity index 68%rename from opendevin/events/observation/observation.pyrename to openhands/events/observation/observation.pyindex 76da5ed196..46f8a0e712 100644--- a/opendevin/events/observation/observation.py+++ b/openhands/events/observation/observation.py@@ -1,6 +1,6 @@from dataclasses import dataclass-from opendevin.events.event import Event+from openhands.events.event import Event@dataclassdiff --git a/opendevin/events/observation/reject.py b/openhands/events/observation/reject.pysimilarity index 86%rename from opendevin/events/observation/reject.pyrename to openhands/events/observation/reject.pyindex 2bb34ba48f..2d97f853ef 100644--- a/opendevin/events/observation/reject.py+++ b/openhands/events/observation/reject.py@@ -1,6 +1,6 @@from dataclasses import dataclass-from opendevin.core.schema import ObservationType+from openhands.core.schema import ObservationTypefrom .observation import Observationdiff --git a/opendevin/events/observation/success.py b/openhands/events/observation/success.pysimilarity index 86%rename from opendevin/events/observation/success.pyrename to openhands/events/observation/success.pyindex 40f4f4c7d6..269fe2345b 100644--- a/opendevin/events/observation/success.py+++ b/openhands/events/observation/success.py@@ -1,6 +1,6 @@from dataclasses import dataclass-from opendevin.core.schema import ObservationType+from openhands.core.schema import ObservationTypefrom .observation import Observationdiff --git a/opendevin/events/serialization/__init__.py b/openhands/events/serialization/__init__.pysimilarity index 100%rename from opendevin/events/serialization/__init__.pyrename to openhands/events/serialization/__init__.pydiff --git a/opendevin/events/serialization/action.py b/openhands/events/serialization/action.pysimilarity index 76%rename from opendevin/events/serialization/action.pyrename to openhands/events/serialization/action.pyindex 2465f0b5d6..05638526fb 100644--- a/opendevin/events/serialization/action.py+++ b/openhands/events/serialization/action.py@@ -1,20 +1,20 @@-from opendevin.core.exceptions import LLMMalformedActionError-from opendevin.events.action.action import Action-from opendevin.events.action.agent import (+from openhands.core.exceptions import LLMMalformedActionError+from openhands.events.action.action import Action+from openhands.events.action.agent import (AgentDelegateAction,AgentFinishAction,AgentRejectAction,ChangeAgentStateAction,)-from opendevin.events.action.browse import BrowseInteractiveAction, BrowseURLAction-from opendevin.events.action.commands import (+from openhands.events.action.browse import BrowseInteractiveAction, BrowseURLAction+from openhands.events.action.commands import (CmdRunAction,IPythonRunCellAction,)-from opendevin.events.action.empty import NullAction-from opendevin.events.action.files import FileReadAction, FileWriteAction-from opendevin.events.action.message import MessageAction-from opendevin.events.action.tasks import AddTaskAction, ModifyTaskAction+from openhands.events.action.empty import NullAction+from openhands.events.action.files import FileReadAction, FileWriteAction+from openhands.events.action.message import MessageAction+from openhands.events.action.tasks import AddTaskAction, ModifyTaskActionactions = (NullAction,diff --git a/opendevin/events/serialization/event.py b/openhands/events/serialization/event.pysimilarity index 96%rename from opendevin/events/serialization/event.pyrename to openhands/events/serialization/event.pyindex 652e307089..9645c90df3 100644--- a/opendevin/events/serialization/event.py+++ b/openhands/events/serialization/event.py@@ -1,8 +1,8 @@from dataclasses import asdictfrom datetime import datetime-from opendevin.events import Event, EventSource-from opendevin.events.observation.observation import Observation+from openhands.events import Event, EventSource+from openhands.events.observation.observation import Observationfrom .action import action_from_dictfrom .observation import observation_from_dictdiff --git a/opendevin/events/serialization/observation.py b/openhands/events/serialization/observation.pysimilarity index 67%rename from opendevin/events/serialization/observation.pyrename to openhands/events/serialization/observation.pyindex 37183e9a21..1ffbc645a2 100644--- a/opendevin/events/serialization/observation.py+++ b/openhands/events/serialization/observation.py@@ -1,16 +1,16 @@-from opendevin.events.observation.agent import AgentStateChangedObservation-from opendevin.events.observation.browse import BrowserOutputObservation-from opendevin.events.observation.commands import (+from openhands.events.observation.agent import AgentStateChangedObservation+from openhands.events.observation.browse import BrowserOutputObservation+from openhands.events.observation.commands import (CmdOutputObservation,IPythonRunCellObservation,)-from opendevin.events.observation.delegate import AgentDelegateObservation-from opendevin.events.observation.empty import NullObservation-from opendevin.events.observation.error import ErrorObservation-from opendevin.events.observation.files import FileReadObservation, FileWriteObservation-from opendevin.events.observation.observation import Observation-from opendevin.events.observation.reject import UserRejectObservation-from opendevin.events.observation.success import SuccessObservation+from openhands.events.observation.delegate import AgentDelegateObservation+from openhands.events.observation.empty import NullObservation+from openhands.events.observation.error import ErrorObservation+from openhands.events.observation.files import FileReadObservation, FileWriteObservation+from openhands.events.observation.observation import Observation+from openhands.events.observation.reject import UserRejectObservation+from openhands.events.observation.success import SuccessObservationobservations = (NullObservation,diff --git a/opendevin/events/serialization/utils.py b/openhands/events/serialization/utils.pysimilarity index 100%rename from opendevin/events/serialization/utils.pyrename to openhands/events/serialization/utils.pydiff --git a/opendevin/events/stream.py b/openhands/events/stream.pysimilarity index 96%rename from opendevin/events/stream.pyrename to openhands/events/stream.pyindex 62a9e919fa..c04de94b03 100644--- a/opendevin/events/stream.py+++ b/openhands/events/stream.py@@ -4,10 +4,10 @@ from datetime import datetimefrom enum import Enumfrom typing import Callable, Iterable-from opendevin.core.logger import opendevin_logger as logger-from opendevin.core.utils import json-from opendevin.events.serialization.event import event_from_dict, event_to_dict-from opendevin.storage import FileStore+from openhands.core.logger import openhands_logger as logger+from openhands.core.utils import json+from openhands.events.serialization.event import event_from_dict, event_to_dict+from openhands.storage import FileStorefrom .event import Event, EventSourcediff --git a/opendevin/llm/bedrock.py b/openhands/llm/bedrock.pysimilarity index 94%rename from opendevin/llm/bedrock.pyrename to openhands/llm/bedrock.pyindex 7e276c52b4..2f32b2d79e 100644--- a/opendevin/llm/bedrock.py+++ b/openhands/llm/bedrock.py@@ -1,6 +1,6 @@import boto3-from opendevin.core.logger import opendevin_logger as logger+from openhands.core.logger import openhands_logger as loggerdef list_foundation_models(diff --git a/opendevin/llm/llm.py b/openhands/llm/llm.pysimilarity index 98%rename from opendevin/llm/llm.pyrename to openhands/llm/llm.pyindex 8413a70d23..b42c27caf1 100644--- a/opendevin/llm/llm.py+++ b/openhands/llm/llm.py@@ -3,7 +3,7 @@ import copyimport warningsfrom functools import partial-from opendevin.core.config import LLMConfig+from openhands.core.config import LLMConfigwith warnings.catch_warnings():warnings.simplefilter('ignore')@@ -26,10 +26,10 @@ from tenacity import (wait_random_exponential,)-from opendevin.core.exceptions import UserCancelledError-from opendevin.core.logger import llm_prompt_logger, llm_response_logger-from opendevin.core.logger import opendevin_logger as logger-from opendevin.core.metrics import Metrics+from openhands.core.exceptions import UserCancelledError+from openhands.core.logger import llm_prompt_logger, llm_response_logger+from openhands.core.logger import openhands_logger as logger+from openhands.core.metrics import Metrics__all__ = ['LLM']diff --git a/opendevin/memory/README.md b/openhands/memory/README.mdsimilarity index 100%rename from opendevin/memory/README.mdrename to openhands/memory/README.mddiff --git a/opendevin/memory/__init__.py b/openhands/memory/__init__.pysimilarity index 100%rename from opendevin/memory/__init__.pyrename to openhands/memory/__init__.pydiff --git a/opendevin/memory/condenser.py b/openhands/memory/condenser.pysimilarity index 89%rename from opendevin/memory/condenser.pyrename to openhands/memory/condenser.pyindex e0cef4ac38..bd48d18430 100644--- a/opendevin/memory/condenser.py+++ b/openhands/memory/condenser.py@@ -1,5 +1,5 @@-from opendevin.core.logger import opendevin_logger as logger-from opendevin.llm.llm import LLM+from openhands.core.logger import openhands_logger as logger+from openhands.llm.llm import LLMclass MemoryCondenser:diff --git a/opendevin/memory/history.py b/openhands/memory/history.pysimilarity index 92%rename from opendevin/memory/history.pyrename to openhands/memory/history.pyindex cbe186f387..7b0bc3a7da 100644--- a/opendevin/memory/history.py+++ b/openhands/memory/history.py@@ -1,21 +1,21 @@from typing import ClassVar, Iterable-from opendevin.core.logger import opendevin_logger as logger-from opendevin.events.action.action import Action-from opendevin.events.action.agent import (+from openhands.core.logger import openhands_logger as logger+from openhands.events.action.action import Action+from openhands.events.action.agent import (AgentDelegateAction,ChangeAgentStateAction,)-from opendevin.events.action.empty import NullAction-from opendevin.events.action.message import MessageAction-from opendevin.events.event import Event, EventSource-from opendevin.events.observation.agent import AgentStateChangedObservation-from opendevin.events.observation.commands import CmdOutputObservation-from opendevin.events.observation.delegate import AgentDelegateObservation-from opendevin.events.observation.empty import NullObservation-from opendevin.events.observation.observation import Observation-from opendevin.events.serialization.event import event_to_dict-from opendevin.events.stream import EventStream+from openhands.events.action.empty import NullAction+from openhands.events.action.message import MessageAction+from openhands.events.event import Event, EventSource+from openhands.events.observation.agent import AgentStateChangedObservation+from openhands.events.observation.commands import CmdOutputObservation+from openhands.events.observation.delegate import AgentDelegateObservation+from openhands.events.observation.empty import NullObservation+from openhands.events.observation.observation import Observation+from openhands.events.serialization.event import event_to_dict+from openhands.events.stream import EventStreamclass ShortTermHistory(list[Event]):diff --git a/opendevin/memory/memory.py b/openhands/memory/memory.pysimilarity index 97%rename from opendevin/memory/memory.pyrename to openhands/memory/memory.pyindex f000060cc0..67806fefc7 100644--- a/opendevin/memory/memory.py+++ b/openhands/memory/memory.py@@ -8,9 +8,9 @@ from tenacity import (wait_random_exponential,)-from opendevin.core.config import LLMConfig-from opendevin.core.logger import opendevin_logger as logger-from opendevin.core.utils import json+from openhands.core.config import LLMConfig+from openhands.core.logger import openhands_logger as logger+from openhands.core.utils import jsontry:import chromadbdiff --git a/opendevin/runtime/__init__.py b/openhands/runtime/__init__.pysimilarity index 100%rename from opendevin/runtime/__init__.pyrename to openhands/runtime/__init__.pydiff --git a/opendevin/runtime/browser/__init__.py b/openhands/runtime/browser/__init__.pysimilarity index 100%rename from opendevin/runtime/browser/__init__.pyrename to openhands/runtime/browser/__init__.pydiff --git a/opendevin/runtime/browser/browser_env.py b/openhands/runtime/browser/browser_env.pysimilarity index 98%rename from opendevin/runtime/browser/browser_env.pyrename to openhands/runtime/browser/browser_env.pyindex 7d060580bd..41efb9bb29 100644--- a/opendevin/runtime/browser/browser_env.py+++ b/openhands/runtime/browser/browser_env.py@@ -14,8 +14,8 @@ import tenacityfrom browsergym.utils.obs import flatten_dom_to_strfrom PIL import Image-from opendevin.core.exceptions import BrowserInitException-from opendevin.core.logger import opendevin_logger as logger+from openhands.core.exceptions import BrowserInitException+from openhands.core.logger import openhands_logger as loggerBROWSER_EVAL_GET_GOAL_ACTION = 'GET_EVAL_GOAL'BROWSER_EVAL_GET_REWARDS_ACTION = 'GET_EVAL_REWARDS'diff --git a/opendevin/runtime/browser/utils.py b/openhands/runtime/browser/utils.pysimilarity index 89%rename from opendevin/runtime/browser/utils.pyrename to openhands/runtime/browser/utils.pyindex b456874da0..336b3801e3 100644--- a/opendevin/runtime/browser/utils.py+++ b/openhands/runtime/browser/utils.py@@ -1,10 +1,10 @@import os-from opendevin.core.exceptions import BrowserUnavailableException-from opendevin.core.schema import ActionType-from opendevin.events.action import BrowseInteractiveAction, BrowseURLAction-from opendevin.events.observation import BrowserOutputObservation-from opendevin.runtime.browser.browser_env import BrowserEnv+from openhands.core.exceptions import BrowserUnavailableException+from openhands.core.schema import ActionType+from openhands.events.action import BrowseInteractiveAction, BrowseURLAction+from openhands.events.observation import BrowserOutputObservation+from openhands.runtime.browser.browser_env import BrowserEnvasync def browse(diff --git a/opendevin/runtime/builder/__init__.py b/openhands/runtime/builder/__init__.pysimilarity index 100%rename from opendevin/runtime/builder/__init__.pyrename to openhands/runtime/builder/__init__.pydiff --git a/opendevin/runtime/builder/base.py b/openhands/runtime/builder/base.pysimilarity index 100%rename from opendevin/runtime/builder/base.pyrename to openhands/runtime/builder/base.pydiff --git a/opendevin/runtime/builder/docker.py b/openhands/runtime/builder/docker.pysimilarity index 97%rename from opendevin/runtime/builder/docker.pyrename to openhands/runtime/builder/docker.pyindex c16af0d846..952df244d8 100644--- a/opendevin/runtime/builder/docker.py+++ b/openhands/runtime/builder/docker.py@@ -1,6 +1,6 @@import docker-from opendevin.core.logger import opendevin_logger as logger+from openhands.core.logger import openhands_logger as loggerfrom .base import RuntimeBuilderdiff --git a/opendevin/runtime/client/client.py b/openhands/runtime/client/client.pysimilarity index 96%rename from opendevin/runtime/client/client.pyrename to openhands/runtime/client/client.pyindex 0af103f4a3..ff25e0d4af 100644--- a/opendevin/runtime/client/client.py+++ b/openhands/runtime/client/client.py@@ -1,6 +1,6 @@"""This is the main file for the runtime client.-It is responsible for executing actions received from OpenDevin backend and producing observations.+It is responsible for executing actions received from OpenHands backend and producing observations.NOTE: this will be executed inside the docker sandbox."""@@ -22,8 +22,8 @@ from pathspec.patterns import GitWildMatchPatternfrom pydantic import BaseModelfrom uvicorn import run-from opendevin.core.logger import opendevin_logger as logger-from opendevin.events.action import (+from openhands.core.logger import openhands_logger as logger+from openhands.events.action import (Action,BrowseInteractiveAction,BrowseURLAction,@@ -32,7 +32,7 @@ from opendevin.events.action import (FileWriteAction,IPythonRunCellAction,)-from opendevin.events.observation import (+from openhands.events.observation import (CmdOutputObservation,ErrorObservation,FileReadObservation,@@ -40,16 +40,16 @@ from opendevin.events.observation import (IPythonRunCellObservation,Observation,)-from opendevin.events.serialization import event_from_dict, event_to_dict-from opendevin.runtime.browser import browse-from opendevin.runtime.browser.browser_env import BrowserEnv-from opendevin.runtime.plugins import (+from openhands.events.serialization import event_from_dict, event_to_dict+from openhands.runtime.browser import browse+from openhands.runtime.browser.browser_env import BrowserEnv+from openhands.runtime.plugins import (ALL_PLUGINS,JupyterPlugin,Plugin,)-from opendevin.runtime.utils import split_bash_commands-from opendevin.runtime.utils.files import insert_lines, read_lines+from openhands.runtime.utils import split_bash_commands+from openhands.runtime.utils.files import insert_lines, read_linesclass ActionRequest(BaseModel):@@ -58,15 +58,15 @@ class ActionRequest(BaseModel):ROOT_GID = 0INIT_COMMANDS = [- 'git config --global user.name "opendevin"',- 'git config --global user.email "[email protected]"',+ 'git config --global user.name "openhands"',+ 'git config --global user.email "[email protected]"',"alias git='git --no-pager'",]class RuntimeClient:"""RuntimeClient is running inside docker sandbox.- It is responsible for executing actions received from OpenDevin backend and producing observations.+ It is responsible for executing actions received from OpenHands backend and producing observations."""def __init__(@@ -110,7 +110,7 @@ class RuntimeClient:if 'agent_skills' in self.plugins and 'jupyter' in self.plugins:obs = await self.run_ipython(IPythonRunCellAction(- code='from opendevin.runtime.plugins.agent_skills.agentskills import *\n'+ code='from openhands.runtime.plugins.agent_skills.agentskills import *\n'))logger.info(f'AgentSkills initialized: {obs}')@@ -440,7 +440,7 @@ if __name__ == '__main__':parser.add_argument('--working-dir', type=str, help='Working directory')parser.add_argument('--plugins', type=str, help='Plugins to initialize', nargs='+')parser.add_argument(- '--username', type=str, help='User to run as', default='opendevin'+ '--username', type=str, help='User to run as', default='openhands')parser.add_argument('--user-id', type=int, help='User ID to run as', default=1000)parser.add_argument(diff --git a/opendevin/runtime/client/runtime.py b/openhands/runtime/client/runtime.pysimilarity index 93%rename from opendevin/runtime/client/runtime.pyrename to openhands/runtime/client/runtime.pyindex fbcfb60aef..6f56755019 100644--- a/opendevin/runtime/client/runtime.py+++ b/openhands/runtime/client/runtime.py@@ -8,10 +8,10 @@ import aiohttpimport dockerimport tenacity-from opendevin.core.config import AppConfig-from opendevin.core.logger import opendevin_logger as logger-from opendevin.events import EventStream-from opendevin.events.action import (+from openhands.core.config import AppConfig+from openhands.core.logger import openhands_logger as logger+from openhands.events import EventStream+from openhands.events.action import (BrowseInteractiveAction,BrowseURLAction,CmdRunAction,@@ -19,19 +19,19 @@ from opendevin.events.action import (FileWriteAction,IPythonRunCellAction,)-from opendevin.events.action.action import Action-from opendevin.events.observation import (+from openhands.events.action.action import Action+from openhands.events.observation import (ErrorObservation,NullObservation,Observation,)-from opendevin.events.serialization import event_to_dict, observation_from_dict-from opendevin.events.serialization.action import ACTION_TYPE_TO_CLASS-from opendevin.runtime.builder import DockerRuntimeBuilder-from opendevin.runtime.plugins import PluginRequirement-from opendevin.runtime.runtime import Runtime-from opendevin.runtime.utils import find_available_tcp_port-from opendevin.runtime.utils.runtime_build import build_runtime_image+from openhands.events.serialization import event_to_dict, observation_from_dict+from openhands.events.serialization.action import ACTION_TYPE_TO_CLASS+from openhands.runtime.builder import DockerRuntimeBuilder+from openhands.runtime.plugins import PluginRequirement+from openhands.runtime.runtime import Runtime+from openhands.runtime.utils import find_available_tcp_port+from openhands.runtime.utils.runtime_build import build_runtime_imageclass EventStreamRuntime(Runtime):@@ -39,7 +39,7 @@ class EventStreamRuntime(Runtime):When receive an event, it will send the event to od-runtime-client which run inside the docker environment."""- container_name_prefix = 'opendevin-sandbox-'+ container_name_prefix = 'openhands-sandbox-'def __init__(self,@@ -157,18 +157,18 @@ class EventStreamRuntime(Runtime):container = self.docker_client.containers.run(self.container_image,command=(- f'/opendevin/miniforge3/bin/mamba run --no-capture-output -n base '+ f'/openhands/miniforge3/bin/mamba run --no-capture-output -n base ''PYTHONUNBUFFERED=1 poetry run '- f'python -u -m opendevin.runtime.client.client {self._port} '+ f'python -u -m openhands.runtime.client.client {self._port} 'f'--working-dir {sandbox_workspace_dir} 'f'{plugin_arg}'- f'--username {"opendevin" if self.config.run_as_devin else "root"} '+ f'--username {"openhands" if self.config.run_as_openhands else "root"} 'f'--user-id {self.config.sandbox.user_id} 'f'{browsergym_arg}'),network_mode=network_mode,ports=port_mapping,- working_dir='/opendevin/code/',+ working_dir='/openhands/code/',name=self.container_name,detach=True,environment={'DEBUG': 'true'} if self.config.debug else None,diff --git a/opendevin/runtime/e2b/README.md b/openhands/runtime/e2b/README.mdsimilarity index 91%rename from opendevin/runtime/e2b/README.mdrename to openhands/runtime/e2b/README.mdindex 1c0b60e025..b759132377 100644--- a/opendevin/runtime/e2b/README.md+++ b/openhands/runtime/e2b/README.md@@ -14,8 +14,8 @@```Full CLI API is [here](https://e2b.dev/docs/cli/installation).-## OpenDevin sandbox-You can use the E2B CLI to create a custom sandbox with a Dockerfile. Read the full guide [here](https://e2b.dev/docs/guide/custom-sandbox). The premade OpenDevin sandbox for E2B is set up in the [`containers` directory](/containers/e2b-sandbox). and it's called `open-devin`.+## OpenHands sandbox+You can use the E2B CLI to create a custom sandbox with a Dockerfile. Read the full guide [here](https://e2b.dev/docs/guide/custom-sandbox). The premade OpenHands sandbox for E2B is set up in the [`containers` directory](/containers/e2b-sandbox). and it's called `openhands`.## DebuggingYou can connect to a running E2B sandbox with E2B CLI in your terminal.diff --git a/opendevin/runtime/e2b/filestore.py b/openhands/runtime/e2b/filestore.pysimilarity index 90%rename from opendevin/runtime/e2b/filestore.pyrename to openhands/runtime/e2b/filestore.pyindex 0494dde21a..86c6edae0c 100644--- a/opendevin/runtime/e2b/filestore.py+++ b/openhands/runtime/e2b/filestore.py@@ -1,4 +1,4 @@-from opendevin.storage.files import FileStore+from openhands.storage.files import FileStoreclass E2BFileStore(FileStore):diff --git a/opendevin/runtime/e2b/runtime.py b/openhands/runtime/e2b/runtime.pysimilarity index 87%rename from opendevin/runtime/e2b/runtime.pyrename to openhands/runtime/e2b/runtime.pyindex 0a185d5c97..8694c94636 100644--- a/opendevin/runtime/e2b/runtime.py+++ b/openhands/runtime/e2b/runtime.py@@ -1,17 +1,17 @@-from opendevin.core.config import AppConfig-from opendevin.events.action import (+from openhands.core.config import AppConfig+from openhands.events.action import (FileReadAction,FileWriteAction,)-from opendevin.events.observation import (+from openhands.events.observation import (ErrorObservation,FileReadObservation,FileWriteObservation,Observation,)-from opendevin.events.stream import EventStream-from opendevin.runtime.plugins import PluginRequirement-from opendevin.runtime.runtime import Runtime+from openhands.events.stream import EventStream+from openhands.runtime.plugins import PluginRequirement+from openhands.runtime.runtime import Runtimefrom ..utils.files import insert_lines, read_linesfrom .filestore import E2BFileStorediff --git a/opendevin/runtime/e2b/sandbox.py b/openhands/runtime/e2b/sandbox.pysimilarity index 94%rename from opendevin/runtime/e2b/sandbox.pyrename to openhands/runtime/e2b/sandbox.pyindex 08af9eb02b..a8f4c6de98 100644--- a/opendevin/runtime/e2b/sandbox.py+++ b/openhands/runtime/e2b/sandbox.py@@ -1,6 +1,6 @@+import copyimport osimport tarfile-import copyfrom glob import globfrom e2b import Sandbox as E2BSandbox@@ -8,8 +8,9 @@ from e2b.sandbox.exception import (TimeoutException,)-from opendevin.core.config import SandboxConfig-from opendevin.core.logger import opendevin_logger as logger+from openhands.core.config import SandboxConfig+from openhands.core.logger import openhands_logger as logger+class E2BBox:closed = False@@ -21,7 +22,7 @@ class E2BBox:self,config: SandboxConfig,e2b_api_key: str,- template: str = 'open-devin',+ template: str = 'openhands',):self.config = copy.deepcopy(config)self.initialize_plugins: bool = config.initialize_plugins@@ -62,9 +63,7 @@ class E2BBox:tar.add(host_src, arcname=srcname)return tar_filename- def execute(- self, cmd: str, timeout: int | None = None- ) -> tuple[int, str]:+ def execute(self, cmd: str, timeout: int | None = None) -> tuple[int, str]:timeout = timeout if timeout is not None else self.config.timeoutprocess = self.sandbox.process.start(cmd, env_vars=self._env)try:diff --git a/opendevin/runtime/plugins/__init__.py b/openhands/runtime/plugins/__init__.pysimilarity index 100%rename from opendevin/runtime/plugins/__init__.pyrename to openhands/runtime/plugins/__init__.pydiff --git a/opendevin/runtime/plugins/agent_skills/README.md b/openhands/runtime/plugins/agent_skills/README.mdsimilarity index 89%rename from opendevin/runtime/plugins/agent_skills/README.mdrename to openhands/runtime/plugins/agent_skills/README.mdindex 312d5ef6d4..2ce9e869ad 100644--- a/opendevin/runtime/plugins/agent_skills/README.md+++ b/openhands/runtime/plugins/agent_skills/README.md@@ -1,11 +1,11 @@-# OpenDevin Skill Sets+# OpenHands Skill Sets-This folder implements a skill/tool set `agentskills` for OpenDevin.+This folder implements a skill/tool set `agentskills` for OpenHands.It is intended to be used by the agent **inside sandbox**.The skill set will be exposed as a `pip` package that can be installed as a plugin inside the sandbox.-The skill set can contain a bunch of wrapped tools for agent ([many examples here](https://github.com/OpenDevin/OpenDevin/pull/1914)), for example:+The skill set can contain a bunch of wrapped tools for agent ([many examples here](https://github.com/All-Hands-AI/OpenHands/pull/1914)), for example:- Audio/Video to text (these are a temporary solution, and we should switch to multimodal models when they are sufficiently cheap- PDF to text- etc.diff --git a/opendevin/runtime/plugins/agent_skills/__init__.py b/openhands/runtime/plugins/agent_skills/__init__.pysimilarity index 81%rename from opendevin/runtime/plugins/agent_skills/__init__.pyrename to openhands/runtime/plugins/agent_skills/__init__.pyindex e5440cf3e6..69dd1e9621 100644--- a/opendevin/runtime/plugins/agent_skills/__init__.py+++ b/openhands/runtime/plugins/agent_skills/__init__.py@@ -1,6 +1,6 @@from dataclasses import dataclass-from opendevin.runtime.plugins.requirement import Plugin, PluginRequirement+from openhands.runtime.plugins.requirement import Plugin, PluginRequirementfrom . import agentskillsdiff --git a/opendevin/runtime/plugins/agent_skills/agentskills.py b/openhands/runtime/plugins/agent_skills/agentskills.pysimilarity index 100%rename from opendevin/runtime/plugins/agent_skills/agentskills.pyrename to openhands/runtime/plugins/agent_skills/agentskills.pydiff --git a/opendevin/runtime/plugins/agent_skills/file_ops/__init__.py b/openhands/runtime/plugins/agent_skills/file_ops/__init__.pysimilarity index 100%rename from opendevin/runtime/plugins/agent_skills/file_ops/__init__.pyrename to openhands/runtime/plugins/agent_skills/file_ops/__init__.pydiff --git a/opendevin/runtime/plugins/agent_skills/file_ops/file_ops.py b/openhands/runtime/plugins/agent_skills/file_ops/file_ops.pysimilarity index 99%rename from opendevin/runtime/plugins/agent_skills/file_ops/file_ops.pyrename to openhands/runtime/plugins/agent_skills/file_ops/file_ops.pyindex 8be8cb2d01..9e7a2188ab 100644--- a/opendevin/runtime/plugins/agent_skills/file_ops/file_ops.py+++ b/openhands/runtime/plugins/agent_skills/file_ops/file_ops.py@@ -1,6 +1,6 @@"""file_ops.py-This module provides various file manipulation skills for the OpenDevin agent.+This module provides various file manipulation skills for the OpenHands agent.Functions:- open_file(path: str, line_number: int | None = 1, context_lines: int = 100): Opens a file and optionally moves to a specific line.diff --git a/opendevin/runtime/plugins/agent_skills/file_reader/__init__.py b/openhands/runtime/plugins/agent_skills/file_reader/__init__.pysimilarity index 100%rename from opendevin/runtime/plugins/agent_skills/file_reader/__init__.pyrename to openhands/runtime/plugins/agent_skills/file_reader/__init__.pydiff --git a/opendevin/runtime/plugins/agent_skills/file_reader/file_readers.py b/openhands/runtime/plugins/agent_skills/file_reader/file_readers.pysimilarity index 98%rename from opendevin/runtime/plugins/agent_skills/file_reader/file_readers.pyrename to openhands/runtime/plugins/agent_skills/file_reader/file_readers.pyindex 235dd17180..ab088ca1e6 100644--- a/opendevin/runtime/plugins/agent_skills/file_reader/file_readers.py+++ b/openhands/runtime/plugins/agent_skills/file_reader/file_readers.py@@ -1,4 +1,4 @@-"""File reader skills for the OpenDevin agent.+"""File reader skills for the OpenHands agent.This module provides various functions to parse and extract content from different file types,including PDF, DOCX, LaTeX, audio, image, video, and PowerPoint files. It utilizes different@@ -238,7 +238,7 @@ __all__ = ['parse_pptx',]-# This is called from OpenDevin's side+# This is called from OpenHands's side# If SANDBOX_ENV_OPENAI_API_KEY is set, we will be able to use these tools in the sandbox environmentif _get_openai_api_key() and _get_openai_base_url():__all__ += ['parse_audio', 'parse_video', 'parse_image']diff --git a/opendevin/runtime/plugins/agent_skills/utils/aider/LICENSE.txt b/openhands/runtime/plugins/agent_skills/utils/aider/LICENSE.txtsimilarity index 100%rename from opendevin/runtime/plugins/agent_skills/utils/aider/LICENSE.txtrename to openhands/runtime/plugins/agent_skills/utils/aider/LICENSE.txtdiff --git a/opendevin/runtime/plugins/agent_skills/utils/aider/README.md b/openhands/runtime/plugins/agent_skills/utils/aider/README.mdsimilarity index 82%rename from opendevin/runtime/plugins/agent_skills/utils/aider/README.mdrename to openhands/runtime/plugins/agent_skills/utils/aider/README.mdindex ffb00c2a34..3572f5f298 100644--- a/opendevin/runtime/plugins/agent_skills/utils/aider/README.md+++ b/openhands/runtime/plugins/agent_skills/utils/aider/README.md@@ -5,4 +5,4 @@ to edit code in your local git repository.Please see the [original repository](https://github.com/paul-gauthier/aider) for more information.-OpenDevin has adapted and integrated its linter module ([original code](https://github.com/paul-gauthier/aider/blob/main/aider/linter.py)).+OpenHands has adapted and integrated its linter module ([original code](https://github.com/paul-gauthier/aider/blob/main/aider/linter.py)).diff --git a/opendevin/runtime/plugins/agent_skills/utils/aider/__init__.py b/openhands/runtime/plugins/agent_skills/utils/aider/__init__.pysimilarity index 100%rename from opendevin/runtime/plugins/agent_skills/utils/aider/__init__.pyrename to openhands/runtime/plugins/agent_skills/utils/aider/__init__.pydiff --git a/opendevin/runtime/plugins/agent_skills/utils/aider/linter.py b/openhands/runtime/plugins/agent_skills/utils/aider/linter.pysimilarity index 99%rename from opendevin/runtime/plugins/agent_skills/utils/aider/linter.pyrename to openhands/runtime/plugins/agent_skills/utils/aider/linter.pyindex 419b5e3c5a..8cb340c486 100644--- a/opendevin/runtime/plugins/agent_skills/utils/aider/linter.py+++ b/openhands/runtime/plugins/agent_skills/utils/aider/linter.py@@ -155,7 +155,7 @@ def basic_lint(fname, code):def extract_error_line_from(lint_error):- # moved from opendevin.agentskills#_lint_file+ # moved from openhands.agentskills#_lint_filefor line in lint_error.splitlines(True):if line.strip():# The format of the error message is: <filename>:<line>:<column>: <error code> <error message>diff --git a/opendevin/runtime/plugins/agent_skills/utils/config.py b/openhands/runtime/plugins/agent_skills/utils/config.pysimilarity index 100%rename from opendevin/runtime/plugins/agent_skills/utils/config.pyrename to openhands/runtime/plugins/agent_skills/utils/config.pydiff --git a/opendevin/runtime/plugins/agent_skills/utils/dependency.py b/openhands/runtime/plugins/agent_skills/utils/dependency.pysimilarity index 100%rename from opendevin/runtime/plugins/agent_skills/utils/dependency.pyrename to openhands/runtime/plugins/agent_skills/utils/dependency.pydiff --git a/opendevin/runtime/plugins/jupyter/__init__.py b/openhands/runtime/plugins/jupyter/__init__.pysimilarity index 80%rename from opendevin/runtime/plugins/jupyter/__init__.pyrename to openhands/runtime/plugins/jupyter/__init__.pyindex 815156064e..7245e25482 100644--- a/opendevin/runtime/plugins/jupyter/__init__.py+++ b/openhands/runtime/plugins/jupyter/__init__.py@@ -2,11 +2,11 @@ import subprocessimport timefrom dataclasses import dataclass-from opendevin.core.logger import opendevin_logger as logger-from opendevin.events.action import Action, IPythonRunCellAction-from opendevin.events.observation import IPythonRunCellObservation-from opendevin.runtime.plugins.requirement import Plugin, PluginRequirement-from opendevin.runtime.utils import find_available_tcp_port+from openhands.core.logger import openhands_logger as logger+from openhands.events.action import Action, IPythonRunCellAction+from openhands.events.observation import IPythonRunCellObservation+from openhands.runtime.plugins.requirement import Plugin, PluginRequirement+from openhands.runtime.utils import find_available_tcp_portfrom .execute_server import JupyterKernel@@ -19,16 +19,16 @@ class JupyterRequirement(PluginRequirement):class JupyterPlugin(Plugin):name: str = 'jupyter'- async def initialize(self, username: str, kernel_id: str = 'opendevin-default'):+ async def initialize(self, username: str, kernel_id: str = 'openhands-default'):self.kernel_gateway_port = find_available_tcp_port()self.kernel_id = kernel_idself.gateway_process = subprocess.Popen((f"su - {username} -s /bin/bash << 'EOF'\n"- 'cd /opendevin/code\n'- 'export POETRY_VIRTUALENVS_PATH=/opendevin/poetry;\n'- 'export PYTHONPATH=/opendevin/code:$PYTHONPATH;\n'- '/opendevin/miniforge3/bin/mamba run -n base '+ 'cd /openhands/code\n'+ 'export POETRY_VIRTUALENVS_PATH=/openhands/poetry;\n'+ 'export PYTHONPATH=/openhands/code:$PYTHONPATH;\n'+ '/openhands/miniforge3/bin/mamba run -n base ''poetry run jupyter kernelgateway ''--KernelGatewayApp.ip=0.0.0.0 'f'--KernelGatewayApp.port={self.kernel_gateway_port}\n'diff --git a/opendevin/runtime/plugins/jupyter/execute_server.py b/openhands/runtime/plugins/jupyter/execute_server.pysimilarity index 100%rename from opendevin/runtime/plugins/jupyter/execute_server.pyrename to openhands/runtime/plugins/jupyter/execute_server.pydiff --git a/opendevin/runtime/plugins/requirement.py b/openhands/runtime/plugins/requirement.pysimilarity index 85%rename from opendevin/runtime/plugins/requirement.pyrename to openhands/runtime/plugins/requirement.pyindex b6713fe2a3..d927bc46e9 100644--- a/opendevin/runtime/plugins/requirement.py+++ b/openhands/runtime/plugins/requirement.py@@ -1,8 +1,8 @@from abc import abstractmethodfrom dataclasses import dataclass-from opendevin.events.action import Action-from opendevin.events.observation import Observation+from openhands.events.action import Action+from openhands.events.observation import Observationclass Plugin:diff --git a/opendevin/runtime/runtime.py b/openhands/runtime/runtime.pysimilarity index 94%rename from opendevin/runtime/runtime.pyrename to openhands/runtime/runtime.pyindex 688227cb1b..aca73d22f0 100644--- a/opendevin/runtime/runtime.py+++ b/openhands/runtime/runtime.py@@ -5,10 +5,10 @@ import jsonimport osfrom abc import abstractmethod-from opendevin.core.config import AppConfig, SandboxConfig-from opendevin.core.logger import opendevin_logger as logger-from opendevin.events import EventSource, EventStream, EventStreamSubscriber-from opendevin.events.action import (+from openhands.core.config import AppConfig, SandboxConfig+from openhands.core.logger import openhands_logger as logger+from openhands.events import EventSource, EventStream, EventStreamSubscriber+from openhands.events.action import (Action,ActionConfirmationStatus,BrowseInteractiveAction,@@ -18,16 +18,16 @@ from opendevin.events.action import (FileWriteAction,IPythonRunCellAction,)-from opendevin.events.event import Event-from opendevin.events.observation import (+from openhands.events.event import Event+from openhands.events.observation import (CmdOutputObservation,ErrorObservation,NullObservation,Observation,UserRejectObservation,)-from opendevin.events.serialization.action import ACTION_TYPE_TO_CLASS-from opendevin.runtime.plugins import JupyterRequirement, PluginRequirement+from openhands.events.serialization.action import ACTION_TYPE_TO_CLASS+from openhands.runtime.plugins import JupyterRequirement, PluginRequirementdef _default_env_vars(sandbox_config: SandboxConfig) -> dict[str, str]:diff --git a/opendevin/runtime/utils/__init__.py b/openhands/runtime/utils/__init__.pysimilarity index 100%rename from opendevin/runtime/utils/__init__.pyrename to openhands/runtime/utils/__init__.pydiff --git a/opendevin/runtime/utils/bash.py b/openhands/runtime/utils/bash.pysimilarity index 96%rename from opendevin/runtime/utils/bash.pyrename to openhands/runtime/utils/bash.pyindex 6de80c3884..613858ff12 100644--- a/opendevin/runtime/utils/bash.py+++ b/openhands/runtime/utils/bash.py@@ -1,6 +1,6 @@import bashlex-from opendevin.core.logger import opendevin_logger as logger+from openhands.core.logger import openhands_logger as loggerdef split_bash_commands(commands):diff --git a/opendevin/runtime/utils/files.py b/openhands/runtime/utils/files.pysimilarity index 99%rename from opendevin/runtime/utils/files.pyrename to openhands/runtime/utils/files.pyindex 1dd9266276..b9664cafc4 100644--- a/opendevin/runtime/utils/files.py+++ b/openhands/runtime/utils/files.py@@ -1,7 +1,7 @@import osfrom pathlib import Path-from opendevin.events.observation import (+from openhands.events.observation import (ErrorObservation,FileReadObservation,FileWriteObservation,diff --git a/opendevin/runtime/utils/runtime_build.py b/openhands/runtime/utils/runtime_build.pysimilarity index 97%rename from opendevin/runtime/utils/runtime_build.pyrename to openhands/runtime/utils/runtime_build.pyindex d8e0296d78..ea38ec0ac1 100644--- a/opendevin/runtime/utils/runtime_build.py+++ b/openhands/runtime/utils/runtime_build.py@@ -9,12 +9,12 @@ import tomlfrom dirhash import dirhashfrom jinja2 import Environment, FileSystemLoader-import opendevin-from opendevin.core.logger import opendevin_logger as logger-from opendevin.runtime.builder import DockerRuntimeBuilder, RuntimeBuilder+import openhands+from openhands.core.logger import openhands_logger as logger+from openhands.runtime.builder import DockerRuntimeBuilder, RuntimeBuilderRUNTIME_IMAGE_REPO = os.getenv(- 'OD_RUNTIME_RUNTIME_IMAGE_REPO', 'ghcr.io/opendevin/od_runtime'+ 'OD_RUNTIME_RUNTIME_IMAGE_REPO', 'ghcr.io/openhands/od_runtime')@@ -24,7 +24,7 @@ def _get_package_version():Returns:- The version specified in pyproject.toml under [tool.poetry]"""- project_root = os.path.dirname(os.path.dirname(os.path.abspath(opendevin.__file__)))+ project_root = os.path.dirname(os.path.dirname(os.path.abspath(openhands.__file__)))pyproject_path = os.path.join(project_root, 'pyproject.toml')with open(pyproject_path, 'r') as f:pyproject_data = toml.load(f)@@ -37,7 +37,7 @@ def _create_project_source_dist():Returns:- str: The path to the project tarball"""- project_root = os.path.dirname(os.path.dirname(os.path.abspath(opendevin.__file__)))+ project_root = os.path.dirname(os.path.dirname(os.path.abspath(openhands.__file__)))logger.info(f'Using project root: {project_root}')# run "python -m build -s" on project_root to create project tarball@@ -49,7 +49,7 @@ def _create_project_source_dist():# Fetch the correct version from pyproject.tomlpackage_version = _get_package_version()tarball_path = os.path.join(- project_root, 'dist', f'opendevin-{package_version}.tar.gz'+ project_root, 'dist', f'openhands-{package_version}.tar.gz')if not os.path.exists(tarball_path):logger.error(f'Source distribution not found at {tarball_path}')@@ -61,7 +61,7 @@ def _create_project_source_dist():def _put_source_code_to_dir(temp_dir: str):"""Builds the project source tarball. Copies it to temp_dir and unpacks it.- The OpenDevin source code ends up in the temp_dir/code directory+ The OpenHands source code ends up in the temp_dir/code directoryParameters:- temp_dir (str): The directory to put the source code in@@ -203,7 +203,7 @@ def build_runtime_image(force_rebuild: bool = False,) -> str:"""Prepares the final docker build folder.- If dry_run is False, it will also build the OpenDevin runtime Docker image using the docker build folder.+ If dry_run is False, it will also build the OpenHands runtime Docker image using the docker build folder.Parameters:- base_image (str): The name of the base Docker image to usediff --git a/opendevin/runtime/utils/runtime_templates/Dockerfile.j2 b/openhands/runtime/utils/runtime_templates/Dockerfile.j2similarity index 67%rename from opendevin/runtime/utils/runtime_templates/Dockerfile.j2rename to openhands/runtime/utils/runtime_templates/Dockerfile.j2index b7d04d2465..519760a2ef 100644--- a/opendevin/runtime/utils/runtime_templates/Dockerfile.j2+++ b/openhands/runtime/utils/runtime_templates/Dockerfile.j2@@ -19,22 +19,22 @@ RUN apt-get update && \rm -rf /var/lib/apt/lists/*# Create necessary directories-RUN mkdir -p /opendevin && \- mkdir -p /opendevin/logs && \- mkdir -p /opendevin/poetry+RUN mkdir -p /openhands && \+ mkdir -p /openhands/logs && \+ mkdir -p /openhands/poetry-ENV POETRY_VIRTUALENVS_PATH=/opendevin/poetry+ENV POETRY_VIRTUALENVS_PATH=/openhands/poetry-RUN if [ ! -d /opendevin/miniforge3 ]; then \+RUN if [ ! -d /openhands/miniforge3 ]; then \wget --progress=bar:force -O Miniforge3.sh "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh" && \- bash Miniforge3.sh -b -p /opendevin/miniforge3 && \+ bash Miniforge3.sh -b -p /openhands/miniforge3 && \rm Miniforge3.sh && \- chmod -R g+w /opendevin/miniforge3 && \- bash -c ". /opendevin/miniforge3/etc/profile.d/conda.sh && conda config --set changeps1 False && conda config --append channels conda-forge"; \+ chmod -R g+w /openhands/miniforge3 && \+ bash -c ". /openhands/miniforge3/etc/profile.d/conda.sh && conda config --set changeps1 False && conda config --append channels conda-forge"; \fi# Install Python and Poetry-RUN /opendevin/miniforge3/bin/mamba install conda-forge::poetry python=3.11 -y+RUN /openhands/miniforge3/bin/mamba install conda-forge::poetry python=3.11 -y# ================================================================# END: Build Runtime Image from Scratch# ================================================================@@ -43,25 +43,25 @@ RUN /opendevin/miniforge3/bin/mamba install conda-forge::poetry python=3.11 -y# ================================================================# START: Copy Project and Install/Update Dependencies# ================================================================-RUN if [ -d /opendevin/code ]; then rm -rf /opendevin/code; fi-COPY ./code /opendevin/code+RUN if [ -d /openhands/code ]; then rm -rf /openhands/code; fi+COPY ./code /openhands/code# Install/Update Dependencies# 1. Install pyproject.toml via poetry# 2. Install playwright and chromium# 3. Clear poetry, apt, mamba caches-RUN cd /opendevin/code && \- /opendevin/miniforge3/bin/mamba run -n base poetry env use python3.11 && \- /opendevin/miniforge3/bin/mamba run -n base poetry install --only main,runtime --no-interaction --no-root && \+RUN cd /openhands/code && \+ /openhands/miniforge3/bin/mamba run -n base poetry env use python3.11 && \+ /openhands/miniforge3/bin/mamba run -n base poetry install --only main,runtime --no-interaction --no-root && \apt-get update && \- /opendevin/miniforge3/bin/mamba run -n base poetry run pip install playwright && \- /opendevin/miniforge3/bin/mamba run -n base poetry run playwright install --with-deps chromium && \- export OD_INTERPRETER_PATH=$(/opendevin/miniforge3/bin/mamba run -n base poetry run python -c "import sys; print(sys.executable)") && \+ /openhands/miniforge3/bin/mamba run -n base poetry run pip install playwright && \+ /openhands/miniforge3/bin/mamba run -n base poetry run playwright install --with-deps chromium && \+ export OD_INTERPRETER_PATH=$(/openhands/miniforge3/bin/mamba run -n base poetry run python -c "import sys; print(sys.executable)") && \{{ extra_deps }} {% if extra_deps %} && {% endif %} \- /opendevin/miniforge3/bin/mamba run -n base poetry cache clear --all . && \- {% if not skip_init %}chmod -R g+rws /opendevin/poetry && {% endif %} \+ /openhands/miniforge3/bin/mamba run -n base poetry cache clear --all . && \+ {% if not skip_init %}chmod -R g+rws /openhands/poetry && {% endif %} \apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \- /opendevin/miniforge3/bin/mamba clean --all+ /openhands/miniforge3/bin/mamba clean --all# ================================================================# END: Copy Project and Install/Update Dependenciesdiff --git a/opendevin/runtime/utils/singleton.py b/openhands/runtime/utils/singleton.pysimilarity index 100%rename from opendevin/runtime/utils/singleton.pyrename to openhands/runtime/utils/singleton.pydiff --git a/opendevin/runtime/utils/system.py b/openhands/runtime/utils/system.pysimilarity index 100%rename from opendevin/runtime/utils/system.pyrename to openhands/runtime/utils/system.pydiff --git a/opendevin/security/README.md b/openhands/security/README.mdsimilarity index 89%rename from opendevin/security/README.mdrename to openhands/security/README.mdindex 0549a966c3..644348f577 100644--- a/opendevin/security/README.md+++ b/openhands/security/README.md@@ -1,6 +1,6 @@# Security-Given the impressive capabilities of OpenDevin and similar coding agents, ensuring robust security measures is essential to prevent unintended actions or security breaches. The SecurityAnalyzer framework provides a structured approach to monitor and analyze agent actions for potential security risks.+Given the impressive capabilities of OpenHands and similar coding agents, ensuring robust security measures is essential to prevent unintended actions or security breaches. The SecurityAnalyzer framework provides a structured approach to monitor and analyze agent actions for potential security risks.To enable this feature:* From the web interface@@ -40,22 +40,22 @@ The `SecurityAnalyzer` class (analyzer.py) is an abstract base class designed toIn conclusion, a concrete security analyzer should evaluate the risk of each event and act accordingly (e.g. auto-confirm, send Slack message, etc).-For customization and decoupling from the OpenDevin core logic, the security analyzer can define its own API endpoints that can then be accessed from the frontend. These API endpoints need to be secured (do not allow more capabilities than the core logic+For customization and decoupling from the OpenHands core logic, the security analyzer can define its own API endpoints that can then be accessed from the frontend. These API endpoints need to be secured (do not allow more capabilities than the core logicprovides).## How to implement your own Security Analyzer-1. Create a submodule in [security](/opendevin/security/) with your analyzer's desired name- * Have your main class inherit from [SecurityAnalyzer](/opendevin/security/analyzer.py)+1. Create a submodule in [security](/openhands/security/) with your analyzer's desired name+ * Have your main class inherit from [SecurityAnalyzer](/openhands/security/analyzer.py)* Optional: define API endpoints for `/api/security/{path:path}` to manage settings,-2. Add your analyzer class to the [options](/opendevin/security/options.py) to have it be visible from the frontend combobox+2. Add your analyzer class to the [options](/openhands/security/options.py) to have it be visible from the frontend combobox3. Optional: implement your modal frontend (for when you click on the lock) in [security](/frontend/src/components/modals/security/) and add your component to [Security.tsx](/frontend/src/components/modals/security/Security.tsx)## Implemented Security Analyzers### Invariant-It uses the [Invariant Analyzer](https://github.com/invariantlabs-ai/invariant) to analyze traces and detect potential issues with OpenDevin's workflow. It uses confirmation mode to ask for user confirmation on potentially risky actions.+It uses the [Invariant Analyzer](https://github.com/invariantlabs-ai/invariant) to analyze traces and detect potential issues with OpenHands's workflow. It uses confirmation mode to ask for user confirmation on potentially risky actions.This allows the agent to run autonomously without fear that it will inadvertently compromise security or perform unintended actions that could be harmful.@@ -67,7 +67,7 @@ Features:* malicious bash commands* Logs:* actions and their associated risk- * OpenDevin traces in JSON format+ * OpenHands traces in JSON format* Run-time settings:* the [invariant policy](https://github.com/invariantlabs-ai/invariant?tab=readme-ov-file#policy-language)* acceptable risk thresholddiff --git a/opendevin/security/__init__.py b/openhands/security/__init__.pysimilarity index 100%rename from opendevin/security/__init__.pyrename to openhands/security/__init__.pydiff --git a/opendevin/security/analyzer.py b/openhands/security/analyzer.pysimilarity index 89%rename from opendevin/security/analyzer.pyrename to openhands/security/analyzer.pyindex ad8521b7a1..f8a97cc477 100644--- a/opendevin/security/analyzer.py+++ b/openhands/security/analyzer.py@@ -2,10 +2,10 @@ from typing import Anyfrom fastapi import Request-from opendevin.core.logger import opendevin_logger as logger-from opendevin.events.action.action import Action, ActionSecurityRisk-from opendevin.events.event import Event-from opendevin.events.stream import EventStream, EventStreamSubscriber+from openhands.core.logger import openhands_logger as logger+from openhands.events.action.action import Action, ActionSecurityRisk+from openhands.events.event import Event+from openhands.events.stream import EventStream, EventStreamSubscriberclass SecurityAnalyzer:diff --git a/opendevin/security/invariant/__init__.py b/openhands/security/invariant/__init__.pysimilarity index 100%rename from opendevin/security/invariant/__init__.pyrename to openhands/security/invariant/__init__.pydiff --git a/opendevin/security/invariant/analyzer.py b/openhands/security/invariant/analyzer.pysimilarity index 91%rename from opendevin/security/invariant/analyzer.pyrename to openhands/security/invariant/analyzer.pyindex b28990a1d3..0d92f1b327 100644--- a/opendevin/security/invariant/analyzer.py+++ b/openhands/security/invariant/analyzer.py@@ -6,19 +6,19 @@ import dockerfrom fastapi import HTTPException, Requestfrom fastapi.responses import JSONResponse-from opendevin.core.logger import opendevin_logger as logger-from opendevin.events.action.action import (+from openhands.core.logger import openhands_logger as logger+from openhands.events.action.action import (Action,ActionSecurityRisk,)-from opendevin.events.event import Event, EventSource-from opendevin.events.observation import Observation-from opendevin.events.serialization.action import action_from_dict-from opendevin.events.stream import EventStream-from opendevin.runtime.utils import find_available_tcp_port-from opendevin.security.analyzer import SecurityAnalyzer-from opendevin.security.invariant.client import InvariantClient-from opendevin.security.invariant.parser import TraceElement, parse_element+from openhands.events.event import Event, EventSource+from openhands.events.observation import Observation+from openhands.events.serialization.action import action_from_dict+from openhands.events.stream import EventStream+from openhands.runtime.utils import find_available_tcp_port+from openhands.security.analyzer import SecurityAnalyzer+from openhands.security.invariant.client import InvariantClient+from openhands.security.invariant.parser import TraceElement, parse_elementclass InvariantAnalyzer(SecurityAnalyzer):@@ -26,8 +26,8 @@ class InvariantAnalyzer(SecurityAnalyzer):trace: list[TraceElement]input: list[dict]- container_name: str = 'opendevin-invariant-server'- image_name: str = 'ghcr.io/invariantlabs-ai/server:opendevin'+ container_name: str = 'openhands-invariant-server'+ image_name: str = 'ghcr.io/invariantlabs-ai/server:openhands'api_host: str = 'http://localhost'timeout: int = 180settings: dict = {}diff --git a/opendevin/security/invariant/client.py b/openhands/security/invariant/client.pysimilarity index 100%rename from opendevin/security/invariant/client.pyrename to openhands/security/invariant/client.pydiff --git a/opendevin/security/invariant/nodes.py b/openhands/security/invariant/nodes.pysimilarity index 100%rename from opendevin/security/invariant/nodes.pyrename to openhands/security/invariant/nodes.pydiff --git a/opendevin/security/invariant/parser.py b/openhands/security/invariant/parser.pysimilarity index 90%rename from opendevin/security/invariant/parser.pyrename to openhands/security/invariant/parser.pyindex 5e3b6d76da..dea1286924 100644--- a/opendevin/security/invariant/parser.py+++ b/openhands/security/invariant/parser.py@@ -2,21 +2,21 @@ from typing import Unionfrom pydantic import BaseModel, Field-from opendevin.core.logger import opendevin_logger as logger-from opendevin.events.action import (+from openhands.core.logger import openhands_logger as logger+from openhands.events.action import (Action,ChangeAgentStateAction,MessageAction,NullAction,)-from opendevin.events.event import EventSource-from opendevin.events.observation import (+from openhands.events.event import EventSource+from openhands.events.observation import (AgentStateChangedObservation,NullObservation,Observation,)-from opendevin.events.serialization.event import event_to_dict-from opendevin.security.invariant.nodes import Function, Message, ToolCall, ToolOutput+from openhands.events.serialization.event import event_to_dict+from openhands.security.invariant.nodes import Function, Message, ToolCall, ToolOutputTraceElement = Union[Message, ToolCall, ToolOutput, Function]diff --git a/opendevin/security/invariant/policies.py b/openhands/security/invariant/policies.pysimilarity index 99%rename from opendevin/security/invariant/policies.pyrename to openhands/security/invariant/policies.pyindex 815f733178..113d2f9265 100644--- a/opendevin/security/invariant/policies.py+++ b/openhands/security/invariant/policies.py@@ -16,4 +16,4 @@ raise "Vulnerability in bash command [risk=medium]" if:call is tool:cmd_runsemgrep_res := semgrep(call.function.arguments.command, lang="bash")any(semgrep_res)-"""\ No newline at end of file+"""diff --git a/opendevin/security/options.py b/openhands/security/options.pysimilarity index 50%rename from opendevin/security/options.pyrename to openhands/security/options.pyindex 370f2e8e1b..d02a9efc2a 100644--- a/opendevin/security/options.py+++ b/openhands/security/options.py@@ -1,4 +1,4 @@-from opendevin.security.invariant.analyzer import InvariantAnalyzer+from openhands.security.invariant.analyzer import InvariantAnalyzerSecurityAnalyzers = {'invariant': InvariantAnalyzer,diff --git a/opendevin/server/README.md b/openhands/server/README.mdsimilarity index 97%rename from opendevin/server/README.mdrename to openhands/server/README.mdindex 991f0fe7c0..d580d331b2 100644--- a/opendevin/server/README.md+++ b/openhands/server/README.md@@ -1,4 +1,4 @@-# OpenDevin Server+# OpenHands ServerThis is a WebSocket server that executes tasks using an agent.@@ -23,7 +23,7 @@ Next run `poetry shell` (So you don't have to repeat `poetry run`)## Start the Server```sh-uvicorn opendevin.server.listen:app --reload --port 3000+uvicorn openhands.server.listen:app --reload --port 3000```## Test the Serverdiff --git a/opendevin/server/__init__.py b/openhands/server/__init__.pysimilarity index 100%rename from opendevin/server/__init__.pyrename to openhands/server/__init__.pydiff --git a/opendevin/server/auth/__init__.py b/openhands/server/auth/__init__.pysimilarity index 100%rename from opendevin/server/auth/__init__.pyrename to openhands/server/auth/__init__.pydiff --git a/opendevin/server/auth/auth.py b/openhands/server/auth/auth.pysimilarity index 95%rename from opendevin/server/auth/auth.pyrename to openhands/server/auth/auth.pyindex 20d08286f1..d668650f58 100644--- a/opendevin/server/auth/auth.py+++ b/openhands/server/auth/auth.py@@ -1,7 +1,7 @@import jwtfrom jwt.exceptions import InvalidTokenError-from opendevin.core.logger import opendevin_logger as logger+from openhands.core.logger import openhands_logger as loggerdef get_sid_from_token(token: str, jwt_secret: str) -> str:diff --git a/opendevin/server/data_models/feedback.py b/openhands/server/data_models/feedback.pysimilarity index 95%rename from opendevin/server/data_models/feedback.pyrename to openhands/server/data_models/feedback.pyindex 6232277be4..d5728a5e04 100644--- a/opendevin/server/data_models/feedback.py+++ b/openhands/server/data_models/feedback.py@@ -4,7 +4,7 @@ from typing import Any, Literalimport requestsfrom pydantic import BaseModel-from opendevin.core.logger import opendevin_logger as logger+from openhands.core.logger import openhands_logger as loggerclass FeedbackDataModel(BaseModel):diff --git a/opendevin/server/listen.py b/openhands/server/listen.pysimilarity index 96%rename from opendevin/server/listen.pyrename to openhands/server/listen.pyindex 836213bf26..f2e0a4c11f 100644--- a/opendevin/server/listen.py+++ b/openhands/server/listen.py@@ -6,9 +6,9 @@ import warningsimport requests-from opendevin.security.options import SecurityAnalyzers-from opendevin.server.data_models.feedback import FeedbackDataModel, store_feedback-from opendevin.storage import get_file_store+from openhands.security.options import SecurityAnalyzers+from openhands.server.data_models.feedback import FeedbackDataModel, store_feedback+from openhands.storage import get_file_storewith warnings.catch_warnings():warnings.simplefilter('ignore')@@ -29,28 +29,28 @@ from fastapi.security import HTTPBearerfrom fastapi.staticfiles import StaticFilesimport agenthub # noqa F401 (we import this to get the agents registered)-from opendevin.controller.agent import Agent-from opendevin.core.config import LLMConfig, load_app_config-from opendevin.core.logger import opendevin_logger as logger-from opendevin.core.schema import AgentState # Add this import-from opendevin.events.action import (+from openhands.controller.agent import Agent+from openhands.core.config import LLMConfig, load_app_config+from openhands.core.logger import openhands_logger as logger+from openhands.core.schema import AgentState # Add this import+from openhands.events.action import (ChangeAgentStateAction,FileReadAction,FileWriteAction,NullAction,)-from opendevin.events.observation import (+from openhands.events.observation import (AgentStateChangedObservation,ErrorObservation,FileReadObservation,FileWriteObservation,NullObservation,)-from opendevin.events.serialization import event_to_dict-from opendevin.llm import bedrock-from opendevin.runtime.runtime import Runtime-from opendevin.server.auth import get_sid_from_token, sign_token-from opendevin.server.session import SessionManager+from openhands.events.serialization import event_to_dict+from openhands.llm import bedrock+from openhands.runtime.runtime import Runtime+from openhands.server.auth import get_sid_from_token, sign_token+from openhands.server.session import SessionManagerconfig = load_app_config()file_store = get_file_store(config.file_store, config.file_store_path)@@ -220,7 +220,7 @@ async def websocket_endpoint(websocket: WebSocket):```- Write contents to a file:```json- {"action": "write", "args": {"path": "./greetings.txt", "content": "Hello, OpenDevin?"}}+ {"action": "write", "args": {"path": "./greetings.txt", "content": "Hello, OpenHands?"}}```- Read the contents of a file:```jsondiff --git a/opendevin/server/mock/README.md b/openhands/server/mock/README.mdsimilarity index 92%rename from opendevin/server/mock/README.mdrename to openhands/server/mock/README.mdindex f9e62943b0..dcd2f23a61 100644--- a/opendevin/server/mock/README.md+++ b/openhands/server/mock/README.md@@ -1,4 +1,4 @@-# OpenDevin mock server+# OpenHands mock serverThis is a simple mock server to facilitate development in the frontend.## Start the Serverdiff --git a/opendevin/server/mock/listen.py b/openhands/server/mock/listen.pysimilarity index 96%rename from opendevin/server/mock/listen.pyrename to openhands/server/mock/listen.pyindex 00d84f5feb..e170201de7 100644--- a/opendevin/server/mock/listen.py+++ b/openhands/server/mock/listen.py@@ -1,7 +1,7 @@import uvicornfrom fastapi import FastAPI, WebSocket-from opendevin.core.schema import ActionType+from openhands.core.schema import ActionTypeapp = FastAPI()diff --git a/opendevin/server/session/__init__.py b/openhands/server/session/__init__.pysimilarity index 100%rename from opendevin/server/session/__init__.pyrename to openhands/server/session/__init__.pydiff --git a/opendevin/server/session/agent.py b/openhands/server/session/agent.pysimilarity index 90%rename from opendevin/server/session/agent.pyrename to openhands/server/session/agent.pyindex 7c0d8b51ce..0dab396dbe 100644--- a/opendevin/server/session/agent.py+++ b/openhands/server/session/agent.py@@ -1,13 +1,13 @@-from opendevin.controller import AgentController-from opendevin.controller.agent import Agent-from opendevin.controller.state.state import State-from opendevin.core.config import AgentConfig, AppConfig, LLMConfig-from opendevin.core.logger import opendevin_logger as logger-from opendevin.events.stream import EventStream-from opendevin.runtime import get_runtime_cls-from opendevin.runtime.runtime import Runtime-from opendevin.security import SecurityAnalyzer, options-from opendevin.storage.files import FileStore+from openhands.controller import AgentController+from openhands.controller.agent import Agent+from openhands.controller.state.state import State+from openhands.core.config import AgentConfig, AppConfig, LLMConfig+from openhands.core.logger import openhands_logger as logger+from openhands.events.stream import EventStream+from openhands.runtime import get_runtime_cls+from openhands.runtime.runtime import Runtime+from openhands.security import SecurityAnalyzer, options+from openhands.storage.files import FileStoreclass AgentSession:diff --git a/opendevin/server/session/manager.py b/openhands/server/session/manager.pysimilarity index 94%rename from opendevin/server/session/manager.pyrename to openhands/server/session/manager.pyindex 08f02b852e..e795daf221 100644--- a/opendevin/server/session/manager.py+++ b/openhands/server/session/manager.py@@ -3,9 +3,9 @@ import timefrom fastapi import WebSocket-from opendevin.core.config import AppConfig-from opendevin.core.logger import opendevin_logger as logger-from opendevin.storage.files import FileStore+from openhands.core.config import AppConfig+from openhands.core.logger import openhands_logger as logger+from openhands.storage.files import FileStorefrom .session import Sessiondiff --git a/opendevin/server/session/session.py b/openhands/server/session/session.pysimilarity index 90%rename from opendevin/server/session/session.pyrename to openhands/server/session/session.pyindex c941f82d96..10415b4440 100644--- a/opendevin/server/session/session.py+++ b/openhands/server/session/session.py@@ -3,24 +3,24 @@ import timefrom fastapi import WebSocket, WebSocketDisconnect-from opendevin.controller.agent import Agent-from opendevin.core.config import AppConfig-from opendevin.core.const.guide_url import TROUBLESHOOTING_URL-from opendevin.core.logger import opendevin_logger as logger-from opendevin.core.schema import AgentState-from opendevin.core.schema.action import ActionType-from opendevin.core.schema.config import ConfigType-from opendevin.events.action import ChangeAgentStateAction, MessageAction, NullAction-from opendevin.events.event import Event, EventSource-from opendevin.events.observation import (+from openhands.controller.agent import Agent+from openhands.core.config import AppConfig+from openhands.core.const.guide_url import TROUBLESHOOTING_URL+from openhands.core.logger import openhands_logger as logger+from openhands.core.schema import AgentState+from openhands.core.schema.action import ActionType+from openhands.core.schema.config import ConfigType+from openhands.events.action import ChangeAgentStateAction, MessageAction, NullAction+from openhands.events.event import Event, EventSource+from openhands.events.observation import (AgentStateChangedObservation,CmdOutputObservation,NullObservation,)-from opendevin.events.serialization import event_from_dict, event_to_dict-from opendevin.events.stream import EventStreamSubscriber-from opendevin.llm.llm import LLM-from opendevin.storage.files import FileStore+from openhands.events.serialization import event_from_dict, event_to_dict+from openhands.events.stream import EventStreamSubscriber+from openhands.llm.llm import LLM+from openhands.storage.files import FileStorefrom .agent import AgentSessiondiff --git a/opendevin/storage/__init__.py b/openhands/storage/__init__.pysimilarity index 100%rename from opendevin/storage/__init__.pyrename to openhands/storage/__init__.pydiff --git a/opendevin/storage/files.py b/openhands/storage/files.pysimilarity index 100%rename from opendevin/storage/files.pyrename to openhands/storage/files.pydiff --git a/opendevin/storage/local.py b/openhands/storage/local.pysimilarity index 96%rename from opendevin/storage/local.pyrename to openhands/storage/local.pyindex c91bf75ffc..6e30cdc4ea 100644--- a/opendevin/storage/local.py+++ b/openhands/storage/local.py@@ -1,7 +1,7 @@import osimport shutil-from opendevin.core.logger import opendevin_logger as logger+from openhands.core.logger import openhands_logger as loggerfrom .files import FileStorediff --git a/opendevin/storage/memory.py b/openhands/storage/memory.pysimilarity index 95%rename from opendevin/storage/memory.pyrename to openhands/storage/memory.pyindex 8baa1ff69e..1cb40b9099 100644--- a/opendevin/storage/memory.py+++ b/openhands/storage/memory.py@@ -1,6 +1,6 @@import os-from opendevin.core.logger import opendevin_logger as logger+from openhands.core.logger import openhands_logger as loggerfrom .files import FileStorediff --git a/opendevin/storage/s3.py b/openhands/storage/s3.pysimilarity index 100%rename from opendevin/storage/s3.pyrename to openhands/storage/s3.pydiff --git a/opendevin/utils/prompt.py b/openhands/utils/prompt.pysimilarity index 100%rename from opendevin/utils/prompt.pyrename to openhands/utils/prompt.pydiff --git a/poetry.lock b/poetry.lockindex 6646d9d93e..20ecd7b360 100644--- a/poetry.lock+++ b/poetry.lock@@ -1,4 +1,4 @@-# This file is automatically @generated by Poetry 1.8.3 and should not be changed by hand.+# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand.[[package]]name = "aenum"@@ -7666,7 +7666,7 @@ inference = ["anthropic", "flash_attn", "jedi", "openai", "peft", "protobuf", "s[package.source]type = "git"-url = "https://github.com/OpenDevin/SWE-bench.git"+url = "https://github.com/All-Hands-AI/SWE-bench.git"reference = "HEAD"resolved_reference = "c2b3cefd4a5af0b248966a773650a39046072975"@@ -9212,4 +9212,4 @@ testing = ["coverage (>=5.0.3)", "zope.event", "zope.testing"][metadata]lock-version = "2.0"python-versions = "^3.11"-content-hash = "c3c227a4550f1c7ed07c67a282958580d83b3ede8f754c519b9830def91c2ffe"+content-hash = "3c0aff71c1d6c27233e86a5da23e308e83432db015f52d507d1297067c0dd0f8"diff --git a/pyproject.toml b/pyproject.tomlindex e51d8e2da0..26c750272b 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -1,11 +1,11 @@[tool.poetry]-name = "opendevin"+name = "openhands"version = "0.8.3"-description = "OpenDevin: Code Less, Make More"-authors = ["OpenDevin"]+description = "OpenHands: Code Less, Make More"+authors = ["OpenHands"]license = "MIT"readme = "README.md"-repository = "https://github.com/OpenDevin/OpenDevin"+repository = "https://github.com/All-Hands-AI/OpenHands"include = ["poetry.lock"][tool.poetry.dependencies]@@ -117,7 +117,7 @@ streamlit = "*"whatthepatch = "*"retry = "*"evaluate = "*"-swebench = { git = "https://github.com/OpenDevin/SWE-bench.git" }+swebench = { git = "https://github.com/All-Hands-AI/SWE-bench.git" }func_timeout = "*"sympy = "*"gdown = "*"diff --git a/tests/integration/README.md b/tests/integration/README.mdindex 390192e973..df0ae379f6 100644--- a/tests/integration/README.md+++ b/tests/integration/README.md@@ -3,8 +3,8 @@This folder contains backend integration tests that rely on a mock LLM. It servestwo purposes:-1. Ensure the quality of development, including OpenDevin framework and agents.-2. Help contributors learn the workflow of OpenDevin, and examples of real interactions+1. Ensure the quality of development, including OpenHands framework and agents.+2. Help contributors learn the workflow of OpenHands, and examples of real interactionswith (powerful) LLM, without spending real money.## Why don't we launch an open-source model, e.g. LLAMA3?@@ -77,7 +77,7 @@ TEST_ONLY=true ONLY_TEST_NAME="test_simple_task_rejection" ONLY_TEST_AGENT="Mana## Regenerate Integration TestsWhen you make changes to an agent's prompt, the integration tests will fail. You'll need to regenerate them-by running the following command from OpenDevin's project root directory:+by running the following command from OpenHands's project root directory:```bashTEST_RUNTIME=server ./tests/integration/regenerate.shdiff --git a/tests/integration/conftest.py b/tests/integration/conftest.pyindex 659f1632c2..41d768c540 100644--- a/tests/integration/conftest.py+++ b/tests/integration/conftest.py@@ -12,7 +12,7 @@ from threading import Threadimport pytestfrom litellm import completion-from opendevin.llm.llm import message_separator+from openhands.llm.llm import message_separatorscript_dir = os.environ.get('SCRIPT_DIR')project_root = os.environ.get('PROJECT_ROOT')@@ -47,8 +47,8 @@ def pytest_exception_interact(node, call, report):def filter_out_symbols(input):# remove shell hostname patterns (e.g., will change between each run)- # opendevin@379c7fce40b4:/workspace $- input = re.sub(r'(opendevin|root)@.*(:/.*)', r'\1[DUMMY_HOSTNAME]\2', input)+ # openhands@379c7fce40b4:/workspace $+ input = re.sub(r'(openhands|root)@.*(:/.*)', r'\1[DUMMY_HOSTNAME]\2', input)# handle sha256 hashes# sha256=4ecf8be428f55981e2a188f510ba5f9022bed88f5fb404d7d949f44382201e3d@@ -202,13 +202,13 @@ def patch_completion(monkeypatch, request):test_name = request.node.name# Mock LLM completionmonkeypatch.setattr(- 'opendevin.llm.llm.litellm_completion',+ 'openhands.llm.llm.litellm_completion',partial(mock_completion, test_name=test_name),)# Mock LLM completion cost (1 USD per conversation)monkeypatch.setattr(- 'opendevin.llm.llm.litellm_completion_cost',+ 'openhands.llm.llm.litellm_completion_cost',lambda completion_response, **extra_kwargs: 1,)diff --git a/tests/integration/mock/eventstream_runtime/BrowsingAgent/test_browse_internet/prompt_003.log b/tests/integration/mock/eventstream_runtime/BrowsingAgent/test_browse_internet/prompt_003.logindex f183ccbb59..958c6e5857 100644--- a/tests/integration/mock/eventstream_runtime/BrowsingAgent/test_browse_internet/prompt_003.log+++ b/tests/integration/mock/eventstream_runtime/BrowsingAgent/test_browse_internet/prompt_003.log@@ -119,7 +119,7 @@ RootWebArea 'The Ultimate Answer', focused[9] paragraph ''StaticText 'Click the button to reveal the answer to life, the universe, and everything.'[10] button 'Click me', clickable, focused- StaticText 'The answer is OpenDevin is all you need!'+ StaticText 'The answer is OpenHands is all you need!'# Previous Actionsgoto('http://localhost:8000')diff --git a/tests/integration/mock/eventstream_runtime/BrowsingAgent/test_browse_internet/response_003.log b/tests/integration/mock/eventstream_runtime/BrowsingAgent/test_browse_internet/response_003.logindex 2eeae38382..37cc9fdea9 100644--- a/tests/integration/mock/eventstream_runtime/BrowsingAgent/test_browse_internet/response_003.log+++ b/tests/integration/mock/eventstream_runtime/BrowsingAgent/test_browse_internet/response_003.log@@ -1,3 +1,3 @@In order to accomplish my goal, I need to read the static text that reveals the answer to life, the universe, and everything.-```send_msg_to_user('The answer is OpenDevin is all you need!'+```send_msg_to_user('The answer is OpenHands is all you need!'diff --git a/tests/integration/mock/eventstream_runtime/CodeActAgent/test_browse_internet/prompt_001.log b/tests/integration/mock/eventstream_runtime/CodeActAgent/test_browse_internet/prompt_001.logindex 62ee7a52b6..4f5a3af2de 100644--- a/tests/integration/mock/eventstream_runtime/CodeActAgent/test_browse_internet/prompt_001.log+++ b/tests/integration/mock/eventstream_runtime/CodeActAgent/test_browse_internet/prompt_001.log@@ -270,8 +270,8 @@ Collecting click>=8.1.3Using cached click-8.1.7-py3-none-any.whl (97 kB)Collecting itsdangerous>=2.1.2Using cached itsdangerous-2.2.0-py3-none-any.whl (16 kB)-Requirement already satisfied: Jinja2>=3.1.2 in /home/opendevin/.local/lib/python3.10/site-packages (from flask) (3.1.3)-Requirement already satisfied: MarkupSafe>=2.0 in /home/opendevin/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)+Requirement already satisfied: Jinja2>=3.1.2 in /home/openhands/.local/lib/python3.10/site-packages (from flask) (3.1.3)+Requirement already satisfied: MarkupSafe>=2.0 in /home/openhands/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)Installing collected packages: Werkzeug, itsdangerous, click, blinker, flaskSuccessfully installed Werkzeug-3.0.2 blinker-1.7.0 click-8.1.7 flask-3.0.3 itsdangerous-2.2.0diff --git a/tests/integration/mock/eventstream_runtime/CodeActAgent/test_browse_internet/prompt_004.log b/tests/integration/mock/eventstream_runtime/CodeActAgent/test_browse_internet/prompt_004.logindex 566df42a71..381f8406d5 100644--- a/tests/integration/mock/eventstream_runtime/CodeActAgent/test_browse_internet/prompt_004.log+++ b/tests/integration/mock/eventstream_runtime/CodeActAgent/test_browse_internet/prompt_004.log@@ -119,7 +119,7 @@ RootWebArea 'The Ultimate Answer', focused[9] paragraph ''StaticText 'Click the button to reveal the answer to life, the universe, and everything.'[10] button 'Click me', clickable, focused- StaticText 'The answer is OpenDevin is all you need!'+ StaticText 'The answer is OpenHands is all you need!'# Previous Actionsgoto("http://localhost:8000")diff --git a/tests/integration/mock/eventstream_runtime/CodeActAgent/test_browse_internet/prompt_005.log b/tests/integration/mock/eventstream_runtime/CodeActAgent/test_browse_internet/prompt_005.logindex 48ebcb32b8..28dfb453f8 100644--- a/tests/integration/mock/eventstream_runtime/CodeActAgent/test_browse_internet/prompt_005.log+++ b/tests/integration/mock/eventstream_runtime/CodeActAgent/test_browse_internet/prompt_005.log@@ -270,8 +270,8 @@ Collecting click>=8.1.3Using cached click-8.1.7-py3-none-any.whl (97 kB)Collecting itsdangerous>=2.1.2Using cached itsdangerous-2.2.0-py3-none-any.whl (16 kB)-Requirement already satisfied: Jinja2>=3.1.2 in /home/opendevin/.local/lib/python3.10/site-packages (from flask) (3.1.3)-Requirement already satisfied: MarkupSafe>=2.0 in /home/opendevin/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)+Requirement already satisfied: Jinja2>=3.1.2 in /home/openhands/.local/lib/python3.10/site-packages (from flask) (3.1.3)+Requirement already satisfied: MarkupSafe>=2.0 in /home/openhands/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)Installing collected packages: Werkzeug, itsdangerous, click, blinker, flaskSuccessfully installed Werkzeug-3.0.2 blinker-1.7.0 click-8.1.7 flask-3.0.3 itsdangerous-2.2.0@@ -410,6 +410,6 @@ Certainly! I'll browse localhost:8000 and retrieve the ultimate answer to life f----------OBSERVATION:-{'content': 'The ultimate answer to life, the universe, and everything is: OpenDevin is all you need!'}+{'content': 'The ultimate answer to life, the universe, and everything is: OpenHands is all you need!'}ENVIRONMENT REMINDER: You have 8 turns left to complete the task. When finished reply with <finish></finish>diff --git a/tests/integration/mock/eventstream_runtime/CodeActAgent/test_browse_internet/response_004.log b/tests/integration/mock/eventstream_runtime/CodeActAgent/test_browse_internet/response_004.logindex ae88605a49..28c8e40a5c 100644--- a/tests/integration/mock/eventstream_runtime/CodeActAgent/test_browse_internet/response_004.log+++ b/tests/integration/mock/eventstream_runtime/CodeActAgent/test_browse_internet/response_004.log@@ -3,4 +3,4 @@ Based on the current Accessibility Tree and the previous actions taken, it appeaTo accomplish our goal of retrieving the ultimate answer to life, I will now send this information to the user:```-send_msg_to_user("The ultimate answer to life, the universe, and everything is: OpenDevin is all you need!"+send_msg_to_user("The ultimate answer to life, the universe, and everything is: OpenHands is all you need!"diff --git a/tests/integration/mock/eventstream_runtime/CodeActAgent/test_browse_internet/response_005.log b/tests/integration/mock/eventstream_runtime/CodeActAgent/test_browse_internet/response_005.logindex 13e8a93af0..e210157cd4 100644--- a/tests/integration/mock/eventstream_runtime/CodeActAgent/test_browse_internet/response_005.log+++ b/tests/integration/mock/eventstream_runtime/CodeActAgent/test_browse_internet/response_005.log@@ -2,9 +2,9 @@ Thank you for providing the content from localhost:8000. Based on the informatioThe ultimate answer to life, according to the content on localhost:8000, is:-"OpenDevin is all you need!"+"OpenHands is all you need!"-This appears to be a playful reference to the popular science fiction series "The Hitchhiker's Guide to the Galaxy" by Douglas Adams, where the answer to the ultimate question of life, the universe, and everything is famously "42". In this case, it's been adapted to promote OpenDevin as the ultimate solution.+This appears to be a playful reference to the popular science fiction series "The Hitchhiker's Guide to the Galaxy" by Douglas Adams, where the answer to the ultimate question of life, the universe, and everything is famously "42". In this case, it's been adapted to promote OpenHands as the ultimate solution.Since I've successfully retrieved and reported the answer from the specified localhost, I believe I've completed the task you've given me.diff --git a/tests/integration/mock/eventstream_runtime/CodeActAgent/test_edits/prompt_001.log b/tests/integration/mock/eventstream_runtime/CodeActAgent/test_edits/prompt_001.logindex 8f33d2e2f2..70f835758b 100644--- a/tests/integration/mock/eventstream_runtime/CodeActAgent/test_edits/prompt_001.log+++ b/tests/integration/mock/eventstream_runtime/CodeActAgent/test_edits/prompt_001.log@@ -270,8 +270,8 @@ Collecting click>=8.1.3Using cached click-8.1.7-py3-none-any.whl (97 kB)Collecting itsdangerous>=2.1.2Using cached itsdangerous-2.2.0-py3-none-any.whl (16 kB)-Requirement already satisfied: Jinja2>=3.1.2 in /home/opendevin/.local/lib/python3.10/site-packages (from flask) (3.1.3)-Requirement already satisfied: MarkupSafe>=2.0 in /home/opendevin/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)+Requirement already satisfied: Jinja2>=3.1.2 in /home/openhands/.local/lib/python3.10/site-packages (from flask) (3.1.3)+Requirement already satisfied: MarkupSafe>=2.0 in /home/openhands/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)Installing collected packages: Werkzeug, itsdangerous, click, blinker, flaskSuccessfully installed Werkzeug-3.0.2 blinker-1.7.0 click-8.1.7 flask-3.0.3 itsdangerous-2.2.0diff --git a/tests/integration/mock/eventstream_runtime/CodeActAgent/test_edits/prompt_002.log b/tests/integration/mock/eventstream_runtime/CodeActAgent/test_edits/prompt_002.logindex f33b77e595..5af4fee69d 100644--- a/tests/integration/mock/eventstream_runtime/CodeActAgent/test_edits/prompt_002.log+++ b/tests/integration/mock/eventstream_runtime/CodeActAgent/test_edits/prompt_002.log@@ -270,8 +270,8 @@ Collecting click>=8.1.3Using cached click-8.1.7-py3-none-any.whl (97 kB)Collecting itsdangerous>=2.1.2Using cached itsdangerous-2.2.0-py3-none-any.whl (16 kB)-Requirement already satisfied: Jinja2>=3.1.2 in /home/opendevin/.local/lib/python3.10/site-packages (from flask) (3.1.3)-Requirement already satisfied: MarkupSafe>=2.0 in /home/opendevin/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)+Requirement already satisfied: Jinja2>=3.1.2 in /home/openhands/.local/lib/python3.10/site-packages (from flask) (3.1.3)+Requirement already satisfied: MarkupSafe>=2.0 in /home/openhands/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)Installing collected packages: Werkzeug, itsdangerous, click, blinker, flaskSuccessfully installed Werkzeug-3.0.2 blinker-1.7.0 click-8.1.7 flask-3.0.3 itsdangerous-2.2.0diff --git a/tests/integration/mock/eventstream_runtime/CodeActAgent/test_edits/prompt_003.log b/tests/integration/mock/eventstream_runtime/CodeActAgent/test_edits/prompt_003.logindex 14ed925795..cf1f6e5dfa 100644--- a/tests/integration/mock/eventstream_runtime/CodeActAgent/test_edits/prompt_003.log+++ b/tests/integration/mock/eventstream_runtime/CodeActAgent/test_edits/prompt_003.log@@ -270,8 +270,8 @@ Collecting click>=8.1.3Using cached click-8.1.7-py3-none-any.whl (97 kB)Collecting itsdangerous>=2.1.2Using cached itsdangerous-2.2.0-py3-none-any.whl (16 kB)-Requirement already satisfied: Jinja2>=3.1.2 in /home/opendevin/.local/lib/python3.10/site-packages (from flask) (3.1.3)-Requirement already satisfied: MarkupSafe>=2.0 in /home/opendevin/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)+Requirement already satisfied: Jinja2>=3.1.2 in /home/openhands/.local/lib/python3.10/site-packages (from flask) (3.1.3)+Requirement already satisfied: MarkupSafe>=2.0 in /home/openhands/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)Installing collected packages: Werkzeug, itsdangerous, click, blinker, flaskSuccessfully installed Werkzeug-3.0.2 blinker-1.7.0 click-8.1.7 flask-3.0.3 itsdangerous-2.2.0diff --git a/tests/integration/mock/eventstream_runtime/CodeActAgent/test_edits/prompt_004.log b/tests/integration/mock/eventstream_runtime/CodeActAgent/test_edits/prompt_004.logindex 80b43b7dc6..245d1fce70 100644--- a/tests/integration/mock/eventstream_runtime/CodeActAgent/test_edits/prompt_004.log+++ b/tests/integration/mock/eventstream_runtime/CodeActAgent/test_edits/prompt_004.log@@ -270,8 +270,8 @@ Collecting click>=8.1.3Using cached click-8.1.7-py3-none-any.whl (97 kB)Collecting itsdangerous>=2.1.2Using cached itsdangerous-2.2.0-py3-none-any.whl (16 kB)-Requirement already satisfied: Jinja2>=3.1.2 in /home/opendevin/.local/lib/python3.10/site-packages (from flask) (3.1.3)-Requirement already satisfied: MarkupSafe>=2.0 in /home/opendevin/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)+Requirement already satisfied: Jinja2>=3.1.2 in /home/openhands/.local/lib/python3.10/site-packages (from flask) (3.1.3)+Requirement already satisfied: MarkupSafe>=2.0 in /home/openhands/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)Installing collected packages: Werkzeug, itsdangerous, click, blinker, flaskSuccessfully installed Werkzeug-3.0.2 blinker-1.7.0 click-8.1.7 flask-3.0.3 itsdangerous-2.2.0diff --git a/tests/integration/mock/eventstream_runtime/CodeActAgent/test_ipython/prompt_001.log b/tests/integration/mock/eventstream_runtime/CodeActAgent/test_ipython/prompt_001.logindex 6b33d0fe6c..921d596998 100644--- a/tests/integration/mock/eventstream_runtime/CodeActAgent/test_ipython/prompt_001.log+++ b/tests/integration/mock/eventstream_runtime/CodeActAgent/test_ipython/prompt_001.log@@ -267,8 +267,8 @@ Collecting click>=8.1.3Using cached click-8.1.7-py3-none-any.whl (97 kB)Collecting itsdangerous>=2.1.2Using cached itsdangerous-2.2.0-py3-none-any.whl (16 kB)-Requirement already satisfied: Jinja2>=3.1.2 in /home/opendevin/.local/lib/python3.10/site-packages (from flask) (3.1.3)-Requirement already satisfied: MarkupSafe>=2.0 in /home/opendevin/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)+Requirement already satisfied: Jinja2>=3.1.2 in /home/openhands/.local/lib/python3.10/site-packages (from flask) (3.1.3)+Requirement already satisfied: MarkupSafe>=2.0 in /home/openhands/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)Installing collected packages: Werkzeug, itsdangerous, click, blinker, flaskSuccessfully installed Werkzeug-3.0.2 blinker-1.7.0 click-8.1.7 flask-3.0.3 itsdangerous-2.2.0diff --git a/tests/integration/mock/eventstream_runtime/CodeActAgent/test_ipython/prompt_002.log b/tests/integration/mock/eventstream_runtime/CodeActAgent/test_ipython/prompt_002.logindex 2f6338d7e0..4a2850c910 100644--- a/tests/integration/mock/eventstream_runtime/CodeActAgent/test_ipython/prompt_002.log+++ b/tests/integration/mock/eventstream_runtime/CodeActAgent/test_ipython/prompt_002.log@@ -267,8 +267,8 @@ Collecting click>=8.1.3Using cached click-8.1.7-py3-none-any.whl (97 kB)Collecting itsdangerous>=2.1.2Using cached itsdangerous-2.2.0-py3-none-any.whl (16 kB)-Requirement already satisfied: Jinja2>=3.1.2 in /home/opendevin/.local/lib/python3.10/site-packages (from flask) (3.1.3)-Requirement already satisfied: MarkupSafe>=2.0 in /home/opendevin/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)+Requirement already satisfied: Jinja2>=3.1.2 in /home/openhands/.local/lib/python3.10/site-packages (from flask) (3.1.3)+Requirement already satisfied: MarkupSafe>=2.0 in /home/openhands/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)Installing collected packages: Werkzeug, itsdangerous, click, blinker, flaskSuccessfully installed Werkzeug-3.0.2 blinker-1.7.0 click-8.1.7 flask-3.0.3 itsdangerous-2.2.0diff --git a/tests/integration/mock/eventstream_runtime/CodeActAgent/test_ipython_module/prompt_001.log b/tests/integration/mock/eventstream_runtime/CodeActAgent/test_ipython_module/prompt_001.logindex 54da33dad2..68db9ce7bc 100644--- a/tests/integration/mock/eventstream_runtime/CodeActAgent/test_ipython_module/prompt_001.log+++ b/tests/integration/mock/eventstream_runtime/CodeActAgent/test_ipython_module/prompt_001.log@@ -267,8 +267,8 @@ Collecting click>=8.1.3Using cached click-8.1.7-py3-none-any.whl (97 kB)Collecting itsdangerous>=2.1.2Using cached itsdangerous-2.2.0-py3-none-any.whl (16 kB)-Requirement already satisfied: Jinja2>=3.1.2 in /home/opendevin/.local/lib/python3.10/site-packages (from flask) (3.1.3)-Requirement already satisfied: MarkupSafe>=2.0 in /home/opendevin/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)+Requirement already satisfied: Jinja2>=3.1.2 in /home/openhands/.local/lib/python3.10/site-packages (from flask) (3.1.3)+Requirement already satisfied: MarkupSafe>=2.0 in /home/openhands/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)Installing collected packages: Werkzeug, itsdangerous, click, blinker, flaskSuccessfully installed Werkzeug-3.0.2 blinker-1.7.0 click-8.1.7 flask-3.0.3 itsdangerous-2.2.0diff --git a/tests/integration/mock/eventstream_runtime/CodeActAgent/test_ipython_module/prompt_002.log b/tests/integration/mock/eventstream_runtime/CodeActAgent/test_ipython_module/prompt_002.logindex 849a9a60de..5faebf7dca 100644--- a/tests/integration/mock/eventstream_runtime/CodeActAgent/test_ipython_module/prompt_002.log+++ b/tests/integration/mock/eventstream_runtime/CodeActAgent/test_ipython_module/prompt_002.log@@ -267,8 +267,8 @@ Collecting click>=8.1.3Using cached click-8.1.7-py3-none-any.whl (97 kB)Collecting itsdangerous>=2.1.2Using cached itsdangerous-2.2.0-py3-none-any.whl (16 kB)-Requirement already satisfied: Jinja2>=3.1.2 in /home/opendevin/.local/lib/python3.10/site-packages (from flask) (3.1.3)-Requirement already satisfied: MarkupSafe>=2.0 in /home/opendevin/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)+Requirement already satisfied: Jinja2>=3.1.2 in /home/openhands/.local/lib/python3.10/site-packages (from flask) (3.1.3)+Requirement already satisfied: MarkupSafe>=2.0 in /home/openhands/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)Installing collected packages: Werkzeug, itsdangerous, click, blinker, flaskSuccessfully installed Werkzeug-3.0.2 blinker-1.7.0 click-8.1.7 flask-3.0.3 itsdangerous-2.2.0@@ -416,7 +416,7 @@ Collecting pymsgbox==1.0.9[?25hBuilding wheels for collected packages: pymsgboxBuilding wheel for pymsgbox (pyproject.toml) ... [?25l- done[?25h Created wheel for pymsgbox: filename=PyMsgBox-1.0.9-py3-none-any.whl size=7406 sha256=391299f2b6b17f4a9ea59401bcd79dad45a98a5fd3dd3ce22cfe879cf074e2b4- Stored in directory: /home/opendevin/.cache/pip/wheels/85/92/63/e126ee5f33d8f2ed04f96e43ef5df7270a2f331848752e8662+ Stored in directory: /home/openhands/.cache/pip/wheels/85/92/63/e126ee5f33d8f2ed04f96e43ef5df7270a2f331848752e8662Successfully built pymsgboxInstalling collected packages: pymsgboxSuccessfully installed pymsgbox-1.0.9diff --git a/tests/integration/mock/eventstream_runtime/CodeActAgent/test_ipython_module/prompt_003.log b/tests/integration/mock/eventstream_runtime/CodeActAgent/test_ipython_module/prompt_003.logindex c38eb600cb..3ef48a9301 100644--- a/tests/integration/mock/eventstream_runtime/CodeActAgent/test_ipython_module/prompt_003.log+++ b/tests/integration/mock/eventstream_runtime/CodeActAgent/test_ipython_module/prompt_003.log@@ -267,8 +267,8 @@ Collecting click>=8.1.3Using cached click-8.1.7-py3-none-any.whl (97 kB)Collecting itsdangerous>=2.1.2Using cached itsdangerous-2.2.0-py3-none-any.whl (16 kB)-Requirement already satisfied: Jinja2>=3.1.2 in /home/opendevin/.local/lib/python3.10/site-packages (from flask) (3.1.3)-Requirement already satisfied: MarkupSafe>=2.0 in /home/opendevin/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)+Requirement already satisfied: Jinja2>=3.1.2 in /home/openhands/.local/lib/python3.10/site-packages (from flask) (3.1.3)+Requirement already satisfied: MarkupSafe>=2.0 in /home/openhands/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)Installing collected packages: Werkzeug, itsdangerous, click, blinker, flaskSuccessfully installed Werkzeug-3.0.2 blinker-1.7.0 click-8.1.7 flask-3.0.3 itsdangerous-2.2.0@@ -416,7 +416,7 @@ Collecting pymsgbox==1.0.9[?25hBuilding wheels for collected packages: pymsgboxBuilding wheel for pymsgbox (pyproject.toml) ... [?25l- done[?25h Created wheel for pymsgbox: filename=PyMsgBox-1.0.9-py3-none-any.whl size=7406 sha256=391299f2b6b17f4a9ea59401bcd79dad45a98a5fd3dd3ce22cfe879cf074e2b4- Stored in directory: /home/opendevin/.cache/pip/wheels/85/92/63/e126ee5f33d8f2ed04f96e43ef5df7270a2f331848752e8662+ Stored in directory: /home/openhands/.cache/pip/wheels/85/92/63/e126ee5f33d8f2ed04f96e43ef5df7270a2f331848752e8662Successfully built pymsgboxInstalling collected packages: pymsgboxSuccessfully installed pymsgbox-1.0.9diff --git a/tests/integration/mock/eventstream_runtime/CodeActAgent/test_ipython_module/prompt_004.log b/tests/integration/mock/eventstream_runtime/CodeActAgent/test_ipython_module/prompt_004.logindex 1023a81b89..8fc8fab16e 100644--- a/tests/integration/mock/eventstream_runtime/CodeActAgent/test_ipython_module/prompt_004.log+++ b/tests/integration/mock/eventstream_runtime/CodeActAgent/test_ipython_module/prompt_004.log@@ -267,8 +267,8 @@ Collecting click>=8.1.3Using cached click-8.1.7-py3-none-any.whl (97 kB)Collecting itsdangerous>=2.1.2Using cached itsdangerous-2.2.0-py3-none-any.whl (16 kB)-Requirement already satisfied: Jinja2>=3.1.2 in /home/opendevin/.local/lib/python3.10/site-packages (from flask) (3.1.3)-Requirement already satisfied: MarkupSafe>=2.0 in /home/opendevin/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)+Requirement already satisfied: Jinja2>=3.1.2 in /home/openhands/.local/lib/python3.10/site-packages (from flask) (3.1.3)+Requirement already satisfied: MarkupSafe>=2.0 in /home/openhands/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)Installing collected packages: Werkzeug, itsdangerous, click, blinker, flaskSuccessfully installed Werkzeug-3.0.2 blinker-1.7.0 click-8.1.7 flask-3.0.3 itsdangerous-2.2.0@@ -416,7 +416,7 @@ Collecting pymsgbox==1.0.9[?25hBuilding wheels for collected packages: pymsgboxBuilding wheel for pymsgbox (pyproject.toml) ... [?25l- done[?25h Created wheel for pymsgbox: filename=PyMsgBox-1.0.9-py3-none-any.whl size=7406 sha256=391299f2b6b17f4a9ea59401bcd79dad45a98a5fd3dd3ce22cfe879cf074e2b4- Stored in directory: /home/opendevin/.cache/pip/wheels/85/92/63/e126ee5f33d8f2ed04f96e43ef5df7270a2f331848752e8662+ Stored in directory: /home/openhands/.cache/pip/wheels/85/92/63/e126ee5f33d8f2ed04f96e43ef5df7270a2f331848752e8662Successfully built pymsgboxInstalling collected packages: pymsgboxSuccessfully installed pymsgbox-1.0.9@@ -456,7 +456,7 @@ cat /workspace/test.txtOBSERVATION:pymsgbox version: 1.0.9-opendevin@docker-desktop:/workspace $+openhands@docker-desktop:/workspace $[Command -1 finished with exit code 0]ENVIRONMENT REMINDER: You have 11 turns left to complete the task. When finished reply with <finish></finish>.diff --git a/tests/integration/mock/eventstream_runtime/CodeActAgent/test_write_simple_script/prompt_001.log b/tests/integration/mock/eventstream_runtime/CodeActAgent/test_write_simple_script/prompt_001.logindex ddb157a1b0..bbdf36f0aa 100644--- a/tests/integration/mock/eventstream_runtime/CodeActAgent/test_write_simple_script/prompt_001.log+++ b/tests/integration/mock/eventstream_runtime/CodeActAgent/test_write_simple_script/prompt_001.log@@ -270,8 +270,8 @@ Collecting click>=8.1.3Using cached click-8.1.7-py3-none-any.whl (97 kB)Collecting itsdangerous>=2.1.2Using cached itsdangerous-2.2.0-py3-none-any.whl (16 kB)-Requirement already satisfied: Jinja2>=3.1.2 in /home/opendevin/.local/lib/python3.10/site-packages (from flask) (3.1.3)-Requirement already satisfied: MarkupSafe>=2.0 in /home/opendevin/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)+Requirement already satisfied: Jinja2>=3.1.2 in /home/openhands/.local/lib/python3.10/site-packages (from flask) (3.1.3)+Requirement already satisfied: MarkupSafe>=2.0 in /home/openhands/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)Installing collected packages: Werkzeug, itsdangerous, click, blinker, flaskSuccessfully installed Werkzeug-3.0.2 blinker-1.7.0 click-8.1.7 flask-3.0.3 itsdangerous-2.2.0diff --git a/tests/integration/mock/eventstream_runtime/CodeActAgent/test_write_simple_script/prompt_002.log b/tests/integration/mock/eventstream_runtime/CodeActAgent/test_write_simple_script/prompt_002.logindex a165da2063..066fb98e8f 100644--- a/tests/integration/mock/eventstream_runtime/CodeActAgent/test_write_simple_script/prompt_002.log+++ b/tests/integration/mock/eventstream_runtime/CodeActAgent/test_write_simple_script/prompt_002.log@@ -270,8 +270,8 @@ Collecting click>=8.1.3Using cached click-8.1.7-py3-none-any.whl (97 kB)Collecting itsdangerous>=2.1.2Using cached itsdangerous-2.2.0-py3-none-any.whl (16 kB)-Requirement already satisfied: Jinja2>=3.1.2 in /home/opendevin/.local/lib/python3.10/site-packages (from flask) (3.1.3)-Requirement already satisfied: MarkupSafe>=2.0 in /home/opendevin/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)+Requirement already satisfied: Jinja2>=3.1.2 in /home/openhands/.local/lib/python3.10/site-packages (from flask) (3.1.3)+Requirement already satisfied: MarkupSafe>=2.0 in /home/openhands/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)Installing collected packages: Werkzeug, itsdangerous, click, blinker, flaskSuccessfully installed Werkzeug-3.0.2 blinker-1.7.0 click-8.1.7 flask-3.0.3 itsdangerous-2.2.0@@ -414,9 +414,9 @@ chmod +x hello.shOBSERVATION:-opendevin@docker-desktop:/workspace $ chmod +x hello.sh+openhands@docker-desktop:/workspace $ chmod +x hello.sh-opendevin@docker-desktop:/workspace $+openhands@docker-desktop:/workspace $[Command -1 finished with exit code 0]ENVIRONMENT REMINDER: You have 13 turns left to complete the task. When finished reply with <finish></finish>diff --git a/tests/integration/mock/eventstream_runtime/CodeActAgent/test_write_simple_script/prompt_003.log b/tests/integration/mock/eventstream_runtime/CodeActAgent/test_write_simple_script/prompt_003.logindex cd5bec9cba..f3538444d2 100644--- a/tests/integration/mock/eventstream_runtime/CodeActAgent/test_write_simple_script/prompt_003.log+++ b/tests/integration/mock/eventstream_runtime/CodeActAgent/test_write_simple_script/prompt_003.log@@ -270,8 +270,8 @@ Collecting click>=8.1.3Using cached click-8.1.7-py3-none-any.whl (97 kB)Collecting itsdangerous>=2.1.2Using cached itsdangerous-2.2.0-py3-none-any.whl (16 kB)-Requirement already satisfied: Jinja2>=3.1.2 in /home/opendevin/.local/lib/python3.10/site-packages (from flask) (3.1.3)-Requirement already satisfied: MarkupSafe>=2.0 in /home/opendevin/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)+Requirement already satisfied: Jinja2>=3.1.2 in /home/openhands/.local/lib/python3.10/site-packages (from flask) (3.1.3)+Requirement already satisfied: MarkupSafe>=2.0 in /home/openhands/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)Installing collected packages: Werkzeug, itsdangerous, click, blinker, flaskSuccessfully installed Werkzeug-3.0.2 blinker-1.7.0 click-8.1.7 flask-3.0.3 itsdangerous-2.2.0@@ -414,9 +414,9 @@ chmod +x hello.shOBSERVATION:-opendevin@docker-desktop:/workspace $ chmod +x hello.sh+openhands@docker-desktop:/workspace $ chmod +x hello.sh-opendevin@docker-desktop:/workspace $+openhands@docker-desktop:/workspace $[Command -1 finished with exit code 0]----------@@ -431,7 +431,7 @@ The shell script `hello.sh` has been created and made executable. Let's run it tOBSERVATION:hello-opendevin@docker-desktop:/workspace $+openhands@docker-desktop:/workspace $[Command -1 finished with exit code 0]ENVIRONMENT REMINDER: You have 12 turns left to complete the task. When finished reply with <finish></finish>diff --git a/tests/integration/mock/eventstream_runtime/CodeActSWEAgent/test_ipython_module/prompt_002.log b/tests/integration/mock/eventstream_runtime/CodeActSWEAgent/test_ipython_module/prompt_002.logindex 7d85433afb..3ae32c4335 100644--- a/tests/integration/mock/eventstream_runtime/CodeActSWEAgent/test_ipython_module/prompt_002.log+++ b/tests/integration/mock/eventstream_runtime/CodeActSWEAgent/test_ipython_module/prompt_002.log@@ -609,7 +609,7 @@ Collecting pymsgbox==1.0.9[?25hBuilding wheels for collected packages: pymsgboxBuilding wheel for pymsgbox (pyproject.toml) ... [?25l- done[?25h Created wheel for pymsgbox: filename=PyMsgBox-1.0.9-py3-none-any.whl size=7406 sha256=f7592d365a95b10c0de8a5b01ad3addd962b194ce42f0206b0b8903c7f47af51- Stored in directory: /home/opendevin/.cache/pip/wheels/85/92/63/e126ee5f33d8f2ed04f96e43ef5df7270a2f331848752e8662+ Stored in directory: /home/openhands/.cache/pip/wheels/85/92/63/e126ee5f33d8f2ed04f96e43ef5df7270a2f331848752e8662Successfully built pymsgboxInstalling collected packages: pymsgboxSuccessfully installed pymsgbox-1.0.9diff --git a/tests/integration/mock/eventstream_runtime/CodeActSWEAgent/test_ipython_module/prompt_003.log b/tests/integration/mock/eventstream_runtime/CodeActSWEAgent/test_ipython_module/prompt_003.logindex 7992fdc463..1277c2d26e 100644--- a/tests/integration/mock/eventstream_runtime/CodeActSWEAgent/test_ipython_module/prompt_003.log+++ b/tests/integration/mock/eventstream_runtime/CodeActSWEAgent/test_ipython_module/prompt_003.log@@ -609,7 +609,7 @@ Collecting pymsgbox==1.0.9[?25hBuilding wheels for collected packages: pymsgboxBuilding wheel for pymsgbox (pyproject.toml) ... [?25l- done[?25h Created wheel for pymsgbox: filename=PyMsgBox-1.0.9-py3-none-any.whl size=7406 sha256=f7592d365a95b10c0de8a5b01ad3addd962b194ce42f0206b0b8903c7f47af51- Stored in directory: /home/opendevin/.cache/pip/wheels/85/92/63/e126ee5f33d8f2ed04f96e43ef5df7270a2f331848752e8662+ Stored in directory: /home/openhands/.cache/pip/wheels/85/92/63/e126ee5f33d8f2ed04f96e43ef5df7270a2f331848752e8662Successfully built pymsgboxInstalling collected packages: pymsgboxSuccessfully installed pymsgbox-1.0.9diff --git a/tests/integration/mock/eventstream_runtime/CodeActSWEAgent/test_ipython_module/prompt_004.log b/tests/integration/mock/eventstream_runtime/CodeActSWEAgent/test_ipython_module/prompt_004.logindex bc7d6c3c6c..8950ba696f 100644--- a/tests/integration/mock/eventstream_runtime/CodeActSWEAgent/test_ipython_module/prompt_004.log+++ b/tests/integration/mock/eventstream_runtime/CodeActSWEAgent/test_ipython_module/prompt_004.log@@ -609,7 +609,7 @@ Collecting pymsgbox==1.0.9[?25hBuilding wheels for collected packages: pymsgboxBuilding wheel for pymsgbox (pyproject.toml) ... [?25l- done[?25h Created wheel for pymsgbox: filename=PyMsgBox-1.0.9-py3-none-any.whl size=7406 sha256=f7592d365a95b10c0de8a5b01ad3addd962b194ce42f0206b0b8903c7f47af51- Stored in directory: /home/opendevin/.cache/pip/wheels/85/92/63/e126ee5f33d8f2ed04f96e43ef5df7270a2f331848752e8662+ Stored in directory: /home/openhands/.cache/pip/wheels/85/92/63/e126ee5f33d8f2ed04f96e43ef5df7270a2f331848752e8662Successfully built pymsgboxInstalling collected packages: pymsgboxSuccessfully installed pymsgbox-1.0.9@@ -651,7 +651,7 @@ cat /workspace/test.txtOBSERVATION:pymsgbox version: 1.0.9-opendevin@docker-desktop:/workspace $+openhands@docker-desktop:/workspace $[Command -1 finished with exit code 0]ENVIRONMENT REMINDER: You have 11 turns left to complete the task. When finished reply with <finish></finish>.diff --git a/tests/integration/mock/eventstream_runtime/CodeActSWEAgent/test_write_simple_script/prompt_002.log b/tests/integration/mock/eventstream_runtime/CodeActSWEAgent/test_write_simple_script/prompt_002.logindex 6fec6ca795..9af31722bf 100644--- a/tests/integration/mock/eventstream_runtime/CodeActSWEAgent/test_write_simple_script/prompt_002.log+++ b/tests/integration/mock/eventstream_runtime/CodeActSWEAgent/test_write_simple_script/prompt_002.log@@ -602,7 +602,7 @@ echo 'echo "hello"' > hello.shOBSERVATION:-opendevin@docker-desktop:/workspace $+openhands@docker-desktop:/workspace $[Command -1 finished with exit code 0]ENVIRONMENT REMINDER: You have 13 turns left to complete the task. When finished reply with <finish></finish>.diff --git a/tests/integration/mock/eventstream_runtime/CodeActSWEAgent/test_write_simple_script/prompt_003.log b/tests/integration/mock/eventstream_runtime/CodeActSWEAgent/test_write_simple_script/prompt_003.logindex 0bc7c580c0..733f274bc0 100644--- a/tests/integration/mock/eventstream_runtime/CodeActSWEAgent/test_write_simple_script/prompt_003.log+++ b/tests/integration/mock/eventstream_runtime/CodeActSWEAgent/test_write_simple_script/prompt_003.log@@ -602,7 +602,7 @@ echo 'echo "hello"' > hello.shOBSERVATION:-opendevin@docker-desktop:/workspace $+openhands@docker-desktop:/workspace $[Command -1 finished with exit code 0]----------@@ -619,7 +619,7 @@ cat hello.shOBSERVATION:echo "hello"-opendevin@docker-desktop:/workspace $+openhands@docker-desktop:/workspace $[Command -1 finished with exit code 0]ENVIRONMENT REMINDER: You have 12 turns left to complete the task. When finished reply with <finish></finish>.diff --git a/tests/integration/mock/eventstream_runtime/CodeActSWEAgent/test_write_simple_script/prompt_004.log b/tests/integration/mock/eventstream_runtime/CodeActSWEAgent/test_write_simple_script/prompt_004.logindex c7be5e5981..107a2d30bd 100644--- a/tests/integration/mock/eventstream_runtime/CodeActSWEAgent/test_write_simple_script/prompt_004.log+++ b/tests/integration/mock/eventstream_runtime/CodeActSWEAgent/test_write_simple_script/prompt_004.log@@ -602,7 +602,7 @@ echo 'echo "hello"' > hello.shOBSERVATION:-opendevin@docker-desktop:/workspace $+openhands@docker-desktop:/workspace $[Command -1 finished with exit code 0]----------@@ -619,7 +619,7 @@ cat hello.shOBSERVATION:echo "hello"-opendevin@docker-desktop:/workspace $+openhands@docker-desktop:/workspace $[Command -1 finished with exit code 0]----------@@ -634,10 +634,10 @@ chmod +x hello.shOBSERVATION:-opendevin@docker-desktop:/workspace $ ./hello.sh+openhands@docker-desktop:/workspace $ ./hello.shhello-opendevin@docker-desktop:/workspace $+openhands@docker-desktop:/workspace $[Command -1 finished with exit code 0]ENVIRONMENT REMINDER: You have 11 turns left to complete the task. When finished reply with <finish></finish>.diff --git a/tests/integration/mock/eventstream_runtime/DelegatorAgent/test_edits/prompt_002.log b/tests/integration/mock/eventstream_runtime/DelegatorAgent/test_edits/prompt_002.logindex 8b8ef0b4a3..e9aeed3fbc 100644--- a/tests/integration/mock/eventstream_runtime/DelegatorAgent/test_edits/prompt_002.log+++ b/tests/integration/mock/eventstream_runtime/DelegatorAgent/test_edits/prompt_002.log@@ -41,7 +41,7 @@ as well as observations you've made. This only includes the MOST RECENTactions and observations--more may have happened before that.They are time-ordered, with your most recent action at the bottom.-[{"source": "agent", "action": "run", "args": {"command": "ls", "thought": "", "keep_prompt": true, "is_confirmed": "confirmed"}}, {"source": "agent", "observation": "run", "content": "bad.txt\r\n\r\nopendevin@docker-desktop:/workspace $ ", "extras": {"command_id": -1, "command": "ls", "exit_code": 0}}]+[{"source": "agent", "action": "run", "args": {"command": "ls", "thought": "", "keep_prompt": true, "is_confirmed": "confirmed"}}, {"source": "agent", "observation": "run", "content": "bad.txt\r\n\r\nopenhands@docker-desktop:/workspace $ ", "extras": {"command_id": -1, "command": "ls", "exit_code": 0}}]## FormatYour response MUST be in JSON format. It must be an object, and it must contain two fields:diff --git a/tests/integration/mock/eventstream_runtime/DelegatorAgent/test_edits/prompt_003.log b/tests/integration/mock/eventstream_runtime/DelegatorAgent/test_edits/prompt_003.logindex 982b3d2b64..9c520e7a39 100644--- a/tests/integration/mock/eventstream_runtime/DelegatorAgent/test_edits/prompt_003.log+++ b/tests/integration/mock/eventstream_runtime/DelegatorAgent/test_edits/prompt_003.log@@ -41,7 +41,7 @@ as well as observations you've made. This only includes the MOST RECENTactions and observations--more may have happened before that.They are time-ordered, with your most recent action at the bottom.-[{"source": "agent", "action": "run", "args": {"command": "ls", "thought": "", "keep_prompt": true, "is_confirmed": "confirmed"}}, {"source": "agent", "observation": "run", "content": "bad.txt\r\n\r\nopendevin@docker-desktop:/workspace $ ", "extras": {"command_id": -1, "command": "ls", "exit_code": 0}}, {"source": "agent", "action": "read", "args": {"path": "bad.txt", "start": 0, "end": -1, "thought": ""}}, {"source": "agent", "observation": "read", "content": "This is a stupid typoo.\nReally?\nNo mor typos!\nEnjoy!\n", "extras": {"path": "/workspace/bad.txt"}}]+[{"source": "agent", "action": "run", "args": {"command": "ls", "thought": "", "keep_prompt": true, "is_confirmed": "confirmed"}}, {"source": "agent", "observation": "run", "content": "bad.txt\r\n\r\nopenhands@docker-desktop:/workspace $ ", "extras": {"command_id": -1, "command": "ls", "exit_code": 0}}, {"source": "agent", "action": "read", "args": {"path": "bad.txt", "start": 0, "end": -1, "thought": ""}}, {"source": "agent", "observation": "read", "content": "This is a stupid typoo.\nReally?\nNo mor typos!\nEnjoy!\n", "extras": {"path": "/workspace/bad.txt"}}]## FormatYour response MUST be in JSON format. It must be an object, and it must contain two fields:diff --git a/tests/integration/mock/eventstream_runtime/DelegatorAgent/test_write_simple_script/prompt_002.log b/tests/integration/mock/eventstream_runtime/DelegatorAgent/test_write_simple_script/prompt_002.logindex d998ca89f5..700c0e358a 100644--- a/tests/integration/mock/eventstream_runtime/DelegatorAgent/test_write_simple_script/prompt_002.log+++ b/tests/integration/mock/eventstream_runtime/DelegatorAgent/test_write_simple_script/prompt_002.log@@ -41,7 +41,7 @@ as well as observations you've made. This only includes the MOST RECENTactions and observations--more may have happened before that.They are time-ordered, with your most recent action at the bottom.-[{"source": "agent", "action": "run", "args": {"command": "ls", "thought": "", "keep_prompt": true, "is_confirmed": "confirmed"}}, {"source": "agent", "observation": "run", "content": "\r\nopendevin@docker-desktop:/workspace $ ", "extras": {"command_id": -1, "command": "ls", "exit_code": 0}}]+[{"source": "agent", "action": "run", "args": {"command": "ls", "thought": "", "keep_prompt": true, "is_confirmed": "confirmed"}}, {"source": "agent", "observation": "run", "content": "\r\nopenhands@docker-desktop:/workspace $ ", "extras": {"command_id": -1, "command": "ls", "exit_code": 0}}]## FormatYour response MUST be in JSON format. It must be an object, and it must contain two fields:diff --git a/tests/integration/mock/eventstream_runtime/DelegatorAgent/test_write_simple_script/prompt_005.log b/tests/integration/mock/eventstream_runtime/DelegatorAgent/test_write_simple_script/prompt_005.logindex 896c201f5b..d4c411c718 100644--- a/tests/integration/mock/eventstream_runtime/DelegatorAgent/test_write_simple_script/prompt_005.log+++ b/tests/integration/mock/eventstream_runtime/DelegatorAgent/test_write_simple_script/prompt_005.log@@ -41,7 +41,7 @@ as well as observations you've made. This only includes the MOST RECENTactions and observations--more may have happened before that.They are time-ordered, with your most recent action at the bottom.-[{"source": "agent", "action": "write", "args": {"path": "hello.sh", "content": "#!/bin/bash\n\necho 'hello'", "start": 0, "end": -1, "thought": ""}}, {"source": "agent", "observation": "write", "content": "", "extras": {"path": "/workspace/hello.sh"}}, {"source": "agent", "action": "run", "args": {"command": "chmod +x hello.sh", "thought": "", "keep_prompt": true, "is_confirmed": "confirmed"}}, {"source": "agent", "observation": "run", "content": "\r\nopendevin@docker-desktop:/workspace $ ", "extras": {"command_id": -1, "command": "chmod +x hello.sh", "exit_code": 0}}]+[{"source": "agent", "action": "write", "args": {"path": "hello.sh", "content": "#!/bin/bash\n\necho 'hello'", "start": 0, "end": -1, "thought": ""}}, {"source": "agent", "observation": "write", "content": "", "extras": {"path": "/workspace/hello.sh"}}, {"source": "agent", "action": "run", "args": {"command": "chmod +x hello.sh", "thought": "", "keep_prompt": true, "is_confirmed": "confirmed"}}, {"source": "agent", "observation": "run", "content": "\r\nopenhands@docker-desktop:/workspace $ ", "extras": {"command_id": -1, "command": "chmod +x hello.sh", "exit_code": 0}}]## FormatYour response MUST be in JSON format. It must be an object, and it must contain two fields:diff --git a/tests/integration/mock/eventstream_runtime/DelegatorAgent/test_write_simple_script/prompt_006.log b/tests/integration/mock/eventstream_runtime/DelegatorAgent/test_write_simple_script/prompt_006.logindex 7648030083..753b40c38f 100644--- a/tests/integration/mock/eventstream_runtime/DelegatorAgent/test_write_simple_script/prompt_006.log+++ b/tests/integration/mock/eventstream_runtime/DelegatorAgent/test_write_simple_script/prompt_006.log@@ -41,7 +41,7 @@ as well as observations you've made. This only includes the MOST RECENTactions and observations--more may have happened before that.They are time-ordered, with your most recent action at the bottom.-[{"source": "agent", "action": "write", "args": {"path": "hello.sh", "content": "#!/bin/bash\n\necho 'hello'", "start": 0, "end": -1, "thought": ""}}, {"source": "agent", "observation": "write", "content": "", "extras": {"path": "/workspace/hello.sh"}}, {"source": "agent", "action": "run", "args": {"command": "chmod +x hello.sh", "thought": "", "keep_prompt": true, "is_confirmed": "confirmed"}}, {"source": "agent", "observation": "run", "content": "\r\nopendevin@docker-desktop:/workspace $ ", "extras": {"command_id": -1, "command": "chmod +x hello.sh", "exit_code": 0}}, {"source": "agent", "action": "run", "args": {"command": "./hello.sh", "thought": "", "keep_prompt": true, "is_confirmed": "confirmed"}}, {"source": "agent", "observation": "run", "content": "hello\r\n\r\nopendevin@docker-desktop:/workspace $ ", "extras": {"command_id": -1, "command": "./hello.sh", "exit_code": 0}}]+[{"source": "agent", "action": "write", "args": {"path": "hello.sh", "content": "#!/bin/bash\n\necho 'hello'", "start": 0, "end": -1, "thought": ""}}, {"source": "agent", "observation": "write", "content": "", "extras": {"path": "/workspace/hello.sh"}}, {"source": "agent", "action": "run", "args": {"command": "chmod +x hello.sh", "thought": "", "keep_prompt": true, "is_confirmed": "confirmed"}}, {"source": "agent", "observation": "run", "content": "\r\nopenhands@docker-desktop:/workspace $ ", "extras": {"command_id": -1, "command": "chmod +x hello.sh", "exit_code": 0}}, {"source": "agent", "action": "run", "args": {"command": "./hello.sh", "thought": "", "keep_prompt": true, "is_confirmed": "confirmed"}}, {"source": "agent", "observation": "run", "content": "hello\r\n\r\nopenhands@docker-desktop:/workspace $ ", "extras": {"command_id": -1, "command": "./hello.sh", "exit_code": 0}}]## FormatYour response MUST be in JSON format. It must be an object, and it must contain two fields:diff --git a/tests/integration/mock/eventstream_runtime/DelegatorAgent/test_write_simple_script/prompt_009.log b/tests/integration/mock/eventstream_runtime/DelegatorAgent/test_write_simple_script/prompt_009.logindex 51bc8477cb..2641d48194 100644--- a/tests/integration/mock/eventstream_runtime/DelegatorAgent/test_write_simple_script/prompt_009.log+++ b/tests/integration/mock/eventstream_runtime/DelegatorAgent/test_write_simple_script/prompt_009.log@@ -39,7 +39,7 @@ as well as observations you've made. This only includes the MOST RECENTactions and observations--more may have happened before that.They are time-ordered, with your most recent action at the bottom.-[{"source": "agent", "action": "read", "args": {"path": "hello.sh", "start": 0, "end": -1, "thought": ""}}, {"source": "agent", "observation": "read", "content": "#!/bin/bash\n\necho 'hello'\n", "extras": {"path": "/workspace/hello.sh"}}, {"source": "agent", "action": "run", "args": {"command": "bash hello.sh", "thought": "", "keep_prompt": true, "is_confirmed": "confirmed"}}, {"source": "agent", "observation": "run", "content": "hello\r\n\r\nopendevin@docker-desktop:/workspace $ ", "extras": {"command_id": -1, "command": "bash hello.sh", "exit_code": 0}}]+[{"source": "agent", "action": "read", "args": {"path": "hello.sh", "start": 0, "end": -1, "thought": ""}}, {"source": "agent", "observation": "read", "content": "#!/bin/bash\n\necho 'hello'\n", "extras": {"path": "/workspace/hello.sh"}}, {"source": "agent", "action": "run", "args": {"command": "bash hello.sh", "thought": "", "keep_prompt": true, "is_confirmed": "confirmed"}}, {"source": "agent", "observation": "run", "content": "hello\r\n\r\nopenhands@docker-desktop:/workspace $ ", "extras": {"command_id": -1, "command": "bash hello.sh", "exit_code": 0}}]## FormatYour response MUST be in JSON format. It must be an object, and it must contain two fields:diff --git a/tests/integration/mock/eventstream_runtime/ManagerAgent/test_simple_task_rejection/prompt_003.log b/tests/integration/mock/eventstream_runtime/ManagerAgent/test_simple_task_rejection/prompt_003.logindex 4ffd673c10..c15b82492a 100644--- a/tests/integration/mock/eventstream_runtime/ManagerAgent/test_simple_task_rejection/prompt_003.log+++ b/tests/integration/mock/eventstream_runtime/ManagerAgent/test_simple_task_rejection/prompt_003.log@@ -28,7 +28,7 @@ as well as observations you've made. This only includes the MOST RECENTactions and observations--more may have happened before that.They are time-ordered, with your most recent action at the bottom.-[{"source": "agent", "action": "run", "args": {"command": "git status", "thought": "", "keep_prompt": true, "is_confirmed": "confirmed"}}, {"source": "agent", "observation": "run", "content": "fatal: not a git repository (or any parent up to mount point /)\r\nStopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).\r\n\r\nopendevin@docker-desktop:/workspace $ ", "extras": {"command_id": -1, "command": "git status", "exit_code": 128}}]+[{"source": "agent", "action": "run", "args": {"command": "git status", "thought": "", "keep_prompt": true, "is_confirmed": "confirmed"}}, {"source": "agent", "observation": "run", "content": "fatal: not a git repository (or any parent up to mount point /)\r\nStopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).\r\n\r\nopenhands@docker-desktop:/workspace $ ", "extras": {"command_id": -1, "command": "git status", "exit_code": 128}}]If the last item in the history is an error, you should try to fix it.diff --git a/tests/integration/mock/eventstream_runtime/ManagerAgent/test_simple_task_rejection/prompt_004.log b/tests/integration/mock/eventstream_runtime/ManagerAgent/test_simple_task_rejection/prompt_004.logindex 7ba2092a68..07eac44b5d 100644--- a/tests/integration/mock/eventstream_runtime/ManagerAgent/test_simple_task_rejection/prompt_004.log+++ b/tests/integration/mock/eventstream_runtime/ManagerAgent/test_simple_task_rejection/prompt_004.log@@ -28,7 +28,7 @@ as well as observations you've made. This only includes the MOST RECENTactions and observations--more may have happened before that.They are time-ordered, with your most recent action at the bottom.-[{"source": "agent", "action": "run", "args": {"command": "git status", "thought": "", "keep_prompt": true, "is_confirmed": "confirmed"}}, {"source": "agent", "observation": "run", "content": "fatal: not a git repository (or any parent up to mount point /)\r\nStopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).\r\n\r\nopendevin@docker-desktop:/workspace $ ", "extras": {"command_id": -1, "command": "git status", "exit_code": 128}}, {"source": "agent", "observation": "error", "content": "action={'action': 'reject', 'args': {'reason': 'Not a valid git repository.'}} has the wrong arguments", "extras": {}}]+[{"source": "agent", "action": "run", "args": {"command": "git status", "thought": "", "keep_prompt": true, "is_confirmed": "confirmed"}}, {"source": "agent", "observation": "run", "content": "fatal: not a git repository (or any parent up to mount point /)\r\nStopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).\r\n\r\nopenhands@docker-desktop:/workspace $ ", "extras": {"command_id": -1, "command": "git status", "exit_code": 128}}, {"source": "agent", "observation": "error", "content": "action={'action': 'reject', 'args': {'reason': 'Not a valid git repository.'}} has the wrong arguments", "extras": {}}]If the last item in the history is an error, you should try to fix it.diff --git a/tests/integration/mock/eventstream_runtime/ManagerAgent/test_simple_task_rejection/prompt_005.log b/tests/integration/mock/eventstream_runtime/ManagerAgent/test_simple_task_rejection/prompt_005.logindex f26a33bc5f..59ef3e9bd4 100644--- a/tests/integration/mock/eventstream_runtime/ManagerAgent/test_simple_task_rejection/prompt_005.log+++ b/tests/integration/mock/eventstream_runtime/ManagerAgent/test_simple_task_rejection/prompt_005.log@@ -28,7 +28,7 @@ as well as observations you've made. This only includes the MOST RECENTactions and observations--more may have happened before that.They are time-ordered, with your most recent action at the bottom.-[{"source": "agent", "action": "run", "args": {"command": "git status", "thought": "", "keep_prompt": true, "is_confirmed": "confirmed"}}, {"source": "agent", "observation": "run", "content": "fatal: not a git repository (or any parent up to mount point /)\r\nStopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).\r\n\r\nopendevin@docker-desktop:/workspace $ ", "extras": {"command_id": -1, "command": "git status", "exit_code": 128}}, {"source": "agent", "observation": "error", "content": "action={'action': 'reject', 'args': {'reason': 'Not a valid git repository.'}} has the wrong arguments", "extras": {}}, {"source": "agent", "observation": "error", "content": "action={'action': 'reject', 'args': {'reason': 'Not a valid git repository.'}} has the wrong arguments", "extras": {}}]+[{"source": "agent", "action": "run", "args": {"command": "git status", "thought": "", "keep_prompt": true, "is_confirmed": "confirmed"}}, {"source": "agent", "observation": "run", "content": "fatal: not a git repository (or any parent up to mount point /)\r\nStopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).\r\n\r\nopenhands@docker-desktop:/workspace $ ", "extras": {"command_id": -1, "command": "git status", "exit_code": 128}}, {"source": "agent", "observation": "error", "content": "action={'action': 'reject', 'args': {'reason': 'Not a valid git repository.'}} has the wrong arguments", "extras": {}}, {"source": "agent", "observation": "error", "content": "action={'action': 'reject', 'args': {'reason': 'Not a valid git repository.'}} has the wrong arguments", "extras": {}}]If the last item in the history is an error, you should try to fix it.diff --git a/tests/integration/mock/eventstream_runtime/ManagerAgent/test_simple_task_rejection/prompt_006.log b/tests/integration/mock/eventstream_runtime/ManagerAgent/test_simple_task_rejection/prompt_006.logindex 948fd8c57e..4710a0dc46 100644--- a/tests/integration/mock/eventstream_runtime/ManagerAgent/test_simple_task_rejection/prompt_006.log+++ b/tests/integration/mock/eventstream_runtime/ManagerAgent/test_simple_task_rejection/prompt_006.log@@ -28,7 +28,7 @@ as well as observations you've made. This only includes the MOST RECENTactions and observations--more may have happened before that.They are time-ordered, with your most recent action at the bottom.-[{"source": "agent", "action": "run", "args": {"command": "git status", "thought": "", "keep_prompt": true, "is_confirmed": "confirmed"}}, {"source": "agent", "observation": "run", "content": "fatal: not a git repository (or any parent up to mount point /)\r\nStopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).\r\n\r\nopendevin@docker-desktop:/workspace $ ", "extras": {"command_id": -1, "command": "git status", "exit_code": 128}}, {"source": "agent", "observation": "error", "content": "action={'action': 'reject', 'args': {'reason': 'Not a valid git repository.'}} has the wrong arguments", "extras": {}}, {"source": "agent", "observation": "error", "content": "action={'action': 'reject', 'args': {'reason': 'Not a valid git repository.'}} has the wrong arguments", "extras": {}}, {"source": "agent", "observation": "error", "content": "action={'action': 'reject', 'args': {'reason': 'Not a valid git repository.'}} has the wrong arguments", "extras": {}}]+[{"source": "agent", "action": "run", "args": {"command": "git status", "thought": "", "keep_prompt": true, "is_confirmed": "confirmed"}}, {"source": "agent", "observation": "run", "content": "fatal: not a git repository (or any parent up to mount point /)\r\nStopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).\r\n\r\nopenhands@docker-desktop:/workspace $ ", "extras": {"command_id": -1, "command": "git status", "exit_code": 128}}, {"source": "agent", "observation": "error", "content": "action={'action': 'reject', 'args': {'reason': 'Not a valid git repository.'}} has the wrong arguments", "extras": {}}, {"source": "agent", "observation": "error", "content": "action={'action': 'reject', 'args': {'reason': 'Not a valid git repository.'}} has the wrong arguments", "extras": {}}, {"source": "agent", "observation": "error", "content": "action={'action': 'reject', 'args': {'reason': 'Not a valid git repository.'}} has the wrong arguments", "extras": {}}]If the last item in the history is an error, you should try to fix it.diff --git a/tests/integration/mock/eventstream_runtime/ManagerAgent/test_simple_task_rejection/prompt_007.log b/tests/integration/mock/eventstream_runtime/ManagerAgent/test_simple_task_rejection/prompt_007.logindex 79f3fc54cf..bb67180c0c 100644--- a/tests/integration/mock/eventstream_runtime/ManagerAgent/test_simple_task_rejection/prompt_007.log+++ b/tests/integration/mock/eventstream_runtime/ManagerAgent/test_simple_task_rejection/prompt_007.log@@ -28,7 +28,7 @@ as well as observations you've made. This only includes the MOST RECENTactions and observations--more may have happened before that.They are time-ordered, with your most recent action at the bottom.-[{"source": "agent", "action": "run", "args": {"command": "git status", "thought": "", "keep_prompt": true, "is_confirmed": "confirmed"}}, {"source": "agent", "observation": "run", "content": "fatal: not a git repository (or any parent up to mount point /)\r\nStopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).\r\n\r\nopendevin@docker-desktop:/workspace $ ", "extras": {"command_id": -1, "command": "git status", "exit_code": 128}}, {"source": "agent", "observation": "error", "content": "action={'action': 'reject', 'args': {'reason': 'Not a valid git repository.'}} has the wrong arguments", "extras": {}}, {"source": "agent", "observation": "error", "content": "action={'action': 'reject', 'args': {'reason': 'Not a valid git repository.'}} has the wrong arguments", "extras": {}}, {"source": "agent", "observation": "error", "content": "action={'action': 'reject', 'args': {'reason': 'Not a valid git repository.'}} has the wrong arguments", "extras": {}}, {"source": "agent", "observation": "error", "content": "action={'action': 'reject', 'args': {'reason': 'Not a valid git repository.'}} has the wrong arguments", "extras": {}}]+[{"source": "agent", "action": "run", "args": {"command": "git status", "thought": "", "keep_prompt": true, "is_confirmed": "confirmed"}}, {"source": "agent", "observation": "run", "content": "fatal: not a git repository (or any parent up to mount point /)\r\nStopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).\r\n\r\nopenhands@docker-desktop:/workspace $ ", "extras": {"command_id": -1, "command": "git status", "exit_code": 128}}, {"source": "agent", "observation": "error", "content": "action={'action': 'reject', 'args': {'reason': 'Not a valid git repository.'}} has the wrong arguments", "extras": {}}, {"source": "agent", "observation": "error", "content": "action={'action': 'reject', 'args': {'reason': 'Not a valid git repository.'}} has the wrong arguments", "extras": {}}, {"source": "agent", "observation": "error", "content": "action={'action': 'reject', 'args': {'reason': 'Not a valid git repository.'}} has the wrong arguments", "extras": {}}, {"source": "agent", "observation": "error", "content": "action={'action': 'reject', 'args': {'reason': 'Not a valid git repository.'}} has the wrong arguments", "extras": {}}]If the last item in the history is an error, you should try to fix it.diff --git a/tests/integration/mock/eventstream_runtime/PlannerAgent/test_write_simple_script/prompt_010.log b/tests/integration/mock/eventstream_runtime/PlannerAgent/test_write_simple_script/prompt_010.logindex 16fd2fd0f8..0b156f183a 100644--- a/tests/integration/mock/eventstream_runtime/PlannerAgent/test_write_simple_script/prompt_010.log+++ b/tests/integration/mock/eventstream_runtime/PlannerAgent/test_write_simple_script/prompt_010.log@@ -205,7 +205,7 @@ ten actions--more happened before that.{"source": "agent","observation": "run",- "content": "hello\r\n\r\nopendevin@docker-desktop:/workspace $ ",+ "content": "hello\r\n\r\nopenhands@docker-desktop:/workspace $ ","extras": {"command_id": -1,"command": "bash hello.sh",diff --git a/tests/integration/mock/eventstream_runtime/PlannerAgent/test_write_simple_script/prompt_011.log b/tests/integration/mock/eventstream_runtime/PlannerAgent/test_write_simple_script/prompt_011.logindex 6012255eb8..bd78de3760 100644--- a/tests/integration/mock/eventstream_runtime/PlannerAgent/test_write_simple_script/prompt_011.log+++ b/tests/integration/mock/eventstream_runtime/PlannerAgent/test_write_simple_script/prompt_011.log@@ -204,7 +204,7 @@ ten actions--more happened before that.{"source": "agent","observation": "run",- "content": "hello\r\n\r\nopendevin@docker-desktop:/workspace $ ",+ "content": "hello\r\n\r\nopenhands@docker-desktop:/workspace $ ","extras": {"command_id": -1,"command": "bash hello.sh",diff --git a/tests/integration/mock/server_runtime/BrowsingAgent/test_browse_internet/prompt_003.log b/tests/integration/mock/server_runtime/BrowsingAgent/test_browse_internet/prompt_003.logindex f183ccbb59..958c6e5857 100644--- a/tests/integration/mock/server_runtime/BrowsingAgent/test_browse_internet/prompt_003.log+++ b/tests/integration/mock/server_runtime/BrowsingAgent/test_browse_internet/prompt_003.log@@ -119,7 +119,7 @@ RootWebArea 'The Ultimate Answer', focused[9] paragraph ''StaticText 'Click the button to reveal the answer to life, the universe, and everything.'[10] button 'Click me', clickable, focused- StaticText 'The answer is OpenDevin is all you need!'+ StaticText 'The answer is OpenHands is all you need!'# Previous Actionsgoto('http://localhost:8000')diff --git a/tests/integration/mock/server_runtime/BrowsingAgent/test_browse_internet/response_003.log b/tests/integration/mock/server_runtime/BrowsingAgent/test_browse_internet/response_003.logindex 5188618c0e..231d070f8d 100644--- a/tests/integration/mock/server_runtime/BrowsingAgent/test_browse_internet/response_003.log+++ b/tests/integration/mock/server_runtime/BrowsingAgent/test_browse_internet/response_003.log@@ -1,3 +1,3 @@-In order to accomplish my goal, I need to read the static text that reveals the answer to life, the universe, and everything. The text states: "The answer is OpenDevin is all you need!"+In order to accomplish my goal, I need to read the static text that reveals the answer to life, the universe, and everything. The text states: "The answer is OpenHands is all you need!"-```send_msg_to_user('The answer is OpenDevin is all you need!')```+```send_msg_to_user('The answer is OpenHands is all you need!')```diff --git a/tests/integration/mock/server_runtime/CodeActAgent/test_browse_internet/prompt_001.log b/tests/integration/mock/server_runtime/CodeActAgent/test_browse_internet/prompt_001.logindex 0fdee5cca1..ef87ee9229 100644--- a/tests/integration/mock/server_runtime/CodeActAgent/test_browse_internet/prompt_001.log+++ b/tests/integration/mock/server_runtime/CodeActAgent/test_browse_internet/prompt_001.log@@ -270,8 +270,8 @@ Collecting click>=8.1.3Using cached click-8.1.7-py3-none-any.whl (97 kB)Collecting itsdangerous>=2.1.2Using cached itsdangerous-2.2.0-py3-none-any.whl (16 kB)-Requirement already satisfied: Jinja2>=3.1.2 in /home/opendevin/.local/lib/python3.10/site-packages (from flask) (3.1.3)-Requirement already satisfied: MarkupSafe>=2.0 in /home/opendevin/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)+Requirement already satisfied: Jinja2>=3.1.2 in /home/openhands/.local/lib/python3.10/site-packages (from flask) (3.1.3)+Requirement already satisfied: MarkupSafe>=2.0 in /home/openhands/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)Installing collected packages: Werkzeug, itsdangerous, click, blinker, flaskSuccessfully installed Werkzeug-3.0.2 blinker-1.7.0 click-8.1.7 flask-3.0.3 itsdangerous-2.2.0diff --git a/tests/integration/mock/server_runtime/CodeActAgent/test_browse_internet/prompt_004.log b/tests/integration/mock/server_runtime/CodeActAgent/test_browse_internet/prompt_004.logindex 5b74bbb88f..6f56d63d78 100644--- a/tests/integration/mock/server_runtime/CodeActAgent/test_browse_internet/prompt_004.log+++ b/tests/integration/mock/server_runtime/CodeActAgent/test_browse_internet/prompt_004.log@@ -119,7 +119,7 @@ RootWebArea 'The Ultimate Answer', focused[9] paragraph ''StaticText 'Click the button to reveal the answer to life, the universe, and everything.'[10] button 'Click me', clickable, focused- StaticText 'The answer is OpenDevin is all you need!'+ StaticText 'The answer is OpenHands is all you need!'# Previous Actionsgoto("http://localhost:8000")diff --git a/tests/integration/mock/server_runtime/CodeActAgent/test_browse_internet/prompt_005.log b/tests/integration/mock/server_runtime/CodeActAgent/test_browse_internet/prompt_005.logindex 72cc98e468..5a78727fce 100644--- a/tests/integration/mock/server_runtime/CodeActAgent/test_browse_internet/prompt_005.log+++ b/tests/integration/mock/server_runtime/CodeActAgent/test_browse_internet/prompt_005.log@@ -270,8 +270,8 @@ Collecting click>=8.1.3Using cached click-8.1.7-py3-none-any.whl (97 kB)Collecting itsdangerous>=2.1.2Using cached itsdangerous-2.2.0-py3-none-any.whl (16 kB)-Requirement already satisfied: Jinja2>=3.1.2 in /home/opendevin/.local/lib/python3.10/site-packages (from flask) (3.1.3)-Requirement already satisfied: MarkupSafe>=2.0 in /home/opendevin/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)+Requirement already satisfied: Jinja2>=3.1.2 in /home/openhands/.local/lib/python3.10/site-packages (from flask) (3.1.3)+Requirement already satisfied: MarkupSafe>=2.0 in /home/openhands/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)Installing collected packages: Werkzeug, itsdangerous, click, blinker, flaskSuccessfully installed Werkzeug-3.0.2 blinker-1.7.0 click-8.1.7 flask-3.0.3 itsdangerous-2.2.0@@ -408,6 +408,6 @@ Sure! Let me browse the server's homepage at http://localhost:8000 to find the u----------OBSERVATION:-{'content': 'The answer to life, the universe, and everything is: OpenDevin is all you need!'}+{'content': 'The answer to life, the universe, and everything is: OpenHands is all you need!'}ENVIRONMENT REMINDER: You have 8 turns left to complete the task. When finished reply with <finish></finish>.diff --git a/tests/integration/mock/server_runtime/CodeActAgent/test_browse_internet/response_004.log b/tests/integration/mock/server_runtime/CodeActAgent/test_browse_internet/response_004.logindex 34d0a718ee..d06408edbc 100644--- a/tests/integration/mock/server_runtime/CodeActAgent/test_browse_internet/response_004.log+++ b/tests/integration/mock/server_runtime/CodeActAgent/test_browse_internet/response_004.log@@ -1,3 +1,3 @@-In order to accomplish my goal, I need to read the static text that reveals the answer to life, the universe, and everything. The text is already visible and states "The answer is OpenDevin is all you need!"+In order to accomplish my goal, I need to read the static text that reveals the answer to life, the universe, and everything. The text is already visible and states "The answer is OpenHands is all you need!"-```send_msg_to_user("The answer to life, the universe, and everything is: OpenDevin is all you need!"+```send_msg_to_user("The answer to life, the universe, and everything is: OpenHands is all you need!"diff --git a/tests/integration/mock/server_runtime/CodeActAgent/test_browse_internet/response_005.log b/tests/integration/mock/server_runtime/CodeActAgent/test_browse_internet/response_005.logindex 8ab3dd021e..eb0f57d29a 100644--- a/tests/integration/mock/server_runtime/CodeActAgent/test_browse_internet/response_005.log+++ b/tests/integration/mock/server_runtime/CodeActAgent/test_browse_internet/response_005.log@@ -1,6 +1,6 @@The content of the server's homepage at http://localhost:8000 is:-"The answer to life, the universe, and everything is: OpenDevin is all you need!"+"The answer to life, the universe, and everything is: OpenHands is all you need!"If you have any further questions or tasks, feel free to ask!<finish></finish>diff --git a/tests/integration/mock/server_runtime/CodeActAgent/test_edits/prompt_001.log b/tests/integration/mock/server_runtime/CodeActAgent/test_edits/prompt_001.logindex 83437bb6c1..2328242ba8 100644--- a/tests/integration/mock/server_runtime/CodeActAgent/test_edits/prompt_001.log+++ b/tests/integration/mock/server_runtime/CodeActAgent/test_edits/prompt_001.log@@ -270,8 +270,8 @@ Collecting click>=8.1.3Using cached click-8.1.7-py3-none-any.whl (97 kB)Collecting itsdangerous>=2.1.2Using cached itsdangerous-2.2.0-py3-none-any.whl (16 kB)-Requirement already satisfied: Jinja2>=3.1.2 in /home/opendevin/.local/lib/python3.10/site-packages (from flask) (3.1.3)-Requirement already satisfied: MarkupSafe>=2.0 in /home/opendevin/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)+Requirement already satisfied: Jinja2>=3.1.2 in /home/openhands/.local/lib/python3.10/site-packages (from flask) (3.1.3)+Requirement already satisfied: MarkupSafe>=2.0 in /home/openhands/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)Installing collected packages: Werkzeug, itsdangerous, click, blinker, flaskSuccessfully installed Werkzeug-3.0.2 blinker-1.7.0 click-8.1.7 flask-3.0.3 itsdangerous-2.2.0diff --git a/tests/integration/mock/server_runtime/CodeActAgent/test_edits/prompt_002.log b/tests/integration/mock/server_runtime/CodeActAgent/test_edits/prompt_002.logindex b86926a956..f1f5833259 100644--- a/tests/integration/mock/server_runtime/CodeActAgent/test_edits/prompt_002.log+++ b/tests/integration/mock/server_runtime/CodeActAgent/test_edits/prompt_002.log@@ -270,8 +270,8 @@ Collecting click>=8.1.3Using cached click-8.1.7-py3-none-any.whl (97 kB)Collecting itsdangerous>=2.1.2Using cached itsdangerous-2.2.0-py3-none-any.whl (16 kB)-Requirement already satisfied: Jinja2>=3.1.2 in /home/opendevin/.local/lib/python3.10/site-packages (from flask) (3.1.3)-Requirement already satisfied: MarkupSafe>=2.0 in /home/opendevin/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)+Requirement already satisfied: Jinja2>=3.1.2 in /home/openhands/.local/lib/python3.10/site-packages (from flask) (3.1.3)+Requirement already satisfied: MarkupSafe>=2.0 in /home/openhands/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)Installing collected packages: Werkzeug, itsdangerous, click, blinker, flaskSuccessfully installed Werkzeug-3.0.2 blinker-1.7.0 click-8.1.7 flask-3.0.3 itsdangerous-2.2.0diff --git a/tests/integration/mock/server_runtime/CodeActAgent/test_edits/prompt_003.log b/tests/integration/mock/server_runtime/CodeActAgent/test_edits/prompt_003.logindex e5d519666d..ce417a9018 100644--- a/tests/integration/mock/server_runtime/CodeActAgent/test_edits/prompt_003.log+++ b/tests/integration/mock/server_runtime/CodeActAgent/test_edits/prompt_003.log@@ -270,8 +270,8 @@ Collecting click>=8.1.3Using cached click-8.1.7-py3-none-any.whl (97 kB)Collecting itsdangerous>=2.1.2Using cached itsdangerous-2.2.0-py3-none-any.whl (16 kB)-Requirement already satisfied: Jinja2>=3.1.2 in /home/opendevin/.local/lib/python3.10/site-packages (from flask) (3.1.3)-Requirement already satisfied: MarkupSafe>=2.0 in /home/opendevin/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)+Requirement already satisfied: Jinja2>=3.1.2 in /home/openhands/.local/lib/python3.10/site-packages (from flask) (3.1.3)+Requirement already satisfied: MarkupSafe>=2.0 in /home/openhands/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)Installing collected packages: Werkzeug, itsdangerous, click, blinker, flaskSuccessfully installed Werkzeug-3.0.2 blinker-1.7.0 click-8.1.7 flask-3.0.3 itsdangerous-2.2.0diff --git a/tests/integration/mock/server_runtime/CodeActAgent/test_edits/prompt_004.log b/tests/integration/mock/server_runtime/CodeActAgent/test_edits/prompt_004.logindex b6aa38ba38..e629a0a5e8 100644--- a/tests/integration/mock/server_runtime/CodeActAgent/test_edits/prompt_004.log+++ b/tests/integration/mock/server_runtime/CodeActAgent/test_edits/prompt_004.log@@ -270,8 +270,8 @@ Collecting click>=8.1.3Using cached click-8.1.7-py3-none-any.whl (97 kB)Collecting itsdangerous>=2.1.2Using cached itsdangerous-2.2.0-py3-none-any.whl (16 kB)-Requirement already satisfied: Jinja2>=3.1.2 in /home/opendevin/.local/lib/python3.10/site-packages (from flask) (3.1.3)-Requirement already satisfied: MarkupSafe>=2.0 in /home/opendevin/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)+Requirement already satisfied: Jinja2>=3.1.2 in /home/openhands/.local/lib/python3.10/site-packages (from flask) (3.1.3)+Requirement already satisfied: MarkupSafe>=2.0 in /home/openhands/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)Installing collected packages: Werkzeug, itsdangerous, click, blinker, flaskSuccessfully installed Werkzeug-3.0.2 blinker-1.7.0 click-8.1.7 flask-3.0.3 itsdangerous-2.2.0diff --git a/tests/integration/mock/server_runtime/CodeActAgent/test_edits/prompt_005.log b/tests/integration/mock/server_runtime/CodeActAgent/test_edits/prompt_005.logindex 110fb844dc..1fa4b64e76 100644--- a/tests/integration/mock/server_runtime/CodeActAgent/test_edits/prompt_005.log+++ b/tests/integration/mock/server_runtime/CodeActAgent/test_edits/prompt_005.log@@ -270,8 +270,8 @@ Collecting click>=8.1.3Using cached click-8.1.7-py3-none-any.whl (97 kB)Collecting itsdangerous>=2.1.2Using cached itsdangerous-2.2.0-py3-none-any.whl (16 kB)-Requirement already satisfied: Jinja2>=3.1.2 in /home/opendevin/.local/lib/python3.10/site-packages (from flask) (3.1.3)-Requirement already satisfied: MarkupSafe>=2.0 in /home/opendevin/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)+Requirement already satisfied: Jinja2>=3.1.2 in /home/openhands/.local/lib/python3.10/site-packages (from flask) (3.1.3)+Requirement already satisfied: MarkupSafe>=2.0 in /home/openhands/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)Installing collected packages: Werkzeug, itsdangerous, click, blinker, flaskSuccessfully installed Werkzeug-3.0.2 blinker-1.7.0 click-8.1.7 flask-3.0.3 itsdangerous-2.2.0diff --git a/tests/integration/mock/server_runtime/CodeActAgent/test_ipython/prompt_001.log b/tests/integration/mock/server_runtime/CodeActAgent/test_ipython/prompt_001.logindex c0b99ce0e6..af09fa6d16 100644--- a/tests/integration/mock/server_runtime/CodeActAgent/test_ipython/prompt_001.log+++ b/tests/integration/mock/server_runtime/CodeActAgent/test_ipython/prompt_001.log@@ -270,8 +270,8 @@ Collecting click>=8.1.3Using cached click-8.1.7-py3-none-any.whl (97 kB)Collecting itsdangerous>=2.1.2Using cached itsdangerous-2.2.0-py3-none-any.whl (16 kB)-Requirement already satisfied: Jinja2>=3.1.2 in /home/opendevin/.local/lib/python3.10/site-packages (from flask) (3.1.3)-Requirement already satisfied: MarkupSafe>=2.0 in /home/opendevin/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)+Requirement already satisfied: Jinja2>=3.1.2 in /home/openhands/.local/lib/python3.10/site-packages (from flask) (3.1.3)+Requirement already satisfied: MarkupSafe>=2.0 in /home/openhands/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)Installing collected packages: Werkzeug, itsdangerous, click, blinker, flaskSuccessfully installed Werkzeug-3.0.2 blinker-1.7.0 click-8.1.7 flask-3.0.3 itsdangerous-2.2.0diff --git a/tests/integration/mock/server_runtime/CodeActAgent/test_ipython/prompt_002.log b/tests/integration/mock/server_runtime/CodeActAgent/test_ipython/prompt_002.logindex 3d257a10fa..e6480e33ef 100644--- a/tests/integration/mock/server_runtime/CodeActAgent/test_ipython/prompt_002.log+++ b/tests/integration/mock/server_runtime/CodeActAgent/test_ipython/prompt_002.log@@ -270,8 +270,8 @@ Collecting click>=8.1.3Using cached click-8.1.7-py3-none-any.whl (97 kB)Collecting itsdangerous>=2.1.2Using cached itsdangerous-2.2.0-py3-none-any.whl (16 kB)-Requirement already satisfied: Jinja2>=3.1.2 in /home/opendevin/.local/lib/python3.10/site-packages (from flask) (3.1.3)-Requirement already satisfied: MarkupSafe>=2.0 in /home/opendevin/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)+Requirement already satisfied: Jinja2>=3.1.2 in /home/openhands/.local/lib/python3.10/site-packages (from flask) (3.1.3)+Requirement already satisfied: MarkupSafe>=2.0 in /home/openhands/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)Installing collected packages: Werkzeug, itsdangerous, click, blinker, flaskSuccessfully installed Werkzeug-3.0.2 blinker-1.7.0 click-8.1.7 flask-3.0.3 itsdangerous-2.2.0diff --git a/tests/integration/mock/server_runtime/CodeActAgent/test_ipython/prompt_003.log b/tests/integration/mock/server_runtime/CodeActAgent/test_ipython/prompt_003.logindex 0990c25bf1..fc454b36be 100644--- a/tests/integration/mock/server_runtime/CodeActAgent/test_ipython/prompt_003.log+++ b/tests/integration/mock/server_runtime/CodeActAgent/test_ipython/prompt_003.log@@ -270,8 +270,8 @@ Collecting click>=8.1.3Using cached click-8.1.7-py3-none-any.whl (97 kB)Collecting itsdangerous>=2.1.2Using cached itsdangerous-2.2.0-py3-none-any.whl (16 kB)-Requirement already satisfied: Jinja2>=3.1.2 in /home/opendevin/.local/lib/python3.10/site-packages (from flask) (3.1.3)-Requirement already satisfied: MarkupSafe>=2.0 in /home/opendevin/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)+Requirement already satisfied: Jinja2>=3.1.2 in /home/openhands/.local/lib/python3.10/site-packages (from flask) (3.1.3)+Requirement already satisfied: MarkupSafe>=2.0 in /home/openhands/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)Installing collected packages: Werkzeug, itsdangerous, click, blinker, flaskSuccessfully installed Werkzeug-3.0.2 blinker-1.7.0 click-8.1.7 flask-3.0.3 itsdangerous-2.2.0diff --git a/tests/integration/mock/server_runtime/CodeActAgent/test_ipython_module/prompt_001.log b/tests/integration/mock/server_runtime/CodeActAgent/test_ipython_module/prompt_001.logindex ed28f3b2ad..df6c77fc8d 100644--- a/tests/integration/mock/server_runtime/CodeActAgent/test_ipython_module/prompt_001.log+++ b/tests/integration/mock/server_runtime/CodeActAgent/test_ipython_module/prompt_001.log@@ -270,8 +270,8 @@ Collecting click>=8.1.3Using cached click-8.1.7-py3-none-any.whl (97 kB)Collecting itsdangerous>=2.1.2Using cached itsdangerous-2.2.0-py3-none-any.whl (16 kB)-Requirement already satisfied: Jinja2>=3.1.2 in /home/opendevin/.local/lib/python3.10/site-packages (from flask) (3.1.3)-Requirement already satisfied: MarkupSafe>=2.0 in /home/opendevin/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)+Requirement already satisfied: Jinja2>=3.1.2 in /home/openhands/.local/lib/python3.10/site-packages (from flask) (3.1.3)+Requirement already satisfied: MarkupSafe>=2.0 in /home/openhands/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)Installing collected packages: Werkzeug, itsdangerous, click, blinker, flaskSuccessfully installed Werkzeug-3.0.2 blinker-1.7.0 click-8.1.7 flask-3.0.3 itsdangerous-2.2.0diff --git a/tests/integration/mock/server_runtime/CodeActAgent/test_ipython_module/prompt_002.log b/tests/integration/mock/server_runtime/CodeActAgent/test_ipython_module/prompt_002.logindex 61e76b991e..d49097b5ff 100644--- a/tests/integration/mock/server_runtime/CodeActAgent/test_ipython_module/prompt_002.log+++ b/tests/integration/mock/server_runtime/CodeActAgent/test_ipython_module/prompt_002.log@@ -270,8 +270,8 @@ Collecting click>=8.1.3Using cached click-8.1.7-py3-none-any.whl (97 kB)Collecting itsdangerous>=2.1.2Using cached itsdangerous-2.2.0-py3-none-any.whl (16 kB)-Requirement already satisfied: Jinja2>=3.1.2 in /home/opendevin/.local/lib/python3.10/site-packages (from flask) (3.1.3)-Requirement already satisfied: MarkupSafe>=2.0 in /home/opendevin/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)+Requirement already satisfied: Jinja2>=3.1.2 in /home/openhands/.local/lib/python3.10/site-packages (from flask) (3.1.3)+Requirement already satisfied: MarkupSafe>=2.0 in /home/openhands/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)Installing collected packages: Werkzeug, itsdangerous, click, blinker, flaskSuccessfully installed Werkzeug-3.0.2 blinker-1.7.0 click-8.1.7 flask-3.0.3 itsdangerous-2.2.0diff --git a/tests/integration/mock/server_runtime/CodeActAgent/test_ipython_module/prompt_003.log b/tests/integration/mock/server_runtime/CodeActAgent/test_ipython_module/prompt_003.logindex 9d966960bc..c37d3ba202 100644--- a/tests/integration/mock/server_runtime/CodeActAgent/test_ipython_module/prompt_003.log+++ b/tests/integration/mock/server_runtime/CodeActAgent/test_ipython_module/prompt_003.log@@ -270,8 +270,8 @@ Collecting click>=8.1.3Using cached click-8.1.7-py3-none-any.whl (97 kB)Collecting itsdangerous>=2.1.2Using cached itsdangerous-2.2.0-py3-none-any.whl (16 kB)-Requirement already satisfied: Jinja2>=3.1.2 in /home/opendevin/.local/lib/python3.10/site-packages (from flask) (3.1.3)-Requirement already satisfied: MarkupSafe>=2.0 in /home/opendevin/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)+Requirement already satisfied: Jinja2>=3.1.2 in /home/openhands/.local/lib/python3.10/site-packages (from flask) (3.1.3)+Requirement already satisfied: MarkupSafe>=2.0 in /home/openhands/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)Installing collected packages: Werkzeug, itsdangerous, click, blinker, flaskSuccessfully installed Werkzeug-3.0.2 blinker-1.7.0 click-8.1.7 flask-3.0.3 itsdangerous-2.2.0diff --git a/tests/integration/mock/server_runtime/CodeActAgent/test_ipython_module/prompt_004.log b/tests/integration/mock/server_runtime/CodeActAgent/test_ipython_module/prompt_004.logindex 9fd341238d..fd62382d35 100644--- a/tests/integration/mock/server_runtime/CodeActAgent/test_ipython_module/prompt_004.log+++ b/tests/integration/mock/server_runtime/CodeActAgent/test_ipython_module/prompt_004.log@@ -270,8 +270,8 @@ Collecting click>=8.1.3Using cached click-8.1.7-py3-none-any.whl (97 kB)Collecting itsdangerous>=2.1.2Using cached itsdangerous-2.2.0-py3-none-any.whl (16 kB)-Requirement already satisfied: Jinja2>=3.1.2 in /home/opendevin/.local/lib/python3.10/site-packages (from flask) (3.1.3)-Requirement already satisfied: MarkupSafe>=2.0 in /home/opendevin/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)+Requirement already satisfied: Jinja2>=3.1.2 in /home/openhands/.local/lib/python3.10/site-packages (from flask) (3.1.3)+Requirement already satisfied: MarkupSafe>=2.0 in /home/openhands/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)Installing collected packages: Werkzeug, itsdangerous, click, blinker, flaskSuccessfully installed Werkzeug-3.0.2 blinker-1.7.0 click-8.1.7 flask-3.0.3 itsdangerous-2.2.0diff --git a/tests/integration/mock/server_runtime/CodeActAgent/test_write_simple_script/prompt_001.log b/tests/integration/mock/server_runtime/CodeActAgent/test_write_simple_script/prompt_001.logindex 312e366130..f8cfd8d6ed 100644--- a/tests/integration/mock/server_runtime/CodeActAgent/test_write_simple_script/prompt_001.log+++ b/tests/integration/mock/server_runtime/CodeActAgent/test_write_simple_script/prompt_001.log@@ -270,8 +270,8 @@ Collecting click>=8.1.3Using cached click-8.1.7-py3-none-any.whl (97 kB)Collecting itsdangerous>=2.1.2Using cached itsdangerous-2.2.0-py3-none-any.whl (16 kB)-Requirement already satisfied: Jinja2>=3.1.2 in /home/opendevin/.local/lib/python3.10/site-packages (from flask) (3.1.3)-Requirement already satisfied: MarkupSafe>=2.0 in /home/opendevin/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)+Requirement already satisfied: Jinja2>=3.1.2 in /home/openhands/.local/lib/python3.10/site-packages (from flask) (3.1.3)+Requirement already satisfied: MarkupSafe>=2.0 in /home/openhands/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)Installing collected packages: Werkzeug, itsdangerous, click, blinker, flaskSuccessfully installed Werkzeug-3.0.2 blinker-1.7.0 click-8.1.7 flask-3.0.3 itsdangerous-2.2.0diff --git a/tests/integration/mock/server_runtime/CodeActAgent/test_write_simple_script/prompt_002.log b/tests/integration/mock/server_runtime/CodeActAgent/test_write_simple_script/prompt_002.logindex fe5ece61fc..9bd7026b3e 100644--- a/tests/integration/mock/server_runtime/CodeActAgent/test_write_simple_script/prompt_002.log+++ b/tests/integration/mock/server_runtime/CodeActAgent/test_write_simple_script/prompt_002.log@@ -270,8 +270,8 @@ Collecting click>=8.1.3Using cached click-8.1.7-py3-none-any.whl (97 kB)Collecting itsdangerous>=2.1.2Using cached itsdangerous-2.2.0-py3-none-any.whl (16 kB)-Requirement already satisfied: Jinja2>=3.1.2 in /home/opendevin/.local/lib/python3.10/site-packages (from flask) (3.1.3)-Requirement already satisfied: MarkupSafe>=2.0 in /home/opendevin/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)+Requirement already satisfied: Jinja2>=3.1.2 in /home/openhands/.local/lib/python3.10/site-packages (from flask) (3.1.3)+Requirement already satisfied: MarkupSafe>=2.0 in /home/openhands/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)Installing collected packages: Werkzeug, itsdangerous, click, blinker, flaskSuccessfully installed Werkzeug-3.0.2 blinker-1.7.0 click-8.1.7 flask-3.0.3 itsdangerous-2.2.0diff --git a/tests/integration/mock/server_runtime/CodeActAgent/test_write_simple_script/prompt_003.log b/tests/integration/mock/server_runtime/CodeActAgent/test_write_simple_script/prompt_003.logindex 3223fc5c80..c72cc3f242 100644--- a/tests/integration/mock/server_runtime/CodeActAgent/test_write_simple_script/prompt_003.log+++ b/tests/integration/mock/server_runtime/CodeActAgent/test_write_simple_script/prompt_003.log@@ -270,8 +270,8 @@ Collecting click>=8.1.3Using cached click-8.1.7-py3-none-any.whl (97 kB)Collecting itsdangerous>=2.1.2Using cached itsdangerous-2.2.0-py3-none-any.whl (16 kB)-Requirement already satisfied: Jinja2>=3.1.2 in /home/opendevin/.local/lib/python3.10/site-packages (from flask) (3.1.3)-Requirement already satisfied: MarkupSafe>=2.0 in /home/opendevin/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)+Requirement already satisfied: Jinja2>=3.1.2 in /home/openhands/.local/lib/python3.10/site-packages (from flask) (3.1.3)+Requirement already satisfied: MarkupSafe>=2.0 in /home/openhands/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)Installing collected packages: Werkzeug, itsdangerous, click, blinker, flaskSuccessfully installed Werkzeug-3.0.2 blinker-1.7.0 click-8.1.7 flask-3.0.3 itsdangerous-2.2.0diff --git a/tests/integration/mock/server_runtime/CodeActAgent/test_write_simple_script/prompt_004.log b/tests/integration/mock/server_runtime/CodeActAgent/test_write_simple_script/prompt_004.logindex 12fdb252d7..f726a05489 100644--- a/tests/integration/mock/server_runtime/CodeActAgent/test_write_simple_script/prompt_004.log+++ b/tests/integration/mock/server_runtime/CodeActAgent/test_write_simple_script/prompt_004.log@@ -270,8 +270,8 @@ Collecting click>=8.1.3Using cached click-8.1.7-py3-none-any.whl (97 kB)Collecting itsdangerous>=2.1.2Using cached itsdangerous-2.2.0-py3-none-any.whl (16 kB)-Requirement already satisfied: Jinja2>=3.1.2 in /home/opendevin/.local/lib/python3.10/site-packages (from flask) (3.1.3)-Requirement already satisfied: MarkupSafe>=2.0 in /home/opendevin/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)+Requirement already satisfied: Jinja2>=3.1.2 in /home/openhands/.local/lib/python3.10/site-packages (from flask) (3.1.3)+Requirement already satisfied: MarkupSafe>=2.0 in /home/openhands/.local/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)Installing collected packages: Werkzeug, itsdangerous, click, blinker, flaskSuccessfully installed Werkzeug-3.0.2 blinker-1.7.0 click-8.1.7 flask-3.0.3 itsdangerous-2.2.0diff --git a/tests/integration/regenerate.sh b/tests/integration/regenerate.shindex 61343af739..2d8510d31e 100755--- a/tests/integration/regenerate.sh+++ b/tests/integration/regenerate.sh@@ -104,7 +104,7 @@ run_test() {local pytest_cmd="poetry run pytest --cache-clear -vvsxx $SCRIPT_DIR/test_agent.py::$test_name"# Check if TEST_IN_CI is definedif [ -n "$TEST_IN_CI" ]; then- pytest_cmd+=" --cov=agenthub --cov=opendevin --cov-report=xml --cov-append"+ pytest_cmd+=" --cov=agenthub --cov=openhands --cov-report=xml --cov-append"fienv SCRIPT_DIR="$SCRIPT_DIR" \@@ -213,7 +213,7 @@ regenerate_with_llm() {DEFAULT_AGENT=$agent \RUNTIME="$TEST_RUNTIME" \SANDBOX_CONTAINER_IMAGE="$SANDBOX_CONTAINER_IMAGE" \- poetry run python "$PROJECT_ROOT/opendevin/core/main.py" \+ poetry run python "$PROJECT_ROOT/openhands/core/main.py" \-i $MAX_ITERATIONS \-t "$task Do not ask me for confirmation at any point." \-c $agent@@ -313,7 +313,7 @@ for ((i = 0; i < num_of_tests; i++)); doecho -e " 1. The agent is unable to finish the task within $MAX_ITERATIONS steps."echo -e " 2. The agent thinks itself has finished the task, but fails the validation in the test code."echo -e " 3. There is something non-deterministic in the prompt."- echo -e " 4. There is a bug in this script, or in OpenDevin code."+ echo -e " 4. There is a bug in this script, or in OpenHands code."echo -e "NOTE: Some of the above problems could sometimes be fixed by a retry (with a more powerful LLM)."echo -e " You could also consider improving the agent, increasing MAX_ITERATIONS, or skipping this test for this agent."exit 1diff --git a/tests/integration/static/index.html b/tests/integration/static/index.htmlindex 70e92b9a69..f2affe6e39 100644--- a/tests/integration/static/index.html+++ b/tests/integration/static/index.html@@ -59,7 +59,7 @@</div><script>document.getElementById('showButton').addEventListener('click', function() {- document.getElementById('result').innerText = 'The answer is OpenDevin is all you need!';+ document.getElementById('result').innerText = 'The answer is OpenHands is all you need!';});</script></body>diff --git a/tests/integration/test_agent.py b/tests/integration/test_agent.pyindex b9f61175c8..54d59b834b 100644--- a/tests/integration/test_agent.py+++ b/tests/integration/test_agent.py@@ -5,17 +5,17 @@ import subprocessimport pytest-from opendevin.controller.state.state import State-from opendevin.core.config import AppConfig, SandboxConfig, load_from_env-from opendevin.core.main import run_controller-from opendevin.core.schema import AgentState-from opendevin.events.action import (+from openhands.controller.state.state import State+from openhands.core.config import AppConfig, SandboxConfig, load_from_env+from openhands.core.main import run_controller+from openhands.core.schema import AgentState+from openhands.events.action import (AgentFinishAction,AgentRejectAction,)-from opendevin.events.observation.browse import BrowserOutputObservation-from opendevin.events.observation.delegate import AgentDelegateObservation-from opendevin.runtime import get_runtime_cls+from openhands.events.observation.browse import BrowserOutputObservation+from openhands.events.observation.delegate import AgentDelegateObservation+from openhands.runtime import get_runtime_clsTEST_RUNTIME = os.getenv('TEST_RUNTIME')assert TEST_RUNTIME in ['eventstream', 'server']@@ -247,6 +247,6 @@ def test_browse_internet(http_server, current_test_name: str):last_observation, (BrowserOutputObservation, AgentDelegateObservation))if isinstance(last_observation, BrowserOutputObservation):- assert 'OpenDevin is all you need!' in last_observation.content+ assert 'OpenHands is all you need!' in last_observation.contentelif isinstance(last_observation, AgentDelegateObservation):- assert 'OpenDevin is all you need!' in last_observation.outputs['content']+ assert 'OpenHands is all you need!' in last_observation.outputs['content']diff --git a/tests/test_fileops.py b/tests/test_fileops.pyindex 9fa9ceaa85..0687247cb5 100644--- a/tests/test_fileops.py+++ b/tests/test_fileops.py@@ -2,7 +2,7 @@ from pathlib import Pathimport pytest-from opendevin.runtime.utils import files+from openhands.runtime.utils import filesSANDBOX_PATH_PREFIX = '/workspace'WORKSPACE_BASE = 'workspace'diff --git a/tests/unit/test_acompletion.py b/tests/unit/test_acompletion.pyindex b3de1f4656..3688e896bc 100644--- a/tests/unit/test_acompletion.py+++ b/tests/unit/test_acompletion.py@@ -3,9 +3,9 @@ from unittest.mock import AsyncMock, patchimport pytest-from opendevin.core.config import load_app_config-from opendevin.core.exceptions import UserCancelledError-from opendevin.llm.llm import LLM+from openhands.core.config import load_app_config+from openhands.core.exceptions import UserCancelledError+from openhands.llm.llm import LLMconfig = load_app_config()diff --git a/tests/unit/test_action_serialization.py b/tests/unit/test_action_serialization.pyindex d88b25e1f6..ac47f87e64 100644--- a/tests/unit/test_action_serialization.py+++ b/tests/unit/test_action_serialization.py@@ -1,4 +1,4 @@-from opendevin.events.action import (+from openhands.events.action import (Action,AddTaskAction,AgentFinishAction,@@ -11,8 +11,8 @@ from opendevin.events.action import (MessageAction,ModifyTaskAction,)-from opendevin.events.action.action import ActionConfirmationStatus-from opendevin.events.serialization import (+from openhands.events.action.action import ActionConfirmationStatus+from openhands.events.serialization import (event_from_dict,event_to_dict,event_to_memory,diff --git a/tests/unit/test_agent_controller.py b/tests/unit/test_agent_controller.pyindex 64fafc19a1..22ee894481 100644--- a/tests/unit/test_agent_controller.py+++ b/tests/unit/test_agent_controller.py@@ -3,13 +3,13 @@ from unittest.mock import AsyncMock, MagicMockimport pytest-from opendevin.controller.agent import Agent-from opendevin.controller.agent_controller import AgentController-from opendevin.controller.state.state import TrafficControlState-from opendevin.core.exceptions import LLMMalformedActionError-from opendevin.core.schema import AgentState-from opendevin.events import EventStream-from opendevin.events.action import ChangeAgentStateAction, MessageAction+from openhands.controller.agent import Agent+from openhands.controller.agent_controller import AgentController+from openhands.controller.state.state import TrafficControlState+from openhands.core.exceptions import LLMMalformedActionError+from openhands.core.schema import AgentState+from openhands.events import EventStream+from openhands.events.action import ChangeAgentStateAction, MessageAction@pytest.fixturediff --git a/tests/unit/test_agent_skill.py b/tests/unit/test_agent_skill.pyindex 14e36cd006..79172a46ce 100644--- a/tests/unit/test_agent_skill.py+++ b/tests/unit/test_agent_skill.py@@ -7,7 +7,7 @@ from unittest.mock import patchimport docximport pytest-from opendevin.runtime.plugins.agent_skills.file_ops.file_ops import (+from openhands.runtime.plugins.agent_skills.file_ops.file_ops import (MSG_FILE_UPDATED,WINDOW,_print_window,@@ -23,7 +23,7 @@ from opendevin.runtime.plugins.agent_skills.file_ops.file_ops import (search_dir,search_file,)-from opendevin.runtime.plugins.agent_skills.file_reader.file_readers import (+from openhands.runtime.plugins.agent_skills.file_reader.file_readers import (parse_docx,parse_latex,parse_pdf,@@ -34,7 +34,7 @@ from opendevin.runtime.plugins.agent_skills.file_reader.file_readers import (# CURRENT_FILE must be reset for each test@pytest.fixture(autouse=True)def reset_current_file():- from opendevin.runtime.plugins.agent_skills import agentskills+ from openhands.runtime.plugins.agent_skills import agentskillsagentskills.CURRENT_FILE = Nonediff --git a/tests/unit/test_aider_linter.py b/tests/unit/test_aider_linter.pyindex bd0776e069..7d9692aaff 100644--- a/tests/unit/test_aider_linter.py+++ b/tests/unit/test_aider_linter.py@@ -2,7 +2,7 @@ import osimport pytest-from opendevin.runtime.plugins.agent_skills.utils.aider import Linter, LintResult+from openhands.runtime.plugins.agent_skills.utils.aider import Linter, LintResult@pytest.fixture@@ -108,7 +108,7 @@ def test_py_lint_fail(linter, temp_file):def test_basic_lint(temp_file):- from opendevin.runtime.plugins.agent_skills.utils.aider.linter import basic_lint+ from openhands.runtime.plugins.agent_skills.utils.aider.linter import basic_lintpoorly_formatted_code = """def foo()@@ -124,7 +124,7 @@ def test_basic_lint(temp_file):def test_basic_lint_fail_returns_text_and_lines(temp_file):- from opendevin.runtime.plugins.agent_skills.utils.aider.linter import basic_lint+ from openhands.runtime.plugins.agent_skills.utils.aider.linter import basic_lintpoorly_formatted_code = """def foo()@@ -141,7 +141,7 @@ def test_basic_lint_fail_returns_text_and_lines(temp_file):def test_lint_python_compile(temp_file):- from opendevin.runtime.plugins.agent_skills.utils.aider.linter import (+ from openhands.runtime.plugins.agent_skills.utils.aider.linter import (lint_python_compile,)@@ -151,7 +151,7 @@ def test_lint_python_compile(temp_file):def test_lint_python_compile_fail_returns_text_and_lines(temp_file):- from opendevin.runtime.plugins.agent_skills.utils.aider.linter import (+ from openhands.runtime.plugins.agent_skills.utils.aider.linter import (lint_python_compile,)diff --git a/tests/unit/test_arg_parser.py b/tests/unit/test_arg_parser.pyindex 2c8714cf36..afb95d71d0 100644--- a/tests/unit/test_arg_parser.py+++ b/tests/unit/test_arg_parser.py@@ -1,6 +1,6 @@import pytest-from opendevin.core.config import get_parser+from openhands.core.config import get_parserdef test_help_message(capsys):diff --git a/tests/unit/test_bash_parsing.py b/tests/unit/test_bash_parsing.pyindex 3797d426d2..4ba75028bb 100644--- a/tests/unit/test_bash_parsing.py+++ b/tests/unit/test_bash_parsing.py@@ -1,6 +1,6 @@import pytest-from opendevin.runtime.utils.bash import split_bash_commands+from openhands.runtime.utils.bash import split_bash_commandsdef test_split_commands_util():diff --git a/tests/unit/test_codeact_agent.py b/tests/unit/test_codeact_agent.pyindex 281d647534..c92854eb6b 100644--- a/tests/unit/test_codeact_agent.py+++ b/tests/unit/test_codeact_agent.py@@ -3,15 +3,15 @@ from unittest.mock import Mockimport pytestfrom agenthub.codeact_agent.codeact_agent import CodeActAgent-from opendevin.core.config import AgentConfig, LLMConfig-from opendevin.core.message import TextContent-from opendevin.events.observation.commands import (+from openhands.core.config import AgentConfig, LLMConfig+from openhands.core.message import TextContent+from openhands.events.observation.commands import (CmdOutputObservation,IPythonRunCellObservation,)-from opendevin.events.observation.delegate import AgentDelegateObservation-from opendevin.events.observation.error import ErrorObservation-from opendevin.llm.llm import LLM+from openhands.events.observation.delegate import AgentDelegateObservation+from openhands.events.observation.error import ErrorObservation+from openhands.llm.llm import LLM@pytest.fixturediff --git a/tests/unit/test_condenser.py b/tests/unit/test_condenser.pyindex 39a882ce4e..5a8ab72978 100644--- a/tests/unit/test_condenser.py+++ b/tests/unit/test_condenser.py@@ -2,9 +2,9 @@ from unittest.mock import Mock, patchimport pytest-from opendevin.core.exceptions import LLMResponseError-from opendevin.llm.llm import LLM-from opendevin.memory.condenser import MemoryCondenser+from openhands.core.exceptions import LLMResponseError+from openhands.llm.llm import LLM+from openhands.memory.condenser import MemoryCondenser@pytest.fixture@@ -34,7 +34,7 @@ def test_condense_exception(memory_condenser, mock_llm):memory_condenser.condense('Summarize this', mock_llm)-@patch('opendevin.memory.condenser.logger')+@patch('openhands.memory.condenser.logger')def test_condense_logs_error(mock_logger, memory_condenser, mock_llm):mock_llm.completion.side_effect = LLMResponseError('LLM error')with pytest.raises(LLMResponseError):diff --git a/tests/unit/test_config.py b/tests/unit/test_config.pyindex 521ca7611f..ba92383f99 100644--- a/tests/unit/test_config.py+++ b/tests/unit/test_config.py@@ -2,7 +2,7 @@ import osimport pytest-from opendevin.core.config import (+from openhands.core.config import (AgentConfig,AppConfig,LLMConfig,@@ -46,7 +46,7 @@ def default_config(monkeypatch):def test_compat_env_to_config(monkeypatch, setup_env):# Use `monkeypatch` to set environment variables for this specific test- monkeypatch.setenv('WORKSPACE_BASE', '/repos/opendevin/workspace')+ monkeypatch.setenv('WORKSPACE_BASE', '/repos/openhands/workspace')monkeypatch.setenv('LLM_API_KEY', 'sk-proj-rgMV0...')monkeypatch.setenv('LLM_MODEL', 'gpt-4o')monkeypatch.setenv('AGENT_MEMORY_MAX_THREADS', '4')@@ -57,7 +57,7 @@ def test_compat_env_to_config(monkeypatch, setup_env):config = AppConfig()load_from_env(config, os.environ)- assert config.workspace_base == '/repos/opendevin/workspace'+ assert config.workspace_base == '/repos/openhands/workspace'assert isinstance(config.get_llm_config(), LLMConfig)assert config.get_llm_config().api_key == 'sk-proj-rgMV0...'assert config.get_llm_config().model == 'gpt-4o'diff --git a/tests/unit/test_event_stream.py b/tests/unit/test_event_stream.pyindex d2384e4d7f..85ebc5198d 100644--- a/tests/unit/test_event_stream.py+++ b/tests/unit/test_event_stream.py@@ -3,12 +3,12 @@ import jsonimport pytestfrom pytest import TempPathFactory-from opendevin.events import EventSource, EventStream-from opendevin.events.action import (+from openhands.events import EventSource, EventStream+from openhands.events.action import (NullAction,)-from opendevin.events.observation import NullObservation-from opendevin.storage import get_file_store+from openhands.events.observation import NullObservation+from openhands.storage import get_file_store@pytest.fixturediff --git a/tests/unit/test_is_stuck.py b/tests/unit/test_is_stuck.pyindex b9da7e4978..f3392d933d 100644--- a/tests/unit/test_is_stuck.py+++ b/tests/unit/test_is_stuck.py@@ -4,21 +4,21 @@ from unittest.mock import Mock, patchimport pytestfrom pytest import TempPathFactory-from opendevin.controller.agent_controller import AgentController-from opendevin.controller.state.state import State-from opendevin.controller.stuck import StuckDetector-from opendevin.events.action import CmdRunAction, FileReadAction, MessageAction-from opendevin.events.action.commands import IPythonRunCellAction-from opendevin.events.observation import (+from openhands.controller.agent_controller import AgentController+from openhands.controller.state.state import State+from openhands.controller.stuck import StuckDetector+from openhands.events.action import CmdRunAction, FileReadAction, MessageAction+from openhands.events.action.commands import IPythonRunCellAction+from openhands.events.observation import (CmdOutputObservation,FileReadObservation,)-from opendevin.events.observation.commands import IPythonRunCellObservation-from opendevin.events.observation.empty import NullObservation-from opendevin.events.observation.error import ErrorObservation-from opendevin.events.stream import EventSource, EventStream-from opendevin.memory.history import ShortTermHistory-from opendevin.storage import get_file_store+from openhands.events.observation.commands import IPythonRunCellObservation+from openhands.events.observation.empty import NullObservation+from openhands.events.observation.error import ErrorObservation+from openhands.events.stream import EventSource, EventStream+from openhands.memory.history import ShortTermHistory+from openhands.storage import get_file_storedef collect_events(stream):diff --git a/tests/unit/test_json.py b/tests/unit/test_json.pyindex c6a7ff9bee..899d083bff 100644--- a/tests/unit/test_json.py+++ b/tests/unit/test_json.py@@ -1,7 +1,7 @@from datetime import datetime-from opendevin.core.utils import json-from opendevin.events.action import MessageAction+from openhands.core.utils import json+from openhands.events.action import MessageActiondef test_event_serialization_deserialization():diff --git a/tests/unit/test_listen.py b/tests/unit/test_listen.pyindex 146d684874..54a1302b26 100644--- a/tests/unit/test_listen.py+++ b/tests/unit/test_listen.py@@ -1,6 +1,6 @@from unittest.mock import patch-from opendevin.core.config import AppConfig+from openhands.core.config import AppConfig# Mock the SessionManager to avoid asyncio issues@@ -16,10 +16,10 @@ class MockStaticFiles:# Patch necessary components before importing from listen-with patch('opendevin.server.session.SessionManager', MockSessionManager), patch(+with patch('openhands.server.session.SessionManager', MockSessionManager), patch('fastapi.staticfiles.StaticFiles', MockStaticFiles):- from opendevin.server.listen import is_extension_allowed, load_file_upload_config+ from openhands.server.listen import is_extension_allowed, load_file_upload_configdef test_load_file_upload_config():@@ -28,7 +28,7 @@ def test_load_file_upload_config():file_uploads_restrict_file_types=True,file_uploads_allowed_extensions=['.txt', '.pdf'],)- with patch('opendevin.server.listen.config', config):+ with patch('openhands.server.listen.config', config):max_size, restrict_types, allowed_extensions = load_file_upload_config()assert max_size == 10@@ -42,7 +42,7 @@ def test_load_file_upload_config_invalid_max_size():file_uploads_restrict_file_types=False,file_uploads_allowed_extensions=[],)- with patch('opendevin.server.listen.config', config):+ with patch('openhands.server.listen.config', config):max_size, restrict_types, allowed_extensions = load_file_upload_config()assert max_size == 0 # Should default to 0 when invalid@@ -51,8 +51,8 @@ def test_load_file_upload_config_invalid_max_size():def test_is_extension_allowed():- with patch('opendevin.server.listen.RESTRICT_FILE_TYPES', True), patch(- 'opendevin.server.listen.ALLOWED_EXTENSIONS', ['.txt', '.pdf']+ with patch('openhands.server.listen.RESTRICT_FILE_TYPES', True), patch(+ 'openhands.server.listen.ALLOWED_EXTENSIONS', ['.txt', '.pdf']):assert is_extension_allowed('file.txt')assert is_extension_allowed('file.pdf')@@ -61,7 +61,7 @@ def test_is_extension_allowed():def test_is_extension_allowed_no_restrictions():- with patch('opendevin.server.listen.RESTRICT_FILE_TYPES', False):+ with patch('openhands.server.listen.RESTRICT_FILE_TYPES', False):assert is_extension_allowed('file.txt')assert is_extension_allowed('file.pdf')assert is_extension_allowed('file.doc')@@ -69,8 +69,8 @@ def test_is_extension_allowed_no_restrictions():def test_is_extension_allowed_wildcard():- with patch('opendevin.server.listen.RESTRICT_FILE_TYPES', True), patch(- 'opendevin.server.listen.ALLOWED_EXTENSIONS', ['.*']+ with patch('openhands.server.listen.RESTRICT_FILE_TYPES', True), patch(+ 'openhands.server.listen.ALLOWED_EXTENSIONS', ['.*']):assert is_extension_allowed('file.txt')assert is_extension_allowed('file.pdf')diff --git a/tests/unit/test_llm.py b/tests/unit/test_llm.pyindex 435fc66730..ad46695b39 100644--- a/tests/unit/test_llm.py+++ b/tests/unit/test_llm.py@@ -2,9 +2,9 @@ from unittest.mock import patchimport pytest-from opendevin.core.config import LLMConfig-from opendevin.core.metrics import Metrics-from opendevin.llm.llm import LLM+from openhands.core.config import LLMConfig+from openhands.core.metrics import Metrics+from openhands.llm.llm import LLM@pytest.fixture@@ -19,7 +19,7 @@ def test_llm_init_with_default_config(default_config):assert isinstance(llm.metrics, Metrics)-@patch('opendevin.llm.llm.litellm.get_model_info')+@patch('openhands.llm.llm.litellm.get_model_info')def test_llm_init_with_model_info(mock_get_model_info, default_config):mock_get_model_info.return_value = {'max_input_tokens': 8000,@@ -30,7 +30,7 @@ def test_llm_init_with_model_info(mock_get_model_info, default_config):assert llm.config.max_output_tokens == 2000-@patch('opendevin.llm.llm.litellm.get_model_info')+@patch('openhands.llm.llm.litellm.get_model_info')def test_llm_init_without_model_info(mock_get_model_info, default_config):mock_get_model_info.side_effect = Exception('Model info not available')llm = LLM(default_config)@@ -71,7 +71,7 @@ def test_llm_reset():assert isinstance(llm.metrics, Metrics)-@patch('opendevin.llm.llm.litellm.get_model_info')+@patch('openhands.llm.llm.litellm.get_model_info')def test_llm_init_with_openrouter_model(mock_get_model_info, default_config):default_config.model = 'openrouter:gpt-3.5-turbo'mock_get_model_info.return_value = {diff --git a/tests/unit/test_logging.py b/tests/unit/test_logging.pyindex a924962cec..20f911da8e 100644--- a/tests/unit/test_logging.py+++ b/tests/unit/test_logging.py@@ -3,8 +3,8 @@ from io import StringIOimport pytest-from opendevin.core.config import AppConfig, LLMConfig-from opendevin.core.logger import opendevin_logger as opendevin_logger+from openhands.core.config import AppConfig, LLMConfig+from openhands.core.logger import openhands_logger as openhands_logger@pytest.fixture@@ -14,9 +14,9 @@ def test_handler():handler.setLevel(logging.INFO)formatter = logging.Formatter('%(message)s')handler.setFormatter(formatter)- opendevin_logger.addHandler(handler)- yield opendevin_logger, stream- opendevin_logger.removeHandler(handler)+ openhands_logger.addHandler(handler)+ yield openhands_logger, stream+ openhands_logger.removeHandler(handler)def test_openai_api_key_masking(test_handler):diff --git a/tests/unit/test_message_serialization.py b/tests/unit/test_message_serialization.pyindex 26eabc3619..80710c72b8 100644--- a/tests/unit/test_message_serialization.py+++ b/tests/unit/test_message_serialization.py@@ -1,4 +1,4 @@-from opendevin.core.message import ImageContent, Message, TextContent+from openhands.core.message import ImageContent, Message, TextContentdef test_message_serialization():diff --git a/tests/unit/test_micro_agents.py b/tests/unit/test_micro_agents.pyindex 80dd30c8b1..b0bafa218f 100644--- a/tests/unit/test_micro_agents.py+++ b/tests/unit/test_micro_agents.py@@ -7,14 +7,14 @@ import yamlfrom pytest import TempPathFactoryfrom agenthub.micro.registry import all_microagents-from opendevin.controller.agent import Agent-from opendevin.controller.state.state import State-from opendevin.core.config import AgentConfig-from opendevin.events import EventSource-from opendevin.events.action import MessageAction-from opendevin.events.stream import EventStream-from opendevin.memory.history import ShortTermHistory-from opendevin.storage import get_file_store+from openhands.controller.agent import Agent+from openhands.controller.state.state import State+from openhands.core.config import AgentConfig+from openhands.events import EventSource+from openhands.events.action import MessageAction+from openhands.events.stream import EventStream+from openhands.memory.history import ShortTermHistory+from openhands.storage import get_file_store@pytest.fixturediff --git a/tests/unit/test_observation_serialization.py b/tests/unit/test_observation_serialization.pyindex 85f29248dc..212b494667 100644--- a/tests/unit/test_observation_serialization.py+++ b/tests/unit/test_observation_serialization.py@@ -1,8 +1,8 @@-from opendevin.events.observation import (+from openhands.events.observation import (CmdOutputObservation,Observation,)-from opendevin.events.serialization import (+from openhands.events.serialization import (event_from_dict,event_to_dict,event_to_memory,diff --git a/tests/unit/test_prompt_manager.py b/tests/unit/test_prompt_manager.pyindex 43745e4526..bdd44ca439 100644--- a/tests/unit/test_prompt_manager.py+++ b/tests/unit/test_prompt_manager.py@@ -3,7 +3,7 @@ import shutilimport pytest-from opendevin.utils.prompt import PromptManager+from openhands.utils.prompt import PromptManager@pytest.fixturediff --git a/tests/unit/test_response_parsing.py b/tests/unit/test_response_parsing.pyindex f69d368714..673caab079 100644--- a/tests/unit/test_response_parsing.py+++ b/tests/unit/test_response_parsing.py@@ -2,9 +2,9 @@ import pytestfrom agenthub.micro.agent import parse_response as parse_response_microfrom agenthub.planner_agent.prompt import parse_response as parse_response_planner-from opendevin.core.exceptions import LLMResponseError-from opendevin.core.utils.json import loads as custom_loads-from opendevin.events.action import (+from openhands.core.exceptions import LLMResponseError+from openhands.core.utils.json import loads as custom_loads+from openhands.events.action import (FileWriteAction,MessageAction,)diff --git a/tests/unit/test_runtime.py b/tests/unit/test_runtime.pyindex 9f14fd0578..2265830486 100644--- a/tests/unit/test_runtime.py+++ b/tests/unit/test_runtime.py@@ -10,10 +10,10 @@ from unittest.mock import patchimport pytestfrom pytest import TempPathFactory-from opendevin.core.config import AppConfig, SandboxConfig, load_from_env-from opendevin.core.logger import opendevin_logger as logger-from opendevin.events import EventStream-from opendevin.events.action import (+from openhands.core.config import AppConfig, SandboxConfig, load_from_env+from openhands.core.logger import openhands_logger as logger+from openhands.events import EventStream+from openhands.events.action import (BrowseInteractiveAction,BrowseURLAction,CmdRunAction,@@ -21,7 +21,7 @@ from opendevin.events.action import (FileWriteAction,IPythonRunCellAction,)-from opendevin.events.observation import (+from openhands.events.observation import (BrowserOutputObservation,CmdOutputObservation,ErrorObservation,@@ -29,10 +29,10 @@ from opendevin.events.observation import (FileWriteObservation,IPythonRunCellObservation,)-from opendevin.runtime.client.runtime import EventStreamRuntime-from opendevin.runtime.plugins import AgentSkillsRequirement, JupyterRequirement-from opendevin.runtime.runtime import Runtime-from opendevin.storage import get_file_store+from openhands.runtime.client.runtime import EventStreamRuntime+from openhands.runtime.plugins import AgentSkillsRequirement, JupyterRequirement+from openhands.runtime.runtime import Runtime+from openhands.storage import get_file_store@pytest.fixture(autouse=True)@@ -49,7 +49,7 @@ def temp_dir(tmp_path_factory: TempPathFactory) -> str:TEST_RUNTIME = os.getenv('TEST_RUNTIME', 'eventstream')-PY3_FOR_TESTING = '/opendevin/miniforge3/bin/mamba run -n base python3'+PY3_FOR_TESTING = '/openhands/miniforge3/bin/mamba run -n base python3'# Depending on TEST_RUNTIME, feed the appropriate box class(es) to the test.@@ -72,7 +72,7 @@ def box_class(request):# TODO: We will change this to `run_as_user` when `ServerRuntime` is deprecated.# since `EventStreamRuntime` supports running as an arbitrary user.@pytest.fixture(scope='module', params=[True, False])-def run_as_devin(request):+def run_as_openhands(request):time.sleep(1)return request.param@@ -99,7 +99,7 @@ def container_image(request):async def _load_runtime(temp_dir,box_class,- run_as_devin: bool = True,+ run_as_openhands: bool = True,enable_auto_lint: bool = False,container_image: str | None = None,browsergym_eval_env: str | None = None,@@ -118,7 +118,7 @@ async def _load_runtime(),)load_from_env(config, os.environ)- config.run_as_devin = run_as_devin+ config.run_as_openhands = run_as_openhandsconfig.sandbox.enable_auto_lint = enable_auto_lintfile_store = get_file_store(config.file_store, config.file_store_path)@@ -140,9 +140,9 @@ async def _load_runtime(@pytest.mark.asyncio-async def test_env_vars_os_environ(temp_dir, box_class, run_as_devin):+async def test_env_vars_os_environ(temp_dir, box_class, run_as_openhands):with patch.dict(os.environ, {'SANDBOX_ENV_FOOBAR': 'BAZ'}):- runtime = await _load_runtime(temp_dir, box_class, run_as_devin)+ runtime = await _load_runtime(temp_dir, box_class, run_as_openhands)obs: CmdOutputObservation = await runtime.run_action(CmdRunAction(command='env')@@ -239,8 +239,8 @@ async def test_env_vars_runtime_add_env_vars_overwrite(temp_dir, box_class):@pytest.mark.asyncio-async def test_bash_command_pexcept(temp_dir, box_class, run_as_devin):- runtime = await _load_runtime(temp_dir, box_class, run_as_devin)+async def test_bash_command_pexcept(temp_dir, box_class, run_as_openhands):+ runtime = await _load_runtime(temp_dir, box_class, run_as_openhands)# We set env var PS1="\u@\h:\w $"# and construct the PEXCEPT prompt base on it.@@ -249,14 +249,14 @@ async def test_bash_command_pexcept(temp_dir, box_class, run_as_devin):obs = await runtime.run_action(CmdRunAction(command='env'))# For example:- # 02:16:13 - opendevin:DEBUG: client.py:78 - Executing command: env- # 02:16:13 - opendevin:DEBUG: client.py:82 - Command output: PYTHONUNBUFFERED=1- # CONDA_EXE=/opendevin/miniforge3/bin/conda+ # 02:16:13 - openhands:DEBUG: client.py:78 - Executing command: env+ # 02:16:13 - openhands:DEBUG: client.py:82 - Command output: PYTHONUNBUFFERED=1+ # CONDA_EXE=/openhands/miniforge3/bin/conda# [...]# LC_CTYPE=C.UTF-8# PS1=\u@\h:\w $- # 02:16:13 - opendevin:DEBUG: client.py:89 - Executing command for exit code: env- # 02:16:13 - opendevin:DEBUG: client.py:92 - Exit code Output:+ # 02:16:13 - openhands:DEBUG: client.py:89 - Executing command for exit code: env+ # 02:16:13 - openhands:DEBUG: client.py:92 - Exit code Output:# CONDA_DEFAULT_ENV=base# As long as the exit code is 0, the test will pass.@@ -270,8 +270,8 @@ async def test_bash_command_pexcept(temp_dir, box_class, run_as_devin):@pytest.mark.asyncio-async def test_simple_cmd_ipython_and_fileop(temp_dir, box_class, run_as_devin):- runtime = await _load_runtime(temp_dir, box_class, run_as_devin)+async def test_simple_cmd_ipython_and_fileop(temp_dir, box_class, run_as_openhands):+ runtime = await _load_runtime(temp_dir, box_class, run_as_openhands)# Test run commandaction_cmd = CmdRunAction(command='ls -l')@@ -339,8 +339,8 @@ async def test_simple_cmd_ipython_and_fileop(temp_dir, box_class, run_as_devin):@pytest.mark.asyncio-async def test_simple_browse(temp_dir, box_class, run_as_devin):- runtime = await _load_runtime(temp_dir, box_class, run_as_devin)+async def test_simple_browse(temp_dir, box_class, run_as_openhands):+ runtime = await _load_runtime(temp_dir, box_class, run_as_openhands)# Test browseaction_cmd = CmdRunAction(@@ -392,11 +392,11 @@ async def test_browsergym_eval_env(temp_dir):temp_dir,# only supported in event stream runtimebox_class=EventStreamRuntime,- run_as_devin=False, # need root permission to access file+ run_as_openhands=False, # need root permission to access filecontainer_image='xingyaoww/od-eval-miniwob:v1.0',browsergym_eval_env='browsergym/miniwob.choose-list',)- from opendevin.runtime.browser.browser_env import (+ from openhands.runtime.browser.browser_env import (BROWSER_EVAL_GET_GOAL_ACTION,BROWSER_EVAL_GET_REWARDS_ACTION,)@@ -480,7 +480,7 @@ async def test_runtime_whitespace(temp_dir, box_class):@pytest.mark.asyncio-async def test_multiple_multiline_commands(temp_dir, box_class, run_as_devin):+async def test_multiple_multiline_commands(temp_dir, box_class, run_as_openhands):cmds = ['ls -l','echo -e "hello\nworld"',@@ -510,7 +510,7 @@ world "]joined_cmds = '\n'.join(cmds)- runtime = await _load_runtime(temp_dir, box_class, run_as_devin)+ runtime = await _load_runtime(temp_dir, box_class, run_as_openhands)action = CmdRunAction(command=joined_cmds)logger.info(action, extra={'msg_type': 'ACTION'})@@ -533,9 +533,9 @@ world "@pytest.mark.asyncio-async def test_no_ps2_in_output(temp_dir, box_class, run_as_devin):+async def test_no_ps2_in_output(temp_dir, box_class, run_as_openhands):"""Test that the PS2 sign is not added to the output of a multiline command."""- runtime = await _load_runtime(temp_dir, box_class, run_as_devin)+ runtime = await _load_runtime(temp_dir, box_class, run_as_openhands)action = CmdRunAction(command='echo -e "hello\nworld"')logger.info(action, extra={'msg_type': 'ACTION'})@@ -551,7 +551,7 @@ async def test_no_ps2_in_output(temp_dir, box_class, run_as_devin):@pytest.mark.asyncioasync def test_multiline_command_loop(temp_dir, box_class):- # https://github.com/OpenDevin/OpenDevin/issues/3143+ # https://github.com/All-Hands-AI/OpenHands/issues/3143runtime = await _load_runtime(temp_dir, box_class)@@ -594,8 +594,8 @@ echo "success"@pytest.mark.asyncio-async def test_cmd_run(temp_dir, box_class, run_as_devin):- runtime = await _load_runtime(temp_dir, box_class, run_as_devin)+async def test_cmd_run(temp_dir, box_class, run_as_openhands):+ runtime = await _load_runtime(temp_dir, box_class, run_as_openhands)action = CmdRunAction(command='ls -l')logger.info(action, extra={'msg_type': 'ACTION'})@@ -618,8 +618,8 @@ async def test_cmd_run(temp_dir, box_class, run_as_devin):logger.info(obs, extra={'msg_type': 'OBSERVATION'})assert isinstance(obs, CmdOutputObservation)assert obs.exit_code == 0- if run_as_devin:- assert 'opendevin' in obs.content+ if run_as_openhands:+ assert 'openhands' in obs.contentelse:assert 'root' in obs.contentassert 'test' in obs.content@@ -654,8 +654,8 @@ async def test_cmd_run(temp_dir, box_class, run_as_devin):@pytest.mark.asyncio-async def test_run_as_user_correct_home_dir(temp_dir, box_class, run_as_devin):- runtime = await _load_runtime(temp_dir, box_class, run_as_devin)+async def test_run_as_user_correct_home_dir(temp_dir, box_class, run_as_openhands):+ runtime = await _load_runtime(temp_dir, box_class, run_as_openhands)action = CmdRunAction(command='cd ~ && pwd')logger.info(action, extra={'msg_type': 'ACTION'})@@ -663,8 +663,8 @@ async def test_run_as_user_correct_home_dir(temp_dir, box_class, run_as_devin):logger.info(obs, extra={'msg_type': 'OBSERVATION'})assert isinstance(obs, CmdOutputObservation)assert obs.exit_code == 0- if run_as_devin:- assert '/home/opendevin' in obs.content+ if run_as_openhands:+ assert '/home/openhands' in obs.contentelse:assert '/root' in obs.content@@ -735,8 +735,8 @@ async def test_failed_cmd(temp_dir, box_class):@pytest.mark.asyncio-async def test_ipython_multi_user(temp_dir, box_class, run_as_devin):- runtime = await _load_runtime(temp_dir, box_class, run_as_devin)+async def test_ipython_multi_user(temp_dir, box_class, run_as_openhands):+ runtime = await _load_runtime(temp_dir, box_class, run_as_openhands)# Test run ipython# get username@@ -747,8 +747,8 @@ async def test_ipython_multi_user(temp_dir, box_class, run_as_devin):assert isinstance(obs, IPythonRunCellObservation)logger.info(obs, extra={'msg_type': 'OBSERVATION'})- if run_as_devin:- assert 'opendevin' in obs.content+ if run_as_openhands:+ assert 'openhands' in obs.contentelse:assert 'root' in obs.content@@ -782,9 +782,9 @@ async def test_ipython_multi_user(temp_dir, box_class, run_as_devin):obs = await runtime.run_action(action)logger.info(obs, extra={'msg_type': 'OBSERVATION'})assert obs.exit_code == 0- if run_as_devin:- # -rw-r--r-- 1 opendevin root 13 Jul 28 03:53 test.txt- assert 'opendevin' in obs.content.split('\r\n')[0]+ if run_as_openhands:+ # -rw-r--r-- 1 openhands root 13 Jul 28 03:53 test.txt+ assert 'openhands' in obs.content.split('\r\n')[0]assert 'root' in obs.content.split('\r\n')[0]else:# -rw-r--r-- 1 root root 13 Jul 28 03:53 test.txt@@ -938,12 +938,12 @@ DO NOT re-run the same failed edit command. Running it again will lead to the sa@pytest.mark.asyncioasync def test_ipython_agentskills_fileop_pwd(- temp_dir, box_class, run_as_devin, enable_auto_lint+ temp_dir, box_class, run_as_openhands, enable_auto_lint):"""Make sure that cd in bash also update the current working directory in ipython."""runtime = await _load_runtime(- temp_dir, box_class, run_as_devin, enable_auto_lint=enable_auto_lint+ temp_dir, box_class, run_as_openhands, enable_auto_lint=enable_auto_lint)await _test_ipython_agentskills_fileop_pwd_impl(runtime, enable_auto_lint)@@ -962,7 +962,7 @@ async def test_ipython_agentskills_fileop_pwd_with_userdir(temp_dir, box_class):runtime = await _load_runtime(temp_dir,box_class,- run_as_devin=False,+ run_as_openhands=False,)action = CmdRunAction(command='cd ~')@@ -1020,9 +1020,9 @@ async def test_ipython_agentskills_fileop_pwd_with_userdir(temp_dir, box_class):@pytest.mark.asyncio-async def test_ipython_package_install(temp_dir, box_class, run_as_devin):+async def test_ipython_package_install(temp_dir, box_class, run_as_openhands):"""Make sure that cd in bash also update the current working directory in ipython."""- runtime = await _load_runtime(temp_dir, box_class, run_as_devin)+ runtime = await _load_runtime(temp_dir, box_class, run_as_openhands)# It should error out since pymsgbox is not installedaction = IPythonRunCellAction(code='import pymsgbox')@@ -1226,7 +1226,7 @@ async def test_copy_non_existent_file(temp_dir, box_class):async def test_keep_prompt(temp_dir):# only EventStreamRuntime supports keep_promptruntime = await _load_runtime(- temp_dir, box_class=EventStreamRuntime, run_as_devin=False+ temp_dir, box_class=EventStreamRuntime, run_as_openhands=False)action = CmdRunAction(command='touch /workspace/test_file.txt')@@ -1258,7 +1258,7 @@ async def test_git_operation(box_class):temp_dir=None,box_class=box_class,# Need to use non-root user to expose issues- run_as_devin=True,+ run_as_openhands=True,)# this will happen if permission of runtime is not properly configured@@ -1271,17 +1271,17 @@ async def test_git_operation(box_class):logger.info(obs, extra={'msg_type': 'OBSERVATION'})assert isinstance(obs, CmdOutputObservation)assert obs.exit_code == 0- # drwx--S--- 2 opendevin root 64 Aug 7 23:32 .+ # drwx--S--- 2 openhands root 64 Aug 7 23:32 .# drwxr-xr-x 1 root root 4.0K Aug 7 23:33 ..for line in obs.content.split('\r\n'):if ' ..' in line:# parent directory should be owned by rootassert 'root' in line- assert 'opendevin' not in line+ assert 'openhands' not in lineelif ' .' in line:- # current directory should be owned by opendevin+ # current directory should be owned by openhands# and its group should be root- assert 'opendevin' in line+ assert 'openhands' in lineassert 'root' in line# make sure all git operations are alloweddiff --git a/tests/unit/test_runtime_build.py b/tests/unit/test_runtime_build.pyindex 911cd8dcf7..5ef0489925 100644--- a/tests/unit/test_runtime_build.py+++ b/tests/unit/test_runtime_build.py@@ -7,7 +7,7 @@ import pytestimport tomlfrom pytest import TempPathFactory-from opendevin.runtime.utils.runtime_build import (+from openhands.runtime.utils.runtime_build import (RUNTIME_IMAGE_REPO,_generate_dockerfile,_get_package_version,@@ -34,24 +34,24 @@ def _check_source_code_in_dir(temp_dir):# check the source file is the same as the current code baseassert os.path.exists(os.path.join(code_dir, 'pyproject.toml'))- # The source code should only include the `opendevin` folder, but not the other folders+ # The source code should only include the `openhands` folder, but not the other foldersassert set(os.listdir(code_dir)) == {- 'opendevin',+ 'openhands','pyproject.toml','poetry.lock','LICENSE','README.md','PKG-INFO',}- assert os.path.exists(os.path.join(code_dir, 'opendevin'))- assert os.path.isdir(os.path.join(code_dir, 'opendevin'))+ assert os.path.exists(os.path.join(code_dir, 'openhands'))+ assert os.path.isdir(os.path.join(code_dir, 'openhands'))# make sure the version from the pyproject.toml is the same as the current versionwith open(os.path.join(code_dir, 'pyproject.toml'), 'r') as f:pyproject = toml.load(f)_pyproject_version = pyproject['tool']['poetry']['version']- assert _pyproject_version == version('opendevin')+ assert _pyproject_version == version('openhands')def test_put_source_code_to_dir(temp_dir):@@ -136,14 +136,14 @@ def test_generate_dockerfile_scratch():assert 'apt-get update' in dockerfile_contentassert 'apt-get install -y wget sudo apt-utils' in dockerfile_contentassert (- 'RUN /opendevin/miniforge3/bin/mamba install conda-forge::poetry python=3.11 -y'+ 'RUN /openhands/miniforge3/bin/mamba install conda-forge::poetry python=3.11 -y'in dockerfile_content)# Check the update command- assert 'COPY ./code /opendevin/code' in dockerfile_content+ assert 'COPY ./code /openhands/code' in dockerfile_contentassert (- '/opendevin/miniforge3/bin/mamba run -n base poetry install'+ '/openhands/miniforge3/bin/mamba run -n base poetry install'in dockerfile_content)@@ -158,14 +158,14 @@ def test_generate_dockerfile_skip_init():# These commands SHOULD NOT include in the dockerfile if skip_init is Trueassert 'RUN apt update && apt install -y wget sudo' not in dockerfile_contentassert (- 'RUN /opendevin/miniforge3/bin/mamba install conda-forge::poetry python=3.11 -y'+ 'RUN /openhands/miniforge3/bin/mamba install conda-forge::poetry python=3.11 -y'not in dockerfile_content)# These update commands SHOULD still in the dockerfile- assert 'COPY ./code /opendevin/code' in dockerfile_content+ assert 'COPY ./code /openhands/code' in dockerfile_contentassert (- '/opendevin/miniforge3/bin/mamba run -n base poetry install'+ '/openhands/miniforge3/bin/mamba run -n base poetry install'in dockerfile_content)@@ -240,7 +240,7 @@ def test_build_runtime_image_exact_hash_exist(temp_dir):mock_runtime_builder.build.assert_not_called()-@patch('opendevin.runtime.utils.runtime_build._build_sandbox_image')+@patch('openhands.runtime.utils.runtime_build._build_sandbox_image')def test_build_runtime_image_exact_hash_not_exist(mock_build_sandbox_image, temp_dir):base_image = 'debian:11'repo, latest_image_tag = get_runtime_image_repo_and_tag(base_image)@@ -263,7 +263,7 @@ def test_build_runtime_image_exact_hash_not_exist(mock_build_sandbox_image, tempmock_runtime_builder.image_exists.side_effect = [False, True]with patch(- 'opendevin.runtime.utils.runtime_build.prep_docker_build_folder'+ 'openhands.runtime.utils.runtime_build.prep_docker_build_folder') as mock_prep_docker_build_folder:mock_prep_docker_build_folder.side_effect = [from_scratch_hash,diff --git a/tests/unit/test_security.py b/tests/unit/test_security.pyindex 5f141a7bda..1bab24ca03 100644--- a/tests/unit/test_security.py+++ b/tests/unit/test_security.py@@ -4,9 +4,9 @@ import tempfileimport pytest-from opendevin.core.schema.action import ActionType-from opendevin.core.schema.agent import AgentState-from opendevin.events.action import (+from openhands.core.schema.action import ActionType+from openhands.core.schema.agent import AgentState+from openhands.events.action import (AgentDelegateAction,AgentFinishAction,BrowseInteractiveAction,@@ -17,9 +17,9 @@ from opendevin.events.action import (MessageAction,NullAction,)-from opendevin.events.action.action import ActionConfirmationStatus, ActionSecurityRisk-from opendevin.events.event import Event-from opendevin.events.observation import (+from openhands.events.action.action import ActionConfirmationStatus, ActionSecurityRisk+from openhands.events.event import Event+from openhands.events.observation import (AgentDelegateObservation,AgentStateChangedObservation,BrowserOutputObservation,@@ -27,11 +27,11 @@ from opendevin.events.observation import (IPythonRunCellObservation,NullObservation,)-from opendevin.events.stream import EventSource, EventStream-from opendevin.security.invariant import InvariantAnalyzer-from opendevin.security.invariant.nodes import Function, Message, ToolCall, ToolOutput-from opendevin.security.invariant.parser import parse_action, parse_observation-from opendevin.storage import get_file_store+from openhands.events.stream import EventSource, EventStream+from openhands.security.invariant import InvariantAnalyzer+from openhands.security.invariant.nodes import Function, Message, ToolCall, ToolOutput+from openhands.security.invariant.parser import parse_action, parse_observation+from openhands.storage import get_file_store@pytest.fixturediff --git a/tests/unit/test_storage.py b/tests/unit/test_storage.pyindex dc173ff8fe..e11d3f0b95 100644--- a/tests/unit/test_storage.py+++ b/tests/unit/test_storage.py@@ -3,8 +3,8 @@ import shutilimport pytest-from opendevin.storage.local import LocalFileStore-from opendevin.storage.memory import InMemoryFileStore+from openhands.storage.local import LocalFileStore+from openhands.storage.memory import InMemoryFileStore@pytest.fixture