🙌 OpenHands: AI-Driven Development
Update pre-commit hook versions to most recent versions (#8343)
Graham Neubig689d3c90466e
diff --git a/.github/scripts/check_version_consistency.py b/.github/scripts/check_version_consistency.pyindex 828b583eb5..fe4d77c2d2 100755--- a/.github/scripts/check_version_consistency.py+++ b/.github/scripts/check_version_consistency.py@@ -2,10 +2,9 @@import osimport reimport sys-from typing import Set, Tuple-def find_version_references(directory: str) -> Tuple[Set[str], Set[str]]:+def find_version_references(directory: str) -> tuple[set[str], set[str]]:openhands_versions = set()runtime_versions = set()diff --git a/.openhands/pre-commit.sh b/.openhands/pre-commit.shold mode 100644new mode 100755diff --git a/dev_config/python/.pre-commit-config.yaml b/dev_config/python/.pre-commit-config.yamlindex 58676e998b..8cb0c24359 100644--- a/dev_config/python/.pre-commit-config.yaml+++ b/dev_config/python/.pre-commit-config.yaml@@ -1,6 +1,6 @@repos:- repo: https://github.com/pre-commit/pre-commit-hooks- rev: v4.5.0+ rev: v5.0.0hooks:- id: trailing-whitespaceexclude: docs/modules/python@@ -10,17 +10,17 @@ repos:- id: debug-statements- repo: https://github.com/tox-dev/pyproject-fmt- rev: 1.7.0+ rev: v2.5.1hooks:- id: pyproject-fmt- repo: https://github.com/abravalheri/validate-pyproject- rev: v0.16+ rev: v0.24.1hooks:- id: validate-pyproject- repo: https://github.com/astral-sh/ruff-pre-commit# Ruff version.- rev: v0.4.1+ rev: v0.11.8hooks:# Run the linter.- id: ruff@@ -33,7 +33,7 @@ repos:types_or: [python, pyi, jupyter]- repo: https://github.com/pre-commit/mirrors-mypy- rev: v1.9.0+ rev: v1.15.0hooks:- id: mypyadditional_dependencies:diff --git a/dev_config/python/ruff.toml b/dev_config/python/ruff.tomlindex d58ec27879..e15500e061 100644--- a/dev_config/python/ruff.toml+++ b/dev_config/python/ruff.toml@@ -20,6 +20,12 @@ ignore = ["B010","B904","B018",+ # Temporarily ignore ASYNC rules until they can be properly fixed in a separate PR+ "ASYNC110",+ "ASYNC220",+ "ASYNC221",+ "ASYNC230",+ "ASYNC251",][lint.flake8-quotes]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 b6dc0a9c7b..287e4769ed 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@@ -22,4 +22,4 @@ Veuillez noter que la sélection de ces technologies est en cours, et des techno## Licence-Distribué sous la [Licence](https://github.com/All-Hands-AI/OpenHands/blob/main/LICENSE) MIT.\ No newline at end of file+Distribué sous la [Licence](https://github.com/All-Hands-AI/OpenHands/blob/main/LICENSE) MIT.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 7b9cce4943..90b1027d62 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@@ -20,4 +20,4 @@ L'idée conceptuelle est illustrée ci-dessous. À chaque tour, l'agent peut :https://github.com/All-Hands-AI/OpenHands/assets/38853559/f592a192-e86c-4f48-ad31-d69282d5f6ac-_Exemple de CodeActAgent avec `gpt-4-turbo-2024-04-09` réalisant une tâche de science des données (régression linéaire)_.\ No newline at end of file+_Exemple de CodeActAgent avec `gpt-4-turbo-2024-04-09` réalisant 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/backend.mdx b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/architecture/backend.mdxindex 9a793fe9ae..704284ced1 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/architecture/backend.mdx+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/architecture/backend.mdx@@ -51,4 +51,4 @@ _**Avertissement** : L'architecture backend est en cours de développement et pe6. Exporter le diagramme en fichiers PNG et SVG et remplacer les diagrammes existants dans le répertoire `docs/architecture`. Cela peut être fait avec (par exemple [PlantText](https://www.planttext.com/))</div>-</details>\ No newline at end of file+</details>diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/architecture/runtime.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/architecture/runtime.mdindex d951347a26..e92b98bacf 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/architecture/runtime.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/architecture/runtime.md@@ -125,4 +125,4 @@ Aspects clés du système de plugins :2. Enregistrement du plugin : Les plugins disponibles sont enregistrés dans un dictionnaire `ALL_PLUGINS`3. Spécification du plugin : Les plugins sont associés à `Agent.sandbox_plugins: list[PluginRequirement]`. Les utilisateurs peuvent spécifier quels plugins charger lors de l'initialisation du runtime4. Initialisation : Les plugins sont initialisés de manière asynchrone au démarrage du client runtime-5. Utilisation : Le client runtime peut utiliser les plugins initialisés pour étendre ses capacités (par exemple, le JupyterPlugin pour exécuter des cellules IPython)\ No newline at end of file+5. Utilisation : Le client runtime peut utiliser les plugins initialisés pour étendre ses capacités (par exemple, le JupyterPlugin pour exécuter des cellules IPython)diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/cloud/cloud-api.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/cloud/cloud-api.mdindex 9f95c97fa4..6a10171c6c 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/cloud/cloud-api.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/cloud/cloud-api.md@@ -174,4 +174,4 @@ La réponse est formatée comme suit :L'API a une limite de 10 conversations simultanées par compte. Si vous avez besoin d'une limite plus élevée pour votre cas d'utilisation, veuillez nous contacter à [[email protected]](mailto:[email protected]).-Si vous dépassez cette limite, l'API renverra une réponse 429 Too Many Requests.\ No newline at end of file+Si vous dépassez cette limite, l'API renverra une réponse 429 Too Many Requests.diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/cloud/cloud-github-resolver.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/cloud/cloud-github-resolver.mdindex fc3ef90413..c7ef460943 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/cloud/cloud-github-resolver.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/cloud/cloud-github-resolver.md@@ -4,12 +4,12 @@ Le Résolveur GitHub automatise les corrections de code et fournit une assistanc## Configuration-Le Résolveur GitHub Cloud est disponible automatiquement lorsque vous+Le Résolveur GitHub Cloud est disponible automatiquement lorsque vous[accordez l'accès au dépôt OpenHands Cloud](./openhands-cloud#adding-repository-access).## Utilisation-Après avoir accordé l'accès au dépôt OpenHands Cloud, vous pouvez utiliser le Résolveur GitHub Cloud sur les problèmes et les pull requests+Après avoir accordé l'accès au dépôt OpenHands Cloud, vous pouvez utiliser le Résolveur GitHub Cloud sur les problèmes et les pull requestsdu dépôt.### Problèmes (Issues)@@ -30,4 +30,4 @@ Pour qu'OpenHands travaille sur des pull requests, utilisez `@openhands` dans leOpenHands va :1. Commenter la PR pour vous informer qu'il y travaille.-2. Effectuer la tâche.\ No newline at end of file+2. Effectuer la tâche.diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/cloud/openhands-cloud.mdx b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/cloud/openhands-cloud.mdxindex d1191c2c5e..504191892a 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/cloud/openhands-cloud.mdx+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/cloud/openhands-cloud.mdx@@ -62,4 +62,4 @@ Lorsque vous utilisez votre compte GitLab, OpenHands aura automatiquement accès- Liste des conversations – Affiche uniquement les 10 conversations les plus récentes initiées au cours des 10 derniers jours.- Espaces de travail – Les espaces de travail de conversation sont conservés pendant 14 jours.-- Environnements d'exécution – Les environnements d'exécution restent actifs ("chauds") pendant 30 minutes. Après cette période, la reprise d'une conversation peut prendre 1 à 2 minutes.\ No newline at end of file+- Environnements d'exécution – Les environnements d'exécution restent actifs ("chauds") pendant 30 minutes. Après cette période, la reprise d'une conversation peut prendre 1 à 2 minutes.diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/configuration-options.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/configuration-options.mdindex e15d2bd942..ae6820bd33 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/configuration-options.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/configuration-options.md@@ -392,4 +392,4 @@ Pour les utiliser avec la commande docker, passez `-e SANDBOX_<option>`. ExempleLes options de configuration de sécurité sont définies dans la section `[security]` du fichier `config.toml`.-Pour les utiliser avec la commande docker, passez `-e SECURITY\ No newline at end of file+Pour les utiliser avec la commande docker, passez `-e SECURITYdiff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/customization/repository.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/customization/repository.mdindex 46352db69d..b3f7d68689 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/customization/repository.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/customization/repository.md@@ -20,4 +20,4 @@ export MY_ENV_VAR="my value"sudo apt-get updatesudo apt-get install -y lsofcd frontend && npm install ; cd ..-```\ No newline at end of file+```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 b9641e1f60..97f17ccf24 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@@ -35,4 +35,4 @@ Pour les données sur les serveurs d'All Hands AI, nous sommes heureux de les su**Une Seule Donnée :** Si vous souhaitez qu'une donnée soit supprimée, nous ajouterons prochainement un mécanisme pour supprimer des éléments de données en utilisant le lien et le mot de passe qui s'affichent sur l'interface lorsque vous soumettez des données.-**Toutes les Données :** Si vous souhaitez que toutes vos données soient supprimées, ou si vous ne disposez pas de l'identifiant et du mot de passe que vous avez reçus lors de la soumission des données, veuillez contacter `[email protected]` depuis l'adresse e-mail que vous avez enregistrée lors de la soumission initiale des données.\ No newline at end of file+**Toutes les Données :** Si vous souhaitez que toutes vos données soient supprimées, ou si vous ne disposez pas de l'identifiant et du mot de passe que vous avez reçus lors de la soumission des données, veuillez contacter `[email protected]` depuis l'adresse e-mail que vous avez enregistrée lors de la soumission initiale des données.diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/getting-started.mdx b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/getting-started.mdxindex cfbbe96c23..78af3bda7b 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/getting-started.mdx+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/getting-started.mdx@@ -1,10 +1,10 @@# Premiers pas avec OpenHands-Vous avez [exécuté OpenHands](./installation) et vous avez+Vous avez [exécuté OpenHands](./installation) et vous avez[configuré votre LLM](./installation#setup). Et maintenant ?-OpenHands peut vous aider pour diverses tâches d'ingénierie. Cependant, la technologie est encore nouvelle, et nous sommes loin d'avoir-des agents capables de gérer des tâches complexes de manière autonome. Il est important de comprendre ce que l'agent fait bien et où il+OpenHands peut vous aider pour diverses tâches d'ingénierie. Cependant, la technologie est encore nouvelle, et nous sommes loin d'avoir+des agents capables de gérer des tâches complexes de manière autonome. Il est important de comprendre ce que l'agent fait bien et où ila besoin de soutien.## Hello World@@ -96,4 +96,4 @@ Gardez ces conseils à l'esprit :* Fournissez beaucoup de contexte.* Committez et poussez fréquemment.-Consultez [Meilleures pratiques de prompt](./prompting/prompting-best-practices) pour plus de conseils sur la façon de tirer le meilleur parti d'OpenHands.\ No newline at end of file+Consultez [Meilleures pratiques de prompt](./prompting/prompting-best-practices) pour plus de conseils sur la façon de tirer le meilleur parti d'OpenHands.diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/how-to/cli-mode.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/how-to/cli-mode.mdindex c96e10db86..54a9e284d4 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/how-to/cli-mode.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/how-to/cli-mode.md@@ -52,4 +52,4 @@ docker run -it \Cette commande lancera une session interactive dans Docker où vous pourrez saisir des tâches et recevoir des réponses d'OpenHands.-Le paramètre `-e SANDBOX_USER_ID=$(id -u)` est transmis à la commande Docker pour s'assurer que l'utilisateur du sandbox correspond aux permissions de l'utilisateur hôte. Cela empêche l'agent de créer des fichiers appartenant à root dans l'espace de travail monté.\ No newline at end of file+Le paramètre `-e SANDBOX_USER_ID=$(id -u)` est transmis à la commande Docker pour s'assurer que l'utilisateur du sandbox correspond aux permissions de l'utilisateur hôte. Cela empêche l'agent de créer des fichiers appartenant à root dans l'espace de travail monté.diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/how-to/custom-sandbox-guide.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/how-to/custom-sandbox-guide.mdindex 8fb03e8240..ef1ddfbeb4 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/how-to/custom-sandbox-guide.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/how-to/custom-sandbox-guide.md@@ -92,4 +92,4 @@ platform = "linux/amd64"### Exécution-Exécutez OpenHands en lançant ```make run``` dans le répertoire principal.\ No newline at end of file+Exécutez OpenHands en lançant ```make run``` dans le répertoire principal.diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/how-to/debugging.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/how-to/debugging.mdindex 1c67c7284f..e8213cfd48 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/how-to/debugging.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/how-to/debugging.md@@ -68,4 +68,4 @@ Les valeurs dans l'extrait ci-dessus peuvent être mises à jour de sorte que :* *d* : le répertoire de travail openhands* *c* : l'agent* *l* : la configuration LLM (prédéfinie dans config.toml)- * *n* : nom de session (par exemple, nom d'eventstream)\ No newline at end of file+ * *n* : nom de session (par exemple, nom d'eventstream)diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/how-to/development-overview.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/how-to/development-overview.mdindex 6a4805d612..69442d22b1 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/how-to/development-overview.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/how-to/development-overview.md@@ -71,4 +71,4 @@ Lorsque vous apportez des modifications au code, veuillez vous assurer que :1. La documentation pertinente est mise à jour pour refléter vos changements2. Les nouvelles fonctionnalités sont documentées dans les fichiers README appropriés3. Tout changement d'API est reflété dans la documentation du serveur-4. La documentation suit le guide de style dans `/docs/DOC_STYLE_GUIDE.md`\ No newline at end of file+4. La documentation suit le guide de style dans `/docs/DOC_STYLE_GUIDE.md`diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/how-to/evaluation-harness.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/how-to/evaluation-harness.mdindex 7ea683e05f..e96401db42 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/how-to/evaluation-harness.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/how-to/evaluation-harness.md@@ -275,4 +275,4 @@ Cette fonction fait ce qui suit :2. Vérifie combien de fois l'agent a tenté de communiquer avec l'utilisateur3. Si l'agent a fait plusieurs tentatives, elle lui fournit une option pour abandonner-En utilisant cette fonction, vous pouvez assurer un comportement cohérent à travers plusieurs séries d'évaluations et empêcher l'agent de rester bloqué en attendant une entrée humaine.\ No newline at end of file+En utilisant cette fonction, vous pouvez assurer un comportement cohérent à travers plusieurs séries d'évaluations et empêcher l'agent de rester bloqué en attendant une entrée humaine.diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/how-to/github-action.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/how-to/github-action.mdindex d7aa330303..9bf02c6fd2 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/how-to/github-action.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/how-to/github-action.md@@ -48,4 +48,4 @@ Les options de personnalisation que vous pouvez définir sont :| `OPENHANDS_MAX_ITER` | Variable | Définir la limite maximale d'itérations de l'agent | `OPENHANDS_MAX_ITER=10` || `OPENHANDS_MACRO` | Variable | Personnaliser la macro par défaut pour invoquer le résolveur | `OPENHANDS_MACRO=@resolveit` || `OPENHANDS_BASE_CONTAINER_IMAGE` | Variable | Sandbox personnalisé ([en savoir plus](https://docs.all-hands.dev/modules/usage/how-to/custom-sandbox-guide)) | `OPENHANDS_BASE_CONTAINER_IMAGE="custom_image"` |-| `TARGET_BRANCH` | Variable | Fusionner vers une branche autre que `main` | `TARGET_BRANCH="dev"` |\ No newline at end of file+| `TARGET_BRANCH` | Variable | Fusionner vers une branche autre que `main` | `TARGET_BRANCH="dev"` |diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/how-to/gui-mode.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/how-to/gui-mode.mdindex 7a9a2d4b7f..f76fe908cc 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/how-to/gui-mode.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/how-to/gui-mode.md@@ -139,4 +139,4 @@ OpenHands exporte automatiquement un `GITLAB_TOKEN` vers l'environnement shell s- Utilisez l'un des modèles recommandés, comme décrit dans la [section LLMs](usage/llms/llms.md).N'oubliez pas que le mode GUI d'OpenHands est conçu pour rendre votre interaction avec l'assistant IA aussi fluide et intuitive-que possible. N'hésitez pas à explorer ses fonctionnalités pour maximiser votre productivité.\ No newline at end of file+que possible. N'hésitez pas à explorer ses fonctionnalités pour maximiser votre productivité.diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/how-to/headless-mode.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/how-to/headless-mode.mdindex e498130322..4fa57124d9 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/how-to/headless-mode.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/how-to/headless-mode.md@@ -56,4 +56,4 @@ Pour voir toutes les options de configuration disponibles pour le mode headless,### Journaux supplémentaires-Pour que le mode headless enregistre toutes les actions de l'agent, exécutez dans le terminal : `export LOG_ALL_EVENTS=true`\ No newline at end of file+Pour que le mode headless enregistre toutes les actions de l'agent, exécutez dans le terminal : `export LOG_ALL_EVENTS=true`diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/installation.mdx b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/installation.mdxindex 749276df54..390c4e562a 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/installation.mdx+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/installation.mdx@@ -118,4 +118,4 @@ Cette version est instable et est recommandée uniquement à des fins de test ouPour le flux de travail de développement, consultez [Development.md](https://github.com/All-Hands-AI/OpenHands/blob/main/Development.md).-Vous rencontrez des problèmes ? Consultez notre [Guide de dépannage](https://docs.all-hands.dev/modules/usage/troubleshooting).\ No newline at end of file+Vous rencontrez des problèmes ? Consultez notre [Guide de dépannage](https://docs.all-hands.dev/modules/usage/troubleshooting).diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/key-features.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/key-features.mdindex 56ac4b5b03..2091e8b5ae 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/key-features.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/key-features.md@@ -26,4 +26,4 @@### Navigateur- Utilisé par OpenHands pour naviguer sur des sites web.-- Le navigateur n'est pas interactif.\ No newline at end of file+- Le navigateur n'est pas interactif.diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/azure-llms.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/azure-llms.mdindex d7c3896069..9e5470571f 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/azure-llms.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/azure-llms.md@@ -4,7 +4,7 @@ OpenHands utilise LiteLLM pour effectuer des appels aux modèles de chat d'Azure## Configuration d'Azure OpenAI-Lors de l'exécution d'OpenHands, vous devrez définir la variable d'environnement suivante en utilisant `-e` dans la+Lors de l'exécution d'OpenHands, vous devrez définir la variable d'environnement suivante en utilisant `-e` dans la[commande docker run](../installation#running-openhands) :```@@ -38,4 +38,4 @@ Lors de l'exécution d'OpenHands, définissez la variable d'environnement suivan```LLM_API_VERSION="<api-version>" # ex. "2024-02-15-preview"-```\ No newline at end of file+```diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/custom-llm-configs.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/custom-llm-configs.mdindex 2341af86f0..34f4ecfbb5 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/custom-llm-configs.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/custom-llm-configs.md@@ -133,4 +133,4 @@ Utilisez cette configuration lorsque vous souhaitez qu'un LLM ébauche des modif:::noteLes configurations LLM personnalisées ne sont disponibles que lorsque vous utilisez OpenHands en mode développement, via `main.py` ou `cli.py`. Lors de l'exécution via `docker run`, veuillez utiliser les options de configuration standard.-:::\ No newline at end of file+:::diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/google-llms.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/google-llms.mdindex f96a067b78..e6db83d6de 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/google-llms.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/google-llms.md@@ -26,4 +26,4 @@ VERTEXAI_LOCATION="<votre-emplacement-gcp>"Ensuite, définissez les éléments suivants dans l'interface utilisateur d'OpenHands via les Paramètres :- `LLM Provider` sur `VertexAI`- `LLM Model` sur le modèle que vous utiliserez.-Si le modèle n'est pas dans la liste, activez les options `Advanced`, et saisissez-le dans `Custom Model` (par exemple vertex_ai/<nom-du-modèle>).\ No newline at end of file+Si le modèle n'est pas dans la liste, activez les options `Advanced`, et saisissez-le dans `Custom Model` (par exemple vertex_ai/<nom-du-modèle>).diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/groq.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/groq.mdindex a9efcf482c..ad16815ee4 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/groq.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/groq.md@@ -19,4 +19,4 @@ accéderiez à n'importe quel point de terminaison compatible OpenAI. Dans l'int2. Définissez les éléments suivants :- `Custom Model` avec le préfixe `openai/` + le modèle que vous utiliserez (par exemple `openai/llama3-70b-8192`)- `Base URL` sur `https://api.groq.com/openai/v1`- - `API Key` avec votre clé API Groq\ No newline at end of file+ - `API Key` avec votre clé API Groqdiff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/litellm-proxy.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/litellm-proxy.mdindex 6788a2641e..f81f398c54 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/litellm-proxy.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/litellm-proxy.md@@ -17,4 +17,4 @@ Pour utiliser le proxy LiteLLM avec OpenHands, vous devez :Les modèles pris en charge dépendent de la configuration de votre proxy LiteLLM. OpenHands prend en charge tous les modèles que votre proxy LiteLLM est configuré pour gérer.-Référez-vous à la configuration de votre proxy LiteLLM pour la liste des modèles disponibles et leurs noms.\ No newline at end of file+Référez-vous à la configuration de votre proxy LiteLLM pour la liste des modèles disponibles et leurs noms.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 7f469743cf..a0aa85ebdc 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@@ -89,4 +89,4 @@ num_retries = 4retry_min_wait = 5retry_max_wait = 30retry_multiplier = 2-```\ No newline at end of file+```diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/local-llms.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/local-llms.mdindex 25d2ff7b2f..b7049fd578 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/local-llms.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/local-llms.md@@ -80,4 +80,4 @@ Une fois qu'OpenHands est en cours d'exécution, vous devrez définir les élém2. Définissez les éléments suivants :- `Modèle personnalisé` sur `openai/<served-model-name>` (par exemple `openai/openhands-lm-32b-v0.1`)- `URL de base` sur `http://host.docker.internal:8000`-- `Clé API` sur la même chaîne que celle que vous avez définie lors du service du modèle (par exemple `mykey`)\ No newline at end of file+- `Clé API` sur la même chaîne que celle que vous avez définie lors du service du modèle (par exemple `mykey`)diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/openai-llms.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/openai-llms.mdindex e2ba01aba9..f9290be2e8 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/openai-llms.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/openai-llms.md@@ -22,4 +22,4 @@ Si vous utilisez un proxy OpenAI, dans l'interface utilisateur d'OpenHands via l2. Définissez les éléments suivants :- `Custom Model` sur openai/<nom-du-modèle> (par exemple `openai/gpt-4o` ou openai/<préfixe-proxy>/<nom-du-modèle>)- `Base URL` sur l'URL de votre proxy OpenAI- - `API Key` sur votre clé API OpenAI\ No newline at end of file+ - `API Key` sur votre clé API OpenAIdiff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/openrouter.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/openrouter.mdindex 1e339835b2..7a2c8062a9 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/openrouter.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/llms/openrouter.md@@ -9,4 +9,4 @@ Lors de l'exécution d'OpenHands, vous devrez définir les éléments suivants d* `LLM Model` sur le modèle que vous utiliserez.[Visitez ce lien pour voir une liste complète des modèles OpenRouter](https://openrouter.ai/models).Si le modèle ne figure pas dans la liste, activez les options `Advanced`, et saisissez-le dans `Custom Model` (par exemple openrouter/<nom-du-modèle> comme `openrouter/anthropic/claude-3.5-sonnet`).-* `API Key` avec votre clé API OpenRouter.\ No newline at end of file+* `API Key` avec votre clé API OpenRouter.diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/mcp.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/mcp.mdindex 9c8684d384..edda18d111 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/mcp.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/mcp.md@@ -93,4 +93,4 @@ L'agent peut alors utiliser ces outils comme n'importe quel outil intégré. Lor1. OpenHands achemine l'appel vers le serveur MCP approprié2. Le serveur traite la demande et renvoie une réponse-3. OpenHands convertit la réponse en une observation et la présente à l'agent\ No newline at end of file+3. OpenHands convertit la réponse en une observation et la présente à l'agentdiff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/prompting/microagents-keyword.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/prompting/microagents-keyword.mdindex 009335033f..003a1fa301 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/prompting/microagents-keyword.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/prompting/microagents-keyword.md@@ -33,4 +33,4 @@ triggers:L'utilisateur a dit le mot magique. Répondez avec "C'était délicieux !"```-[Voir des exemples de microagents déclenchés par mots-clés dans le dépôt officiel OpenHands](https://github.com/All-Hands-AI/OpenHands/tree/main/microagents)\ No newline at end of file+[Voir des exemples de microagents déclenchés par mots-clés dans le dépôt officiel OpenHands](https://github.com/All-Hands-AI/OpenHands/tree/main/microagents)diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/prompting/microagents-overview.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/prompting/microagents-overview.mdindex 5c4e0df65b..2eaad0019d 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/prompting/microagents-overview.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/prompting/microagents-overview.md@@ -37,4 +37,4 @@ est requis :| Type de Microagent | Requis ||----------------------------------------|---------|| `Microagents Généraux de Dépôt` | Non |-| `Microagents Déclenchés par Mots-clés` | Oui |\ No newline at end of file+| `Microagents Déclenchés par Mots-clés` | Oui |diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/prompting/microagents-public.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/prompting/microagents-public.mdindex 534f22865c..3b912cc883 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/prompting/microagents-public.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/prompting/microagents-public.md@@ -47,4 +47,4 @@ Soumettez une pull request avec :- Le nouveau fichier de microagent.- Documentation mise à jour si nécessaire.-- Description de l'objectif et des capacités de l'agent.\ No newline at end of file+- Description de l'objectif et des capacités de l'agent.diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/prompting/microagents-repo.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/prompting/microagents-repo.mdindex c4f6cda303..037b4a651f 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/prompting/microagents-repo.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/prompting/microagents-repo.md@@ -28,4 +28,4 @@ Pour la configurer, vous pouvez exécuter `npm run build`.Assurez-vous toujours que les tests sont réussis avant de valider les modifications. Vous pouvez exécuter les tests en lançant `npm run test`.```-[Voir plus d'exemples de microagents généraux de dépôt ici.](https://github.com/All-Hands-AI/OpenHands/tree/main/.openhands/microagents)\ No newline at end of file+[Voir plus d'exemples de microagents généraux de dépôt ici.](https://github.com/All-Hands-AI/OpenHands/tree/main/.openhands/microagents)diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/prompting/prompting-best-practices.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/prompting/prompting-best-practices.mdindex 5fabdc815d..bc486fd371 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/prompting/prompting-best-practices.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/prompting/prompting-best-practices.md@@ -34,4 +34,4 @@ Les bons prompts sont :Plus votre prompt est précis et informatif, mieux OpenHands pourra vous aider.-Voir [Démarrer avec OpenHands](../getting-started) pour plus d'exemples de prompts utiles.\ No newline at end of file+Voir [Démarrer avec OpenHands](../getting-started) pour plus d'exemples de prompts utiles.diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/runtimes-index.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/runtimes-index.mdindex 850e77a6ea..4a054632f2 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/runtimes-index.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/runtimes-index.md@@ -22,4 +22,4 @@ OpenHands prend en charge plusieurs environnements d'exécution différents :- [Environnement distant OpenHands](./runtimes/remote.md) - Environnement d'exécution basé sur le cloud pour l'exécution parallèle (bêta).- [Environnement Modal](./runtimes/modal.md) - Environnement d'exécution fourni par nos partenaires chez Modal.- [Environnement Daytona](./runtimes/daytona.md) - Environnement d'exécution fourni par Daytona.-- [Environnement local](./runtimes/local.md) - Exécution directe sur votre machine locale sans Docker.\ No newline at end of file+- [Environnement local](./runtimes/local.md) - Exécution directe sur votre machine locale sans Docker.diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/runtimes.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/runtimes.mdindex 13d5ba09ab..b4d8f6d888 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/runtimes.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/runtimes.md@@ -5,4 +5,4 @@ title: Runtime Configurationimport { Redirect } from '@docusaurus/router';-<Redirect to="/modules/usage/runtimes-index" />\ No newline at end of file+<Redirect to="/modules/usage/runtimes-index" />diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/runtimes/daytona.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/runtimes/daytona.mdindex 13a4a64f61..0207cc6843 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/runtimes/daytona.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/runtimes/daytona.md@@ -29,4 +29,4 @@ bash -i <(curl -sL https://get.daytona.io/openhands)Une fois exécuté, OpenHands devrait fonctionner localement et être prêt à l'emploi.-Pour plus de détails et une initialisation manuelle, consultez le [README.md](https://github.com/All-Hands-AI/OpenHands/blob/main/openhands/runtime/impl/daytona/README.md) complet\ No newline at end of file+Pour plus de détails et une initialisation manuelle, consultez le [README.md](https://github.com/All-Hands-AI/OpenHands/blob/main/openhands/runtime/impl/daytona/README.md) completdiff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/runtimes/docker.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/runtimes/docker.mdindex 37ae755d21..ece8ded275 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/runtimes/docker.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/runtimes/docker.md@@ -126,4 +126,4 @@ docker network create openhands-network# Exécuter OpenHands dans le réseau isolédocker run # ... \--network openhands-network \-```\ No newline at end of file+```diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/runtimes/local.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/runtimes/local.mdindex b505fadc85..ba866ba934 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/runtimes/local.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/runtimes/local.md@@ -71,4 +71,4 @@ Le Runtime Local est particulièrement utile pour :- Les pipelines CI/CD où Docker n'est pas disponible.- Les tests et le développement d'OpenHands lui-même.-- Les environnements où l'utilisation de conteneurs est restreinte.\ No newline at end of file+- Les environnements où l'utilisation de conteneurs est restreinte.diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/runtimes/modal.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/runtimes/modal.mdindex 0036325f19..fcd6291b8d 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/runtimes/modal.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/runtimes/modal.md@@ -10,4 +10,4 @@ docker run # ...-e RUNTIME=modal \-e MODAL_API_TOKEN_ID="your-id" \-e MODAL_API_TOKEN_SECRET="modal-api-key" \-```\ No newline at end of file+```diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/runtimes/remote.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/runtimes/remote.mdindex 91321749e2..ad39e69f6a 100644--- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/runtimes/remote.md+++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/runtimes/remote.md@@ -1,9 +1,9 @@# OpenHands Remote Runtime:::note-Ce runtime est spécifiquement conçu uniquement pour des fins d'évaluation d'agents via le+Ce runtime est spécifiquement conçu uniquement pour des fins d'évaluation d'agents via le[harnais d'évaluation OpenHands](https://github.com/All-Hands-AI/OpenHands/tree/main/evaluation). Il ne doit pas être utilisé pour lancer des applications OpenHands en production.:::-OpenHands Remote Runtime est actuellement en version bêta (lisez [ici](https://runtime.all-hands.dev/) pour plus de détails), il vous permet de lancer des runtimes-en parallèle dans le cloud. Remplissez [ce formulaire](https://docs.google.com/forms/d/e/1FAIpQLSckVz_JFwg2_mOxNZjCtr7aoBFI2Mwdan3f75J_TrdMS1JV2g/viewform) pour postuler si vous souhaitez l'essayer !\ No newline at end of file+OpenHands Remote Runtime est actuellement en version bêta (lisez [ici](https://runtime.all-hands.dev/) pour plus de détails), il vous permet de lancer des runtimes+en parallèle dans le cloud. Remplissez [ce formulaire](https://docs.google.com/forms/d/e/1FAIpQLSckVz_JFwg2_mOxNZjCtr7aoBFI2Mwdan3f75J_TrdMS1JV2g/viewform) pour postuler si vous souhaitez l'essayer !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 2ae427da6e..5cdd7c7f77 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@@ -65,4 +65,4 @@ Lors de la première invite, une erreur avec `Permission Denied` ou `PermissionE* Changer le propriétaire du répertoire : `sudo chown <utilisateur>:<utilisateur> ~/.openhands-state`.* ou mettre à jour les permissions du répertoire : `sudo chmod 777 ~/.openhands-state`* ou le supprimer si vous n'avez pas besoin des données précédentes. OpenHands le recréera. Vous devrez ressaisir les paramètres LLM.-* Si vous montez un répertoire local, assurez-vous que votre `WORKSPACE_BASE` dispose des permissions nécessaires pour l'utilisateur exécutant OpenHands.\ No newline at end of file+* Si vous montez un répertoire local, assurez-vous que votre `WORKSPACE_BASE` dispose des permissions nécessaires pour l'utilisateur exécutant OpenHands.diff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/about.md b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/about.mdindex 217d73ed92..83332d1f04 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/about.md+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/about.md@@ -22,4 +22,4 @@ OpenHandsは強力なフレームワークとライブラリの組み合わせ## ライセンス-MIT [ライセンス](https://github.com/All-Hands-AI/OpenHands/blob/main/LICENSE)の下で配布されています。\ No newline at end of file+MIT [ライセンス](https://github.com/All-Hands-AI/OpenHands/blob/main/LICENSE)の下で配布されています。diff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/agents.md b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/agents.mdindex bb05b15dd5..213bcb336c 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/agents.md+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/agents.md@@ -20,4 +20,4 @@https://github.com/All-Hands-AI/OpenHands/assets/38853559/f592a192-e86c-4f48-ad31-d69282d5f6ac-_`gpt-4-turbo-2024-04-09`を使用したCodeActAgentがデータサイエンスタスク(線形回帰)を実行する例_。\ No newline at end of file+_`gpt-4-turbo-2024-04-09`を使用したCodeActAgentがデータサイエンスタスク(線形回帰)を実行する例_。diff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/architecture/backend.mdx b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/architecture/backend.mdxindex 42fbde13e5..b28da85efb 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/architecture/backend.mdx+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/architecture/backend.mdx@@ -49,4 +49,4 @@ _**免責事項**: バックエンドアーキテクチャは進行中の作業6. 図をPNGおよびSVGファイルとしてエクスポートし、`docs/architecture`ディレクトリ内の既存の図を置き換えます。これは(例えば[PlantText](https://www.planttext.com/)で)行うことができます。</div>-</details>\ No newline at end of file+</details>diff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/architecture/runtime.md b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/architecture/runtime.mdindex 21782ea29d..636cf366ef 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/architecture/runtime.md+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/architecture/runtime.md@@ -124,4 +124,4 @@ OpenHandsランタイムは、機能を拡張しランタイム環境をカス2. プラグイン登録:利用可能なプラグインは`ALL_PLUGINS`辞書に登録されます3. プラグイン指定:プラグインは`Agent.sandbox_plugins: list[PluginRequirement]`に関連付けられます。ユーザーはランタイムの初期化時にロードするプラグインを指定できます4. 初期化:プラグインはランタイムクライアントの起動時に非同期で初期化されます-5. 使用法:ランタイムクライアントは初期化されたプラグインを使用して機能を拡張できます(例:IPythonセルを実行するためのJupyterPlugin)\ No newline at end of file+5. 使用法:ランタイムクライアントは初期化されたプラグインを使用して機能を拡張できます(例:IPythonセルを実行するためのJupyterPlugin)diff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/cloud/cloud-api.md b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/cloud/cloud-api.mdindex 7b777a3f44..b3ca31089e 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/cloud/cloud-api.md+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/cloud/cloud-api.md@@ -174,4 +174,4 @@ curl -X GET "https://app.all-hands.dev/api/conversations/{conversation_id}" \APIはアカウントごとに10の同時会話の制限があります。ユースケースに応じてより高い制限が必要な場合は、[[email protected]](mailto:[email protected])までお問い合わせください。-この制限を超えると、APIは429 Too Many Requestsレスポンスを返します。\ No newline at end of file+この制限を超えると、APIは429 Too Many Requestsレスポンスを返します。diff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/cloud/cloud-github-resolver.md b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/cloud/cloud-github-resolver.mdindex af94bc6d39..a2b93cde9e 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/cloud/cloud-github-resolver.md+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/cloud/cloud-github-resolver.md@@ -28,4 +28,4 @@ OpenHands Cloudにリポジトリアクセス権を付与した後、リポジOpenHandsは以下の操作を行います:1. PRにコメントして、作業中であることを通知します。-2. タスクを実行します。\ No newline at end of file+2. タスクを実行します。diff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/cloud/openhands-cloud.mdx b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/cloud/openhands-cloud.mdxindex 3a6048db28..2c0d9fb36a 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/cloud/openhands-cloud.mdx+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/cloud/openhands-cloud.mdx@@ -62,4 +62,4 @@ GitLabアカウントを使用する場合、OpenHandsは自動的にあなた- 会話リスト – 過去10日間に開始された最新10件の会話のみが表示されます。- ワークスペース – 会話ワークスペースは14日間保持されます。-- ランタイム – ランタイムは30分間アクティブ(「ウォーム」)な状態を維持します。この期間後、会話を再開するには1〜2分かかる場合があります。\ No newline at end of file+- ランタイム – ランタイムは30分間アクティブ(「ウォーム」)な状態を維持します。この期間後、会話を再開するには1〜2分かかる場合があります。diff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/configuration-options.md b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/configuration-options.mdindex 87ab753b08..d7cb79c1e5 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/configuration-options.md+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/configuration-options.md@@ -339,4 +339,4 @@ LLM(大規模言語モデル)設定オプションは、`config.toml`ファ- `user_id`- 型: `int`- - デフォルト: `1000`\ No newline at end of file+ - デフォルト: `1000`diff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/customization/repository.md b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/customization/repository.mdindex 4c8a1c61c9..32b75379b7 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/customization/repository.md+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/customization/repository.md@@ -18,4 +18,4 @@ export MY_ENV_VAR="my value"sudo apt-get updatesudo apt-get install -y lsofcd frontend && npm install ; cd ..-```\ No newline at end of file+```diff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/feedback.md b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/feedback.mdindex c6eccea2df..b98befdd7b 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/feedback.md+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/feedback.md@@ -36,4 +36,4 @@ All Hands AIのサーバー上のデータについては、リクエストに**1つのデータ:** 1つのデータの削除を希望する場合、近日中にデータを提出した際にインターフェースに表示されるリンクとパスワードを使用してデータを削除するメカニズムを追加する予定です。-**すべてのデータ:** すべてのデータの削除を希望する場合、またはデータ提出時に受け取ったIDとパスワードをお持ちでない場合は、データを最初に提出した際に登録したメールアドレスから`[email protected]`にお問い合わせください。\ No newline at end of file+**すべてのデータ:** すべてのデータの削除を希望する場合、またはデータ提出時に受け取ったIDとパスワードをお持ちでない場合は、データを最初に提出した際に登録したメールアドレスから`[email protected]`にお問い合わせください。diff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/getting-started.mdx b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/getting-started.mdxindex bd30df9827..df1d7563cc 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/getting-started.mdx+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/getting-started.mdx@@ -90,4 +90,4 @@ OpenHandsはほぼすべてのコーディングタスクを支援できます* 十分なコンテキストを提供する。* 頻繁にコミットしてプッシュする。-OpenHandsを最大限に活用する方法についての詳細は、[プロンプトのベストプラクティス](./prompting/prompting-best-practices)をご覧ください。\ No newline at end of file+OpenHandsを最大限に活用する方法についての詳細は、[プロンプトのベストプラクティス](./prompting/prompting-best-practices)をご覧ください。diff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/how-to/cli-mode.md b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/how-to/cli-mode.mdindex 994ff8710e..4483452b23 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/how-to/cli-mode.md+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/how-to/cli-mode.md@@ -51,4 +51,4 @@ docker run -it \このコマンドはDocker内で対話型セッションを開始し、タスクを入力してOpenHandsからの応答を受け取ることができます。-`-e SANDBOX_USER_ID=$(id -u)`はDockerコマンドに渡され、サンドボックスユーザーがホストユーザーの権限と一致するようにします。これにより、エージェントがマウントされたワークスペースにroot所有のファイルを作成するのを防ぎます。\ No newline at end of file+`-e SANDBOX_USER_ID=$(id -u)`はDockerコマンドに渡され、サンドボックスユーザーがホストユーザーの権限と一致するようにします。これにより、エージェントがマウントされたワークスペースにroot所有のファイルを作成するのを防ぎます。diff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/how-to/custom-sandbox-guide.md b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/how-to/custom-sandbox-guide.mdindex bfb314712e..da84500773 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/how-to/custom-sandbox-guide.md+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/how-to/custom-sandbox-guide.md@@ -98,4 +98,4 @@ platform = "linux/amd64"### 実行-トップレベルディレクトリで```make run```を実行してOpenHandsを起動します。\ No newline at end of file+トップレベルディレクトリで```make run```を実行してOpenHandsを起動します。diff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/how-to/debugging.md b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/how-to/debugging.mdindex e7c13e7c42..9387b2764e 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/how-to/debugging.md+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/how-to/debugging.md@@ -68,4 +68,4 @@* *d*: openhandsワークスペースディレクトリ* *c*: エージェント* *l*: LLM設定(config.tomlで事前定義)- * *n*: セッション名(例:イベントストリーム名)\ No newline at end of file+ * *n*: セッション名(例:イベントストリーム名)diff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/how-to/development-overview.md b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/how-to/development-overview.mdindex 4df9879489..518e484f1a 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/how-to/development-overview.md+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/how-to/development-overview.md@@ -71,4 +71,4 @@ OpenHandsでの開発が初めての場合は、次の順序に従うことを1. 関連するドキュメントが変更を反映するように更新されている2. 新機能が適切なREADMEファイルに文書化されている3. APIの変更がサーバードキュメントに反映されている-4. ドキュメントが`/docs/DOC_STYLE_GUIDE.md`のスタイルガイドに従っている\ No newline at end of file+4. ドキュメントが`/docs/DOC_STYLE_GUIDE.md`のスタイルガイドに従っているdiff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/how-to/evaluation-harness.md b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/how-to/evaluation-harness.mdindex e8c96fc68e..73ef90b81e 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/how-to/evaluation-harness.md+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/how-to/evaluation-harness.md@@ -275,4 +275,4 @@ def codeact_user_response(state: State | None) -> str:2. エージェントがユーザーとコミュニケーションを取ろうとした回数を確認する3. エージェントが複数回試みた場合、諦めるオプションを提供する-この関数を使用することで、複数の評価実行にわたって一貫した動作を確保し、エージェントが人間の入力を待って立ち往生することを防ぐことができます。\ No newline at end of file+この関数を使用することで、複数の評価実行にわたって一貫した動作を確保し、エージェントが人間の入力を待って立ち往生することを防ぐことができます。diff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/how-to/github-action.md b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/how-to/github-action.mdindex 11c48fb723..3e8dc8b921 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/how-to/github-action.md+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/how-to/github-action.md@@ -48,4 +48,4 @@ GitHub resolverは、動作をカスタマイズするために有効な[リポ| `OPENHANDS_MAX_ITER` | 変数 | エージェントの反復回数の最大制限を設定 | `OPENHANDS_MAX_ITER=10` || `OPENHANDS_MACRO` | 変数 | リゾルバーを呼び出すためのデフォルトマクロをカスタマイズ | `OPENHANDS_MACRO=@resolveit` || `OPENHANDS_BASE_CONTAINER_IMAGE` | 変数 | カスタムサンドボックス([詳細](https://docs.all-hands.dev/modules/usage/how-to/custom-sandbox-guide)) | `OPENHANDS_BASE_CONTAINER_IMAGE="custom_image"` |-| `TARGET_BRANCH` | 変数 | `main`以外のブランチにマージ | `TARGET_BRANCH="dev"` |\ No newline at end of file+| `TARGET_BRANCH` | 変数 | `main`以外のブランチにマージ | `TARGET_BRANCH="dev"` |diff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/how-to/gui-mode.md b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/how-to/gui-mode.mdindex 101ce0b3bd..82fd2769aa 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/how-to/gui-mode.md+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/how-to/gui-mode.md@@ -138,4 +138,4 @@ OpenHandsは提供された場合、自動的に`GITLAB_TOKEN`をシェル環境- [プロンプティングのベストプラクティス](../prompting/prompting-best-practices)で説明されているように、最も正確で役立つ回答を得るために、リクエストを具体的にしてください。- [LLMセクション](usage/llms/llms.md)で説明されているように、推奨モデルのいずれかを使用してください。-OpenHandsのGUIモードは、AIアシスタントとの対話をできるだけスムーズで直感的にするように設計されています。生産性を最大化するために、その機能を遠慮なく探索してください。\ No newline at end of file+OpenHandsのGUIモードは、AIアシスタントとの対話をできるだけスムーズで直感的にするように設計されています。生産性を最大化するために、その機能を遠慮なく探索してください。diff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/how-to/headless-mode.md b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/how-to/headless-mode.mdindex 236f1b5c74..2e1490c198 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/how-to/headless-mode.md+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/how-to/headless-mode.md@@ -55,4 +55,4 @@ docker run -it \### 追加ログ-ヘッドレスモードですべてのエージェントアクションをログに記録するには、ターミナルで次のコマンドを実行します:`export LOG_ALL_EVENTS=true`\ No newline at end of file+ヘッドレスモードですべてのエージェントアクションをログに記録するには、ターミナルで次のコマンドを実行します:`export LOG_ALL_EVENTS=true`diff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/installation.mdx b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/installation.mdxindex 9740e0bb2f..3df5c24158 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/installation.mdx+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/installation.mdx@@ -117,4 +117,4 @@ SemVerを使用しているため、`0.9`は自動的に最新の`0.9.x`リリ開発ワークフローについては、[Development.md](https://github.com/All-Hands-AI/OpenHands/blob/main/Development.md)を参照してください。-問題がありますか?[トラブルシューティングガイド](https://docs.all-hands.dev/modules/usage/troubleshooting)をご確認ください。\ No newline at end of file+問題がありますか?[トラブルシューティングガイド](https://docs.all-hands.dev/modules/usage/troubleshooting)をご確認ください。diff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/key-features.md b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/key-features.mdindex 994c138b31..63ee77614e 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/key-features.md+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/key-features.md@@ -26,4 +26,4 @@### ブラウザ- OpenHandsがウェブサイトを閲覧するために使用します。-- このブラウザは非対話型です。\ No newline at end of file+- このブラウザは非対話型です。diff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/llms/azure-llms.md b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/llms/azure-llms.mdindex d23b36c7e2..edfa2b81fc 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/llms/azure-llms.md+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/llms/azure-llms.md@@ -35,4 +35,4 @@ OpenHandsを実行する際、[docker runコマンド](../installation#running-o```LLM_API_VERSION="<api-version>" # 例: "2024-02-15-preview"-```\ No newline at end of file+```diff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/llms/custom-llm-configs.md b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/llms/custom-llm-configs.mdindex 9f4cc419c9..eafac3c0a6 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/llms/custom-llm-configs.md+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/llms/custom-llm-configs.md@@ -133,4 +133,4 @@ frequency_penalty = 0.0:::noteカスタムLLM設定は、`main.py`または`cli.py`を介して開発モードでOpenHandsを使用する場合にのみ利用可能です。`docker run`を介して実行する場合は、標準の設定オプションを使用してください。-:::\ No newline at end of file+:::diff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/llms/google-llms.md b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/llms/google-llms.mdindex c06ce06c69..ba5fa0cac3 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/llms/google-llms.md+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/llms/google-llms.md@@ -26,4 +26,4 @@ VERTEXAI_LOCATION="<あなたのgcpロケーション>"その後、OpenHandsのUI設定で以下を設定します:- `LLM Provider`を`VertexAI`に設定- `LLM Model`を使用するモデルに設定-モデルがリストにない場合は、`Advanced`オプションを切り替えて、`Custom Model`に入力してください(例:vertex_ai/<model-name>)。\ No newline at end of file+モデルがリストにない場合は、`Advanced`オプションを切り替えて、`Custom Model`に入力してください(例:vertex_ai/<model-name>)。diff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/llms/groq.md b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/llms/groq.mdindex 8feb42dc05..d699129350 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/llms/groq.md+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/llms/groq.md@@ -16,4 +16,4 @@ Groqのチャット完了エンドポイントは[ほぼOpenAI互換](https://co2. 以下を設定する:- `Custom Model`に接頭辞`openai/`と使用するモデル名を組み合わせて設定(例:`openai/llama3-70b-8192`)- `Base URL`を`https://api.groq.com/openai/v1`に設定- - `API Key`にGroq APIキーを設定\ No newline at end of file+ - `API Key`にGroq APIキーを設定diff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/llms/litellm-proxy.md b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/llms/litellm-proxy.mdindex 5d6e066512..ad744978bc 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/llms/litellm-proxy.md+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/llms/litellm-proxy.md@@ -17,4 +17,4 @@ OpenHandsでLiteLLMプロキシを使用するには、以下の手順が必要サポートされているモデルはLiteLLMプロキシの設定によって異なります。OpenHandsはLiteLLMプロキシが対応するように設定されているあらゆるモデルをサポートします。-利用可能なモデルとその名前のリストについては、LiteLLMプロキシの設定を参照してください。\ No newline at end of file+利用可能なモデルとその名前のリストについては、LiteLLMプロキシの設定を参照してください。diff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/llms/llms.md b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/llms/llms.mdindex 633ca57090..32ee7b9cbc 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/llms/llms.md+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/llms/llms.md@@ -89,4 +89,4 @@ num_retries = 4retry_min_wait = 5retry_max_wait = 30retry_multiplier = 2-```\ No newline at end of file+```diff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/llms/local-llms.md b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/llms/local-llms.mdindex 5f2b2433f2..9c9eb50f6c 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/llms/local-llms.md+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/llms/local-llms.md@@ -80,4 +80,4 @@ OpenHandsが実行されたら、設定を通じてOpenHands UIで以下を設2. 以下を設定します:- `Custom Model`を`openai/<served-model-name>`(例:`openai/openhands-lm-32b-v0.1`)に設定- `Base URL`を`http://host.docker.internal:8000`に設定-- `API key`をモデル提供時に設定したのと同じ文字列(例:`mykey`)に設定\ No newline at end of file+- `API key`をモデル提供時に設定したのと同じ文字列(例:`mykey`)に設定diff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/llms/openai-llms.md b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/llms/openai-llms.mdindex 0ab2a5f4da..eba3b5bdb5 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/llms/openai-llms.md+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/llms/openai-llms.md@@ -22,4 +22,4 @@ OpenAIプロキシを使用している場合、OpenHandsのUI設定で:2. 以下を設定する:- `Custom Model`をopenai/<model-name>に設定(例:`openai/gpt-4o`またはopenai/<proxy-prefix>/<model-name>)- `Base URL`をOpenAIプロキシのURLに設定- - `API Key`をOpenAI APIキーに設定\ No newline at end of file+ - `API Key`をOpenAI APIキーに設定diff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/llms/openrouter.md b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/llms/openrouter.mdindex 581ecc0e78..03529cc2cb 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/llms/openrouter.md+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/llms/openrouter.md@@ -9,4 +9,4 @@ OpenHandsを実行する際、設定画面から以下の項目を設定する* `LLM Model`を使用するモデルに設定[OpenRouterモデルの完全なリストはこちらで確認できます](https://openrouter.ai/models)。モデルがリストにない場合は、`Advanced`オプションを切り替えて、`Custom Model`に入力してください(例:openrouter/<model-name> のように `openrouter/anthropic/claude-3.5-sonnet`)。-* `API Key`にOpenRouterのAPIキーを設定\ No newline at end of file+* `API Key`にOpenRouterのAPIキーを設定diff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/mcp.md b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/mcp.mdindex 0d60edb41b..42a0f15b45 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/mcp.md+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/mcp.md@@ -93,4 +93,4 @@ OpenHandsが起動すると、次のことが行われます:1. OpenHandsは呼び出しを適切なMCPサーバーにルーティングする2. サーバーはリクエストを処理し、レスポンスを返す-3. OpenHandsはレスポンスを観察結果に変換し、エージェントに提示する\ No newline at end of file+3. OpenHandsはレスポンスを観察結果に変換し、エージェントに提示するdiff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/prompting/microagents-keyword.md b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/prompting/microagents-keyword.mdindex d99ebc9cb6..b423f6e173 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/prompting/microagents-keyword.md+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/prompting/microagents-keyword.md@@ -33,4 +33,4 @@ triggers:ユーザーが魔法の言葉を言いました。「それはおいしかった!」と応答してください。```-[公式OpenHandsリポジトリでキーワードによってトリガーされるマイクロエージェントの例を見る](https://github.com/All-Hands-AI/OpenHands/tree/main/microagents)\ No newline at end of file+[公式OpenHandsリポジトリでキーワードによってトリガーされるマイクロエージェントの例を見る](https://github.com/All-Hands-AI/OpenHands/tree/main/microagents)diff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/prompting/microagents-overview.md b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/prompting/microagents-overview.mdindex f57d69a363..ad7e4a7f94 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/prompting/microagents-overview.md+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/prompting/microagents-overview.md@@ -36,4 +36,4 @@ some-repository/| マイクロエージェントの種類 | 必須 ||--------------------------|------|| `一般リポジトリマイクロエージェント` | いいえ |-| `キーワードトリガーマイクロエージェント` | はい |\ No newline at end of file+| `キーワードトリガーマイクロエージェント` | はい |diff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/prompting/microagents-public.md b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/prompting/microagents-public.mdindex 1a0b1b702b..23a499c1de 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/prompting/microagents-public.md+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/prompting/microagents-public.md@@ -47,4 +47,4 @@ OpenHandsへの貢献方法の具体的な手順については、[CONTRIBUTING.- 新しいマイクロエージェントファイル。- 必要に応じて更新されたドキュメント。-- エージェントの目的と機能の説明。\ No newline at end of file+- エージェントの目的と機能の説明。diff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/prompting/microagents-repo.md b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/prompting/microagents-repo.mdindex 8e635ece7f..10e7dcbb94 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/prompting/microagents-repo.md+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/prompting/microagents-repo.md@@ -28,4 +28,4 @@変更をコミットする前に、常にテストが合格していることを確認してください。`npm run test`を実行してテストを実行できます。```-[一般リポジトリマイクロエージェントの詳細な例はこちらをご覧ください。](https://github.com/All-Hands-AI/OpenHands/tree/main/.openhands/microagents)\ No newline at end of file+[一般リポジトリマイクロエージェントの詳細な例はこちらをご覧ください。](https://github.com/All-Hands-AI/OpenHands/tree/main/.openhands/microagents)diff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/prompting/prompting-best-practices.md b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/prompting/prompting-best-practices.mdindex 13255cfd1c..271041ee2b 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/prompting/prompting-best-practices.md+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/prompting/prompting-best-practices.md@@ -34,4 +34,4 @@ OpenHands AIソフトウェア開発者と連携する際、明確で効果的プロンプトが正確で情報量が多いほど、OpenHandsはより良くサポートできます。-役立つプロンプトの例については、[OpenHandsの使い方](../getting-started)をご覧ください。\ No newline at end of file+役立つプロンプトの例については、[OpenHandsの使い方](../getting-started)をご覧ください。diff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/runtimes-index.md b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/runtimes-index.mdindex 26b5313125..527585dd75 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/runtimes-index.md+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/runtimes-index.md@@ -22,4 +22,4 @@ OpenHandsはいくつかの異なるランタイム環境をサポートして- [OpenHandsリモートランタイム](./runtimes/remote.md) - 並列実行のためのクラウドベースのランタイム(ベータ版)。- [Modalランタイム](./runtimes/modal.md) - パートナーであるModalが提供するランタイム。- [Daytonaランタイム](./runtimes/daytona.md) - Daytonaが提供するランタイム。-- [ローカルランタイム](./runtimes/local.md) - Dockerを使わずにローカルマシン上で直接実行。\ No newline at end of file+- [ローカルランタイム](./runtimes/local.md) - Dockerを使わずにローカルマシン上で直接実行。diff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/runtimes.md b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/runtimes.mdindex 13d5ba09ab..b4d8f6d888 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/runtimes.md+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/runtimes.md@@ -5,4 +5,4 @@ title: Runtime Configurationimport { Redirect } from '@docusaurus/router';-<Redirect to="/modules/usage/runtimes-index" />\ No newline at end of file+<Redirect to="/modules/usage/runtimes-index" />diff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/runtimes/daytona.md b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/runtimes/daytona.mdindex 73d58c2209..348928a859 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/runtimes/daytona.md+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/runtimes/daytona.md@@ -29,4 +29,4 @@ bash -i <(curl -sL https://get.daytona.io/openhands)実行すると、OpenHandsがローカルで実行され、使用準備が整います。-詳細と手動初期化については、完全な[README.md](https://github.com/All-Hands-AI/OpenHands/blob/main/openhands/runtime/impl/daytona/README.md)をご覧ください。\ No newline at end of file+詳細と手動初期化については、完全な[README.md](https://github.com/All-Hands-AI/OpenHands/blob/main/openhands/runtime/impl/daytona/README.md)をご覧ください。diff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/runtimes/docker.md b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/runtimes/docker.mdindex d45a253c15..fb21739d06 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/runtimes/docker.md+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/runtimes/docker.md@@ -120,4 +120,4 @@ docker network create openhands-network# 分離されたネットワークでOpenHandsを実行docker run # ... \--network openhands-network \-```\ No newline at end of file+```diff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/runtimes/local.md b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/runtimes/local.mdindex 62952807fa..6c425e0cd0 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/runtimes/local.md+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/runtimes/local.md@@ -69,4 +69,4 @@ poetry run python -m openhands.core.main -t "write a bash script that prints hi"- Dockerが利用できないCI/CDパイプライン。- OpenHands自体のテストと開発。-- コンテナの使用が制限されている環境。\ No newline at end of file+- コンテナの使用が制限されている環境。diff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/runtimes/modal.md b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/runtimes/modal.mdindex d71825913e..2810779c5a 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/runtimes/modal.md+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/runtimes/modal.md@@ -10,4 +10,4 @@ docker run # ...-e RUNTIME=modal \-e MODAL_API_TOKEN_ID="your-id" \-e MODAL_API_TOKEN_SECRET="modal-api-key" \-```\ No newline at end of file+```diff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/runtimes/remote.md b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/runtimes/remote.mdindex 44530558aa..ea2ae1c252 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/runtimes/remote.md+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/runtimes/remote.md@@ -4,4 +4,4 @@このランタイムは、[OpenHands 評価ハーネス](https://github.com/All-Hands-AI/OpenHands/tree/main/evaluation)を通じたエージェント評価目的のみのために特別に設計されています。OpenHands アプリケーションの本番環境での起動には使用しないでください。:::-OpenHands リモートランタイムは現在ベータ版です(詳細は[こちら](https://runtime.all-hands.dev/)を参照)。これにより、クラウド上で並行してランタイムを起動することができます。試してみたい場合は、[このフォーム](https://docs.google.com/forms/d/e/1FAIpQLSckVz_JFwg2_mOxNZjCtr7aoBFI2Mwdan3f75J_TrdMS1JV2g/viewform)に記入して申し込んでください!\ No newline at end of file+OpenHands リモートランタイムは現在ベータ版です(詳細は[こちら](https://runtime.all-hands.dev/)を参照)。これにより、クラウド上で並行してランタイムを起動することができます。試してみたい場合は、[このフォーム](https://docs.google.com/forms/d/e/1FAIpQLSckVz_JFwg2_mOxNZjCtr7aoBFI2Mwdan3f75J_TrdMS1JV2g/viewform)に記入して申し込んでください!diff --git a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/troubleshooting/troubleshooting.md b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/troubleshooting/troubleshooting.mdindex 86a0ec6916..8b7fcb506a 100644--- a/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/troubleshooting/troubleshooting.md+++ b/docs/i18n/ja/docusaurus-plugin-content-docs/current/usage/troubleshooting/troubleshooting.md@@ -65,4 +65,4 @@ Launch docker client failed. Please make sure you have installed docker and star* ディレクトリの所有権を変更します:`sudo chown <user>:<user> ~/.openhands-state`* またはディレクトリの権限を更新します:`sudo chmod 777 ~/.openhands-state`* または以前のデータが必要ない場合は削除します。OpenHandsは再作成します。LLM設定を再入力する必要があります。-* ローカルディレクトリをマウントしている場合は、`WORKSPACE_BASE`にOpenHandsを実行しているユーザーに必要な権限があることを確認してください。\ No newline at end of file+* ローカルディレクトリをマウントしている場合は、`WORKSPACE_BASE`にOpenHandsを実行しているユーザーに必要な権限があることを確認してください。diff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/about.md b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/about.mdindex 1005bb0e09..69d76ad23c 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/about.md+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/about.md@@ -22,4 +22,4 @@ Por favor, note que a seleção dessas tecnologias está em andamento, e tecnolo## Licença-Distribuído sob a [Licença](https://github.com/All-Hands-AI/OpenHands/blob/main/LICENSE) MIT.\ No newline at end of file+Distribuído sob a [Licença](https://github.com/All-Hands-AI/OpenHands/blob/main/LICENSE) MIT.diff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/agents.md b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/agents.mdindex 8f08ff2ef5..b0844f29e6 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/agents.md+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/agents.md@@ -21,4 +21,4 @@ A ideia conceitual é ilustrada abaixo. A cada turno, o agente pode:https://github.com/All-Hands-AI/OpenHands/assets/38853559/f592a192-e86c-4f48-ad31-d69282d5f6ac-_Exemplo do CodeActAgent com `gpt-4-turbo-2024-04-09` realizando uma tarefa de ciência de dados (regressão linear)_.\ No newline at end of file+_Exemplo do CodeActAgent com `gpt-4-turbo-2024-04-09` realizando uma tarefa de ciência de dados (regressão linear)_.diff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/architecture/backend.mdx b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/architecture/backend.mdxindex 46187bd2bf..582526c46c 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/architecture/backend.mdx+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/architecture/backend.mdx@@ -51,4 +51,4 @@ _**Aviso**: A arquitetura do backend é um trabalho em andamento e está sujeita6. Exporte o diagrama como arquivos PNG e SVG e substitua os diagramas existentes no diretório `docs/architecture`. Isso pode ser feito com (por exemplo, [PlantText](https://www.planttext.com/))</div>-</details>\ No newline at end of file+</details>diff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/architecture/runtime.md b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/architecture/runtime.mdindex 18fc003d8a..47bc928caa 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/architecture/runtime.md+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/architecture/runtime.md@@ -131,4 +131,4 @@ Aspectos-chave do sistema de plugins:2. Registro de Plugin: Os plugins disponíveis são registrados em um dicionário `ALL_PLUGINS`3. Especificação de Plugin: Os plugins são associados com `Agent.sandbox_plugins: list[PluginRequirement]`. Os usuários podem especificar quais plugins carregar ao inicializar o runtime4. Inicialização: Os plugins são inicializados de forma assíncrona quando o cliente runtime inicia-5. Uso: O cliente runtime pode usar plugins inicializados para estender suas capacidades (ex., o JupyterPlugin para executar células IPython)\ No newline at end of file+5. Uso: O cliente runtime pode usar plugins inicializados para estender suas capacidades (ex., o JupyterPlugin para executar células IPython)diff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/cloud/cloud-api.md b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/cloud/cloud-api.mdindex 332c5d59a7..e9f8b37f93 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/cloud/cloud-api.md+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/cloud/cloud-api.md@@ -174,4 +174,4 @@ A resposta é formatada da seguinte forma:A API tem um limite de 10 conversas simultâneas por conta. Se você precisar de um limite maior para seu caso de uso, entre em contato conosco em [[email protected]](mailto:[email protected]).-Se você exceder esse limite, a API retornará uma resposta 429 Too Many Requests.\ No newline at end of file+Se você exceder esse limite, a API retornará uma resposta 429 Too Many Requests.diff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/cloud/cloud-github-resolver.md b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/cloud/cloud-github-resolver.mdindex 0748e3cd9a..ec9f2023d8 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/cloud/cloud-github-resolver.md+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/cloud/cloud-github-resolver.md@@ -30,4 +30,4 @@ Para fazer o OpenHands trabalhar em pull requests, use `@openhands` em comentárO OpenHands irá:1. Comentar no PR para informar que está trabalhando nele.-2. Realizar a tarefa.\ No newline at end of file+2. Realizar a tarefa.diff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/cloud/openhands-cloud.mdx b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/cloud/openhands-cloud.mdxindex 4cad610d14..e5e18bbda4 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/cloud/openhands-cloud.mdx+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/cloud/openhands-cloud.mdx@@ -62,4 +62,4 @@ Ao usar sua conta GitLab, o OpenHands terá automaticamente acesso aos seus repo- Lista de Conversas – Exibe apenas as 10 conversas mais recentes iniciadas nos últimos 10 dias.- Workspaces – Os workspaces de conversas são mantidos por 14 dias.-- Runtimes – Os runtimes permanecem ativos ("aquecidos") por 30 minutos. Após esse período, retomar uma conversa pode levar de 1 a 2 minutos.\ No newline at end of file+- Runtimes – Os runtimes permanecem ativos ("aquecidos") por 30 minutos. Após esse período, retomar uma conversa pode levar de 1 a 2 minutos.diff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/configuration-options.md b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/configuration-options.mdindex 4b0a0d4144..3ee50bd12a 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/configuration-options.md+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/configuration-options.md@@ -379,4 +379,4 @@ Para usar estas com o comando docker, passe `-e SANDBOX_<opção>`. Exemplo: `-e- `runtime_startup_env_vars`- Tipo: `dict`- - Padr\ No newline at end of file+ - Padrdiff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/customization/repository.md b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/customization/repository.mdindex 4464106392..9bb889295e 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/customization/repository.md+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/customization/repository.md@@ -20,4 +20,4 @@ export MY_ENV_VAR="my value"sudo apt-get updatesudo apt-get install -y lsofcd frontend && npm install ; cd ..-```\ No newline at end of file+```diff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/feedback.md b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/feedback.mdindex 5f59d8d74c..2d2f209e54 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/feedback.md+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/feedback.md@@ -47,4 +47,4 @@ dados usando o link e a senha que são exibidos na interface quando você envia**Todos os Dados:** Se você deseja que todos os seus dados sejam excluídos, ou não possui o ID e a senha querecebeu ao enviar os dados, entre em contato com `[email protected]` a partir do endereço de e-mail que você registrou-quando originalmente enviou os dados.\ No newline at end of file+quando originalmente enviou os dados.diff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/getting-started.mdx b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/getting-started.mdxindex 76dd27edef..22ca0ee715 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/getting-started.mdx+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/getting-started.mdx@@ -1,6 +1,6 @@# Começando com OpenHands-Então você já [executou o OpenHands](./installation) e+Então você já [executou o OpenHands](./installation) e[configurou seu LLM](./installation#setup). E agora?O OpenHands pode ajudar com uma variedade de tarefas de engenharia. No entanto, a tecnologia ainda é nova, e estamos longe de ter@@ -96,4 +96,4 @@ Tenha em mente estas dicas:* Forneça bastante contexto.* Faça commit e push com frequência.-Veja [Melhores Práticas de Prompt](./prompting/prompting-best-practices) para mais dicas sobre como obter o máximo do OpenHands.\ No newline at end of file+Veja [Melhores Práticas de Prompt](./prompting/prompting-best-practices) para mais dicas sobre como obter o máximo do OpenHands.diff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/how-to/cli-mode.md b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/how-to/cli-mode.mdindex a95a97c0e7..e5b740840b 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/how-to/cli-mode.md+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/how-to/cli-mode.md@@ -52,5 +52,5 @@ docker run -it \Este comando iniciará uma sessão interativa no Docker onde você pode inserir tarefas e receber respostas do OpenHands.-O `-e SANDBOX_USER_ID=$(id -u)` é passado para o comando Docker para garantir que o usuário da sandbox corresponda às-permissões do usuário do host. Isso impede que o agente crie arquivos pertencentes ao root no workspace montado.\ No newline at end of file+O `-e SANDBOX_USER_ID=$(id -u)` é passado para o comando Docker para garantir que o usuário da sandbox corresponda às+permissões do usuário do host. Isso impede que o agente crie arquivos pertencentes ao root no workspace montado.diff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/how-to/custom-sandbox-guide.md b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/how-to/custom-sandbox-guide.mdindex 81b796af99..8a30096fe1 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/how-to/custom-sandbox-guide.md+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/how-to/custom-sandbox-guide.md@@ -99,4 +99,4 @@ platform = "linux/amd64"### Executar-Execute o OpenHands rodando ```make run``` no diretório de nível superior.\ No newline at end of file+Execute o OpenHands rodando ```make run``` no diretório de nível superior.diff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/how-to/debugging.md b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/how-to/debugging.mdindex a118b40a5c..ff758c2770 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/how-to/debugging.md+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/how-to/debugging.md@@ -68,4 +68,4 @@ Os valores no trecho acima podem ser atualizados de modo que:* *d*: o diretório de workspace do openhands* *c*: o agente* *l*: a configuração do LLM (pré-definida em config.toml)- * *n*: nome da sessão (por exemplo, nome do eventstream)\ No newline at end of file+ * *n*: nome da sessão (por exemplo, nome do eventstream)diff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/how-to/development-overview.md b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/how-to/development-overview.mdindex 038d1dd6bf..d10a2882aa 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/how-to/development-overview.md+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/how-to/development-overview.md@@ -71,4 +71,4 @@ Ao fazer alterações no código, certifique-se de que:1. A documentação relevante seja atualizada para refletir suas alterações2. Novos recursos sejam documentados nos arquivos README apropriados3. Quaisquer alterações na API sejam refletidas na documentação do servidor-4. A documentação siga o guia de estilo em `/docs/DOC_STYLE_GUIDE.md`\ No newline at end of file+4. A documentação siga o guia de estilo em `/docs/DOC_STYLE_GUIDE.md`diff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/how-to/evaluation-harness.md b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/how-to/evaluation-harness.mdindex 07da3b1076..a62d245e52 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/how-to/evaluation-harness.md+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/how-to/evaluation-harness.md@@ -275,4 +275,4 @@ Esta função faz o seguinte:2. Verifica quantas vezes o agente tentou se comunicar com o usuário3. Se o agente fez várias tentativas, fornece uma opção para desistir-Ao usar esta função, você pode garantir um comportamento consistente em várias execuções de avaliação e impedir que o agente fique preso esperando por entrada humana.\ No newline at end of file+Ao usar esta função, você pode garantir um comportamento consistente em várias execuções de avaliação e impedir que o agente fique preso esperando por entrada humana.diff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/how-to/github-action.md b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/how-to/github-action.mdindex cda8e5770b..d9073fa5e6 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/how-to/github-action.md+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/how-to/github-action.md@@ -48,4 +48,4 @@ As opções de personalização que você pode definir são:| `OPENHANDS_MAX_ITER` | Variável | Define o limite máximo para iterações do agente | `OPENHANDS_MAX_ITER=10` || `OPENHANDS_MACRO` | Variável | Personaliza a macro padrão para invocar o resolver | `OPENHANDS_MACRO=@resolveit` || `OPENHANDS_BASE_CONTAINER_IMAGE` | Variável | Sandbox personalizado ([saiba mais](https://docs.all-hands.dev/modules/usage/how-to/custom-sandbox-guide)) | `OPENHANDS_BASE_CONTAINER_IMAGE="custom_image"` |-| `TARGET_BRANCH` | Variável | Mesclar para uma branch diferente de `main` | `TARGET_BRANCH="dev"` |\ No newline at end of file+| `TARGET_BRANCH` | Variável | Mesclar para uma branch diferente de `main` | `TARGET_BRANCH="dev"` |diff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/how-to/gui-mode.md b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/how-to/gui-mode.mdindex 7fa994777e..7ce638cda6 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/how-to/gui-mode.md+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/how-to/gui-mode.md@@ -139,4 +139,4 @@ O OpenHands exporta automaticamente um `GITLAB_TOKEN` para o ambiente shell se f- Use um dos modelos recomendados, conforme descrito na [seção LLMs](usage/llms/llms.md).Lembre-se, o modo GUI do OpenHands foi projetado para tornar sua interação com o assistente de IA o mais suave e intuitiva-possível. Não hesite em explorar seus recursos para maximizar sua produtividade.\ No newline at end of file+possível. Não hesite em explorar seus recursos para maximizar sua produtividade.diff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/how-to/headless-mode.md b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/how-to/headless-mode.mdindex 873f35295c..6d5fcd6398 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/how-to/headless-mode.md+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/how-to/headless-mode.md@@ -57,4 +57,4 @@ Para ver todas as opções de configuração disponíveis para o modo headless,### Logs Adicionais-Para que o modo headless registre todas as ações do agente, execute no terminal: `export LOG_ALL_EVENTS=true`\ No newline at end of file+Para que o modo headless registre todas as ações do agente, execute no terminal: `export LOG_ALL_EVENTS=true`diff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/installation.mdx b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/installation.mdxindex 0a778c1064..c2df8d7fb8 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/installation.mdx+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/installation.mdx@@ -118,4 +118,4 @@ Esta versão é instável e é recomendada apenas para fins de teste ou desenvolPara o fluxo de trabalho de desenvolvimento, consulte [Development.md](https://github.com/All-Hands-AI/OpenHands/blob/main/Development.md).-Está tendo problemas? Confira nosso [Guia de Solução de Problemas](https://docs.all-hands.dev/modules/usage/troubleshooting).\ No newline at end of file+Está tendo problemas? Confira nosso [Guia de Solução de Problemas](https://docs.all-hands.dev/modules/usage/troubleshooting).diff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/key-features.md b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/key-features.mdindex 33b5904079..9406d51041 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/key-features.md+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/key-features.md@@ -26,4 +26,4 @@### Navegador- Usado pelo OpenHands para navegar em sites.-- O navegador não é interativo.\ No newline at end of file+- O navegador não é interativo.diff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/llms/azure-llms.md b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/llms/azure-llms.mdindex bc58db5823..766dd270fa 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/llms/azure-llms.md+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/llms/azure-llms.md@@ -4,7 +4,7 @@ OpenHands usa o LiteLLM para fazer chamadas aos modelos de chat do Azure. Você## Configuração do Azure OpenAI-Ao executar o OpenHands, você precisará definir a seguinte variável de ambiente usando `-e` no+Ao executar o OpenHands, você precisará definir a seguinte variável de ambiente usando `-e` no[comando docker run](../installation#running-openhands):```@@ -38,4 +38,4 @@ Ao executar o OpenHands, defina a seguinte variável de ambiente usando `-e` no```LLM_API_VERSION="<api-version>" # ex: "2024-02-15-preview"-```\ No newline at end of file+```diff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/llms/custom-llm-configs.md b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/llms/custom-llm-configs.mdindex eb889e6084..7666db76e6 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/llms/custom-llm-configs.md+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/llms/custom-llm-configs.md@@ -133,4 +133,4 @@ Use esta configuração quando quiser permitir que um LLM faça rascunhos de edi:::noteConfigurações personalizadas de LLM estão disponíveis apenas ao usar o OpenHands no modo de desenvolvimento, via `main.py` ou `cli.py`. Ao executar via `docker run`, use as opções de configuração padrão.-:::\ No newline at end of file+:::diff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/llms/google-llms.md b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/llms/google-llms.mdindex 73b5e0ad0f..8b36d23df3 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/llms/google-llms.md+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/llms/google-llms.md@@ -26,4 +26,4 @@ VERTEXAI_LOCATION="<sua-localização-gcp>"Em seguida, defina o seguinte na interface do OpenHands através das Configurações:- `LLM Provider` para `VertexAI`- `LLM Model` para o modelo que você usará.-Se o modelo não estiver na lista, ative as opções `Advanced` e insira-o em `Custom Model` (por exemplo, vertex_ai/<nome-do-modelo>).\ No newline at end of file+Se o modelo não estiver na lista, ative as opções `Advanced` e insira-o em `Custom Model` (por exemplo, vertex_ai/<nome-do-modelo>).diff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/llms/groq.md b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/llms/groq.mdindex f2a963ae71..058555f51a 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/llms/groq.md+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/llms/groq.md@@ -21,4 +21,4 @@ acessaria qualquer endpoint compatível com OpenAI. Na interface do OpenHands at2. Configure o seguinte:- `Custom Model` com o prefixo `openai/` + o modelo que você usará (por exemplo, `openai/llama3-70b-8192`)- `Base URL` para `https://api.groq.com/openai/v1`- - `API Key` para sua chave de API do Groq\ No newline at end of file+ - `API Key` para sua chave de API do Groqdiff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/llms/litellm-proxy.md b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/llms/litellm-proxy.mdindex b10cd02a0f..5e6d5dd9fd 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/llms/litellm-proxy.md+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/llms/litellm-proxy.md@@ -17,4 +17,4 @@ Para usar o proxy LiteLLM com o OpenHands, você precisa:Os modelos suportados dependem da configuração do seu proxy LiteLLM. O OpenHands suporta qualquer modelo que seu proxy LiteLLM esteja configurado para gerenciar.-Consulte a configuração do seu proxy LiteLLM para obter a lista de modelos disponíveis e seus nomes.\ No newline at end of file+Consulte a configuração do seu proxy LiteLLM para obter a lista de modelos disponíveis e seus nomes.diff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/llms/llms.md b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/llms/llms.mdindex 0d8d4add22..840b3750a3 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/llms/llms.md+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/llms/llms.md@@ -88,4 +88,4 @@ num_retries = 4retry_min_wait = 5retry_max_wait = 30retry_multiplier = 2-```\ No newline at end of file+```diff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/llms/local-llms.md b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/llms/local-llms.mdindex 63a6100a6d..84d303746c 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/llms/local-llms.md+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/llms/local-llms.md@@ -80,4 +80,4 @@ Depois que o OpenHands estiver em execução, você precisará definir o seguint2. Configure o seguinte:- `Modelo Personalizado` para `openai/<nome-do-modelo-servido>` (ex: `openai/openhands-lm-32b-v0.1`)- `URL Base` para `http://host.docker.internal:8000`-- `Chave de API` para a mesma string que você definiu ao servir o modelo (ex: `mykey`)\ No newline at end of file+- `Chave de API` para a mesma string que você definiu ao servir o modelo (ex: `mykey`)diff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/llms/openai-llms.md b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/llms/openai-llms.mdindex 735a5c4291..69ec709a63 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/llms/openai-llms.md+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/llms/openai-llms.md@@ -22,4 +22,4 @@ Se você estiver usando um proxy OpenAI, na interface do OpenHands através das2. Defina o seguinte:- `Custom Model` para openai/<nome-do-modelo> (por exemplo, `openai/gpt-4o` ou openai/<prefixo-do-proxy>/<nome-do-modelo>)- `Base URL` para a URL do seu proxy OpenAI- - `API Key` para sua chave de API da OpenAI\ No newline at end of file+ - `API Key` para sua chave de API da OpenAIdiff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/llms/openrouter.md b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/llms/openrouter.mdindex a44bdaad23..4ce862e155 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/llms/openrouter.md+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/llms/openrouter.md@@ -9,4 +9,4 @@ Ao executar o OpenHands, você precisará definir o seguinte na interface do Ope* `LLM Model` para o modelo que você usará.[Visite aqui para ver uma lista completa de modelos do OpenRouter](https://openrouter.ai/models).Se o modelo não estiver na lista, ative as opções `Advanced` e insira-o em `Custom Model` (por exemplo, openrouter/<nome-do-modelo> como `openrouter/anthropic/claude-3.5-sonnet`).-* `API Key` para sua chave de API do OpenRouter.\ No newline at end of file+* `API Key` para sua chave de API do OpenRouter.diff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/mcp.md b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/mcp.mdindex 220c223e45..c750ad02a5 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/mcp.md+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/mcp.md@@ -93,4 +93,4 @@ O agente pode então usar essas ferramentas como qualquer ferramenta integrada.1. OpenHands encaminha a chamada para o servidor MCP apropriado2. O servidor processa a solicitação e retorna uma resposta-3. OpenHands converte a resposta em uma observação e a apresenta ao agente\ No newline at end of file+3. OpenHands converte a resposta em uma observação e a apresenta ao agentediff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/prompting/microagents-keyword.md b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/prompting/microagents-keyword.mdindex 8b069d64e9..c4eb29c31f 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/prompting/microagents-keyword.md+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/prompting/microagents-keyword.md@@ -33,4 +33,4 @@ triggers:O usuário disse a palavra mágica. Responda com "Isso foi delicioso!"```-[Veja exemplos de microagentes acionados por palavras-chave no repositório oficial do OpenHands](https://github.com/All-Hands-AI/OpenHands/tree/main/microagents)\ No newline at end of file+[Veja exemplos de microagentes acionados por palavras-chave no repositório oficial do OpenHands](https://github.com/All-Hands-AI/OpenHands/tree/main/microagents)diff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/prompting/microagents-overview.md b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/prompting/microagents-overview.mdindex 357ab925b5..fde435cc18 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/prompting/microagents-overview.md+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/prompting/microagents-overview.md@@ -37,4 +37,4 @@ Cada arquivo de microagente pode incluir frontmatter que fornece informações a| Tipo de Microagente | Obrigatório ||---------------------------------------|-------------|| `Microagentes Gerais de Repositório` | Não |-| `Microagentes Ativados por Palavras-chave` | Sim |\ No newline at end of file+| `Microagentes Ativados por Palavras-chave` | Sim |diff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/prompting/microagents-public.md b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/prompting/microagents-public.mdindex a0875a1e83..9146287f20 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/prompting/microagents-public.md+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/prompting/microagents-public.md@@ -47,4 +47,4 @@ Envie um pull request com:- O novo arquivo do microagente.- Documentação atualizada, se necessário.-- Descrição do propósito e capacidades do agente.\ No newline at end of file+- Descrição do propósito e capacidades do agente.diff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/prompting/microagents-repo.md b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/prompting/microagents-repo.mdindex 0a79f687c6..a352e70eee 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/prompting/microagents-repo.md+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/prompting/microagents-repo.md@@ -28,4 +28,4 @@ Para configurá-lo, você pode executar `npm run build`.Sempre certifique-se de que os testes estão passando antes de confirmar as alterações. Você pode executar os testes rodando `npm run test`.```-[Veja mais exemplos de microagentes gerais de repositório aqui.](https://github.com/All-Hands-AI/OpenHands/tree/main/.openhands/microagents)\ No newline at end of file+[Veja mais exemplos de microagentes gerais de repositório aqui.](https://github.com/All-Hands-AI/OpenHands/tree/main/.openhands/microagents)diff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/prompting/prompting-best-practices.md b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/prompting/prompting-best-practices.mdindex 7b2a144eaf..b9a1c4560a 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/prompting/prompting-best-practices.md+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/prompting/prompting-best-practices.md@@ -35,4 +35,4 @@ Bons prompts são:Quanto mais precisos e informativos forem seus prompts, melhor o OpenHands poderá ajudá-lo.-Veja [Começando com OpenHands](../getting-started) para mais exemplos de prompts úteis.\ No newline at end of file+Veja [Começando com OpenHands](../getting-started) para mais exemplos de prompts úteis.diff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/runtimes-index.md b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/runtimes-index.mdindex 583b72ab23..72491066d3 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/runtimes-index.md+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/runtimes-index.md@@ -23,4 +23,4 @@ O OpenHands suporta vários ambientes de runtime diferentes:- [Runtime Remoto OpenHands](./runtimes/remote.md) - Runtime baseado em nuvem para execução paralela (beta).- [Runtime Modal](./runtimes/modal.md) - Runtime fornecido por nossos parceiros da Modal.- [Runtime Daytona](./runtimes/daytona.md) - Runtime fornecido pela Daytona.-- [Runtime Local](./runtimes/local.md) - Execução direta em sua máquina local sem Docker.\ No newline at end of file+- [Runtime Local](./runtimes/local.md) - Execução direta em sua máquina local sem Docker.diff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/runtimes.md b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/runtimes.mdindex 13d5ba09ab..b4d8f6d888 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/runtimes.md+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/runtimes.md@@ -5,4 +5,4 @@ title: Runtime Configurationimport { Redirect } from '@docusaurus/router';-<Redirect to="/modules/usage/runtimes-index" />\ No newline at end of file+<Redirect to="/modules/usage/runtimes-index" />diff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/runtimes/daytona.md b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/runtimes/daytona.mdindex aaf7d9ae86..e6bd815bb9 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/runtimes/daytona.md+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/runtimes/daytona.md@@ -29,4 +29,4 @@ bash -i <(curl -sL https://get.daytona.io/openhands)Uma vez executado, o OpenHands deve estar rodando localmente e pronto para uso.-Para mais detalhes e inicialização manual, veja o [README.md](https://github.com/All-Hands-AI/OpenHands/blob/main/openhands/runtime/impl/daytona/README.md) completo\ No newline at end of file+Para mais detalhes e inicialização manual, veja o [README.md](https://github.com/All-Hands-AI/OpenHands/blob/main/openhands/runtime/impl/daytona/README.md) completodiff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/runtimes/docker.md b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/runtimes/docker.mdindex db12f26ffc..d119741ff6 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/runtimes/docker.md+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/runtimes/docker.md@@ -126,4 +126,4 @@ docker network create openhands-network# Execute o OpenHands na rede isoladadocker run # ... \--network openhands-network \-```\ No newline at end of file+```diff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/runtimes/local.md b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/runtimes/local.mdindex 2a5d3aa5ac..e8d1d3c762 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/runtimes/local.md+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/runtimes/local.md@@ -71,4 +71,4 @@ O Runtime Local é particularmente útil para:- Pipelines de CI/CD onde o Docker não está disponível.- Testes e desenvolvimento do próprio OpenHands.-- Ambientes onde o uso de contêineres é restrito.\ No newline at end of file+- Ambientes onde o uso de contêineres é restrito.diff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/runtimes/modal.md b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/runtimes/modal.mdindex fb04de3dbf..5fefe216bb 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/runtimes/modal.md+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/runtimes/modal.md@@ -10,4 +10,4 @@ docker run # ...-e RUNTIME=modal \-e MODAL_API_TOKEN_ID="seu-id" \-e MODAL_API_TOKEN_SECRET="sua-chave-api-modal" \-```\ No newline at end of file+```diff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/runtimes/remote.md b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/runtimes/remote.mdindex 6cb59ea83f..0a6f7898fe 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/runtimes/remote.md+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/runtimes/remote.md@@ -6,4 +6,4 @@ Este runtime é especificamente projetado apenas para fins de avaliação de age:::O OpenHands Remote Runtime está atualmente em beta (leia [aqui](https://runtime.all-hands.dev/) para mais detalhes), ele permite que você execute runtimes-em paralelo na nuvem. Preencha [este formulário](https://docs.google.com/forms/d/e/1FAIpQLSckVz_JFwg2_mOxNZjCtr7aoBFI2Mwdan3f75J_TrdMS1JV2g/viewform) para se candidatar se quiser experimentar!\ No newline at end of file+em paralelo na nuvem. Preencha [este formulário](https://docs.google.com/forms/d/e/1FAIpQLSckVz_JFwg2_mOxNZjCtr7aoBFI2Mwdan3f75J_TrdMS1JV2g/viewform) para se candidatar se quiser experimentar!diff --git a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/troubleshooting/troubleshooting.md b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/troubleshooting/troubleshooting.mdindex 9c410811e9..c1dda83154 100644--- a/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/troubleshooting/troubleshooting.md+++ b/docs/i18n/pt-BR/docusaurus-plugin-content-docs/current/usage/troubleshooting/troubleshooting.md@@ -65,4 +65,4 @@ No prompt inicial, um erro é exibido com `Permission Denied` ou `PermissionErro* Alterar a propriedade do diretório: `sudo chown <user>:<user> ~/.openhands-state`.* ou atualizar as permissões do diretório: `sudo chmod 777 ~/.openhands-state`* ou excluí-lo se você não precisar de dados anteriores. O OpenHands irá recriá-lo. Você precisará inserir novamente as configurações do LLM.-* Se estiver montando um diretório local, certifique-se de que seu `WORKSPACE_BASE` tenha as permissões necessárias para o usuário que está executando o OpenHands.\ No newline at end of file+* Se estiver montando um diretório local, certifique-se de que seu `WORKSPACE_BASE` tenha as permissões necessárias para o usuário que está executando o OpenHands.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 82203371e1..25c7ec958e 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@@ -22,4 +22,4 @@ OpenHands使用多种强大的框架和库构建,为其开发提供了坚实## 许可证-根据MIT [许可证](https://github.com/All-Hands-AI/OpenHands/blob/main/LICENSE)分发。\ No newline at end of file+根据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 373358d50b..741e03bfea 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@@ -20,4 +20,4 @@https://github.com/All-Hands-AI/OpenHands/assets/38853559/f592a192-e86c-4f48-ad31-d69282d5f6ac-_使用`gpt-4-turbo-2024-04-09`的CodeActAgent执行数据科学任务(线性回归)的示例_。\ No newline at end of file+_使用`gpt-4-turbo-2024-04-09`的CodeActAgent执行数据科学任务(线性回归)的示例_。diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/architecture/backend.mdx b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/architecture/backend.mdxindex 23ff0116c3..528560d061 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/architecture/backend.mdx+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/architecture/backend.mdx@@ -50,4 +50,4 @@ _**免责声明**:后端架构仍在开发中,可能会发生变化。以下6. 将图表导出为PNG和SVG文件,并替换`docs/architecture`目录中的现有图表。这可以通过(例如[PlantText](https://www.planttext.com/))完成</div>-</details>\ No newline at end of file+</details>diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/architecture/runtime.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/architecture/runtime.mdindex d3166a43db..e99cb8a7f6 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/architecture/runtime.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/architecture/runtime.md@@ -123,4 +123,4 @@ OpenHands 运行时支持插件系统,允许扩展功能和自定义运行时2. 插件注册:可用插件在 `ALL_PLUGINS` 字典中注册3. 插件规范:插件与 `Agent.sandbox_plugins: list[PluginRequirement]` 相关联。用户可以在初始化运行时时指定要加载的插件4. 初始化:插件在运行时客户端启动时异步初始化-5. 使用:运行时客户端可以使用已初始化的插件来扩展其功能(例如,用于运行 IPython 单元格的 JupyterPlugin)\ No newline at end of file+5. 使用:运行时客户端可以使用已初始化的插件来扩展其功能(例如,用于运行 IPython 单元格的 JupyterPlugin)diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/cloud/cloud-api.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/cloud/cloud-api.mdindex 082b7a78b7..958c520805 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/cloud/cloud-api.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/cloud/cloud-api.md@@ -174,4 +174,4 @@ curl -X GET "https://app.all-hands.dev/api/conversations/{conversation_id}" \API对每个账户有10个同时对话的限制。如果您的使用场景需要更高的限制,请通过[[email protected]](mailto:[email protected])联系我们。-如果您超过此限制,API将返回429 Too Many Requests响应。\ No newline at end of file+如果您超过此限制,API将返回429 Too Many Requests响应。diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/cloud/cloud-github-resolver.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/cloud/cloud-github-resolver.mdindex 840825ef2e..304dd7b321 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/cloud/cloud-github-resolver.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/cloud/cloud-github-resolver.md@@ -28,4 +28,4 @@ GitHub Resolver 自动修复代码并为您的仓库提供智能辅助。OpenHands 将会:1. 在 PR 上发表评论,让您知道它正在处理该请求。-2. 执行任务。\ No newline at end of file+2. 执行任务。diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/cloud/openhands-cloud.mdx b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/cloud/openhands-cloud.mdxindex 19b4995a11..3f203555de 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/cloud/openhands-cloud.mdx+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/cloud/openhands-cloud.mdx@@ -62,4 +62,4 @@ OpenHands Cloud 可以通过 https://app.all-hands.dev/ 访问。- 对话列表 – 仅显示过去 10 天内发起的 10 个最近对话。- 工作区 – 对话工作区保留 14 天。-- 运行时 – 运行时保持活跃("热"状态)30 分钟。在此期间后,恢复对话可能需要 1-2 分钟。\ No newline at end of file+- 运行时 – 运行时保持活跃("热"状态)30 分钟。在此期间后,恢复对话可能需要 1-2 分钟。diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/configuration-options.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/configuration-options.mdindex 18b67a4d1f..704cb78d24 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/configuration-options.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/configuration-options.md@@ -357,4 +357,4 @@ LLM(大型语言模型)配置选项在 `config.toml` 文件的 `[llm]` 部- `runtime_binding_address`- 类型: `str`- 默认值: `0.0.0.0`- - 描述: 运行时端口的绑定地址。它指定 Docker 应该将\ No newline at end of file+ - 描述: 运行时端口的绑定地址。它指定 Docker 应该将diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/customization/repository.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/customization/repository.mdindex 0b7481acaa..d739363416 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/customization/repository.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/customization/repository.md@@ -18,4 +18,4 @@ export MY_ENV_VAR="my value"sudo apt-get updatesudo apt-get install -y lsofcd frontend && npm install ; cd ..-```\ No newline at end of file+```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 efb3eb2a48..60c00e7b62 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@@ -36,4 +36,4 @@**单条数据:** 如果您想删除一条数据,我们将很快添加一种机制,使用您提交数据时界面上显示的链接和密码删除数据。-**所有数据:** 如果您想删除所有数据,或者您没有提交数据时收到的ID和密码,请从您最初提交数据时注册的电子邮件地址联系`[email protected]`。\ No newline at end of file+**所有数据:** 如果您想删除所有数据,或者您没有提交数据时收到的ID和密码,请从您最初提交数据时注册的电子邮件地址联系`[email protected]`。diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/getting-started.mdx b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/getting-started.mdxindex 9fce29851c..a56803202b 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/getting-started.mdx+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/getting-started.mdx@@ -87,4 +87,4 @@ OpenHands 几乎可以协助任何编码任务,但需要一些实践才能获* 提供充分的上下文。* 频繁提交和推送。-查看[提示最佳实践](./prompting/prompting-best-practices)获取更多关于如何充分利用 OpenHands 的提示。\ No newline at end of file+查看[提示最佳实践](./prompting/prompting-best-practices)获取更多关于如何充分利用 OpenHands 的提示。diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/how-to/cli-mode.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/how-to/cli-mode.mdindex 964bf0a9bb..2240b93dc4 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/how-to/cli-mode.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/how-to/cli-mode.md@@ -51,4 +51,4 @@ docker run -it \此命令将在 Docker 中启动一个交互式会话,您可以在其中输入任务并接收来自 OpenHands 的响应。-传递给 Docker 命令的 `-e SANDBOX_USER_ID=$(id -u)` 确保沙箱用户与主机用户的权限匹配。这可以防止代理在挂载的工作区中创建 root 拥有的文件。\ No newline at end of file+传递给 Docker 命令的 `-e SANDBOX_USER_ID=$(id -u)` 确保沙箱用户与主机用户的权限匹配。这可以防止代理在挂载的工作区中创建 root 拥有的文件。diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/how-to/custom-sandbox-guide.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/how-to/custom-sandbox-guide.mdindex 96b916520f..36a182c97e 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/how-to/custom-sandbox-guide.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/how-to/custom-sandbox-guide.md@@ -92,4 +92,4 @@ platform = "linux/amd64"### 运行-通过在顶级目录中运行```make run```来运行OpenHands。\ No newline at end of file+通过在顶级目录中运行```make run```来运行OpenHands。diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/how-to/debugging.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/how-to/debugging.mdindex 971c70fb72..c033ab1228 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/how-to/debugging.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/how-to/debugging.md@@ -68,4 +68,4 @@* *d*:openhands 工作空间目录* *c*:代理* *l*:LLM 配置(在 config.toml 中预定义)- * *n*:会话名称(例如 eventstream 名称)\ No newline at end of file+ * *n*:会话名称(例如 eventstream 名称)diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/how-to/development-overview.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/how-to/development-overview.mdindex 33b6bca97a..e86e0410ff 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/how-to/development-overview.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/how-to/development-overview.md@@ -71,4 +71,4 @@ sidebar_position: 91. 更新相关文档以反映您的更改2. 在适当的 README 文件中记录新功能3. 任何 API 更改都反映在服务器文档中-4. 文档遵循 `/docs/DOC_STYLE_GUIDE.md` 中的风格指南\ No newline at end of file+4. 文档遵循 `/docs/DOC_STYLE_GUIDE.md` 中的风格指南diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/how-to/evaluation-harness.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/how-to/evaluation-harness.mdindex c3f2f957fc..30004c53d3 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/how-to/evaluation-harness.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/how-to/evaluation-harness.md@@ -275,4 +275,4 @@ def codeact_user_response(state: State | None) -> str:2. 检查代理尝试与用户通信的次数3. 如果代理已经多次尝试,它提供一个放弃的选项-通过使用这个函数,您可以确保在多次评估运行中的一致行为,并防止代理因等待人工输入而卡住。\ No newline at end of file+通过使用这个函数,您可以确保在多次评估运行中的一致行为,并防止代理因等待人工输入而卡住。diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/how-to/github-action.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/how-to/github-action.mdindex aca2191e15..92533dbdda 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/how-to/github-action.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/how-to/github-action.md@@ -48,4 +48,4 @@ GitHub resolver 将自动检查有效的[仓库密钥](https://docs.github.com/e| `OPENHANDS_MAX_ITER` | 变量 | 设置代理迭代的最大限制 | `OPENHANDS_MAX_ITER=10` || `OPENHANDS_MACRO` | 变量 | 自定义用于调用 resolver 的默认宏 | `OPENHANDS_MACRO=@resolveit` || `OPENHANDS_BASE_CONTAINER_IMAGE` | 变量 | 自定义沙箱([了解更多](https://docs.all-hands.dev/modules/usage/how-to/custom-sandbox-guide)) | `OPENHANDS_BASE_CONTAINER_IMAGE="custom_image"` |-| `TARGET_BRANCH` | 变量 | 合并到 `main` 以外的分支 | `TARGET_BRANCH="dev"` |\ No newline at end of file+| `TARGET_BRANCH` | 变量 | 合并到 `main` 以外的分支 | `TARGET_BRANCH="dev"` |diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/how-to/gui-mode.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/how-to/gui-mode.mdindex 34a6eb7253..420492bff8 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/how-to/gui-mode.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/how-to/gui-mode.md@@ -138,4 +138,4 @@ OpenHands 支持多个版本控制提供商。您可以同时配置多个提供- 在请求中具体明确,以获得最准确和最有帮助的回应,如[提示最佳实践](../prompting/prompting-best-practices)中所述。- 使用[LLMs 部分](usage/llms/llms.md)中描述的推荐模型之一。-请记住,OpenHands 的 GUI 模式旨在使您与 AI 助手的交互尽可能顺畅和直观。请随时探索其功能,以最大限度地提高您的生产力。\ No newline at end of file+请记住,OpenHands 的 GUI 模式旨在使您与 AI 助手的交互尽可能顺畅和直观。请随时探索其功能,以最大限度地提高您的生产力。diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/how-to/headless-mode.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/how-to/headless-mode.mdindex 4ced1f11a6..f1f5933db1 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/how-to/headless-mode.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/how-to/headless-mode.md@@ -55,4 +55,4 @@ docker run -it \### 额外日志-要让无头模式记录所有代理操作,在终端中运行:`export LOG_ALL_EVENTS=true`\ No newline at end of file+要让无头模式记录所有代理操作,在终端中运行:`export LOG_ALL_EVENTS=true`diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/installation.mdx b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/installation.mdxindex 0aae7feed4..a90615e7e6 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/installation.mdx+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/installation.mdx@@ -116,4 +116,4 @@ OpenHands 需要 API 密钥才能访问大多数语言模型。以下是从推有关开发工作流程,请参阅 [Development.md](https://github.com/All-Hands-AI/OpenHands/blob/main/Development.md)。-遇到问题?请查看我们的[故障排除指南](https://docs.all-hands.dev/modules/usage/troubleshooting)。\ No newline at end of file+遇到问题?请查看我们的[故障排除指南](https://docs.all-hands.dev/modules/usage/troubleshooting)。diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/key-features.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/key-features.mdindex a158412d2b..82cce73a14 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/key-features.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/key-features.md@@ -26,4 +26,4 @@### 浏览器- 由 OpenHands 用于浏览网站。-- 浏览器是非交互式的。\ No newline at end of file+- 浏览器是非交互式的。diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/azure-llms.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/azure-llms.mdindex 1d96048d4f..493d799dbb 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/azure-llms.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/azure-llms.md@@ -35,4 +35,4 @@ docker run -it --pull=always \```LLM_API_VERSION="<api-version>" # 例如 "2024-02-15-preview"-```\ No newline at end of file+```diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/custom-llm-configs.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/custom-llm-configs.mdindex a5bb2d5b63..d22b3d2437 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/custom-llm-configs.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/custom-llm-configs.md@@ -133,4 +133,4 @@ frequency_penalty = 0.0:::note自定义 LLM 配置仅在通过 `main.py` 或 `cli.py` 在开发模式下使用 OpenHands 时可用。当通过 `docker run` 运行时,请使用标准配置选项。-:::\ No newline at end of file+:::diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/google-llms.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/google-llms.mdindex ad3da4d02f..d6170228ab 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/google-llms.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/google-llms.md@@ -26,4 +26,4 @@ VERTEXAI_LOCATION="<your-gcp-location>"然后在 OpenHands UI 的设置中设置以下内容:- `LLM Provider` 设为 `VertexAI`- `LLM Model` 设为您将使用的模型。-如果列表中没有该模型,请切换到`高级`选项,并在`自定义模型`中输入(例如 vertex_ai/<model-name>)。\ No newline at end of file+如果列表中没有该模型,请切换到`高级`选项,并在`自定义模型`中输入(例如 vertex_ai/<model-name>)。diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/groq.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/groq.mdindex 6014296ab7..39a063533b 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/groq.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/groq.md@@ -16,4 +16,4 @@ Groq 的聊天完成端点[大部分与 OpenAI 兼容](https://console.groq.com/2. 设置以下内容:- `自定义模型`设为前缀 `openai/` + 您将使用的模型(例如 `openai/llama3-70b-8192`)- `Base URL` 设为 `https://api.groq.com/openai/v1`- - `API Key` 设为您的 Groq API 密钥\ No newline at end of file+ - `API Key` 设为您的 Groq API 密钥diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/litellm-proxy.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/litellm-proxy.mdindex 36953f1d8a..42cbe2d02f 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/litellm-proxy.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/litellm-proxy.md@@ -17,4 +17,4 @@ OpenHands 支持使用 [LiteLLM 代理](https://docs.litellm.ai/docs/proxy/quick支持的模型取决于您的 LiteLLM 代理配置。OpenHands 支持您的 LiteLLM 代理配置为处理的任何模型。-请参考您的 LiteLLM 代理配置以获取可用模型及其名称的列表。\ No newline at end of file+请参考您的 LiteLLM 代理配置以获取可用模型及其名称的列表。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 b109094a58..814e0ca2fc 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@@ -79,4 +79,4 @@ num_retries = 4retry_min_wait = 5retry_max_wait = 30retry_multiplier = 2-```\ No newline at end of file+```diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/local-llms.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/local-llms.mdindex 840e49cc45..637c5fd517 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/local-llms.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/local-llms.md@@ -80,4 +80,4 @@ ollama_base_url="http://localhost:8000"2. 设置以下内容:- `自定义模型`为`openai/<served-model-name>`(例如`openai/openhands-lm-32b-v0.1`)- `基础URL`为`http://host.docker.internal:8000`-- `API密钥`为您在提供模型服务时设置的相同字符串(例如`mykey`)\ No newline at end of file+- `API密钥`为您在提供模型服务时设置的相同字符串(例如`mykey`)diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/openai-llms.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/openai-llms.mdindex 6695ede39c..a20550d9ad 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/openai-llms.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/openai-llms.md@@ -22,4 +22,4 @@ OpenHands 使用 LiteLLM 调用 OpenAI 的聊天模型。您可以在[这里](ht2. 设置以下内容:- `自定义模型`为 openai/<model-name>(例如 `openai/gpt-4o` 或 openai/<proxy-prefix>/<model-name>)- `Base URL` 设为您的 OpenAI 代理的 URL- - `API Key` 设为您的 OpenAI API 密钥\ No newline at end of file+ - `API Key` 设为您的 OpenAI API 密钥diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/openrouter.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/openrouter.mdindex 60f1d4a530..bdb776be24 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/openrouter.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/openrouter.md@@ -9,4 +9,4 @@ OpenHands 使用 LiteLLM 来调用 OpenRouter 上的聊天模型。您可以在[* 将 `LLM Model` 设置为您将使用的模型。[访问此处查看 OpenRouter 模型的完整列表](https://openrouter.ai/models)。如果模型不在列表中,切换到 `Advanced` 选项,并在 `Custom Model` 中输入(例如 openrouter/<model-name> 如 `openrouter/anthropic/claude-3.5-sonnet`)。-* 将 `API Key` 设置为您的 OpenRouter API 密钥。\ No newline at end of file+* 将 `API Key` 设置为您的 OpenRouter API 密钥。diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/mcp.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/mcp.mdindex a359434eba..99799ca777 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/mcp.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/mcp.md@@ -93,4 +93,4 @@ Stdio服务器使用具有以下属性的对象进行配置:1. OpenHands将调用路由到适当的MCP服务器2. 服务器处理请求并返回响应-3. OpenHands将响应转换为观察结果并呈现给代理\ No newline at end of file+3. OpenHands将响应转换为观察结果并呈现给代理diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/prompting/microagents-keyword.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/prompting/microagents-keyword.mdindex c6a1e6fe39..f0f5a879ce 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/prompting/microagents-keyword.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/prompting/microagents-keyword.md@@ -33,4 +33,4 @@ triggers:用户说了魔法词。回复"那真美味!"```-[在官方OpenHands仓库中查看由关键词触发的微代理示例](https://github.com/All-Hands-AI/OpenHands/tree/main/microagents)\ No newline at end of file+[在官方OpenHands仓库中查看由关键词触发的微代理示例](https://github.com/All-Hands-AI/OpenHands/tree/main/microagents)diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/prompting/microagents-overview.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/prompting/microagents-overview.mdindex 806bdedc11..57d7b0c363 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/prompting/microagents-overview.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/prompting/microagents-overview.md@@ -35,4 +35,4 @@ some-repository/| 微代理类型 | 是否必需 ||------------|----------|| `通用仓库微代理` | 否 |-| `关键词触发微代理` | 是 |\ No newline at end of file+| `关键词触发微代理` | 是 |diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/prompting/microagents-public.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/prompting/microagents-public.mdindex adad0bb686..e62f0c94ff 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/prompting/microagents-public.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/prompting/microagents-public.md@@ -47,4 +47,4 @@- 新的微代理文件。- 如有需要,更新文档。-- 描述代理的目的和功能。\ No newline at end of file+- 描述代理的目的和功能。diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/prompting/microagents-repo.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/prompting/microagents-repo.mdindex 0be7174e2d..f835d68ff0 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/prompting/microagents-repo.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/prompting/microagents-repo.md@@ -28,4 +28,4 @@在提交更改之前,始终确保测试通过。你可以通过运行`npm run test`来执行测试。```-[在这里查看更多通用仓库微代理的示例。](https://github.com/All-Hands-AI/OpenHands/tree/main/.openhands/microagents)\ No newline at end of file+[在这里查看更多通用仓库微代理的示例。](https://github.com/All-Hands-AI/OpenHands/tree/main/.openhands/microagents)diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/prompting/prompting-best-practices.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/prompting/prompting-best-practices.mdindex ff0ad0802b..da65ee8752 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/prompting/prompting-best-practices.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/prompting/prompting-best-practices.md@@ -34,4 +34,4 @@您的提示越精确和信息丰富,OpenHands就能提供越好的帮助。-查看[OpenHands入门](../getting-started)获取更多有用提示的示例。\ No newline at end of file+查看[OpenHands入门](../getting-started)获取更多有用提示的示例。diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/runtimes-index.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/runtimes-index.mdindex 3a3e81370c..00d320d35d 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/runtimes-index.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/runtimes-index.md@@ -22,4 +22,4 @@ OpenHands支持几种不同的运行时环境:- [OpenHands远程运行时](./runtimes/remote.md) - 用于并行执行的云端运行时(测试版)。- [Modal运行时](./runtimes/modal.md) - 由我们的合作伙伴Modal提供的运行时。- [Daytona运行时](./runtimes/daytona.md) - 由Daytona提供的运行时。-- [本地运行时](./runtimes/local.md) - 无需Docker直接在本地机器上执行。\ No newline at end of file+- [本地运行时](./runtimes/local.md) - 无需Docker直接在本地机器上执行。diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/runtimes.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/runtimes.mdindex 13d5ba09ab..b4d8f6d888 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/runtimes.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/runtimes.md@@ -5,4 +5,4 @@ title: Runtime Configurationimport { Redirect } from '@docusaurus/router';-<Redirect to="/modules/usage/runtimes-index" />\ No newline at end of file+<Redirect to="/modules/usage/runtimes-index" />diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/runtimes/daytona.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/runtimes/daytona.mdindex b94e1ac4e4..878055752b 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/runtimes/daytona.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/runtimes/daytona.md@@ -29,4 +29,4 @@ bash -i <(curl -sL https://get.daytona.io/openhands)执行后,OpenHands 应该在本地运行并准备使用。-有关更多详细信息和手动初始化,请查看完整的 [README.md](https://github.com/All-Hands-AI/OpenHands/blob/main/openhands/runtime/impl/daytona/README.md)\ No newline at end of file+有关更多详细信息和手动初始化,请查看完整的 [README.md](https://github.com/All-Hands-AI/OpenHands/blob/main/openhands/runtime/impl/daytona/README.md)diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/runtimes/docker.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/runtimes/docker.mdindex 6dfa162c38..c5631d2b00 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/runtimes/docker.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/runtimes/docker.md@@ -121,4 +121,4 @@ docker network create openhands-network# 在隔离的网络中运行 OpenHandsdocker run # ... \--network openhands-network \-```\ No newline at end of file+```diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/runtimes/local.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/runtimes/local.mdindex d39fff63da..76a2f7c786 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/runtimes/local.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/runtimes/local.md@@ -70,4 +70,4 @@ poetry run python -m openhands.core.main -t "write a bash script that prints hi"- Docker不可用的CI/CD流水线。- OpenHands本身的测试和开发。-- 容器使用受限的环境。\ No newline at end of file+- 容器使用受限的环境。diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/runtimes/modal.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/runtimes/modal.mdindex bc251de6e6..669fa41a55 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/runtimes/modal.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/runtimes/modal.md@@ -10,4 +10,4 @@ docker run # ...-e RUNTIME=modal \-e MODAL_API_TOKEN_ID="your-id" \-e MODAL_API_TOKEN_SECRET="modal-api-key" \-```\ No newline at end of file+```diff --git a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/runtimes/remote.md b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/runtimes/remote.mdindex 5f143127c7..bfad4e16db 100644--- a/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/runtimes/remote.md+++ b/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/runtimes/remote.md@@ -4,4 +4,4 @@此运行时专为通过 [OpenHands 评估框架](https://github.com/All-Hands-AI/OpenHands/tree/main/evaluation) 进行代理评估而设计。它不应用于启动生产环境的 OpenHands 应用程序。:::-OpenHands 远程运行时目前处于测试阶段(详情请阅读[此处](https://runtime.all-hands.dev/)),它允许您在云端并行启动运行时。如果您想尝试使用,请填写[此表单](https://docs.google.com/forms/d/e/1FAIpQLSckVz_JFwg2_mOxNZjCtr7aoBFI2Mwdan3f75J_TrdMS1JV2g/viewform)申请!\ No newline at end of file+OpenHands 远程运行时目前处于测试阶段(详情请阅读[此处](https://runtime.all-hands.dev/)),它允许您在云端并行启动运行时。如果您想尝试使用,请填写[此表单](https://docs.google.com/forms/d/e/1FAIpQLSckVz_JFwg2_mOxNZjCtr7aoBFI2Mwdan3f75J_TrdMS1JV2g/viewform)申请!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 c7f0716877..031bbb3be9 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@@ -65,4 +65,4 @@ Launch docker client failed. Please make sure you have installed docker and star* 更改目录的所有权:`sudo chown <user>:<user> ~/.openhands-state`。* 或更新目录的权限:`sudo chmod 777 ~/.openhands-state`* 或者如果您不需要之前的数据,可以删除它。OpenHands 将重新创建它。您需要重新输入 LLM 设置。-* 如果挂载本地目录,确保您的 `WORKSPACE_BASE` 对运行 OpenHands 的用户有必要的权限。\ No newline at end of file+* 如果挂载本地目录,确保您的 `WORKSPACE_BASE` 对运行 OpenHands 的用户有必要的权限。diff --git a/evaluation/benchmarks/EDA/game.py b/evaluation/benchmarks/EDA/game.pyindex efc0557ff4..228e7c7949 100644--- a/evaluation/benchmarks/EDA/game.py+++ b/evaluation/benchmarks/EDA/game.py@@ -73,7 +73,7 @@ class Q20Game:usr_msg = self.answerer(guesser_question)self.guesser_messages.append(- {'role': 'user', 'content': f"{usr_msg['content'].strip()}"}+ {'role': 'user', 'content': f'{usr_msg["content"].strip()}'})if 'bingo' in usr_msg['content'].lower():diff --git a/evaluation/benchmarks/agent_bench/run_infer.py b/evaluation/benchmarks/agent_bench/run_infer.pyindex a78e402395..55fe36fafd 100644--- a/evaluation/benchmarks/agent_bench/run_infer.py+++ b/evaluation/benchmarks/agent_bench/run_infer.py@@ -67,7 +67,7 @@ def initialize_runtime(This function is called before the runtime is used to run the agent."""- logger.info(f"{'-' * 50} BEGIN Runtime Initialization Fn {'-' * 50}")+ logger.info(f'{"-" * 50} BEGIN Runtime Initialization Fn {"-" * 50}')obs: CmdOutputObservation# Set instance id@@ -100,7 +100,7 @@ def initialize_runtime(logger.info(obs, extra={'msg_type': 'OBSERVATION'})assert obs.exit_code == 0- logger.info(f"{'-' * 50} END Runtime Initialization Fn {'-' * 50}")+ logger.info(f'{"-" * 50} END Runtime Initialization Fn {"-" * 50}')def complete_runtime(@@ -113,7 +113,7 @@ def complete_runtime(If you need to do something in the sandbox to get the correctness metric afterthe agent has run, modify this function."""- logger.info(f"{'-' * 50} BEGIN Runtime Completion Fn {'-' * 50}")+ logger.info(f'{"-" * 50} BEGIN Runtime Completion Fn {"-" * 50}')obs: CmdOutputObservationagent_answer = None@@ -165,7 +165,7 @@ def complete_runtime(logger.info(obs, extra={'msg_type': 'OBSERVATION'})final_ans = obs.content- logger.info(f"{'-' * 50} END Runtime Completion Fn {'-' * 50}")+ logger.info(f'{"-" * 50} END Runtime Completion Fn {"-" * 50}')return {'final_ans': final_ans,'agent_answer': agent_answer,diff --git a/evaluation/benchmarks/aider_bench/run_infer.py b/evaluation/benchmarks/aider_bench/run_infer.pyindex 0d97496acd..61cfa8061a 100644--- a/evaluation/benchmarks/aider_bench/run_infer.py+++ b/evaluation/benchmarks/aider_bench/run_infer.py@@ -80,7 +80,7 @@ def initialize_runtime(This function is called before the runtime is used to run the agent."""- logger.info(f"\n{'-' * 50} BEGIN Runtime Initialization Fn {'-' * 50}\n")+ logger.info(f'\n{"-" * 50} BEGIN Runtime Initialization Fn {"-" * 50}\n')obs: CmdOutputObservation# Set instance id@@ -110,7 +110,7 @@ def initialize_runtime(file_path,'/workspace',)- logger.info(f"\n{'-' * 50} END Runtime Initialization Fn {'-' * 50}\n")+ logger.info(f'\n{"-" * 50} END Runtime Initialization Fn {"-" * 50}\n')def complete_runtime(@@ -123,7 +123,7 @@ def complete_runtime(If you need to do something in the sandbox to get the correctness metric afterthe agent has run, modify this function."""- logger.info(f"\n{'-' * 50} BEGIN Runtime Completion Fn {'-' * 50}\n")+ logger.info(f'\n{"-" * 50} BEGIN Runtime Completion Fn {"-" * 50}\n')obs: CmdOutputObservation# Rewriting the test file to ignore any changes Agent may have made.@@ -147,7 +147,7 @@ def complete_runtime(if isinstance(obs, CmdOutputObservation):exit_code = obs.exit_code- logger.info(f"\n{'-' * 50} END Runtime Completion Fn {'-' * 50}\n")+ logger.info(f'\n{"-" * 50} END Runtime Completion Fn {"-" * 50}\n')runtime.close()diff --git a/evaluation/benchmarks/biocoder/run_infer.py b/evaluation/benchmarks/biocoder/run_infer.pyindex f1c98ed066..36657a47ee 100644--- a/evaluation/benchmarks/biocoder/run_infer.py+++ b/evaluation/benchmarks/biocoder/run_infer.py@@ -84,7 +84,7 @@ def initialize_runtime(This function is called before the runtime is used to run the agent."""- logger.info(f"{'-' * 50} BEGIN Runtime Initialization Fn {'-' * 50}")+ logger.info(f'{"-" * 50} BEGIN Runtime Initialization Fn {"-" * 50}')obs: CmdOutputObservationfile_ext = FILE_EXT_MAP[instance.language.lower()]@@ -128,7 +128,7 @@ def initialize_runtime(assert obs.exit_code == 0# download repository archive- repository_url = f"https://biocoder.lilbillbiscuit.com/repos/{instance.repository.split('/')[1]}.zip"+ repository_url = f'https://biocoder.lilbillbiscuit.com/repos/{instance.repository.split("/")[1]}.zip'action = CmdRunAction(command='wget -O repo.zip ' + repository_url)logger.info(action, extra={'msg_type': 'ACTION'})obs = runtime.run_action(action)@@ -160,7 +160,7 @@ def initialize_runtime(obs = runtime.run_action(action)assert obs.exit_code == 0, f'Failed to remove the code: {obs.content}'- logger.info(f"{'-' * 50} END Runtime Initialization Fn {'-' * 50}")+ logger.info(f'{"-" * 50} END Runtime Initialization Fn {"-" * 50}')def complete_runtime(@@ -173,7 +173,7 @@ def complete_runtime(If you need to do something in the sandbox to get the correctness metric afterthe agent has run, modify this function."""- logger.info(f"{'-' * 50} BEGIN Runtime Completion Fn {'-' * 50}")+ logger.info(f'{"-" * 50} BEGIN Runtime Completion Fn {"-" * 50}')obs: CmdOutputObservationtest_result = {'result': {}, 'metadata': {}}@@ -233,7 +233,7 @@ def complete_runtime(test_result['metadata']['2_run_test_success'] = Falsetest_result['metadata']['2_run_test_result'] = str(obs.content)- logger.info(f"{'-' * 50} END Runtime Completion Fn {'-' * 50}")+ logger.info(f'{"-" * 50} END Runtime Completion Fn {"-" * 50}')return test_result@@ -258,7 +258,7 @@ def process_instance(instruction = (f'Please complete the function "{instance.signature}" in the file /workspace/{instance.repository.split("/")[1]}/{instance.filePath}.\n'f'The environment has been set up for you to start working. You may assume all necessary tools are installed.\n'- f'To complete the task, you must directly modify the file and fill in the function, keeping in mind that the function signature is on line {instance.lineStart-1}\n\n'+ f'To complete the task, you must directly modify the file and fill in the function, keeping in mind that the function signature is on line {instance.lineStart - 1}\n\n'f'The function should do the following:\n'f'{instance.promptSummaryOnly}\n\n')diff --git a/evaluation/benchmarks/biocoder/scripts/setup/remove_code.py b/evaluation/benchmarks/biocoder/scripts/setup/remove_code.pyindex 3c76a41738..2617a6b7d8 100644--- a/evaluation/benchmarks/biocoder/scripts/setup/remove_code.py+++ b/evaluation/benchmarks/biocoder/scripts/setup/remove_code.py@@ -44,7 +44,7 @@ def remove_code(target_filepath: str, line_start: int, line_end: int, language:lines = (lines[:line_start]+ [- f"{' '*comment_indent_size+comment_prefix[language.lower()]}TODO: replace with your code here"+ f'{" " * comment_indent_size + comment_prefix[language.lower()]}TODO: replace with your code here']+ ([''] * 2)+ lines[line_end:]diff --git a/evaluation/benchmarks/bird/run_infer.py b/evaluation/benchmarks/bird/run_infer.pyindex 1c56deb967..e2cd70d818 100644--- a/evaluation/benchmarks/bird/run_infer.py+++ b/evaluation/benchmarks/bird/run_infer.py@@ -184,7 +184,7 @@ def load_bird():.fetchall())prompt += (- f"/*\n3 example rows:\n{top_k_row_query}\n{' '.join(headers)}\n"+ f'/*\n3 example rows:\n{top_k_row_query}\n{" ".join(headers)}\n')for row in top_k_rows:row = [str(x) for x in row]@@ -201,10 +201,10 @@ def load_bird():# Extract the CREATE TABLE statements and sample data from the databaseprompt = _extract_create_table_prompt(db_path)- prompt += f"-- External Knowledge: {e['evidence']}\n\n"+ prompt += f'-- External Knowledge: {e["evidence"]}\n\n'prompt += '-- Using valid SQLite and understanding External Knowledge, answer the following questions for the tables provided above.\n\n'prompt += '-- Using valid SQLite, answer the following questions for the tables provided above.\n'- prompt += f"Question: {e['question']}\n"+ prompt += f'Question: {e["question"]}\n'return prompt@@ -224,7 +224,7 @@ def load_bird():item = {'instance_id': f'{len(processed_data)}','db_path': os.path.join(- database_path, e['db_id'], f"{e['db_id']}.sqlite"+ database_path, e['db_id'], f'{e["db_id"]}.sqlite'),'db_id': e['db_id'],'instruction': _create_prompt(e, database_path),@@ -253,7 +253,7 @@ def initialize_runtime(This function is called before the runtime is used to run the agent."""- logger.info(f"{'-' * 50} BEGIN Runtime Initialization Fn {'-' * 50}")+ logger.info(f'{"-" * 50} BEGIN Runtime Initialization Fn {"-" * 50}')obs: CmdOutputObservation# Copy the database to the workspace@@ -273,7 +273,7 @@ def initialize_runtime(assert obs.exit_code == 0assert f'{instance.db_id}.sqlite' in obs.content- logger.info(f"{'-' * 50} END Runtime Initialization Fn {'-' * 50}")+ logger.info(f'{"-" * 50} END Runtime Initialization Fn {"-" * 50}')def complete_runtime(@@ -286,7 +286,7 @@ def complete_runtime(If you need to do something in the sandbox to get the correctness metric afterthe agent has run, modify this function."""- logger.info(f"{'-' * 50} BEGIN Runtime Completion Fn {'-' * 50}")+ logger.info(f'{"-" * 50} BEGIN Runtime Completion Fn {"-" * 50}')obs: CmdOutputObservationtimeout = 30@@ -343,7 +343,7 @@ def complete_runtime('gen_sql': gen_sql,'gold_sql': gold_sql,}- logger.info(f"{'-' * 50} END Runtime Completion Fn {'-' * 50}")+ logger.info(f'{"-" * 50} END Runtime Completion Fn {"-" * 50}')return test_resultdiff --git a/evaluation/benchmarks/browsing_delegation/run_infer.py b/evaluation/benchmarks/browsing_delegation/run_infer.pyindex 0ef080dbca..9d239367c2 100644--- a/evaluation/benchmarks/browsing_delegation/run_infer.py+++ b/evaluation/benchmarks/browsing_delegation/run_infer.py@@ -34,9 +34,9 @@ SUPPORTED_AGENT_CLS = {'CodeActAgent'}def get_config(metadata: EvalMetadata,) -> AppConfig:- assert (- metadata.max_iterations == 1- ), 'max_iterations must be 1 for browsing delegation evaluation.'+ assert metadata.max_iterations == 1, (+ 'max_iterations must be 1 for browsing delegation evaluation.'+ )sandbox_config = get_default_sandbox_config_for_eval()sandbox_config.base_container_image = 'python:3.12-bookworm'config = AppConfig(diff --git a/evaluation/benchmarks/commit0/run_infer.py b/evaluation/benchmarks/commit0/run_infer.pyindex 2eac78cbfa..c40cb953f3 100644--- a/evaluation/benchmarks/commit0/run_infer.py+++ b/evaluation/benchmarks/commit0/run_infer.py@@ -82,9 +82,7 @@ def get_instruction(instance: pd.Series, metadata: EvalMetadata):if RUN_WITH_BROWSING:instruction += (- '<IMPORTANT!>\n'- 'You SHOULD NEVER attempt to browse the web. '- '</IMPORTANT!>\n'+ '<IMPORTANT!>\nYou SHOULD NEVER attempt to browse the web. </IMPORTANT!>\n')return instruction@@ -265,7 +263,7 @@ def complete_runtime(test_dir = instance['test']['test_dir']action = CmdRunAction(- command=f"{instance['test']['test_cmd']} --json-report --json-report-file=report.json --continue-on-collection-errors {test_dir} > test_output.txt 2>&1"+ command=f'{instance["test"]["test_cmd"]} --json-report --json-report-file=report.json --continue-on-collection-errors {test_dir} > test_output.txt 2>&1')action.set_hard_timeout(600)logger.info(action, extra={'msg_type': 'ACTION'})diff --git a/evaluation/benchmarks/discoverybench/eval_utils/eval_w_subhypo_gen.py b/evaluation/benchmarks/discoverybench/eval_utils/eval_w_subhypo_gen.pyindex a80df8279c..7fb5d765cb 100644--- a/evaluation/benchmarks/discoverybench/eval_utils/eval_w_subhypo_gen.py+++ b/evaluation/benchmarks/discoverybench/eval_utils/eval_w_subhypo_gen.py@@ -489,7 +489,7 @@ def run_eval_gold_vs_gen_NL_hypo_workflow(gen_subh_to_gold_subh[p_id] = g_idgold_subh_covered.append(g_id)gen_gold_subh_to_context[f'P{p_id}||G{g_id}'] = {- 'question': f"""Comapring: GoldH: {gold_subh["text"]}, GoldC: {gold_subh['context']}\nGenH: {gen_subh['text']}, GenC: {gen_subh['context']}""",+ 'question': f"""Comapring: GoldH: {gold_subh['text']}, GoldC: {gold_subh['context']}\nGenH: {gen_subh['text']}, GenC: {gen_subh['context']}""",'answer': context_bool,'score': context_score,}diff --git a/evaluation/benchmarks/discoverybench/run_infer.py b/evaluation/benchmarks/discoverybench/run_infer.pyindex 7fb7d5b717..1ab8eb7f65 100644--- a/evaluation/benchmarks/discoverybench/run_infer.py+++ b/evaluation/benchmarks/discoverybench/run_infer.py@@ -145,7 +145,7 @@ def initialize_runtime(runtime: Runtime, data_files: list[str]):This function is called before the runtime is used to run the agent."""- logger.info(f"{'-' * 50} BEGIN Runtime Initialization Fn {'-' * 50}")+ logger.info(f'{"-" * 50} BEGIN Runtime Initialization Fn {"-" * 50}')obs: CmdOutputObservationaction = CmdRunAction(command='mkdir -p /workspace')@@ -170,7 +170,7 @@ def initialize_runtime(runtime: Runtime, data_files: list[str]):obs = runtime.run_action(action)assert obs.exit_code == 0- logger.info(f"{'-' * 50} END Runtime Initialization Fn {'-' * 50}")+ logger.info(f'{"-" * 50} END Runtime Initialization Fn {"-" * 50}')def get_last_agent_finish_action(state: State) -> AgentFinishAction:diff --git a/evaluation/benchmarks/gaia/get_score.py b/evaluation/benchmarks/gaia/get_score.pyindex 895d698410..1029482f26 100644--- a/evaluation/benchmarks/gaia/get_score.py+++ b/evaluation/benchmarks/gaia/get_score.py@@ -21,7 +21,7 @@ def main():total += 1if out['test_result']['score']:success += 1- print(f'Success rate: {success}/{total} = {success/total}')+ print(f'Success rate: {success}/{total} = {success / total}')if __name__ == '__main__':diff --git a/evaluation/benchmarks/gaia/run_infer.py b/evaluation/benchmarks/gaia/run_infer.pyindex e63026e813..e31db4bb3c 100644--- a/evaluation/benchmarks/gaia/run_infer.py+++ b/evaluation/benchmarks/gaia/run_infer.py@@ -78,7 +78,7 @@ def initialize_runtime(This function is called before the runtime is used to run the agent."""- logger.info(f"{'-' * 50} BEGIN Runtime Initialization Fn {'-' * 50}")+ logger.info(f'{"-" * 50} BEGIN Runtime Initialization Fn {"-" * 50}')obs: CmdOutputObservationaction = CmdRunAction(command='mkdir -p /workspace')@@ -110,7 +110,7 @@ def initialize_runtime(obs = runtime.run_action(action)assert obs.exit_code == 0- logger.info(f"{'-' * 50} END Runtime Initialization Fn {'-' * 50}")+ logger.info(f'{"-" * 50} END Runtime Initialization Fn {"-" * 50}')def process_instance(@@ -134,10 +134,10 @@ def process_instance(dest_file = None# Prepare instruction- instruction = f"{instance['Question']}\n"+ instruction = f'{instance["Question"]}\n'logger.info(f'Instruction: {instruction}')if dest_file:- instruction += f"\n\nThe mentioned file is provided in the workspace at: {dest_file.split('/')[-1]}"+ instruction += f'\n\nThe mentioned file is provided in the workspace at: {dest_file.split("/")[-1]}'instruction += 'IMPORTANT: You should ONLY interact with the environment provided to you AND NEVER ASK FOR HUMAN HELP.\n'instruction += 'Please encapsulate your final answer (answer ONLY) within <solution> and </solution>.\n'diff --git a/evaluation/benchmarks/gaia/scorer.py b/evaluation/benchmarks/gaia/scorer.pyindex 5a1cd1c88a..e7c25aca99 100644--- a/evaluation/benchmarks/gaia/scorer.py+++ b/evaluation/benchmarks/gaia/scorer.py@@ -21,7 +21,7 @@ def split_string() -> list[str]:if char_list is None:char_list = [',', ';']- pattern = f"[{''.join(char_list)}]"+ pattern = f'[{"".join(char_list)}]'return re.split(pattern, s)diff --git a/evaluation/benchmarks/humanevalfix/run_infer.py b/evaluation/benchmarks/humanevalfix/run_infer.pyindex fbf88859b6..67577347aa 100644--- a/evaluation/benchmarks/humanevalfix/run_infer.py+++ b/evaluation/benchmarks/humanevalfix/run_infer.py@@ -112,7 +112,7 @@ def initialize_runtime(This function is called before the runtime is used to run the agent."""- logger.info(f"{'-' * 50} BEGIN Runtime Initialization Fn {'-' * 50}")+ logger.info(f'{"-" * 50} BEGIN Runtime Initialization Fn {"-" * 50}')obs: CmdOutputObservationaction = CmdRunAction(command='mkdir -p /workspace')@@ -143,7 +143,7 @@ def initialize_runtime(obs = runtime.run_action(action)assert obs.exit_code == 0- logger.info(f"{'-' * 50} END Runtime Initialization Fn {'-' * 50}")+ logger.info(f'{"-" * 50} END Runtime Initialization Fn {"-" * 50}')def complete_runtime(@@ -156,7 +156,7 @@ def complete_runtime(If you need to do something in the sandbox to get the correctness metric afterthe agent has run, modify this function."""- logger.info(f"{'-' * 50} BEGIN Runtime Completion Fn {'-' * 50}")+ logger.info(f'{"-" * 50} BEGIN Runtime Completion Fn {"-" * 50}')obs: CmdOutputObservation# default value@@ -190,7 +190,7 @@ def complete_runtime('timeout': timeout,'num_workers': num_workers,}- logger.info(f"{'-' * 50} END Runtime Completion Fn {'-' * 50}")+ logger.info(f'{"-" * 50} END Runtime Completion Fn {"-" * 50}')return test_resultdiff --git a/evaluation/benchmarks/lca_ci_build_repair/eval_infer.py b/evaluation/benchmarks/lca_ci_build_repair/eval_infer.pyindex 1c67a29de1..e4c736f5f0 100644--- a/evaluation/benchmarks/lca_ci_build_repair/eval_infer.py+++ b/evaluation/benchmarks/lca_ci_build_repair/eval_infer.py@@ -73,7 +73,7 @@ def run_eval(runtime: Runtime,):"""Run the evaluation and create report"""- logger.info(f"{'-' * 50} BEGIN Runtime Initialization Fn {'-' * 50}")+ logger.info(f'{"-" * 50} BEGIN Runtime Initialization Fn {"-" * 50}')obs: CmdOutputObservationlca_path = bench_config['LCA_PATH']@@ -146,7 +146,7 @@ def run_eval(obs = runtime.run_action(action)report_str = obs.content- logger.info(f"{'-' * 50} END Runtime Initialization Fn {'-' * 50}")+ logger.info(f'{"-" * 50} END Runtime Initialization Fn {"-" * 50}')return report_strdiff --git a/evaluation/benchmarks/lca_ci_build_repair/run_infer.py b/evaluation/benchmarks/lca_ci_build_repair/run_infer.pyindex e88a3a41fd..f6c93bb0dc 100644--- a/evaluation/benchmarks/lca_ci_build_repair/run_infer.py+++ b/evaluation/benchmarks/lca_ci_build_repair/run_infer.py@@ -95,7 +95,7 @@ def initialize_runtime(This function is called before the runtime is used to run the agent."""- logger.info(f"{'-' * 50} BEGIN Runtime Initialization Fn {'-' * 50}")+ logger.info(f'{"-" * 50} BEGIN Runtime Initialization Fn {"-" * 50}')obs: CmdOutputObservationlca_path = bench_config['LCA_PATH']@@ -177,7 +177,7 @@ def initialize_runtime(logger.info(action, extra={'msg_type': 'ACTION'})obs = runtime.run_action(action)- logger.info(f"{'-' * 50} END Runtime Initialization Fn {'-' * 50}")+ logger.info(f'{"-" * 50} END Runtime Initialization Fn {"-" * 50}')def complete_runtime(@@ -190,7 +190,7 @@ def complete_runtime(If you need to do something in the sandbox to get the correctness metric afterthe agent has run, modify this function."""- logger.info(f"{'-' * 50} BEGIN Runtime Completion Fn {'-' * 50}")+ logger.info(f'{"-" * 50} BEGIN Runtime Completion Fn {"-" * 50}')obs: CmdOutputObservationmodel_name = bench_config['model_name']@@ -227,7 +227,7 @@ def complete_runtime(obs = runtime.run_action(action)result = json.loads(obs.content)- logger.info(f"{'-' * 50} END Runtime Completion Fn {'-' * 50}")+ logger.info(f'{"-" * 50} END Runtime Completion Fn {"-" * 50}')return result@@ -313,7 +313,7 @@ Phase 7. VERIFICATION: Test your implementation thoroughly.7.2.3 The functions you changed7.4 If any tests fail, revise your implementation until all tests pass-Phase 8. REVIEW: Carefully re-read the problem description and compare your changes with the base commit {instance["sha_fail"]}.+Phase 8. REVIEW: Carefully re-read the problem description and compare your changes with the base commit {instance['sha_fail']}.8.1 Ensure you've fully addressed all requirements.Once all phases are done, announce: 'Agent Task Complete'.diff --git a/evaluation/benchmarks/logic_reasoning/run_infer.py b/evaluation/benchmarks/logic_reasoning/run_infer.pyindex fac82f29f5..bba9bc6691 100644--- a/evaluation/benchmarks/logic_reasoning/run_infer.py+++ b/evaluation/benchmarks/logic_reasoning/run_infer.py@@ -141,7 +141,7 @@ def initialize_runtime(This function is called before the runtime is used to run the agent."""- logger.info(f"{'-' * 50} BEGIN Runtime Initialization Fn {'-' * 50}")+ logger.info(f'{"-" * 50} BEGIN Runtime Initialization Fn {"-" * 50}')obs: CmdOutputObservation# Set instance id@@ -174,7 +174,7 @@ def initialize_runtime(ipynb_obs = runtime.run_action(action)logger.info(ipynb_obs, extra={'msg_type': 'OBSERVATION'})- logger.info(f"{'-' * 50} END Runtime Initialization Fn {'-' * 50}")+ logger.info(f'{"-" * 50} END Runtime Initialization Fn {"-" * 50}')# Prepare instructiondiff --git a/evaluation/benchmarks/miniwob/run_infer.py b/evaluation/benchmarks/miniwob/run_infer.pyindex 55e510818a..5790f6fd6f 100644--- a/evaluation/benchmarks/miniwob/run_infer.py+++ b/evaluation/benchmarks/miniwob/run_infer.py@@ -82,7 +82,7 @@ def initialize_runtime(This function is called before the runtime is used to run the agent."""- logger.info(f"{'-' * 50} BEGIN Runtime Initialization Fn {'-' * 50}")+ logger.info(f'{"-" * 50} BEGIN Runtime Initialization Fn {"-" * 50}')obs: CmdOutputObservation# Set instance id@@ -103,7 +103,7 @@ def initialize_runtime(obs = runtime.run_action(action)logger.info(obs, extra={'msg_type': 'OBSERVATION'})- logger.info(f"{'-' * 50} END Runtime Initialization Fn {'-' * 50}")+ logger.info(f'{"-" * 50} END Runtime Initialization Fn {"-" * 50}')return goal, obs@@ -116,7 +116,7 @@ def complete_runtime(If you need to do something in the sandbox to get the correctness metric afterthe agent has run, modify this function."""- logger.info(f"{'-' * 50} BEGIN Runtime Completion Fn {'-' * 50}")+ logger.info(f'{"-" * 50} BEGIN Runtime Completion Fn {"-" * 50}')obs: CmdOutputObservationaction = BrowseInteractiveAction(browser_actions=BROWSER_EVAL_GET_REWARDS_ACTION)@@ -124,7 +124,7 @@ def complete_runtime(obs = runtime.run_action(action)logger.info(obs, extra={'msg_type': 'OBSERVATION'})- logger.info(f"{'-' * 50} END Runtime Completion Fn {'-' * 50}")+ logger.info(f'{"-" * 50} END Runtime Completion Fn {"-" * 50}')return {'rewards': json.loads(obs.content),}diff --git a/evaluation/benchmarks/mint/run_infer.py b/evaluation/benchmarks/mint/run_infer.pyindex bd1a394332..5a2dd237d2 100644--- a/evaluation/benchmarks/mint/run_infer.py+++ b/evaluation/benchmarks/mint/run_infer.py@@ -130,7 +130,7 @@ def initialize_runtime(runtime: Runtime):This function is called before the runtime is used to run the agent."""- logger.info(f"{'-' * 50} BEGIN Runtime Initialization Fn {'-' * 50}")+ logger.info(f'{"-" * 50} BEGIN Runtime Initialization Fn {"-" * 50}')obs: CmdOutputObservation# Set instance id@@ -144,7 +144,7 @@ def initialize_runtime(runtime: Runtime):obs = runtime.run_action(action)assert obs.exit_code == 0- logger.info(f"{'-' * 50} END Runtime Initialization Fn {'-' * 50}")+ logger.info(f'{"-" * 50} END Runtime Initialization Fn {"-" * 50}')def process_instance(diff --git a/evaluation/benchmarks/ml_bench/run_analysis.py b/evaluation/benchmarks/ml_bench/run_analysis.pyindex 19de2fc42c..1079073826 100644--- a/evaluation/benchmarks/ml_bench/run_analysis.py+++ b/evaluation/benchmarks/ml_bench/run_analysis.py@@ -93,7 +93,7 @@ def classify_error(llm: LLM, failed_case: dict) -> str:error_category = response.choices[0].message['content']except Exception as e:logger.error(- f"Failed to classify the error for the failed case: {failed_case['instance_id']}"+ f'Failed to classify the error for the failed case: {failed_case["instance_id"]}')logger.error(e)error_category = input(diff --git a/evaluation/benchmarks/ml_bench/run_infer.py b/evaluation/benchmarks/ml_bench/run_infer.pyindex 5eff173b46..09230ff0ce 100644--- a/evaluation/benchmarks/ml_bench/run_infer.py+++ b/evaluation/benchmarks/ml_bench/run_infer.py@@ -103,7 +103,7 @@ def initialize_runtime(This function is called before the runtime is used to run the agent."""- logger.info(f"{'-' * 50} BEGIN Runtime Initialization Fn {'-' * 50}")+ logger.info(f'{"-" * 50} BEGIN Runtime Initialization Fn {"-" * 50}')obs: CmdOutputObservation# Set instance id@@ -137,7 +137,7 @@ def initialize_runtime(obs = runtime.run_action(action)assert obs.exit_code == 0- logger.info(f"{'-' * 50} END Runtime Initialization Fn {'-' * 50}")+ logger.info(f'{"-" * 50} END Runtime Initialization Fn {"-" * 50}')def complete_runtime(@@ -150,7 +150,7 @@ def complete_runtime(If you need to do something in the sandbox to get the correctness metric afterthe agent has run, modify this function."""- logger.info(f"{'-' * 50} BEGIN Runtime Completion Fn {'-' * 50}")+ logger.info(f'{"-" * 50} BEGIN Runtime Completion Fn {"-" * 50}')obs: CmdOutputObservationrepo_url = instance['github']@@ -199,7 +199,7 @@ def complete_runtime(outputs['success'] = 1outputs['eval_exit_code'] = obs.exit_code- logger.info(f"{'-' * 50} END Runtime Completion Fn {'-' * 50}")+ logger.info(f'{"-" * 50} END Runtime Completion Fn {"-" * 50}')return outputsdiff --git a/evaluation/benchmarks/multi_swe_bench/eval_infer.py b/evaluation/benchmarks/multi_swe_bench/eval_infer.pyindex d5d2a81857..4b1af51088 100644--- a/evaluation/benchmarks/multi_swe_bench/eval_infer.py+++ b/evaluation/benchmarks/multi_swe_bench/eval_infer.py@@ -120,9 +120,9 @@ def process_instance("""# Setup the logger properly, so you can run multi-processing to parallelize the evaluationif reset_logger:- assert (- log_dir is not None- ), "Can't reset logger without a provided log directory."+ assert log_dir is not None, (+ "Can't reset logger without a provided log directory."+ )os.makedirs(log_dir, exist_ok=True)reset_logger_for_multiprocessing(logger, instance.instance_id, log_dir)else:@@ -289,7 +289,7 @@ def process_instance()report = _report[instance_id]logger.info(- f"[{instance_id}] report: {report}\nResult for {instance_id}: resolved: {report['resolved']}"+ f'[{instance_id}] report: {report}\nResult for {instance_id}: resolved: {report["resolved"]}')instance['test_result']['report']['resolved'] = report['resolved'@@ -365,9 +365,9 @@ if __name__ == '__main__':for line in tqdm(f, desc='Loading predictions')])- assert (- 'instance_id' in predictions.columns- ), 'Input file must contain instance_id column.'+ assert 'instance_id' in predictions.columns, (+ 'Input file must contain instance_id column.'+ )if 'model_patch' not in predictions.columns and ('test_result' in predictions.columns@@ -376,17 +376,17 @@ if __name__ == '__main__':raise ValueError('Input file must contain model_patch column OR test_result column with model_patch field.')- assert len(predictions['instance_id'].unique()) == len(- predictions- ), 'instance_id column must be unique.'+ assert len(predictions['instance_id'].unique()) == len(predictions), (+ 'instance_id column must be unique.'+ )if 'model_patch' not in predictions.columns:predictions['model_patch'] = predictions['test_result'].apply(lambda x: x.get('git_patch', ''))- assert {'instance_id', 'model_patch'}.issubset(- set(predictions.columns)- ), 'Input file must contain instance_id and model_patch columns.'+ assert {'instance_id', 'model_patch'}.issubset(set(predictions.columns)), (+ 'Input file must contain instance_id and model_patch columns.'+ )# Process model_patchpredictions['model_patch'] = predictions['model_patch'].apply(process_git_patch)diff --git a/evaluation/benchmarks/multi_swe_bench/run_infer.py b/evaluation/benchmarks/multi_swe_bench/run_infer.pyindex b09b6f7d34..d62a3ea5b1 100644--- a/evaluation/benchmarks/multi_swe_bench/run_infer.py+++ b/evaluation/benchmarks/multi_swe_bench/run_infer.py@@ -103,21 +103,21 @@ def get_instruction(instance: pd.Series, metadata: EvalMetadata):f'<issue_description>\n'f'{instance.problem_statement}\n''</issue_description>\n\n'- "Can you help me implement the necessary changes to the repository so that the requirements specified in the <issue_description> are met?\n"+ 'Can you help me implement the necessary changes to the repository so that the requirements specified in the <issue_description> are met?\n'"I've already taken care of all changes to any of the test files described in the <issue_description>. This means you DON'T have to modify the testing logic or any of the tests in any way!\n""Also the development Java environment is already set up for you (i.e., all dependencies already installed), so you don't need to install other packages.\n"- "Your task is to make the minimal changes to non-test files in the /workspace directory to ensure the <issue_description> is satisfied.\n"- "Follow these steps to resolve the issue:\n"- "1. As a first step, it might be a good idea to explore the repo to familiarize yourself with its structure.\n"+ 'Your task is to make the minimal changes to non-test files in the /workspace directory to ensure the <issue_description> is satisfied.\n'+ 'Follow these steps to resolve the issue:\n'+ '1. As a first step, it might be a good idea to explore the repo to familiarize yourself with its structure.\n''2. Create a Java class to reproduce the error and execute it by first compiling with `javac <classname>.java` and then running with `java <classname>` using the BashTool, to confirm the error\n'- "3. Edit the sourcecode of the repo to resolve the issue.\n"- "4. Rerun your reproduce script or class and confirm that the error is fixed!\n"- "5. Think about edgecases, add comprehensive tests for them in your reproduce class or script, and run them to make sure your fix handles these cases as well.\n"- f"6. Once you are done with the initial implementation, please carefully re-read the problem description and check the difference between the current code and the base commit {instance['base_commit']}. Do you think that the issue has been completely and comprehensively solved? Write tests to check the correctness of the solution, specifically focusing on tests that may point out any remaining problems that are not yet solved. Run all of the tests in the repo and check if any of them fail, and if they do fix the code. Repeat this process of carefully reading the problem description and current implementation, testing, and fixing any problems until you are confident that the current implementation is correct. Find and run any tests in the repo that are related to:\n"- " - The issue you are fixing\n"- " - The files you modified\n"- " - The functions or classes you changed\n"- " Make sure all these tests pass with your changes.\n"+ '3. Edit the sourcecode of the repo to resolve the issue.\n'+ '4. Rerun your reproduce script or class and confirm that the error is fixed!\n'+ '5. Think about edgecases, add comprehensive tests for them in your reproduce class or script, and run them to make sure your fix handles these cases as well.\n'+ f'6. Once you are done with the initial implementation, please carefully re-read the problem description and check the difference between the current code and the base commit {instance["base_commit"]}. Do you think that the issue has been completely and comprehensively solved? Write tests to check the correctness of the solution, specifically focusing on tests that may point out any remaining problems that are not yet solved. Run all of the tests in the repo and check if any of them fail, and if they do fix the code. Repeat this process of carefully reading the problem description and current implementation, testing, and fixing any problems until you are confident that the current implementation is correct. Find and run any tests in the repo that are related to:\n'+ ' - The issue you are fixing\n'+ ' - The files you modified\n'+ ' - The functions or classes you changed\n'+ ' Make sure all these tests pass with your changes.\n'"Your thinking should be thorough and so it's fine if it's very long.\n"),'go': (@@ -275,9 +275,7 @@ def get_instruction(instance: pd.Series, metadata: EvalMetadata):if instruction and RUN_WITH_BROWSING:instruction += (- '<IMPORTANT!>\n'- 'You SHOULD NEVER attempt to browse the web. '- '</IMPORTANT!>\n'+ '<IMPORTANT!>\nYou SHOULD NEVER attempt to browse the web. </IMPORTANT!>\n')return instructiondiff --git a/evaluation/benchmarks/multi_swe_bench/scripts/data/data_change.py b/evaluation/benchmarks/multi_swe_bench/scripts/data/data_change.pyindex 298e9196ab..6500ada46e 100644--- a/evaluation/benchmarks/multi_swe_bench/scripts/data/data_change.py+++ b/evaluation/benchmarks/multi_swe_bench/scripts/data/data_change.py@@ -3,9 +3,10 @@ import jsoninput_file = 'XXX.jsonl'output_file = 'YYY.jsonl'-with open(input_file, 'r', encoding='utf-8') as fin, open(- output_file, 'w', encoding='utf-8'-) as fout:+with (+ open(input_file, 'r', encoding='utf-8') as fin,+ open(output_file, 'w', encoding='utf-8') as fout,+):for line in fin:line = line.strip()if not line:diff --git a/evaluation/benchmarks/scienceagentbench/run_infer.py b/evaluation/benchmarks/scienceagentbench/run_infer.pyindex fe0cd7ef3a..6e4a6fe12a 100644--- a/evaluation/benchmarks/scienceagentbench/run_infer.py+++ b/evaluation/benchmarks/scienceagentbench/run_infer.py@@ -92,7 +92,7 @@ def initialize_runtime(This function is called before the runtime is used to run the agent."""- logger.info(f"{'-' * 50} BEGIN Runtime Initialization Fn {'-' * 50}")+ logger.info(f'{"-" * 50} BEGIN Runtime Initialization Fn {"-" * 50}')obs: CmdOutputObservation# Set up workspace directories@@ -123,7 +123,7 @@ def initialize_runtime(assert obs.exit_code == 0assert dataset_name in obs.content- logger.info(f"{'-' * 50} END Runtime Initialization Fn {'-' * 50}")+ logger.info(f'{"-" * 50} END Runtime Initialization Fn {"-" * 50}')def complete_runtime(@@ -136,7 +136,7 @@ def complete_runtime(If you need to do something in the sandbox to get the correctness metric afterthe agent has run, modify this function."""- logger.info(f"{'-' * 50} BEGIN Runtime Completion Fn {'-' * 50}")+ logger.info(f'{"-" * 50} BEGIN Runtime Completion Fn {"-" * 50}')obs: CmdOutputObservationtest_result = {}@@ -156,7 +156,7 @@ def complete_runtime(else:test_result = {'program': 'ERROR'}- logger.info(f"{'-' * 50} END Runtime Completion Fn {'-' * 50}")+ logger.info(f'{"-" * 50} END Runtime Completion Fn {"-" * 50}')return test_resultdiff --git a/evaluation/benchmarks/swe_bench/eval_infer.py b/evaluation/benchmarks/swe_bench/eval_infer.pyindex 93376c9acd..c8d68fe6e5 100644--- a/evaluation/benchmarks/swe_bench/eval_infer.py+++ b/evaluation/benchmarks/swe_bench/eval_infer.py@@ -129,15 +129,15 @@ def process_instance(AssertionError: if `conditional_imports` is not provided."""- assert (- conditional_imports is not None- ), 'conditional_imports must be provided to run process_instance using multiprocessing'+ assert conditional_imports is not None, (+ 'conditional_imports must be provided to run process_instance using multiprocessing'+ )# Setup the logger properly, so you can run multi-processing to parallelize the evaluationif reset_logger:- assert (- log_dir is not None- ), "Can't reset logger without a provided log directory."+ assert log_dir is not None, (+ "Can't reset logger without a provided log directory."+ )os.makedirs(log_dir, exist_ok=True)reset_logger_for_multiprocessing(logger, instance.instance_id, log_dir)else:@@ -319,7 +319,7 @@ def process_instance()report = _report[instance_id]logger.info(- f"[{instance_id}] report: {report}\nResult for {instance_id}: resolved: {report['resolved']}"+ f'[{instance_id}] report: {report}\nResult for {instance_id}: resolved: {report["resolved"]}')instance['test_result']['report']['resolved'] = report['resolved'@@ -418,9 +418,9 @@ if __name__ == '__main__':for line in tqdm(f, desc='Loading predictions')])- assert (- 'instance_id' in predictions.columns- ), 'Input file must contain instance_id column.'+ assert 'instance_id' in predictions.columns, (+ 'Input file must contain instance_id column.'+ )if 'model_patch' not in predictions.columns and ('test_result' in predictions.columns@@ -429,17 +429,17 @@ if __name__ == '__main__':raise ValueError('Input file must contain model_patch column OR test_result column with model_patch field.')- assert len(predictions['instance_id'].unique()) == len(- predictions- ), 'instance_id column must be unique.'+ assert len(predictions['instance_id'].unique()) == len(predictions), (+ 'instance_id column must be unique.'+ )if 'model_patch' not in predictions.columns:predictions['model_patch'] = predictions['test_result'].apply(lambda x: x.get('git_patch', ''))- assert {'instance_id', 'model_patch'}.issubset(- set(predictions.columns)- ), 'Input file must contain instance_id and model_patch columns.'+ assert {'instance_id', 'model_patch'}.issubset(set(predictions.columns)), (+ 'Input file must contain instance_id and model_patch columns.'+ )# Process model_patchpredictions['model_patch'] = predictions['model_patch'].apply(process_git_patch)diff --git a/evaluation/benchmarks/swe_bench/run_infer.py b/evaluation/benchmarks/swe_bench/run_infer.pyindex 65f44a3ac9..ea84f2d191 100644--- a/evaluation/benchmarks/swe_bench/run_infer.py+++ b/evaluation/benchmarks/swe_bench/run_infer.py@@ -160,7 +160,7 @@ Phase 7. VERIFICATION: Test your implementation thoroughly.7.2 Add edge cases to your test script to ensure comprehensive coverage.7.3 Run existing tests related to the modified code to ensure you haven't broken anything.-8. FINAL REVIEW: Carefully re-read the problem description and compare your changes with the base commit {instance["base_commit"]}.+8. FINAL REVIEW: Carefully re-read the problem description and compare your changes with the base commit {instance['base_commit']}.8.1 Ensure you've fully addressed all requirements.8.2 Run any tests in the repository related to:8.2.1 The issue you are fixing@@ -173,16 +173,14 @@ Be thorough in your exploration, testing, and reasoning. It's fine if your thinkif RUN_WITH_BROWSING:instruction += (- '<IMPORTANT!>\n'- 'You SHOULD NEVER attempt to browse the web. '- '</IMPORTANT!>\n'+ '<IMPORTANT!>\nYou SHOULD NEVER attempt to browse the web. </IMPORTANT!>\n')if 'image_assets' in instance:assets = json.loads(instance['image_assets'])- assert (- 'problem_statement' in assets- ), 'problem_statement is required in image_assets'+ assert 'problem_statement' in assets, (+ 'problem_statement is required in image_assets'+ )image_urls = assets['problem_statement']return MessageAction(content=instruction, image_urls=image_urls)return MessageAction(content=instruction)diff --git a/evaluation/benchmarks/swe_bench/scripts/eval/compare_outputs.py b/evaluation/benchmarks/swe_bench/scripts/eval/compare_outputs.pyindex b31503fd4a..bfb7f81651 100755--- a/evaluation/benchmarks/swe_bench/scripts/eval/compare_outputs.py+++ b/evaluation/benchmarks/swe_bench/scripts/eval/compare_outputs.py@@ -137,7 +137,7 @@ for repo, diff in repo_diffs:is_significant = diff >= thresholdrepo_color = 'red' if is_significant else 'yellow'- print(f"\n{colored(repo, repo_color, attrs=['bold'])}:")+ print(f'\n{colored(repo, repo_color, attrs=["bold"])}:')print(colored(f'Difference: {diff} instances! (Larger diff = Y better)',diff --git a/evaluation/benchmarks/swe_bench/scripts/eval/convert_oh_output_to_md.py b/evaluation/benchmarks/swe_bench/scripts/eval/convert_oh_output_to_md.pyindex fbdeabdb0f..caf71a8e50 100755--- a/evaluation/benchmarks/swe_bench/scripts/eval/convert_oh_output_to_md.py+++ b/evaluation/benchmarks/swe_bench/scripts/eval/convert_oh_output_to_md.py@@ -44,17 +44,17 @@ def convert_history_to_str(history):if isinstance(event, list):# "event" is a legacy pair of (action, observation)event_obj = event_from_dict(event[0])- ret += f'## {i+1}| {event_obj.__class__.__name__}\n\n'+ ret += f'## {i + 1}| {event_obj.__class__.__name__}\n\n'ret += str(event_obj)ret += separatorevent_obj = event_from_dict(event[1])- ret += f'## {i+1}| {event_obj.__class__.__name__}\n\n'+ ret += f'## {i + 1}| {event_obj.__class__.__name__}\n\n'ret += str(event_obj)else:# "event" is a single eventevent_obj = event_from_dict(event)- ret += f'## {i+1}| {event_obj.__class__.__name__}\n\n'+ ret += f'## {i + 1}| {event_obj.__class__.__name__}\n\n'ret += str(event_obj)return ret@@ -105,12 +105,12 @@ def convert_tool_call_to_string(tool_call: dict) -> str:if tool_call['type'] != 'function':raise ValueError("Tool call type must be 'function'.")- ret = f"<function={tool_call['function']['name']}>\n"+ ret = f'<function={tool_call["function"]["name"]}>\n'try:args = json.loads(tool_call['function']['arguments'])except json.JSONDecodeError as e:raise ValueError(- f"Failed to parse arguments as JSON. Arguments: {tool_call['function']['arguments']}"+ f'Failed to parse arguments as JSON. Arguments: {tool_call["function"]["arguments"]}') from efor param_name, param_value in args.items():is_multiline = isinstance(param_value, str) and '\n' in param_valuediff --git a/evaluation/benchmarks/swe_bench/scripts/eval/summarize_outputs.py b/evaluation/benchmarks/swe_bench/scripts/eval/summarize_outputs.pyindex f2fc46095d..9c9335ede2 100755--- a/evaluation/benchmarks/swe_bench/scripts/eval/summarize_outputs.py+++ b/evaluation/benchmarks/swe_bench/scripts/eval/summarize_outputs.py@@ -263,38 +263,38 @@ if __name__ == '__main__':# Print detailed results for single fileprint(f'\nResults for {args.input_path}:')print(- f"Number of resolved: {result['resolved']['count']} / {result['total_instances']} ({result['resolved']['percentage']:.2f}% [{result['resolved']['ci'][0]:.2f}%, {result['resolved']['ci'][1]:.2f}%])"+ f'Number of resolved: {result["resolved"]["count"]} / {result["total_instances"]} ({result["resolved"]["percentage"]:.2f}% [{result["resolved"]["ci"][0]:.2f}%, {result["resolved"]["ci"][1]:.2f}%])')print(- f"Number of empty patch: {result['empty_patches']['count']} / {result['total_instances']} ({result['empty_patches']['percentage']:.2f}%)"+ f'Number of empty patch: {result["empty_patches"]["count"]} / {result["total_instances"]} ({result["empty_patches"]["percentage"]:.2f}%)')print(- f"Number of error lines: {result['errors']['total']} / {result['total_instances']} ({result['errors']['percentage']:.2f}%)"+ f'Number of error lines: {result["errors"]["total"]} / {result["total_instances"]} ({result["errors"]["percentage"]:.2f}%)')print(- f"Number of agent stuck in loop: {result['errors']['stuck_in_loop']['count']} / {result['total_instances']} ({result['errors']['stuck_in_loop']['percentage']:.2f}%)"+ f'Number of agent stuck in loop: {result["errors"]["stuck_in_loop"]["count"]} / {result["total_instances"]} ({result["errors"]["stuck_in_loop"]["percentage"]:.2f}%)')print(- f"Number of unfinished runs: {result['unfinished_runs']['count']} / {result['total_instances']} ({result['unfinished_runs']['percentage']:.2f}%)"+ f'Number of unfinished runs: {result["unfinished_runs"]["count"]} / {result["total_instances"]} ({result["unfinished_runs"]["percentage"]:.2f}%)')- print(f"Total cost: {result['costs']['total']:.2f} USD")+ print(f'Total cost: {result["costs"]["total"]:.2f} USD')print('## Statistics')print(- f"Avg. num of turns per instance: {result['statistics']['avg_turns']:.2f}"+ f'Avg. num of turns per instance: {result["statistics"]["avg_turns"]:.2f}')print(- f"Avg. agent cost per instance: {result['statistics']['costs']['main_agent']:.2f} USD"+ f'Avg. agent cost per instance: {result["statistics"]["costs"]["main_agent"]:.2f} USD')print(- f"Avg. editor cost per instance: {result['statistics']['costs']['editor']:.2f} USD"+ f'Avg. editor cost per instance: {result["statistics"]["costs"]["editor"]:.2f} USD')print(- f"Avg. total cost per instance: {result['statistics']['costs']['total']:.2f} USD"+ f'Avg. total cost per instance: {result["statistics"]["costs"]["total"]:.2f} USD')print('## Detailed error breakdown:')for error, data in result['errors']['breakdown'].items():- print(f"{error}: {data['count']} ({data['percentage']:.2f}%)")+ print(f'{error}: {data["count"]} ({data["percentage"]:.2f}%)')except Exception as e:print(f'Error processing {args.input_path}: {str(e)}')diff --git a/evaluation/benchmarks/swe_bench/scripts/eval/update_output_with_eval.py b/evaluation/benchmarks/swe_bench/scripts/eval/update_output_with_eval.pyindex fd95ae63f1..8524e268a4 100644--- a/evaluation/benchmarks/swe_bench/scripts/eval/update_output_with_eval.py+++ b/evaluation/benchmarks/swe_bench/scripts/eval/update_output_with_eval.py@@ -34,16 +34,16 @@ if os.path.exists(swebench_official_report_json):report = json.load(f)output_md = (- "# SWE-bench Report\n"- "This folder contains the evaluation results of the SWE-bench using the [official evaluation docker containerization](https://github.com/princeton-nlp/SWE-bench/blob/main/docs/20240627_docker/README.md#choosing-the-right-cache_level).\n\n"- "## Summary\n"- f"- total instances: {report['total_instances']}\n"- f"- submitted instances: {report['submitted_instances']}\n"- f"- completed instances: {report['completed_instances']}\n"- f"- empty patch instances: {report['empty_patch_instances']}\n"- f"- resolved instances: {report['resolved_instances']}\n"- f"- unresolved instances: {report['unresolved_instances']}\n"- f"- error instances: {report['error_instances']}\n"+ '# SWE-bench Report\n'+ 'This folder contains the evaluation results of the SWE-bench using the [official evaluation docker containerization](https://github.com/princeton-nlp/SWE-bench/blob/main/docs/20240627_docker/README.md#choosing-the-right-cache_level).\n\n'+ '## Summary\n'+ f'- total instances: {report["total_instances"]}\n'+ f'- submitted instances: {report["submitted_instances"]}\n'+ f'- completed instances: {report["completed_instances"]}\n'+ f'- empty patch instances: {report["empty_patch_instances"]}\n'+ f'- resolved instances: {report["resolved_instances"]}\n'+ f'- unresolved instances: {report["unresolved_instances"]}\n'+ f'- error instances: {report["error_instances"]}\n')output_md += '\n## Resolved Instances\n'@@ -111,12 +111,12 @@ elif os.path.exists(openhands_remote_report_jsonl):print(f'Total instances in eval report: {n_eval_instances}')# Verify no duplicates- assert (- len(instance_ids) == n_instances- ), 'Duplicate instance ids found in original output'- assert (- len(eval_instance_ids) == n_eval_instances- ), 'Duplicate instance ids found in eval report'+ assert len(instance_ids) == n_instances, (+ 'Duplicate instance ids found in original output'+ )+ assert len(eval_instance_ids) == n_eval_instances, (+ 'Duplicate instance ids found in eval report'+ )# Initialize countersstats = {'total': len(instance_ids), 'resolved': 0, 'empty_patch': 0, 'error': 0}@@ -152,7 +152,7 @@ elif os.path.exists(openhands_remote_report_jsonl):# Generate markdown reportdef _instance_id_to_log_path(instance_id):- path = f"{args.input_file.replace('.jsonl', '.swebench_eval.logs')}/instance_{instance_id}.log"+ path = f'{args.input_file.replace(".jsonl", ".swebench_eval.logs")}/instance_{instance_id}.log'return os.path.relpath(path, start=dirname)# ... rest of markdown generation code remains the same ...@@ -228,9 +228,10 @@ if os.path.exists(args.input_file + '.bak'):os.rename(args.input_file, args.input_file + '.bak')# Process and write file row by row-with open(args.input_file + '.bak', 'r') as infile, open(- args.input_file, 'w'-) as outfile:+with (+ open(args.input_file + '.bak', 'r') as infile,+ open(args.input_file, 'w') as outfile,+):for line in tqdm(infile, desc='Updating output file'):data = json.loads(line)instance_id = data['instance_id']diff --git a/evaluation/benchmarks/swe_bench/scripts/eval/verify_costs.py b/evaluation/benchmarks/swe_bench/scripts/eval/verify_costs.pyindex 2e7b151e68..628ecb4fb5 100644--- a/evaluation/benchmarks/swe_bench/scripts/eval/verify_costs.py+++ b/evaluation/benchmarks/swe_bench/scripts/eval/verify_costs.py@@ -20,7 +20,7 @@ def verify_instance_costs(row: pd.Series) -> float:try:metrics = row.get('metrics')if not metrics:- logger.warning(f"Instance {row['instance_id']}: No metrics found")+ logger.warning(f'Instance {row["instance_id"]}: No metrics found')return 0.0accumulated = metrics.get('accumulated_cost')@@ -28,7 +28,7 @@ def verify_instance_costs(row: pd.Series) -> float:if accumulated is None:logger.warning(- f"Instance {row['instance_id']}: No accumulated_cost in metrics"+ f'Instance {row["instance_id"]}: No accumulated_cost in metrics')return 0.0@@ -41,8 +41,8 @@ def verify_instance_costs(row: pd.Series) -> float:if abs(costs[i]['cost'] - costs[i + 1]['cost']) < 1e-6:has_duplicate = Truelogger.debug(- f"Instance {row['instance_id']}: Possible buggy double-counting detected! "- f"Steps {i} and {i+1} have identical costs: {costs[i]['cost']:.2f}"+ f'Instance {row["instance_id"]}: Possible buggy double-counting detected! '+ f'Steps {i} and {i + 1} have identical costs: {costs[i]["cost"]:.2f}')else:all_pairs_match = False@@ -64,15 +64,15 @@ def verify_instance_costs(row: pd.Series) -> float:if not abs(total_cost - accumulated) < 1e-6:logger.warning(- f"Instance {row['instance_id']}: Cost mismatch: "- f"accumulated: {accumulated:.2f}, sum of costs: {total_cost:.2f}, "+ f'Instance {row["instance_id"]}: Cost mismatch: '+ f'accumulated: {accumulated:.2f}, sum of costs: {total_cost:.2f}, ')return total_costexcept Exception as e:logger.error(- f"Error verifying costs for instance {row.get('instance_id', 'UNKNOWN')}: {e}"+ f'Error verifying costs for instance {row.get("instance_id", "UNKNOWN")}: {e}')return 0.0diff --git a/evaluation/benchmarks/swe_bench/scripts/swegym/convert_data.ipynb b/evaluation/benchmarks/swe_bench/scripts/swegym/convert_data.ipynbindex a947bdfa7a..9c1a22cc36 100644--- a/evaluation/benchmarks/swe_bench/scripts/swegym/convert_data.ipynb+++ b/evaluation/benchmarks/swe_bench/scripts/swegym/convert_data.ipynb@@ -46,7 +46,7 @@"for FILE_PATH in FILE_PATHS:\n"," with gzip.open(FILE_PATH, 'rb') as f: # Use 'rb' for gzipped files\n"," for i, line in tqdm(\n",- " enumerate(f), desc=f\"Processing {FILE_PATH.split('/')[-1]}\"\n",+ " enumerate(f), desc=f'Processing {FILE_PATH.split(\"/\")[-1]}'\n"," ):\n"," # Parse only the fields we need\n"," raw_data = json.loads(line)\n",diff --git a/evaluation/benchmarks/testgeneval/eval_infer.py b/evaluation/benchmarks/testgeneval/eval_infer.pyindex dedd741b06..95875b9f8e 100644--- a/evaluation/benchmarks/testgeneval/eval_infer.py+++ b/evaluation/benchmarks/testgeneval/eval_infer.py@@ -54,9 +54,9 @@ logger.info(f'Using docker image prefix: {DOCKER_IMAGE_PREFIX}')def get_config(instance: pd.Series) -> AppConfig:base_container_image = get_instance_docker_image(instance['instance_id_swebench'])- assert (- base_container_image- ), f"Invalid container image for instance {instance['instance_id_swebench']}."+ assert base_container_image, (+ f'Invalid container image for instance {instance["instance_id_swebench"]}.'+ )logger.info(f'Using instance container image: {base_container_image}.')return AppConfig(run_as_openhands=False,@@ -183,9 +183,9 @@ def run_mutation_testing(mutation_action = CmdRunAction(command=f'cat {log_file}')mutation_action.set_hard_timeout(300)mutation_obs = runtime.run_action(mutation_action)- assert isinstance(- mutation_obs, CmdOutputObservation- ), 'Failed to retrieve mutation output.'+ assert isinstance(mutation_obs, CmdOutputObservation), (+ 'Failed to retrieve mutation output.'+ )return mutation_obs.exit_code, mutation_obs.content@@ -294,9 +294,9 @@ def process_instance(AssertionError: if the `reset_logger` flag is set without a provided log directory."""if reset_logger:- assert (- log_dir is not None- ), "Can't reset logger without a provided log directory."+ assert log_dir is not None, (+ "Can't reset logger without a provided log directory."+ )os.makedirs(log_dir, exist_ok=True)reset_logger_for_multiprocessing(logger, instance.instance_id, log_dir)else:@@ -528,9 +528,9 @@ if __name__ == '__main__':# Load predictionsassert args.input_file.endswith('.jsonl'), 'Input file must be a jsonl file.'predictions = pd.read_json(args.input_file, lines=True)- assert (- 'instance_id' in predictions.columns- ), 'Input file must contain instance_id column.'+ assert 'instance_id' in predictions.columns, (+ 'Input file must contain instance_id column.'+ )if 'test_suite' not in predictions.columns and ('test_result' in predictions.columns@@ -562,9 +562,9 @@ if __name__ == '__main__':lambda x: x['test_suite'])- assert len(predictions['instance_id'].unique()) == len(- predictions- ), 'instance_id column must be unique.'+ assert len(predictions['instance_id'].unique()) == len(predictions), (+ 'instance_id column must be unique.'+ )assert {'instance_id_swebench', 'test_suite', 'instance_id'}.issubset(set(predictions.columns)diff --git a/evaluation/benchmarks/testgeneval/metrics.py b/evaluation/benchmarks/testgeneval/metrics.pyindex 16bede8476..01a21444c9 100644--- a/evaluation/benchmarks/testgeneval/metrics.py+++ b/evaluation/benchmarks/testgeneval/metrics.py@@ -1,5 +1,5 @@import sys-from typing import Callable, Dict, List, Optional, Sequence, TypeVar, Union+from typing import Callable, Optional, Sequence, TypeVar, Unionimport nltkimport numpy as np@@ -11,7 +11,7 @@ if sys.getrecursionlimit() < 10_000:sys.setrecursionlimit(10_000)-def bleu(gold: List[str], pred: List[str]) -> float:+def bleu(gold: list[str], pred: list[str]) -> float:"""Calculate BLEU score, using smoothing method 2 with auto reweighting, in the range of 0~100.@@ -29,7 +29,7 @@ def bleu(gold: List[str], pred: List[str]) -> float:)-def batch_bleu(golds: List[List[str]], preds: List[List[str]]) -> List[float]:+def batch_bleu(golds: list[list[str]], preds: list[list[str]]) -> list[float]:"""Calculate BLEU score for a batch of sentences.@@ -42,7 +42,7 @@ def batch_bleu(golds: List[List[str]], preds: List[List[str]]) -> List[float]:return [bleu(gold, pred) for gold, pred in zip(golds, preds)]-def corpus_bleu(golds: List[List[str]], preds: List[List[str]]) -> float:+def corpus_bleu(golds: list[list[str]], preds: list[list[str]]) -> float:"""Calculate corpus-level BLEU score for a batch of sentences.@@ -61,7 +61,7 @@ def corpus_bleu(golds: List[List[str]], preds: List[List[str]]) -> float:def edit_sim(- gold: Union[str, List[str]], pred: Union[str, List[str]], sep: str = ' '+ gold: Union[str, list[str]], pred: Union[str, list[str]], sep: str = ' ') -> float:"""Calculate char-level edit similarity, in the range of 0~100.@@ -81,10 +81,10 @@ def edit_sim(def batch_edit_sim(- golds: List[Union[str, List[str]]],- preds: List[Union[str, List[str]]],+ golds: list[Union[str, list[str]]],+ preds: list[Union[str, list[str]]],sep: str = ' ',-) -> List[float]:+) -> list[float]:"""Calculate char-level edit similarity for a batch of sentences.@@ -114,7 +114,7 @@ def exact_match(gold: T, pred: T) -> float:return 100.0 if gold == pred else 0.0-def batch_exact_match(golds: List[T], preds: List[T]) -> List[float]:+def batch_exact_match(golds: list[T], preds: list[T]) -> list[float]:"""Calculate exact match accuracy for a batch of sentences.@@ -128,8 +128,8 @@ def batch_exact_match(golds: List[T], preds: List[T]) -> List[float]:def rouge_l(- gold: Union[str, List[str]], pred: Union[str, List[str]], sep: str = ' '-) -> Dict[str, float]:+ gold: Union[str, list[str]], pred: Union[str, list[str]], sep: str = ' '+) -> dict[str, float]:"""Calculate ROUGE-L F1, precision, and recall scores, in the range of 0~100.@@ -152,10 +152,10 @@ def rouge_l(def batch_rouge_l(- golds: List[Union[str, List[str]]],- preds: List[Union[str, List[str]]],+ golds: list[Union[str, list[str]]],+ preds: list[Union[str, list[str]]],sep: str = ' ',-) -> Dict[str, List[float]]:+) -> dict[str, list[float]]:"""Calculate ROUGE-L F1, precision, and recall scores for a batch of sentences.@@ -171,8 +171,8 @@ def batch_rouge_l(def accuracy(- gold: List[str],- pred: List[str],+ gold: list[str],+ pred: list[str],ignore: Optional[Sequence[str]] = None,) -> float:"""@@ -206,10 +206,10 @@ def accuracy(def batch_accuracy(- golds: List[List[str]],- preds: List[List[str]],+ golds: list[list[str]],+ preds: list[list[str]],ignore: Optional[Sequence[str]] = None,-) -> List[float]:+) -> list[float]:"""Calculate token-level accuracy for a batch of sentences.@@ -224,8 +224,8 @@ def batch_accuracy(def first_match_to_topk(- first_match_list: List[int], k_values: List[int]-) -> Dict[int, List[float]]:+ first_match_list: list[int], k_values: list[int]+) -> dict[int, list[float]]:"""Calculate top-k accuracy with the first match ranks (1-indexed).@@ -250,7 +250,7 @@ def pass_at_k(n: int, c: int, k: int) -> float:return (1.0 - np.prod(1.0 - k / np.arange(n - c + 1, n + 1)).item()) * 100-def self_bleu(samples: List[List[str]]) -> float:+def self_bleu(samples: list[list[str]]) -> float:"""Calculate self-BLEU among the samples.:param samples: the chosen m samples@@ -273,7 +273,7 @@ def self_bleu(samples: List[List[str]]) -> float:return np.mean(scores).item()-def self_edit_distance(samples: List[Union[str, List[str]]], sep=' ') -> float:+def self_edit_distance(samples: list[Union[str, list[str]]], sep=' ') -> float:"""Calculate self-edit-distance among the samples.:param samples: the chosen m samples@@ -299,7 +299,7 @@ def self_edit_distance(samples: List[Union[str, List[str]]], sep=' ') -> float:return np.mean(scores).item()-QUALITY_METRICS: Dict[str, Callable[[List[str], List[str]], float]] = {+QUALITY_METRICS: dict[str, Callable[[list[str], list[str]], float]] = {'bleu': bleu,'xmatch': exact_match,'edit-sim': edit_sim,diff --git a/evaluation/benchmarks/testgeneval/run_infer.py b/evaluation/benchmarks/testgeneval/run_infer.pyindex c84f2a43e1..0378bf0ee9 100644--- a/evaluation/benchmarks/testgeneval/run_infer.py+++ b/evaluation/benchmarks/testgeneval/run_infer.py@@ -95,9 +95,7 @@ def get_instruction(instance: pd.Series, metadata: EvalMetadata):if RUN_WITH_BROWSING:instruction += (- '<IMPORTANT!>\n'- 'You SHOULD NEVER attempt to browse the web. '- '</IMPORTANT!>\n'+ '<IMPORTANT!>\nYou SHOULD NEVER attempt to browse the web. </IMPORTANT!>\n')return instruction@@ -243,7 +241,7 @@ def initialize_runtime(# Copy the file to the desired locationaction = CmdRunAction(- command=f"cp /tmp/test_suite.py /testbed/{instance['test_file']}"+ command=f'cp /tmp/test_suite.py /testbed/{instance["test_file"]}')action.set_hard_timeout(600)logger.info(action, extra={'msg_type': 'ACTION'})diff --git a/evaluation/benchmarks/testgeneval/scripts/docker/add_testing_dependencies.py b/evaluation/benchmarks/testgeneval/scripts/docker/add_testing_dependencies.pyindex 0430559125..a9b980ca94 100644--- a/evaluation/benchmarks/testgeneval/scripts/docker/add_testing_dependencies.py+++ b/evaluation/benchmarks/testgeneval/scripts/docker/add_testing_dependencies.py@@ -71,9 +71,10 @@ def process_images(dataset, original_namespace, new_namespace, start_instance_idpatch_file_path = 'patch.diff'test_patch_file_path = 'test_patch.diff'- with open(patch_file_path, 'w') as patch_file, open(- test_patch_file_path, 'w'- ) as test_patch_file:+ with (+ open(patch_file_path, 'w') as patch_file,+ open(test_patch_file_path, 'w') as test_patch_file,+ ):patch_file.write(datum['patch'])test_patch_file.write(datum['test_patch'])diff --git a/evaluation/benchmarks/testgeneval/scripts/eval/convert_oh_output_to_md.py b/evaluation/benchmarks/testgeneval/scripts/eval/convert_oh_output_to_md.pyindex 50191d0697..9c6b3645e2 100755--- a/evaluation/benchmarks/testgeneval/scripts/eval/convert_oh_output_to_md.py+++ b/evaluation/benchmarks/testgeneval/scripts/eval/convert_oh_output_to_md.py@@ -34,17 +34,17 @@ def convert_history_to_str(history):if isinstance(event, list):# "event" is a legacy pair of (action, observation)event_obj = event_from_dict(event[0])- ret += f'## {i+1}| {event_obj.__class__.__name__}\n\n'+ ret += f'## {i + 1}| {event_obj.__class__.__name__}\n\n'ret += str(event_obj)ret += separatorevent_obj = event_from_dict(event[1])- ret += f'## {i+1}| {event_obj.__class__.__name__}\n\n'+ ret += f'## {i + 1}| {event_obj.__class__.__name__}\n\n'ret += str(event_obj)else:# "event" is a single eventevent_obj = event_from_dict(event)- ret += f'## {i+1}| {event_obj.__class__.__name__}\n\n'+ ret += f'## {i + 1}| {event_obj.__class__.__name__}\n\n'ret += str(event_obj)return retdiff --git a/evaluation/benchmarks/testgeneval/test_filter.py b/evaluation/benchmarks/testgeneval/test_filter.pyindex 31c308f70d..5d42548765 100644--- a/evaluation/benchmarks/testgeneval/test_filter.py+++ b/evaluation/benchmarks/testgeneval/test_filter.py@@ -1,6 +1,5 @@import astimport re-from typing import List, Tuplefrom evaluation.benchmarks.testgeneval.constants import TestStatusfrom evaluation.benchmarks.testgeneval.log_parsers import (@@ -37,7 +36,7 @@ def extract_preamble_classes_and_functions(code):current_position = 0- def extract_class_body(code: str, start_index: int) -> Tuple[str, int]:+ def extract_class_body(code: str, start_index: int) -> tuple[str, int]:"""Extracts the body of a class from the given code starting from the specified index.Returns the class body and the end index of the class body.@@ -168,7 +167,7 @@ def extract_preamble_classes_and_functions(code):def filter_passing_tests(test_content: str, test_output: str, repo: str-) -> Tuple[str, List[str], List[str]]:+) -> tuple[str, list[str], list[str]]:"""Filter tests based on their execution results.Returns:@@ -246,7 +245,7 @@ def filter_passing_tests(def filter_tests(test_content: str, test_output: str, repo: str-) -> Tuple[str, List[str], List[str]]:+) -> tuple[str, list[str], list[str]]:"""Filter tests using AST parsing to remove failing test functions from the test file.Non-test functions (e.g. setup or helper methods) and classes (even if all test methods are failing)diff --git a/evaluation/benchmarks/testgeneval/utils.py b/evaluation/benchmarks/testgeneval/utils.pyindex f72dcb62a8..8cd81b0139 100644--- a/evaluation/benchmarks/testgeneval/utils.py+++ b/evaluation/benchmarks/testgeneval/utils.py@@ -24,7 +24,7 @@ def get_test_directives(instance: TestGenEvalInstance) -> list:return ['test.py']# Get test directives from test patch and remove non-test files- directives = [f"/testbed/{instance['test_file']}"]+ directives = [f'/testbed/{instance["test_file"]}']# For Django tests, remove extension + "tests/" prefix and convert slashes to dots (module referencing)if instance['repo'] == 'django/django':@@ -65,8 +65,8 @@ def load_testgeneval_dataset(if ids - dataset_ids:raise ValueError((- "Some instance IDs not found in dataset!"- f"\nMissing IDs:\n{' '.join(ids - dataset_ids)}"+ 'Some instance IDs not found in dataset!'+ f'\nMissing IDs:\n{" ".join(ids - dataset_ids)}'))dataset = [instance for instance in dataset if instance['id'] in ids]diff --git a/evaluation/benchmarks/the_agent_company/browsing.py b/evaluation/benchmarks/the_agent_company/browsing.pyindex 3abb871e78..acf8901e96 100644--- a/evaluation/benchmarks/the_agent_company/browsing.py+++ b/evaluation/benchmarks/the_agent_company/browsing.py@@ -7,7 +7,7 @@ import osimport refrom dataclasses import dataclassfrom enum import Enum, auto-from typing import Dict, List, Union+from typing import Unionfrom openhands.core.logger import openhands_logger as loggerfrom openhands.events.action import BrowseInteractiveAction@@ -100,7 +100,7 @@ class ClickAction(BrowserAction):return f'click("{self.selector}")'-def parse_content_to_elements(content: str) -> Dict[str, str]:+def parse_content_to_elements(content: str) -> dict[str, str]:"""Parse the observation content into a dictionary mapping anchors to their descriptions"""elements = {}current_anchor = None@@ -170,7 +170,7 @@ def resolve_action(action: BrowserAction, content: str) -> BrowserAction:def pre_login(runtime: Runtime,- services: List[str],+ services: list[str],save_screenshots=True,screenshots_dir='screenshots',):diff --git a/evaluation/benchmarks/the_agent_company/run_infer.py b/evaluation/benchmarks/the_agent_company/run_infer.pyindex 2127e3c683..50e92e19c9 100644--- a/evaluation/benchmarks/the_agent_company/run_infer.py+++ b/evaluation/benchmarks/the_agent_company/run_infer.py@@ -8,7 +8,6 @@ import jsonimport osimport shutilimport tempfile-from typing import Listimport yamlfrom browsing import pre_login@@ -68,7 +67,7 @@ def get_config(return config-def load_dependencies(runtime: Runtime) -> List[str]:+def load_dependencies(runtime: Runtime) -> list[str]:"""Every task has a dependencies.yml file, which lists all the services that thetask depends on. This function loads the file and returns all dependent service names.@@ -128,7 +127,7 @@ def run_solver(runtime: Runtime,task_name: str,config: AppConfig,- dependencies: List[str],+ dependencies: list[str],save_final_state: bool,state_dir: str,save_screenshots: bool,diff --git a/evaluation/benchmarks/the_agent_company/scripts/summarise_results.py b/evaluation/benchmarks/the_agent_company/scripts/summarise_results.pyindex e30ae9de3c..175894ac91 100644--- a/evaluation/benchmarks/the_agent_company/scripts/summarise_results.py+++ b/evaluation/benchmarks/the_agent_company/scripts/summarise_results.py@@ -8,7 +8,6 @@ import jsonimport osimport reimport sys-from typing import Dict, Tupledef calculate_cost(model: str, prompt_tokens: int, completion_tokens: int) -> float:@@ -60,7 +59,7 @@ def calculate_cost(model: str, prompt_tokens: int, completion_tokens: int) -> flraise ValueError(f'Unknown model: {model}')-def analyze_eval_json_file(filepath: str) -> Tuple[int, int]:+def analyze_eval_json_file(filepath: str) -> tuple[int, int]:"""Analyze a single eval JSON file and extract the total and result from final_score.@@ -84,7 +83,7 @@ def analyze_eval_json_file(filepath: str) -> Tuple[int, int]:return (0, 0)-def analyze_traj_json_file(filepath: str) -> Tuple[int, float]:+def analyze_traj_json_file(filepath: str) -> tuple[int, float]:"""Analyze a single trajectory JSON file and extract the steps and tokensfor each step. Then estimate the cost based on the tokens and the model type.@@ -115,7 +114,7 @@ def analyze_traj_json_file(filepath: str) -> Tuple[int, float]:def analyze_folder(folder_path: str,-) -> Tuple[Dict[str, Tuple[int, int]], Dict[str, Tuple[int, float]]]:+) -> tuple[dict[str, tuple[int, int]], dict[str, tuple[int, float]]]:"""Analyze all eval_*.json & traj_*.json files in the specified folder.@@ -252,7 +251,7 @@ def main():print('\n## Summary\n')print(f'**Tasks Evaluated:** {len(eval_results)}\n')print(- f'**Perfect Completions:** {perfect_completions}/{len(eval_results)} ({(perfect_completions/len(eval_results)*100):.2f}%)\n'+ f'**Perfect Completions:** {perfect_completions}/{len(eval_results)} ({(perfect_completions / len(eval_results) * 100):.2f}%)\n')overall_score = (@@ -278,10 +277,10 @@ def main():print('\n## Statistics\n')print('| Metric | Value |')print('|---------|--------|')- print(f'| Highest Task Score | {highest_score*100:.2f}% |')- print(f'| Lowest Task Score | {lowest_score*100:.2f}% |')- print(f'| Median Task Score | {median_score*100:.2f}% |')- print(f'| Average Task Score | {avg_score*100:.2f}% |')+ print(f'| Highest Task Score | {highest_score * 100:.2f}% |')+ print(f'| Lowest Task Score | {lowest_score * 100:.2f}% |')+ print(f'| Median Task Score | {median_score * 100:.2f}% |')+ print(f'| Average Task Score | {avg_score * 100:.2f}% |')# compute avg score per nature categoryprint('\n## Statistics per Nature Category\n')@@ -307,9 +306,11 @@ def main():if nature_category == task_nature and is_perfect)print(- f'| Perfect Completions for {task_nature} | {perfect_completions}/{num_of_tasks} ({perfect_completions/num_of_tasks*100:.2f}%) |'+ f'| Perfect Completions for {task_nature} | {perfect_completions}/{num_of_tasks} ({perfect_completions / num_of_tasks * 100:.2f}%) |'+ )+ print(+ f'| Average Score for {task_nature} | {task_nature_score * 100:.2f}% |')- print(f'| Average Score for {task_nature} | {task_nature_score*100:.2f}% |')if __name__ == '__main__':diff --git a/evaluation/benchmarks/toolqa/run_infer.py b/evaluation/benchmarks/toolqa/run_infer.pyindex 2fc670e568..bde3399e20 100644--- a/evaluation/benchmarks/toolqa/run_infer.py+++ b/evaluation/benchmarks/toolqa/run_infer.py@@ -64,7 +64,7 @@ def initialize_runtime(runtime: Runtime):This function is called before the runtime is used to run the agent."""- logger.info(f"{'-' * 50} BEGIN Runtime Initialization Fn {'-' * 50}")+ logger.info(f'{"-" * 50} BEGIN Runtime Initialization Fn {"-" * 50}')obs: CmdOutputObservation# Set instance id@@ -80,7 +80,7 @@ def initialize_runtime(runtime: Runtime):runtime.add_env_vars({'WOLFRAM_ALPHA_APPID': args.wolfram_alpha_appid})- logger.info(f"{'-' * 50} END Runtime Initialization Fn {'-' * 50}")+ logger.info(f'{"-" * 50} END Runtime Initialization Fn {"-" * 50}')def process_instance(instance: Any, metadata: EvalMetadata, reset_logger: bool = True):diff --git a/evaluation/benchmarks/visualwebarena/run_infer.py b/evaluation/benchmarks/visualwebarena/run_infer.pyindex 75529155a2..bbd5515cb4 100644--- a/evaluation/benchmarks/visualwebarena/run_infer.py+++ b/evaluation/benchmarks/visualwebarena/run_infer.py@@ -100,7 +100,7 @@ def initialize_runtime(This function is called before the runtime is used to run the agent."""- logger.info(f"{'-' * 50} BEGIN Runtime Initialization Fn {'-' * 50}")+ logger.info(f'{"-" * 50} BEGIN Runtime Initialization Fn {"-" * 50}')obs: CmdOutputObservation# Set instance id@@ -116,7 +116,7 @@ def initialize_runtime(goal_image_urls = []if hasattr(obs, 'goal_image_urls'):goal_image_urls = obs.goal_image_urls- logger.info(f"{'-' * 50} END Runtime Initialization Fn {'-' * 50}")+ logger.info(f'{"-" * 50} END Runtime Initialization Fn {"-" * 50}')return goal, goal_image_urls@@ -129,7 +129,7 @@ def complete_runtime(If you need to do something in the sandbox to get the correctness metric afterthe agent has run, modify this function."""- logger.info(f"{'-' * 50} BEGIN Runtime Completion Fn {'-' * 50}")+ logger.info(f'{"-" * 50} BEGIN Runtime Completion Fn {"-" * 50}')obs: CmdOutputObservationaction = BrowseInteractiveAction(browser_actions=BROWSER_EVAL_GET_REWARDS_ACTION)@@ -137,7 +137,7 @@ def complete_runtime(obs = runtime.run_action(action)logger.info(obs, extra={'msg_type': 'OBSERVATION'})- logger.info(f"{'-' * 50} END Runtime Completion Fn {'-' * 50}")+ logger.info(f'{"-" * 50} END Runtime Completion Fn {"-" * 50}')return {'rewards': json.loads(obs.content),}diff --git a/evaluation/benchmarks/webarena/run_infer.py b/evaluation/benchmarks/webarena/run_infer.pyindex a9b251b90a..d93a423343 100644--- a/evaluation/benchmarks/webarena/run_infer.py+++ b/evaluation/benchmarks/webarena/run_infer.py@@ -87,7 +87,7 @@ def initialize_runtime(This function is called before the runtime is used to run the agent."""- logger.info(f"{'-' * 50} BEGIN Runtime Initialization Fn {'-' * 50}")+ logger.info(f'{"-" * 50} BEGIN Runtime Initialization Fn {"-" * 50}')obs: CmdOutputObservation# Set instance id@@ -102,7 +102,7 @@ def initialize_runtime(logger.info(obs, extra={'msg_type': 'OBSERVATION'})goal = obs.content- logger.info(f"{'-' * 50} END Runtime Initialization Fn {'-' * 50}")+ logger.info(f'{"-" * 50} END Runtime Initialization Fn {"-" * 50}')return goal@@ -115,7 +115,7 @@ def complete_runtime(If you need to do something in the sandbox to get the correctness metric afterthe agent has run, modify this function."""- logger.info(f"{'-' * 50} BEGIN Runtime Completion Fn {'-' * 50}")+ logger.info(f'{"-" * 50} BEGIN Runtime Completion Fn {"-" * 50}')obs: CmdOutputObservationaction = BrowseInteractiveAction(browser_actions=BROWSER_EVAL_GET_REWARDS_ACTION)@@ -123,7 +123,7 @@ def complete_runtime(obs = runtime.run_action(action)logger.info(obs, extra={'msg_type': 'OBSERVATION'})- logger.info(f"{'-' * 50} END Runtime Completion Fn {'-' * 50}")+ logger.info(f'{"-" * 50} END Runtime Completion Fn {"-" * 50}')return {'rewards': json.loads(obs.content),}diff --git a/evaluation/integration_tests/run_infer.py b/evaluation/integration_tests/run_infer.pyindex 5e8dff1b5e..748b7d0489 100644--- a/evaluation/integration_tests/run_infer.py+++ b/evaluation/integration_tests/run_infer.py@@ -93,14 +93,14 @@ def process_instance(spec = importlib.util.spec_from_file_location(instance_id, instance.file_path)test_module = importlib.util.module_from_spec(spec)spec.loader.exec_module(test_module)- assert hasattr(- test_module, 'Test'- ), f'Test module {instance_id} does not have a Test class'+ assert hasattr(test_module, 'Test'), (+ f'Test module {instance_id} does not have a Test class'+ )test_class: type[BaseIntegrationTest] = test_module.Test- assert issubclass(- test_class, BaseIntegrationTest- ), f'Test class {instance_id} does not inherit from BaseIntegrationTest'+ assert issubclass(test_class, BaseIntegrationTest), (+ f'Test class {instance_id} does not inherit from BaseIntegrationTest'+ )instruction = test_class.INSTRUCTIONdiff --git a/evaluation/regression/conftest.py b/evaluation/regression/conftest.pyindex d9ec620d80..a313e6f0ee 100644--- a/evaluation/regression/conftest.py+++ b/evaluation/regression/conftest.py@@ -132,7 +132,7 @@ def run_test_case(test_cases_dir, workspace_dir, request):'python3',f'{SCRIPT_DIR}/../../openhands/main.py','-d',- f"{os.path.join(agent_dir, 'workspace')}",+ f'{os.path.join(agent_dir, "workspace")}','-c',f'{agents_ref[agent]}','-t',@@ -165,7 +165,7 @@ def pytest_configure(config):level=logging.INFO,format='%(asctime)s [%(levelname)s] %(message)s',handlers=[- logging.FileHandler(f"test_results_{now.strftime('%Y%m%d_%H%M%S')}.log"),+ logging.FileHandler(f'test_results_{now.strftime("%Y%m%d_%H%M%S")}.log'),logging.StreamHandler(),],)diff --git a/evaluation/utils/shared.py b/evaluation/utils/shared.pyindex 13ea32318e..009903f692 100644--- a/evaluation/utils/shared.py+++ b/evaluation/utils/shared.py@@ -221,9 +221,9 @@ def prepare_dataset(eval_ids: list[str] | None = None,skip_num: int | None = None,):- assert (- 'instance_id' in dataset.columns- ), "Expected 'instance_id' column in the dataset. You should define your own unique identifier for each instance and use it as the 'instance_id' column."+ assert 'instance_id' in dataset.columns, (+ "Expected 'instance_id' column in the dataset. You should define your own unique identifier for each instance and use it as the 'instance_id' column."+ )id_column = 'instance_id'logger.info(f'Writing evaluation output to {output_file}')finished_ids: set[str] = set()diff --git a/frontend/src/i18n/translation.json b/frontend/src/i18n/translation.jsonindex 774df740ee..1a08e027f0 100644--- a/frontend/src/i18n/translation.json+++ b/frontend/src/i18n/translation.json@@ -7996,4 +7996,4 @@"de": "Profi-Tipp","uk": "Порада професіонала"}-}\ No newline at end of file+}diff --git a/openhands/agenthub/codeact_agent/tools/bash.py b/openhands/agenthub/codeact_agent/tools/bash.pyindex cd2d2388e1..fac350c981 100644--- a/openhands/agenthub/codeact_agent/tools/bash.py+++ b/openhands/agenthub/codeact_agent/tools/bash.py@@ -39,7 +39,9 @@ def refine_prompt(prompt: str):def create_cmd_run_tool(use_short_description: bool = False,) -> ChatCompletionToolParam:- description = _SHORT_BASH_DESCRIPTION if use_short_description else _DETAILED_BASH_DESCRIPTION+ description = (+ _SHORT_BASH_DESCRIPTION if use_short_description else _DETAILED_BASH_DESCRIPTION+ )return ChatCompletionToolParam(type='function',function=ChatCompletionToolParamFunctionChunk(diff --git a/openhands/agenthub/codeact_agent/tools/browser.py b/openhands/agenthub/codeact_agent/tools/browser.pyindex 3ac339aeaf..9b5003926c 100644--- a/openhands/agenthub/codeact_agent/tools/browser.py+++ b/openhands/agenthub/codeact_agent/tools/browser.py@@ -131,12 +131,12 @@ upload_file(bid: str, file: str | list[str])for _, action in _browser_action_space.action_set.items():- assert (- action.signature in _BROWSER_TOOL_DESCRIPTION- ), f'Browser description mismatch. Please double check if the BrowserGym updated their action space.\n\nAction: {action.signature}'- assert (- action.description in _BROWSER_TOOL_DESCRIPTION- ), f'Browser description mismatch. Please double check if the BrowserGym updated their action space.\n\nAction: {action.description}'+ assert action.signature in _BROWSER_TOOL_DESCRIPTION, (+ f'Browser description mismatch. Please double check if the BrowserGym updated their action space.\n\nAction: {action.signature}'+ )+ assert action.description in _BROWSER_TOOL_DESCRIPTION, (+ f'Browser description mismatch. Please double check if the BrowserGym updated their action space.\n\nAction: {action.description}'+ )BrowserTool = ChatCompletionToolParam(type='function',diff --git a/openhands/agenthub/readonly_agent/readonly_agent.py b/openhands/agenthub/readonly_agent/readonly_agent.pyindex b196c7b362..d30fe6163c 100644--- a/openhands/agenthub/readonly_agent/readonly_agent.py+++ b/openhands/agenthub/readonly_agent/readonly_agent.py@@ -52,7 +52,7 @@ class ReadOnlyAgent(CodeActAgent):super().__init__(llm, config)logger.debug(- f"TOOLS loaded for ReadOnlyAgent: {', '.join([tool.get('function').get('name') for tool in self.tools])}"+ f'TOOLS loaded for ReadOnlyAgent: {", ".join([tool.get("function").get("name") for tool in self.tools])}')@propertydiff --git a/openhands/agenthub/visualbrowsing_agent/visualbrowsing_agent.py b/openhands/agenthub/visualbrowsing_agent/visualbrowsing_agent.pyindex 77b47d8d93..d0c26b0bb4 100644--- a/openhands/agenthub/visualbrowsing_agent/visualbrowsing_agent.py+++ b/openhands/agenthub/visualbrowsing_agent/visualbrowsing_agent.py@@ -42,7 +42,7 @@ Review the current state of the page and all other information to find the bestgoal_image_urls = []if image_urls is not None:for idx, url in enumerate(image_urls):- goal_txt = goal_txt + f'Images: Goal input image ({idx+1})\n'+ goal_txt = goal_txt + f'Images: Goal input image ({idx + 1})\n'goal_image_urls.append(url)goal_txt += '\n'return goal_txt, goal_image_urls@@ -111,7 +111,7 @@ Note: This action set allows you to interact with your environment. Most of themdef get_history_prompt(prev_actions: list[BrowseInteractiveAction]) -> str:history_prompt = ['# History of all previous interactions with the task:\n']for i in range(len(prev_actions)):- history_prompt.append(f'## step {i+1}')+ history_prompt.append(f'## step {i + 1}')history_prompt.append(f'\nOuput thought and action: {prev_actions[i].thought} ```{prev_actions[i].browser_actions}```\n')diff --git a/openhands/cli/main.py b/openhands/cli/main.pyindex 47aa0ad341..bc51dbbc0c 100644--- a/openhands/cli/main.py+++ b/openhands/cli/main.py@@ -288,7 +288,12 @@ async def main(loop: asyncio.AbstractEventLoop):# Use settings from settings store if available and override with command line argumentsif settings:- config.default_agent = args.agent_cls if args.agent_cls else settings.agent+ if args.agent_cls:+ config.default_agent = str(args.agent_cls)+ else:+ # settings.agent is not None because we check for it in setup_config_from_args+ assert settings.agent is not None+ config.default_agent = settings.agentif not args.llm_config and settings.llm_model and settings.llm_api_key:llm_config = config.get_llm_config()llm_config.model = settings.llm_modeldiff --git a/openhands/cli/settings.py b/openhands/cli/settings.pyindex 2cd15dcf6f..eeee3cc74f 100644--- a/openhands/cli/settings.py+++ b/openhands/cli/settings.py@@ -84,7 +84,7 @@ def display_settings(config: AppConfig):# Construct the summary text with aligned columnssettings_lines = [- f'{label+":":<{max_label_width+1}} {value:<}' # Changed value alignment to left (<)+ f'{label + ":":<{max_label_width + 1}} {value:<}' # Changed value alignment to left (<)for label, value in str_labels_and_values]settings_text = '\n'.join(settings_lines)diff --git a/openhands/cli/tui.py b/openhands/cli/tui.pyindex 74541ea2f5..ae8981610a 100644--- a/openhands/cli/tui.py+++ b/openhands/cli/tui.py@@ -549,7 +549,7 @@ def cli_confirm(] + [('class:selected' if i == selected[0] else 'class:unselected',- f"{'> ' if i == selected[0] else ' '}{choice}\n",+ f'{"> " if i == selected[0] else " "}{choice}\n',)for i, choice in enumerate(choices)]diff --git a/openhands/controller/agent.py b/openhands/controller/agent.pyindex bbef46f3d0..6803386215 100644--- a/openhands/controller/agent.py+++ b/openhands/controller/agent.py@@ -167,17 +167,17 @@ class Agent(ABC):- mcp_tools (list[dict]): The list of MCP tools."""logger.info(- f"Setting {len(mcp_tools)} MCP tools for agent {self.name}: {[tool['function']['name'] for tool in mcp_tools]}"+ f'Setting {len(mcp_tools)} MCP tools for agent {self.name}: {[tool["function"]["name"] for tool in mcp_tools]}')for tool in mcp_tools:_tool = ChatCompletionToolParam(**tool)if _tool['function']['name'] in self.mcp_tools:logger.warning(- f"Tool {_tool['function']['name']} already exists, skipping"+ f'Tool {_tool["function"]["name"]} already exists, skipping')continueself.mcp_tools[_tool['function']['name']] = _toolself.tools.append(_tool)logger.info(- f"Tools updated for agent {self.name}, total {len(self.tools)}: {[tool['function']['name'] for tool in self.tools]}"+ f'Tools updated for agent {self.name}, total {len(self.tools)}: {[tool["function"]["name"] for tool in self.tools]}')diff --git a/openhands/controller/state/state.py b/openhands/controller/state/state.pyindex 847b513b5e..403dcc050e 100644--- a/openhands/controller/state/state.py+++ b/openhands/controller/state/state.py@@ -220,7 +220,7 @@ class State:'trace_version': openhands.__version__,'tags': [f'agent:{agent_name}',- f"web_host:{os.environ.get('WEB_HOST', 'unspecified')}",+ f'web_host:{os.environ.get("WEB_HOST", "unspecified")}',f'openhands_version:{openhands.__version__}',],}diff --git a/openhands/core/main.py b/openhands/core/main.pyindex 8c44260bbe..9f6326336a 100644--- a/openhands/core/main.py+++ b/openhands/core/main.py@@ -142,9 +142,9 @@ async def run_controller(agent, runtime, config, replay_events=replay_events)- assert isinstance(- initial_user_action, Action- ), f'initial user actions must be an Action, got {type(initial_user_action)}'+ assert isinstance(initial_user_action, Action), (+ f'initial user actions must be an Action, got {type(initial_user_action)}'+ )logger.debug(f'Agent Controller Initialized: Running agent {agent.name}, model 'f'{agent.llm.config.model}, with actions: {initial_user_action}'diff --git a/openhands/core/message.py b/openhands/core/message.pyindex 539df52b5e..c5c026361d 100644--- a/openhands/core/message.py+++ b/openhands/core/message.py@@ -149,9 +149,9 @@ class Message(BaseModel):# an observation message with tool responseif self.tool_call_id is not None:- assert (- self.name is not None- ), 'name is required when tool_call_id is not None'+ assert self.name is not None, (+ 'name is required when tool_call_id is not None'+ )message_dict['tool_call_id'] = self.tool_call_idmessage_dict['name'] = self.namediff --git a/openhands/events/action/browse.py b/openhands/events/action/browse.pyindex 418dd04443..c68c27ac0f 100644--- a/openhands/events/action/browse.py+++ b/openhands/events/action/browse.py@@ -36,9 +36,7 @@ class BrowseInteractiveAction(Action):@propertydef message(self) -> str:- return (- f'I am interacting with the browser:\n' f'```\n{self.browser_actions}\n```'- )+ return f'I am interacting with the browser:\n```\n{self.browser_actions}\n```'def __str__(self) -> str:ret = '**BrowseInteractiveAction**\n'diff --git a/openhands/events/observation/files.py b/openhands/events/observation/files.pyindex d6cdd5857e..673018a833 100644--- a/openhands/events/observation/files.py+++ b/openhands/events/observation/files.py@@ -115,13 +115,13 @@ class FileEditObservation(Observation):for idx, line in enumerate(old_lines[i1:i2]):line_num = i1 + idx + 1cur_group['before_edits'].append(- f'-{line_num:>{_indent_pad_size-1}}|{line}'+ f'-{line_num:>{_indent_pad_size - 1}}|{line}')if tag in {'replace', 'insert'}:for idx, line in enumerate(new_lines[j1:j2]):line_num = j1 + idx + 1cur_group['after_edits'].append(- f'+{line_num:>{_indent_pad_size-1}}|{line}'+ f'+{line_num:>{_indent_pad_size - 1}}|{line}')edit_groups.append(cur_group)return edit_groups@@ -169,12 +169,12 @@ class FileEditObservation(Observation):for i, cur_edit_group in enumerate(edit_groups):if i != 0:result.append('-------------------------')- result.append(f'[begin of {op_type} {i+1} / {len(edit_groups)}]')+ result.append(f'[begin of {op_type} {i + 1} / {len(edit_groups)}]')result.append(f'(content before {op_type})')result.extend(cur_edit_group['before_edits'])result.append(f'(content after {op_type})')result.extend(cur_edit_group['after_edits'])- result.append(f'[end of {op_type} {i+1} / {len(edit_groups)}]')+ result.append(f'[end of {op_type} {i + 1} / {len(edit_groups)}]')# Cache the resultself._diff_cache = '\n'.join(result)@@ -186,9 +186,9 @@ class FileEditObservation(Observation):return self.contentif not self.prev_exist:- assert (- self.old_content == ''- ), 'old_content should be empty if the file is new (prev_exist=False).'+ assert self.old_content == '', (+ 'old_content should be empty if the file is new (prev_exist=False).'+ )return f'[New file {self.path} is created with the provided content.]\n'# Use cached diff if available, otherwise compute itdiff --git a/openhands/integrations/github/github_service.py b/openhands/integrations/github/github_service.pyindex e3eacf7dff..36dcd122c1 100644--- a/openhands/integrations/github/github_service.py+++ b/openhands/integrations/github/github_service.py@@ -277,7 +277,7 @@ class GitHubService(BaseGitService, GitService):result = response.json()if 'errors' in result:raise UnknownException(- f"GraphQL query error: {json.dumps(result['errors'])}"+ f'GraphQL query error: {json.dumps(result["errors"])}')return dict(result)diff --git a/openhands/llm/fn_call_converter.py b/openhands/llm/fn_call_converter.pyindex 6cb73389d4..45abca4ecc 100644--- a/openhands/llm/fn_call_converter.py+++ b/openhands/llm/fn_call_converter.py@@ -253,12 +253,12 @@ def convert_tool_call_to_string(tool_call: dict) -> str:if tool_call['type'] != 'function':raise FunctionCallConversionError("Tool call type must be 'function'.")- ret = f"<function={tool_call['function']['name']}>\n"+ ret = f'<function={tool_call["function"]["name"]}>\n'try:args = json.loads(tool_call['function']['arguments'])except json.JSONDecodeError as e:raise FunctionCallConversionError(- f"Failed to parse arguments as JSON. Arguments: {tool_call['function']['arguments']}"+ f'Failed to parse arguments as JSON. Arguments: {tool_call["function"]["arguments"]}') from efor param_name, param_value in args.items():is_multiline = isinstance(param_value, str) and '\n' in param_value@@ -280,8 +280,8 @@ def convert_tools_to_description(tools: list[dict]) -> str:fn = tool['function']if i > 0:ret += '\n'- ret += f"---- BEGIN FUNCTION #{i+1}: {fn['name']} ----\n"- ret += f"Description: {fn['description']}\n"+ ret += f'---- BEGIN FUNCTION #{i + 1}: {fn["name"]} ----\n'+ ret += f'Description: {fn["description"]}\n'if 'parameters' in fn:ret += 'Parameters:\n'@@ -303,12 +303,12 @@ def convert_tools_to_description(tools: list[dict]) -> str:desc += f'\nAllowed values: [{enum_values}]'ret += (- f' ({j+1}) {param_name} ({param_type}, {param_status}): {desc}\n'+ f' ({j + 1}) {param_name} ({param_type}, {param_status}): {desc}\n')else:ret += 'No parameters are required for this function.\n'- ret += f'---- END FUNCTION #{i+1} ----\n'+ ret += f'---- END FUNCTION #{i + 1} ----\n'return ret@@ -667,7 +667,7 @@ def convert_non_fncall_messages_to_fncall_messages('content': [{'type': 'text', 'text': tool_result}]if isinstance(content, list)else tool_result,- 'tool_call_id': f'toolu_{tool_call_counter-1:02d}', # Use last generated ID+ 'tool_call_id': f'toolu_{tool_call_counter - 1:02d}', # Use last generated ID})else:@@ -790,14 +790,14 @@ def convert_from_multiple_tool_calls_to_single_tool_call_messages(# add the tool resultconverted_messages.append(message)else:- assert (- len(pending_tool_calls) == 0- ), f'Found pending tool calls but not found in pending list: {pending_tool_calls=}'+ assert len(pending_tool_calls) == 0, (+ f'Found pending tool calls but not found in pending list: {pending_tool_calls=}'+ )converted_messages.append(message)else:- assert (- len(pending_tool_calls) == 0- ), f'Found pending tool calls but not expect to handle it with role {role}: {pending_tool_calls=}, {message=}'+ assert len(pending_tool_calls) == 0, (+ f'Found pending tool calls but not expect to handle it with role {role}: {pending_tool_calls=}, {message=}'+ )converted_messages.append(message)if not ignore_final_tool_result and len(pending_tool_calls) > 0:diff --git a/openhands/mcp/utils.py b/openhands/mcp/utils.pyindex 60a10d5c44..ad30b0150f 100644--- a/openhands/mcp/utils.py+++ b/openhands/mcp/utils.py@@ -158,12 +158,12 @@ async def add_mcp_tools_to_agent(ActionExecutionClient, # inline import to avoid circular import)- assert isinstance(- runtime, ActionExecutionClient- ), 'Runtime must be an instance of ActionExecutionClient'- assert (- runtime.runtime_initialized- ), 'Runtime must be initialized before adding MCP tools'+ assert isinstance(runtime, ActionExecutionClient), (+ 'Runtime must be an instance of ActionExecutionClient'+ )+ assert runtime.runtime_initialized, (+ 'Runtime must be initialized before adding MCP tools'+ )# Add the runtime as another MCP serverupdated_mcp_config = runtime.get_updated_mcp_config()@@ -171,7 +171,7 @@ async def add_mcp_tools_to_agent(mcp_tools = await fetch_mcp_tools_from_config(updated_mcp_config)logger.info(- f"Loaded {len(mcp_tools)} MCP tools: {[tool['function']['name'] for tool in mcp_tools]}"+ f'Loaded {len(mcp_tools)} MCP tools: {[tool["function"]["name"] for tool in mcp_tools]}')# Set the MCP tools on the agentdiff --git a/openhands/resolver/interfaces/gitlab.py b/openhands/resolver/interfaces/gitlab.pyindex 22ed3c3e06..eb211e563a 100644--- a/openhands/resolver/interfaces/gitlab.py+++ b/openhands/resolver/interfaces/gitlab.py@@ -214,7 +214,7 @@ class GitlabIssueHandler(IssueHandlerInterface):def reply_to_comment(self, pr_number: int, comment_id: str, reply: str) -> None:response = httpx.get(- f'{self.base_url}/merge_requests/{pr_number}/discussions/{comment_id.split('/')[-1]}',+ f'{self.base_url}/merge_requests/{pr_number}/discussions/{comment_id.split("/")[-1]}',headers=self.headers,)response.raise_for_status()@@ -225,7 +225,7 @@ class GitlabIssueHandler(IssueHandlerInterface):'note_id': discussions.get('notes', [])[-1]['id'],}response = httpx.post(- f'{self.base_url}/merge_requests/{pr_number}/discussions/{comment_id.split('/')[-1]}/notes',+ f'{self.base_url}/merge_requests/{pr_number}/discussions/{comment_id.split("/")[-1]}/notes',headers=self.headers,json=data,)diff --git a/openhands/runtime/builder/remote.py b/openhands/runtime/builder/remote.pyindex c665ced5f0..60dee570a8 100644--- a/openhands/runtime/builder/remote.py+++ b/openhands/runtime/builder/remote.py@@ -99,7 +99,7 @@ class RemoteRuntimeBuilder(RuntimeBuilder):logger.info(f'Build status: {status}')if status == 'SUCCESS':- logger.debug(f"Successfully built {status_data['image']}")+ logger.debug(f'Successfully built {status_data["image"]}')return str(status_data['image'])elif status in ['FAILURE',@@ -139,9 +139,9 @@ class RemoteRuntimeBuilder(RuntimeBuilder):if result['exists']:logger.debug(- f"Image {image_name} exists. "- f"Uploaded at: {result['image']['upload_time']}, "- f"Size: {result['image']['image_size_bytes'] / 1024 / 1024:.2f} MB"+ f'Image {image_name} exists. '+ f'Uploaded at: {result["image"]["upload_time"]}, '+ f'Size: {result["image"]["image_size_bytes"] / 1024 / 1024:.2f} MB')else:logger.debug(f'Image {image_name} does not exist.')diff --git a/openhands/runtime/impl/daytona/daytona_runtime.py b/openhands/runtime/impl/daytona/daytona_runtime.pyindex 0c89bb6da7..95730c82b4 100644--- a/openhands/runtime/impl/daytona/daytona_runtime.py+++ b/openhands/runtime/impl/daytona/daytona_runtime.py@@ -115,12 +115,12 @@ class DaytonaRuntime(ActionExecutionClient):def _construct_api_url(self, port: int) -> str:assert self.workspace is not None, 'Workspace is not initialized'- assert (- self.workspace.instance.info is not None- ), 'Workspace info is not available'- assert (- self.workspace.instance.info.provider_metadata is not None- ), 'Provider metadata is not available'+ assert self.workspace.instance.info is not None, (+ 'Workspace info is not available'+ )+ assert self.workspace.instance.info.provider_metadata is not None, (+ 'Provider metadata is not available'+ )node_domain = json.loads(self.workspace.instance.info.provider_metadata)['nodeDomain'diff --git a/openhands/runtime/impl/e2b/sandbox.py b/openhands/runtime/impl/e2b/sandbox.pyindex 9bcd0f0514..44c015d6f6 100644--- a/openhands/runtime/impl/e2b/sandbox.py+++ b/openhands/runtime/impl/e2b/sandbox.py@@ -40,9 +40,9 @@ class E2BBox:def _archive(self, host_src: str, recursive: bool = False):if recursive:- assert os.path.isdir(- host_src- ), 'Source must be a directory when recursive is True'+ assert os.path.isdir(host_src), (+ 'Source must be a directory when recursive is True'+ )files = glob(host_src + '/**/*', recursive=True)srcname = os.path.basename(host_src)tar_filename = os.path.join(os.path.dirname(host_src), srcname + '.tar')@@ -52,9 +52,9 @@ class E2BBox:file, arcname=os.path.relpath(file, os.path.dirname(host_src)))else:- assert os.path.isfile(- host_src- ), 'Source must be a file when recursive is False'+ assert os.path.isfile(host_src), (+ 'Source must be a file when recursive is False'+ )srcname = os.path.basename(host_src)tar_filename = os.path.join(os.path.dirname(host_src), srcname + '.tar')with tarfile.open(tar_filename, mode='w') as tar:diff --git a/openhands/runtime/impl/remote/remote_runtime.py b/openhands/runtime/impl/remote/remote_runtime.pyindex 161b571914..538656ab68 100644--- a/openhands/runtime/impl/remote/remote_runtime.py+++ b/openhands/runtime/impl/remote/remote_runtime.py@@ -130,12 +130,12 @@ class RemoteRuntime(ActionExecutionClient):)self.container_image = self.config.sandbox.runtime_container_imageself._start_runtime()- assert (- self.runtime_id is not None- ), 'Runtime ID is not set. This should never happen.'- assert (- self.runtime_url is not None- ), 'Runtime URL is not set. This should never happen.'+ assert self.runtime_id is not None, (+ 'Runtime ID is not set. This should never happen.'+ )+ assert self.runtime_url is not None, (+ 'Runtime URL is not set. This should never happen.'+ )self.send_status_message('STATUS$WAITING_FOR_CLIENT')if not self.attach_to_existing:self.log('info', 'Waiting for runtime to be alive...')diff --git a/openhands/runtime/plugins/agent_skills/file_ops/file_ops.py b/openhands/runtime/plugins/agent_skills/file_ops/file_ops.pyindex 3521d5e9d5..640fcbb212 100644--- a/openhands/runtime/plugins/agent_skills/file_ops/file_ops.py+++ b/openhands/runtime/plugins/agent_skills/file_ops/file_ops.py@@ -157,7 +157,7 @@ def _print_window(else:output += '(this is the beginning of the file)\n'for i in range(start, end + 1):- _new_line = f'{i}|{lines[i-1]}'+ _new_line = f'{i}|{lines[i - 1]}'if not _new_line.endswith('\n'):_new_line += '\n'output += _new_linediff --git a/openhands/runtime/plugins/jupyter/execute_server.py b/openhands/runtime/plugins/jupyter/execute_server.pyindex af63b6d39d..32f88f1254 100644--- a/openhands/runtime/plugins/jupyter/execute_server.py+++ b/openhands/runtime/plugins/jupyter/execute_server.py@@ -189,7 +189,7 @@ class JupyterKernel:if os.environ.get('DEBUG'):logging.info(- f"MSG TYPE: {msg_type.upper()} DONE:{execution_done}\nCONTENT: {msg_dict['content']}"+ f'MSG TYPE: {msg_type.upper()} DONE:{execution_done}\nCONTENT: {msg_dict["content"]}')if msg_type == 'error':@@ -203,7 +203,7 @@ class JupyterKernel:if 'image/png' in msg_dict['content']['data']:# use markdone to display image (in case of large image)outputs.append(- f"\n\n"+ f'\n\n')elif msg_type == 'execute_reply':@@ -272,7 +272,7 @@ class ExecuteHandler(tornado.web.RequestHandler):def make_app() -> tornado.web.Application:jupyter_kernel = JupyterKernel(- f"localhost:{os.environ.get('JUPYTER_GATEWAY_PORT', '8888')}",+ f'localhost:{os.environ.get("JUPYTER_GATEWAY_PORT", "8888")}',os.environ.get('JUPYTER_GATEWAY_KERNEL_ID', 'default'),)asyncio.get_event_loop().run_until_complete(jupyter_kernel.initialize())diff --git a/openhands/runtime/utils/bash.py b/openhands/runtime/utils/bash.pyindex da4ddd22c4..055026cf44 100644--- a/openhands/runtime/utils/bash.py+++ b/openhands/runtime/utils/bash.py@@ -501,9 +501,9 @@ class BashSession:if len(splited_commands) > 1:return ErrorObservation(content=(- f"ERROR: Cannot execute multiple commands at once.\n"- f"Please run each command separately OR chain them into a single command via && or ;\n"- f"Provided commands:\n{'\n'.join(f'({i + 1}) {cmd}' for i, cmd in enumerate(splited_commands))}"+ f'ERROR: Cannot execute multiple commands at once.\n'+ f'Please run each command separately OR chain them into a single command via && or ;\n'+ f'Provided commands:\n{"\n".join(f"({i + 1}) {cmd}" for i, cmd in enumerate(splited_commands))}'))@@ -591,8 +591,8 @@ class BashSession:logger.debug(f'PANE CONTENT GOT after {time.time() - _start_time:.2f} seconds')- logger.debug(f"BEGIN OF PANE CONTENT: {cur_pane_output.split('\n')[:10]}")- logger.debug(f"END OF PANE CONTENT: {cur_pane_output.split('\n')[-10:]}")+ logger.debug(f'BEGIN OF PANE CONTENT: {cur_pane_output.split("\n")[:10]}')+ logger.debug(f'END OF PANE CONTENT: {cur_pane_output.split("\n")[-10:]}')ps1_matches = CmdOutputMetadata.matches_ps1_metadata(cur_pane_output)current_ps1_count = len(ps1_matches)diff --git a/openhands/runtime/utils/file_viewer.py b/openhands/runtime/utils/file_viewer.pyindex 7c765790eb..f2bae769f6 100644--- a/openhands/runtime/utils/file_viewer.py+++ b/openhands/runtime/utils/file_viewer.py@@ -35,8 +35,8 @@ def generate_file_viewer_html(file_path: str) -> str:# Check if the file extension is supportedif file_extension not in supported_extensions:raise ValueError(- f"Unsupported file extension: {file_extension}. "- f"Supported extensions are: {', '.join(supported_extensions)}"+ f'Unsupported file extension: {file_extension}. '+ f'Supported extensions are: {", ".join(supported_extensions)}')# Check if the file existsdiff --git a/openhands/runtime/utils/runtime_build.py b/openhands/runtime/utils/runtime_build.pyindex 7ee10f537a..0f2b26174d 100644--- a/openhands/runtime/utils/runtime_build.py+++ b/openhands/runtime/utils/runtime_build.py@@ -385,9 +385,9 @@ if __name__ == '__main__':# and create a Dockerfile dynamically and place it in the build_folder only. This allows the Docker image to# then be created using the Dockerfile (most likely using the containers/build.sh script)build_folder = args.build_folder- assert os.path.exists(- build_folder- ), f'Build folder {build_folder} does not exist'+ assert os.path.exists(build_folder), (+ f'Build folder {build_folder} does not exist'+ )logger.debug(f'Copying the source code and generating the Dockerfile in the build folder: {build_folder}')diff --git a/openhands/runtime/utils/windows_bash.py b/openhands/runtime/utils/windows_bash.pyindex aae6fa6b47..06ed4464cc 100644--- a/openhands/runtime/utils/windows_bash.py+++ b/openhands/runtime/utils/windows_bash.py@@ -926,7 +926,7 @@ class WindowsPowershellSession:content=(f'ERROR: Cannot execute multiple commands at once.\n'f'Please run each command separately OR chain them into a single command via PowerShell operators (e.g., ; or |).\n'- f'Detected commands:\n{"\n".join(f"({i+1}) {cmd}" for i, cmd in enumerate(splited_cmds))}'+ f'Detected commands:\n{"\n".join(f"({i + 1}) {cmd}" for i, cmd in enumerate(splited_cmds))}'))elif statements.Count == 0 and not command.strip().startswith('#'):diff --git a/openhands/security/invariant/analyzer.py b/openhands/security/invariant/analyzer.pyindex 7251d01aa3..2f180dc19a 100644--- a/openhands/security/invariant/analyzer.py+++ b/openhands/security/invariant/analyzer.py@@ -176,9 +176,9 @@ class InvariantAnalyzer(SecurityAnalyzer):],))- assert (- self.guardrail_llm is not None- ), 'InvariantAnalyzer.guardrail_llm should be initialized before calling check_usertask'+ assert self.guardrail_llm is not None, (+ 'InvariantAnalyzer.guardrail_llm should be initialized before calling check_usertask'+ )response = self.guardrail_llm.completion(messages=self.guardrail_llm.format_messages_for_llm(messages),stop=['.'],@@ -261,9 +261,9 @@ class InvariantAnalyzer(SecurityAnalyzer):],))- assert (- self.guardrail_llm is not None- ), 'InvariantAnalyzer.guardrail_llm should be initialized before calling check_fillaction'+ assert self.guardrail_llm is not None, (+ 'InvariantAnalyzer.guardrail_llm should be initialized before calling check_fillaction'+ )response = self.guardrail_llm.completion(messages=self.guardrail_llm.format_messages_for_llm(messages),stop=['.'],diff --git a/openhands/security/invariant/parser.py b/openhands/security/invariant/parser.pyindex bcdb8c56e8..ba64583edd 100644--- a/openhands/security/invariant/parser.py+++ b/openhands/security/invariant/parser.py@@ -20,7 +20,7 @@ TraceElement = Message | ToolCall | ToolOutput | Functiondef get_next_id(trace: list[TraceElement]) -> str:- used_ids = [el.id for el in trace if type(el) == ToolCall]+ used_ids = [el.id for el in trace if isinstance(el, ToolCall)]for i in range(1, len(used_ids) + 2):if str(i) not in used_ids:return str(i)@@ -31,7 +31,7 @@ def get_last_id(trace: list[TraceElement],) -> str | None:for el in reversed(trace):- if type(el) == ToolCall:+ if isinstance(el, ToolCall):return el.idreturn None@@ -39,12 +39,12 @@ def get_last_id(def parse_action(trace: list[TraceElement], action: Action) -> list[TraceElement]:next_id = get_next_id(trace)inv_trace: list[TraceElement] = []- if type(action) == MessageAction:+ if isinstance(action, MessageAction):if action.source == EventSource.USER:inv_trace.append(Message(role='user', content=action.content))else:inv_trace.append(Message(role='assistant', content=action.content))- elif type(action) in [NullAction, ChangeAgentStateAction]:+ elif isinstance(action, (NullAction, ChangeAgentStateAction)):passelif hasattr(action, 'action') and action.action is not None:event_dict = event_to_dict(action)@@ -63,7 +63,7 @@ def parse_observation(trace: list[TraceElement], obs: Observation) -> list[TraceElement]:last_id = get_last_id(trace)- if type(obs) in [NullObservation, AgentStateChangedObservation]:+ if isinstance(obs, (NullObservation, AgentStateChangedObservation)):return []elif hasattr(obs, 'content') and obs.content is not None:return [ToolOutput(role='tool', content=obs.content, tool_call_id=last_id)]diff --git a/openhands/server/conversation_manager/standalone_conversation_manager.py b/openhands/server/conversation_manager/standalone_conversation_manager.pyindex 01f7bcc5db..5db9826f8c 100644--- a/openhands/server/conversation_manager/standalone_conversation_manager.py+++ b/openhands/server/conversation_manager/standalone_conversation_manager.py@@ -7,14 +7,12 @@ from typing import Callable, Iterableimport socketiofrom openhands.core.config.app_config import AppConfig-from openhands.core.config.llm_config import LLMConfigfrom openhands.core.exceptions import AgentRuntimeUnavailableErrorfrom openhands.core.logger import openhands_logger as loggerfrom openhands.core.schema.agent import AgentStatefrom openhands.events.action import MessageAction-from openhands.events.event import EventSourcefrom openhands.events.event_store import EventStore-from openhands.events.stream import EventStream, EventStreamSubscriber, session_exists+from openhands.events.stream import EventStreamSubscriber, session_existsfrom openhands.server.config.server_config import ServerConfigfrom openhands.server.monitoring import MonitoringListenerfrom openhands.server.session.agent_session import WAIT_TIME_BEFORE_CLOSE@@ -25,7 +23,10 @@ from openhands.storage.data_models.conversation_metadata import ConversationMetafrom openhands.storage.data_models.settings import Settingsfrom openhands.storage.files import FileStorefrom openhands.utils.async_utils import GENERAL_TIMEOUT, call_async_from_sync, wait_all-from openhands.utils.conversation_summary import get_default_conversation_title, auto_generate_title+from openhands.utils.conversation_summary import (+ auto_generate_title,+ get_default_conversation_title,+)from openhands.utils.import_utils import get_implfrom openhands.utils.shutdown_listener import should_continue@@ -207,7 +208,6 @@ class StandaloneConversationManager(ConversationManager):)store = await conversation_store_class.get_instance(self.config, user_id)return store-async def get_running_agent_loops(self, user_id: str | None = None, filter_to_sids: set[str] | None = None@@ -287,7 +287,7 @@ class StandaloneConversationManager(ConversationManager):response_ids = await self.get_running_agent_loops(user_id)if len(response_ids) >= self.config.max_concurrent_conversations:logger.info(- f'too_many_sessions_for:{user_id or ''}',+ f'too_many_sessions_for:{user_id or ""}',extra={'session_id': sid, 'user_id': user_id},)# Get the conversations sorted (oldest first)@@ -300,7 +300,7 @@ class StandaloneConversationManager(ConversationManager):while len(conversations) >= self.config.max_concurrent_conversations:oldest_conversation_id = conversations.pop().conversation_idlogger.debug(- f'closing_from_too_many_sessions:{user_id or ''}:{oldest_conversation_id}',+ f'closing_from_too_many_sessions:{user_id or ""}:{oldest_conversation_id}',extra={'session_id': oldest_conversation_id, 'user_id': user_id},)# Send status message to client and close session.@@ -332,7 +332,9 @@ class StandaloneConversationManager(ConversationManager):try:session.agent_session.event_stream.subscribe(EventStreamSubscriber.SERVER,- self._create_conversation_update_callback(user_id, github_user_id, sid, settings),+ self._create_conversation_update_callback(+ user_id, github_user_id, sid, settings+ ),UPDATED_AT_CALLBACK_ID,)except ValueError:@@ -429,7 +431,11 @@ class StandaloneConversationManager(ConversationManager):)def _create_conversation_update_callback(- self, user_id: str | None, github_user_id: str | None, conversation_id: str, settings: Settings+ self,+ user_id: str | None,+ github_user_id: str | None,+ conversation_id: str,+ settings: Settings,) -> Callable:def callback(event, *args, **kwargs):call_async_from_sync(@@ -444,9 +450,13 @@ class StandaloneConversationManager(ConversationManager):return callback-async def _update_conversation_for_event(- self, user_id: str, github_user_id: str, conversation_id: str, settings: Settings, event=None+ self,+ user_id: str,+ github_user_id: str,+ conversation_id: str,+ settings: Settings,+ event=None,):conversation_store = await self._get_conversation_store(user_id, github_user_id)conversation = await conversation_store.get_metadata(conversation_id)@@ -469,8 +479,12 @@ class StandaloneConversationManager(ConversationManager):token_usage.prompt_tokens + token_usage.completion_tokens)default_title = get_default_conversation_title(conversation_id)- if conversation.title == default_title: # attempt to autogenerate if default title is in use- title = await auto_generate_title(conversation_id, user_id, self.file_store, settings)+ if (+ conversation.title == default_title+ ): # attempt to autogenerate if default title is in use+ title = await auto_generate_title(+ conversation_id, user_id, self.file_store, settings+ )if title and not title.isspace():conversation.title = titletry:diff --git a/openhands/server/data_models/feedback.py b/openhands/server/data_models/feedback.pyindex b6bbc3b1b6..512b2b76fb 100644--- a/openhands/server/data_models/feedback.py+++ b/openhands/server/data_models/feedback.py@@ -27,7 +27,7 @@ def store_feedback(feedback: FeedbackDataModel) -> dict[str, str]:display_feedback = feedback.model_dump()if 'trajectory' in display_feedback:display_feedback['trajectory'] = (- f"elided [length: {len(display_feedback['trajectory'])}"+ f'elided [length: {len(display_feedback["trajectory"])}')if 'token' in display_feedback:display_feedback['token'] = 'elided'diff --git a/openhands/server/routes/manage_conversations.py b/openhands/server/routes/manage_conversations.pyindex d81383e26b..5813d90f7d 100644--- a/openhands/server/routes/manage_conversations.py+++ b/openhands/server/routes/manage_conversations.py@@ -1,4 +1,3 @@-import asyncioimport uuidfrom datetime import datetime, timezonefrom typing import Any@@ -295,7 +294,7 @@ async def get_conversation(return conversation_infoexcept FileNotFoundError:return None-+@app.delete('/conversations/{conversation_id}')async def delete_conversation(diff --git a/pyproject.toml b/pyproject.tomlindex 37a4c9548b..0b5399bf2c 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -1,25 +1,31 @@+[build-system]+build-backend = "poetry.core.masonry.api"+requires = [+ "poetry-core",+]+[tool.poetry]name = "openhands-ai"version = "0.37.0"description = "OpenHands: Code Less, Make More"-authors = ["OpenHands"]+authors = [ "OpenHands" ]license = "MIT"readme = "README.md"repository = "https://github.com/All-Hands-AI/OpenHands"packages = [{ include = "openhands/**/*" },{ include = "pyproject.toml", to = "openhands" },- { include = "poetry.lock", to = "openhands" }+ { include = "poetry.lock", to = "openhands" },][tool.poetry.dependencies]python = "^3.12,<3.14"-litellm = "^1.60.0, !=1.64.4, !=1.67.*" # avoid 1.64.4 (known bug) & 1.67.* (known bug #10272)-aiohttp = ">=3.9.0,!=3.11.13" # Pin to avoid yanked version 3.11.13-google-generativeai = "*" # To use litellm with Gemini Pro API-google-api-python-client = "^2.164.0" # For Google Sheets API-google-auth-httplib2 = "*" # For Google Sheets authentication-google-auth-oauthlib = "*" # For Google Sheets OAuth+litellm = "^1.60.0, !=1.64.4, !=1.67.*" # avoid 1.64.4 (known bug) & 1.67.* (known bug #10272)+aiohttp = ">=3.9.0,!=3.11.13" # Pin to avoid yanked version 3.11.13+google-generativeai = "*" # To use litellm with Gemini Pro API+google-api-python-client = "^2.164.0" # For Google Sheets API+google-auth-httplib2 = "*" # For Google Sheets authentication+google-auth-oauthlib = "*" # For Google Sheets OAuthtermcolor = "*"docker = "*"fastapi = "*"@@ -28,7 +34,7 @@ uvicorn = "*"types-toml = "*"numpy = "*"json-repair = "*"-browsergym-core = "0.13.3" # integrate browsergym-core as the browsing interface+browsergym-core = "0.13.3" # integrate browsergym-core as the browsing interfacehtml2text = "*"e2b = ">=1.0.5,<1.4.0"pexpect = "*"@@ -40,7 +46,7 @@ tenacity = ">=8.5,<10.0"zope-interface = "7.2"pathspec = "^0.12.1"google-cloud-aiplatform = "*"-anthropic = {extras = ["vertex"], version = "*"}+anthropic = { extras = [ "vertex" ], version = "*" }tree-sitter = "^0.24.0"bashlex = "^0.18"pyjwt = "^2.9.0"@@ -54,7 +60,7 @@ tornado = "*"python-dotenv = "*"pylcs = "^0.1.1"whatthepatch = "^1.0.6"-protobuf = "^4.21.6,<5.0.0" # chromadb currently fails on 5.0++protobuf = "^4.21.6,<5.0.0" # chromadb currently fails on 5.0+opentelemetry-api = "1.25.0"opentelemetry-exporter-otlp-proto-grpc = "1.25.0"modal = ">=0.66.26,<0.75.0"@@ -97,39 +103,12 @@ pandas = "*"reportlab = "*"gevent = ">=24.2.1,<26.0.0"-[tool.coverage.run]-concurrency = ["gevent"]--[tool.poetry.group.runtime.dependencies]jupyterlab = "*"notebook = "*"jupyter_kernel_gateway = "*"flake8 = "*"-[build-system]-build-backend = "poetry.core.masonry.api"-requires = [- "poetry-core",-]--[tool.autopep8]-# autopep8 fights with mypy on line length issue-ignore = [ "E501" ]--[tool.black]-# prevent black (if installed) from changing single quotes to double quotes-skip-string-normalization = true--[tool.ruff.lint]-select = ["D"]-# ignore warnings for missing docstrings-ignore = ["D1"]--[tool.ruff.lint.pydocstyle]-convention = "google"--[tool.poetry.group.evaluation.dependencies]streamlit = "*"whatthepatch = "*"@@ -148,14 +127,10 @@ browsergym = "0.13.3"browsergym-webarena = "0.13.3"browsergym-miniwob = "0.13.3"browsergym-visualwebarena = "0.13.3"-boto3-stubs = {extras = ["s3"], version = "^1.37.19"}-pyarrow = "20.0.0" # transitive dependency, pinned here to avoid conflicts+boto3-stubs = { extras = [ "s3" ], version = "^1.37.19" }+pyarrow = "20.0.0" # transitive dependency, pinned here to avoid conflictsdatasets = "*"-[tool.poetry-dynamic-versioning]-enable = true-style = "semver"-[tool.poetry.scripts]openhands = "openhands.core.cli:main"@@ -164,3 +139,24 @@ fuzzywuzzy = "^0.18.0"rouge = "^1.0.1"python-levenshtein = ">=0.26.1,<0.28.0"tree-sitter-python = "^0.23.6"++[tool.poetry-dynamic-versioning]+enable = true+style = "semver"++[tool.autopep8]+# autopep8 fights with mypy on line length issue+ignore = [ "E501" ]++[tool.black]+# prevent black (if installed) from changing single quotes to double quotes+skip-string-normalization = true++[tool.ruff]+lint.select = [ "D" ]+# ignore warnings for missing docstrings+lint.ignore = [ "D1" ]+lint.pydocstyle.convention = "google"++[tool.coverage.run]+concurrency = [ "gevent" ]diff --git a/tests/runtime/test_bash.py b/tests/runtime/test_bash.pyindex 68ac617302..704435b352 100644--- a/tests/runtime/test_bash.py+++ b/tests/runtime/test_bash.py@@ -760,9 +760,9 @@ def test_python_version(temp_dir, runtime_cls, run_as_openhands):try:obs = runtime.run_action(CmdRunAction(command='python --version'))- assert isinstance(- obs, CmdOutputObservation- ), 'The observation should be a CmdOutputObservation.'+ assert isinstance(obs, CmdOutputObservation), (+ 'The observation should be a CmdOutputObservation.'+ )assert obs.exit_code == 0, 'The exit code should be 0.'assert 'Python 3' in obs.content, 'The output should contain "Python 3".'finally:diff --git a/tests/runtime/test_env_vars.py b/tests/runtime/test_env_vars.pyindex 36fb5fb487..51af8322c6 100644--- a/tests/runtime/test_env_vars.py+++ b/tests/runtime/test_env_vars.py@@ -25,9 +25,9 @@ def test_env_vars_os_environ(temp_dir, runtime_cls, run_as_openhands):)print(obs)assert obs.exit_code == 0, 'The exit code should be 0.'- assert (- obs.content.strip().split('\n\r')[0].strip() == 'BAZ'- ), f'Output: [{obs.content}] for {runtime_cls}'+ assert obs.content.strip().split('\n\r')[0].strip() == 'BAZ', (+ f'Output: [{obs.content}] for {runtime_cls}'+ )_close_test_runtime(runtime)diff --git a/tests/runtime/test_glob_and_grep.py b/tests/runtime/test_glob_and_grep.pyindex 2ceb1a5e9b..5fcce6626f 100644--- a/tests/runtime/test_glob_and_grep.py+++ b/tests/runtime/test_glob_and_grep.py@@ -168,9 +168,9 @@ def test_grep_to_cmdrun_paths_with_spaces(runtime_cls, run_as_openhands, temp_diobs = _run_cmd_action(runtime, cmd)assert obs.exit_code == 0, f'Grep command failed for path: {path}'- assert (- 'function' in obs.content- ), f'Expected pattern not found in output for path: {path}'+ assert 'function' in obs.content, (+ f'Expected pattern not found in output for path: {path}'+ )# Verify the actual file was foundif path == 'src/my project':diff --git a/tests/runtime/test_ipython.py b/tests/runtime/test_ipython.pyindex 75375e5232..f2f0a61442 100644--- a/tests/runtime/test_ipython.py+++ b/tests/runtime/test_ipython.py@@ -77,9 +77,9 @@ def test_simple_cmd_ipython_and_fileop(temp_dir, runtime_cls, run_as_openhands):action_read = FileReadAction(path='hello.sh')logger.info(action_read, extra={'msg_type': 'ACTION'})obs = runtime.run_action(action_read)- assert isinstance(- obs, FileReadObservation- ), 'The observation should be a FileReadObservation.'+ assert isinstance(obs, FileReadObservation), (+ 'The observation should be a FileReadObservation.'+ )logger.info(obs, extra={'msg_type': 'OBSERVATION'})assert obs.content == 'echo "Hello, World!"\n'diff --git a/tests/runtime/test_llm_based_edit.py b/tests/runtime/test_llm_based_edit.pyindex 7039259596..db462a6f22 100644--- a/tests/runtime/test_llm_based_edit.py+++ b/tests/runtime/test_llm_based_edit.py@@ -39,9 +39,9 @@ def test_edit_from_scratch(temp_dir, runtime_cls, run_as_openhands):obs = runtime.run_action(action)logger.info(obs, extra={'msg_type': 'OBSERVATION'})- assert isinstance(- obs, FileEditObservation- ), 'The observation should be a FileEditObservation.'+ assert isinstance(obs, FileEditObservation), (+ 'The observation should be a FileEditObservation.'+ )action = FileReadAction(path=os.path.join('/workspace', 'app.py'),@@ -78,9 +78,9 @@ def test_edit(temp_dir, runtime_cls, run_as_openhands):obs = runtime.run_action(action)logger.info(obs, extra={'msg_type': 'OBSERVATION'})- assert isinstance(- obs, FileEditObservation- ), 'The observation should be a FileEditObservation.'+ assert isinstance(obs, FileEditObservation), (+ 'The observation should be a FileEditObservation.'+ )action = FileReadAction(path=os.path.join('/workspace', 'app.py'),@@ -138,9 +138,9 @@ def test_edit_long_file(temp_dir, runtime_cls, run_as_openhands):obs = runtime.run_action(action)logger.info(obs, extra={'msg_type': 'OBSERVATION'})- assert isinstance(- obs, FileEditObservation- ), 'The observation should be a FileEditObservation.'+ assert isinstance(obs, FileEditObservation), (+ 'The observation should be a FileEditObservation.'+ )action = FileReadAction(path=os.path.join('/workspace', 'app.py'),diff --git a/tests/runtime/test_mcp_action.py b/tests/runtime/test_mcp_action.pyindex ffdd649333..cc25e090c8 100644--- a/tests/runtime/test_mcp_action.py+++ b/tests/runtime/test_mcp_action.py@@ -23,9 +23,9 @@ from openhands.events.observation import CmdOutputObservation, MCPObservationdef test_default_activated_tools():project_root = os.path.dirname(openhands.__file__)mcp_config_path = os.path.join(project_root, 'runtime', 'mcp', 'config.json')- assert os.path.exists(- mcp_config_path- ), f'MCP config file not found at {mcp_config_path}'+ assert os.path.exists(mcp_config_path), (+ f'MCP config file not found at {mcp_config_path}'+ )with open(mcp_config_path, 'r') as f:mcp_config = json.load(f)assert 'default' in mcp_config@@ -63,9 +63,9 @@ async def test_fetch_mcp_via_stdio(temp_dir, runtime_cls, run_as_openhands):mcp_action = MCPAction(name='fetch', arguments={'url': 'http://localhost:8000'})obs = await runtime.call_tool_mcp(mcp_action)logger.info(obs, extra={'msg_type': 'OBSERVATION'})- assert isinstance(- obs, MCPObservation- ), 'The observation should be a MCPObservation.'+ assert isinstance(obs, MCPObservation), (+ 'The observation should be a MCPObservation.'+ )result_json = json.loads(obs.content)assert not result_json['isError']diff --git a/tests/runtime/test_stress_remote_runtime.py b/tests/runtime/test_stress_remote_runtime.pyindex c222338228..c95fc1a24c 100644--- a/tests/runtime/test_stress_remote_runtime.py+++ b/tests/runtime/test_stress_remote_runtime.py@@ -468,9 +468,9 @@ def test_stress_runtime_memory_limits_with_repeated_file_edit():new_str=f'-content_{i:03d}',)obs = runtime.run_action(edit_action)- assert (- f'The file {test_file} has been edited' in obs.content- ), f'Edit failed at iteration {i}'+ assert f'The file {test_file} has been edited' in obs.content, (+ f'Edit failed at iteration {i}'+ )logger.info(f'finished iteration {i}')# Verify final file state using FileEditAction view commanddiff --git a/tests/unit/resolver/github/test_issue_handler_error_handling.py b/tests/unit/resolver/github/test_issue_handler_error_handling.pyindex 50ba4e2ab9..cb8da4f739 100644--- a/tests/unit/resolver/github/test_issue_handler_error_handling.py+++ b/tests/unit/resolver/github/test_issue_handler_error_handling.py@@ -240,7 +240,9 @@ def test_guess_success_rate_limit_wait_time(mock_litellm_completion, default_conwait_time = mock_sleep.call_args[0][0]assert (default_config.retry_min_wait <= wait_time <= default_config.retry_max_wait- ), f'Expected wait time between {default_config.retry_min_wait} and {default_config.retry_max_wait} seconds, but got {wait_time}'+ ), (+ f'Expected wait time between {default_config.retry_min_wait} and {default_config.retry_max_wait} seconds, but got {wait_time}'+ )@patch('openhands.llm.llm.litellm_completion')diff --git a/tests/unit/resolver/github/test_pr_title_escaping.py b/tests/unit/resolver/github/test_pr_title_escaping.pyindex c0b7941d7a..5832473860 100644--- a/tests/unit/resolver/github/test_pr_title_escaping.py+++ b/tests/unit/resolver/github/test_pr_title_escaping.py@@ -71,9 +71,9 @@ def test_pr_title_with_quotes(monkeypatch):data = kwargs.get('json', {})title = data.get('title', '')expected = "Fix issue #123: Issue with 'quotes' and \"double quotes\" and <class 'ValueError'>"- assert (- title == expected- ), f'PR title was incorrectly escaped.\nExpected: {expected}\nGot: {title}'+ assert title == expected, (+ f'PR title was incorrectly escaped.\nExpected: {expected}\nGot: {title}'+ )return MockResponse()class MockGetResponse:@@ -98,7 +98,7 @@ def test_pr_title_with_quotes(monkeypatch):original_run = subprocess.rundef mock_run(*args, **kwargs):- print(f"Running command: {args[0] if args else kwargs.get('args', [])}")+ print(f'Running command: {args[0] if args else kwargs.get("args", [])}')if isinstance(args[0], list) and args[0][0] == 'git':if 'push' in args[0]:return subprocess.CompletedProcess(diff --git a/tests/unit/resolver/github/test_resolve_issues.py b/tests/unit/resolver/github/test_resolve_issues.pyindex 99f84a6994..42e21efd04 100644--- a/tests/unit/resolver/github/test_resolve_issues.py+++ b/tests/unit/resolver/github/test_resolve_issues.py@@ -478,13 +478,14 @@ async def test_process_issue(mock_run_controller.return_value = test_case['run_controller_return']# Patch the necessary functions and methods- with patch(- 'openhands.resolver.resolve_issue.create_runtime', mock_create_runtime- ), patch(- 'openhands.resolver.resolve_issue.run_controller', mock_run_controller- ), patch.object(- resolver, 'complete_runtime', return_value={'git_patch': 'test patch'}- ), patch.object(resolver, 'initialize_runtime') as mock_initialize_runtime:+ with (+ patch('openhands.resolver.resolve_issue.create_runtime', mock_create_runtime),+ patch('openhands.resolver.resolve_issue.run_controller', mock_run_controller),+ patch.object(+ resolver, 'complete_runtime', return_value={'git_patch': 'test patch'}+ ),+ patch.object(resolver, 'initialize_runtime') as mock_initialize_runtime,+ ):# Call the process_issue methodresult = await resolver.process_issue(issue, base_commit, handler_instance)diff --git a/tests/unit/resolver/github/test_send_pull_request.py b/tests/unit/resolver/github/test_send_pull_request.pyindex a5b68e68ca..ba1a359cba 100644--- a/tests/unit/resolver/github/test_send_pull_request.py+++ b/tests/unit/resolver/github/test_send_pull_request.py@@ -142,9 +142,9 @@ index 9daeafb..b02def2 100644with open(dos_file, 'rb') as f:dos_content = f.read()- assert (- b'\r\n' not in unix_content- ), 'Unix-style line endings were changed to DOS-style'+ assert b'\r\n' not in unix_content, (+ 'Unix-style line endings were changed to DOS-style'+ )assert b'\r\n' in dos_content, 'DOS-style line endings were changed to Unix-style'# Check if content was updated correctlydiff --git a/tests/unit/resolver/gitlab/test_gitlab_issue_handler_error_handling.py b/tests/unit/resolver/gitlab/test_gitlab_issue_handler_error_handling.pyindex 44ff7222a1..68735d95f9 100644--- a/tests/unit/resolver/gitlab/test_gitlab_issue_handler_error_handling.py+++ b/tests/unit/resolver/gitlab/test_gitlab_issue_handler_error_handling.py@@ -242,7 +242,9 @@ def test_guess_success_rate_limit_wait_time(mock_litellm_completion, default_conwait_time = mock_sleep.call_args[0][0]assert (default_config.retry_min_wait <= wait_time <= default_config.retry_max_wait- ), f'Expected wait time between {default_config.retry_min_wait} and {default_config.retry_max_wait} seconds, but got {wait_time}'+ ), (+ f'Expected wait time between {default_config.retry_min_wait} and {default_config.retry_max_wait} seconds, but got {wait_time}'+ )@patch('openhands.llm.llm.litellm_completion')diff --git a/tests/unit/resolver/gitlab/test_gitlab_pr_title_escaping.py b/tests/unit/resolver/gitlab/test_gitlab_pr_title_escaping.pyindex 59a8537f8c..ea2b05b1d9 100644--- a/tests/unit/resolver/gitlab/test_gitlab_pr_title_escaping.py+++ b/tests/unit/resolver/gitlab/test_gitlab_pr_title_escaping.py@@ -72,9 +72,9 @@ def test_pr_title_with_quotes(monkeypatch):data = kwargs.get('json', {})title = data.get('title', '')expected = "Fix issue #123: Issue with 'quotes' and \"double quotes\" and <class 'ValueError'>"- assert (- title == expected- ), f'PR title was incorrectly escaped.\nExpected: {expected}\nGot: {title}'+ assert title == expected, (+ f'PR title was incorrectly escaped.\nExpected: {expected}\nGot: {title}'+ )return MockResponse()class MockGetResponse:@@ -99,7 +99,7 @@ def test_pr_title_with_quotes(monkeypatch):original_run = subprocess.rundef mock_run(*args, **kwargs):- logger.info(f"Running command: {args[0] if args else kwargs.get('args', [])}")+ logger.info(f'Running command: {args[0] if args else kwargs.get("args", [])}')if isinstance(args[0], list) and args[0][0] == 'git':if 'push' in args[0]:return subprocess.CompletedProcess(diff --git a/tests/unit/resolver/gitlab/test_gitlab_resolve_issues.py b/tests/unit/resolver/gitlab/test_gitlab_resolve_issues.pyindex f7145904b4..82060c23a0 100644--- a/tests/unit/resolver/gitlab/test_gitlab_resolve_issues.py+++ b/tests/unit/resolver/gitlab/test_gitlab_resolve_issues.py@@ -506,15 +506,18 @@ async def test_process_issue(mock_run_controller.return_value = test_case['run_controller_return']# Patch the necessary functions and methods- with patch(- 'openhands.resolver.resolve_issue.create_runtime', mock_create_runtime- ), patch(- 'openhands.resolver.resolve_issue.run_controller', mock_run_controller- ), patch.object(- resolver, 'complete_runtime', return_value={'git_patch': 'test patch'}- ), patch.object(resolver, 'initialize_runtime') as mock_initialize_runtime, patch(- 'openhands.resolver.resolve_issue.SandboxConfig', return_value=MagicMock()- ), patch('openhands.resolver.resolve_issue.AppConfig', return_value=MagicMock()):+ with (+ patch('openhands.resolver.resolve_issue.create_runtime', mock_create_runtime),+ patch('openhands.resolver.resolve_issue.run_controller', mock_run_controller),+ patch.object(+ resolver, 'complete_runtime', return_value={'git_patch': 'test patch'}+ ),+ patch.object(resolver, 'initialize_runtime') as mock_initialize_runtime,+ patch(+ 'openhands.resolver.resolve_issue.SandboxConfig', return_value=MagicMock()+ ),+ patch('openhands.resolver.resolve_issue.AppConfig', return_value=MagicMock()),+ ):# Call the process_issue methodresult = await resolver.process_issue(issue, base_commit, handler_instance)diff --git a/tests/unit/resolver/gitlab/test_gitlab_send_pull_request.py b/tests/unit/resolver/gitlab/test_gitlab_send_pull_request.pyindex 7fe48aec1d..5f890a4368 100644--- a/tests/unit/resolver/gitlab/test_gitlab_send_pull_request.py+++ b/tests/unit/resolver/gitlab/test_gitlab_send_pull_request.py@@ -143,9 +143,9 @@ index 9daeafb..b02def2 100644with open(dos_file, 'rb') as f:dos_content = f.read()- assert (- b'\r\n' not in unix_content- ), 'Unix-style line endings were changed to DOS-style'+ assert b'\r\n' not in unix_content, (+ 'Unix-style line endings were changed to DOS-style'+ )assert b'\r\n' in dos_content, 'DOS-style line endings were changed to Unix-style'# Check if content was updated correctly@@ -308,7 +308,7 @@ def test_update_existing_pull_request()# Assert: Check if the auto-generated comment was posted to the PR- comment_url = f'https://gitlab.com/api/v4/projects/{quote(f'{issue.owner}/{issue.repo}', safe="")}/issues/{issue.number}/notes'+ comment_url = f'https://gitlab.com/api/v4/projects/{quote(f"{issue.owner}/{issue.repo}", safe="")}/issues/{issue.number}/notes'expected_comment = 'This is an issue resolution.'mock_requests_post.assert_called_once_with(comment_url,@@ -697,7 +697,7 @@ def test_reply_to_comment(mock_get, mock_post, mock_issue):# Check that the correct request was made to the APImock_post.assert_called_once_with(- f'https://gitlab.com/api/v4/projects/{quote(f'{mock_issue.owner}/{mock_issue.repo}', safe="")}/merge_requests/{mock_issue.number}/discussions/{comment_id.split('/')[-1]}/notes',+ f'https://gitlab.com/api/v4/projects/{quote(f"{mock_issue.owner}/{mock_issue.repo}", safe="")}/merge_requests/{mock_issue.number}/discussions/{comment_id.split("/")[-1]}/notes',headers={'Authorization': f'Bearer {token}','Accept': 'application/json',diff --git a/tests/unit/test_acompletion.py b/tests/unit/test_acompletion.pyindex 4e13630bed..55122c1c7a 100644--- a/tests/unit/test_acompletion.py+++ b/tests/unit/test_acompletion.py@@ -1,6 +1,5 @@import asynciofrom contextlib import contextmanager-from typing import Typefrom unittest.mock import AsyncMock, MagicMock, patchimport pytest@@ -19,7 +18,7 @@ def test_llm():return _get_llm(LLM)-def _get_llm(type_: Type[LLM]):+def _get_llm(type_: type[LLM]):with _patch_http():return type_(config=config.get_llm_config())@@ -82,7 +81,7 @@ async def test_acompletion_streaming(mock_response):async for chunk in test_llm.async_streaming_completion(messages=[{'role': 'user', 'content': 'Hello!'}], stream=True):- print(f"Chunk: {chunk['choices'][0]['delta']['content']}")+ print(f'Chunk: {chunk["choices"][0]["delta"]["content"]}')# Assertions for streaming completionassert chunk['choices'][0]['delta']['content'] in [r['choices'][0]['delta']['content'] for r in mock_response@@ -187,7 +186,7 @@ async def test_async_streaming_completion_with_user_cancellation(cancel_after_chmessages=[{'role': 'user', 'content': 'Hello!'}], stream=True):received_chunks.append(chunk['choices'][0]['delta']['content'])- print(f"Chunk: {chunk['choices'][0]['delta']['content']}")+ print(f'Chunk: {chunk["choices"][0]["delta"]["content"]}')# Assert that we received the expected number of chunks before cancellationassert len(received_chunks) == cancel_after_chunksdiff --git a/tests/unit/test_action_serialization.py b/tests/unit/test_action_serialization.pyindex 8c954b746a..2b7daaa87f 100644--- a/tests/unit/test_action_serialization.py+++ b/tests/unit/test_action_serialization.py@@ -23,21 +23,21 @@ def serialization_deserialization(original_action_dict, cls, max_message_chars: int = 10000):action_instance = event_from_dict(original_action_dict)- assert isinstance(- action_instance, Action- ), 'The action instance should be an instance of Action.'- assert isinstance(- action_instance, cls- ), f'The action instance should be an instance of {cls.__name__}.'+ assert isinstance(action_instance, Action), (+ 'The action instance should be an instance of Action.'+ )+ assert isinstance(action_instance, cls), (+ f'The action instance should be an instance of {cls.__name__}.'+ )# event_to_dict is the regular serialization of an eventserialized_action_dict = event_to_dict(action_instance)# it has an extra message property, for the UIserialized_action_dict.pop('message')- assert (- serialized_action_dict == original_action_dict- ), 'The serialized action should match the original action dict.'+ assert serialized_action_dict == original_action_dict, (+ 'The serialized action should match the original action dict.'+ )def test_event_props_serialization_deserialization():diff --git a/tests/unit/test_agent_controller.py b/tests/unit/test_agent_controller.pyindex 4b55898fa5..051c5f061d 100644--- a/tests/unit/test_agent_controller.py+++ b/tests/unit/test_agent_controller.py@@ -717,9 +717,9 @@ async def test_run_controller_max_iterations_has_metrics(== 'RuntimeError: Agent reached maximum iteration in headless mode. Current iteration: 3, max iteration: 3')- assert (- state.metrics.accumulated_cost == 10.0 * 3- ), f'Expected accumulated cost to be 30.0, but got {state.metrics.accumulated_cost}'+ assert state.metrics.accumulated_cost == 10.0 * 3, (+ f'Expected accumulated cost to be 30.0, but got {state.metrics.accumulated_cost}'+ )@pytest.mark.asyncio@@ -1434,14 +1434,14 @@ async def test_agent_controller_processes_null_observation_with_cause():# Verify the NullObservation has a cause that points to the RecallActionassert null_observation.cause is not None, 'NullObservation cause is None'- assert (- null_observation.cause == recall_action.id- ), f'Expected cause={recall_action.id}, got cause={null_observation.cause}'+ assert null_observation.cause == recall_action.id, (+ f'Expected cause={recall_action.id}, got cause={null_observation.cause}'+ )# Verify the controller's should_step method returns True for this observation- assert controller.should_step(- null_observation- ), 'should_step should return True for this NullObservation'+ assert controller.should_step(null_observation), (+ 'should_step should return True for this NullObservation'+ )# Verify the controller's step method was called# This means the controller processed the NullObservation@@ -1453,9 +1453,9 @@ async def test_agent_controller_processes_null_observation_with_cause():null_observation_zero._cause = 0 # type: ignore[attr-defined]# Verify the controller's should_step method would return False for this observation- assert not controller.should_step(- null_observation_zero- ), 'should_step should return False for NullObservation with cause=0'+ assert not controller.should_step(null_observation_zero), (+ 'should_step should return False for NullObservation with cause=0'+ )def test_agent_controller_should_step_with_null_observation_cause_zero(mock_agent):@@ -1481,9 +1481,9 @@ def test_agent_controller_should_step_with_null_observation_cause_zero(mock_agenresult = controller.should_step(null_observation)# It should return False since we only want to step on NullObservation with cause > 0- assert (- result is False- ), 'should_step should return False for NullObservation with cause = 0'+ assert result is False, (+ 'should_step should return False for NullObservation with cause = 0'+ )def test_system_message_in_event_stream(mock_agent, test_event_stream):@@ -1563,8 +1563,8 @@ async def test_openrouter_context_window_exceeded_error(condensation_actions = [e for e in events if isinstance(e, CondensationAction)]# There should be at least one CondensationAction if the error was handled correctly- assert (- len(condensation_actions) > 0- ), 'OpenRouter context window exceeded error was not handled correctly'+ assert len(condensation_actions) > 0, (+ 'OpenRouter context window exceeded error was not handled correctly'+ )await controller.close()diff --git a/tests/unit/test_agent_delegation.py b/tests/unit/test_agent_delegation.pyindex d12b4c0057..3775129243 100644--- a/tests/unit/test_agent_delegation.py+++ b/tests/unit/test_agent_delegation.py@@ -140,14 +140,14 @@ async def test_delegation_flow(mock_parent_agent, mock_child_agent, mock_event_sassert any(isinstance(event, AgentDelegateAction) for event in events)# Verify that a delegate agent controller is created- assert (- parent_controller.delegate is not None- ), "Parent's delegate controller was not set."+ assert parent_controller.delegate is not None, (+ "Parent's delegate controller was not set."+ )# The parent's iteration should have incremented- assert (- parent_controller.state.iteration == 1- ), 'Parent iteration should be incremented after step.'+ assert parent_controller.state.iteration == 1, (+ 'Parent iteration should be incremented after step.'+ )# Now simulate that the child increments local iteration and finishes its subtaskdelegate_controller = parent_controller.delegate@@ -160,14 +160,14 @@ async def test_delegation_flow(mock_parent_agent, mock_child_agent, mock_event_sawait asyncio.sleep(0.5)# Now the parent's delegate is None- assert (- parent_controller.delegate is None- ), 'Parent delegate should be None after child finishes.'+ assert parent_controller.delegate is None, (+ 'Parent delegate should be None after child finishes.'+ )# Parent's global iteration is updated from the child- assert (- parent_controller.state.iteration == 6- ), "Parent iteration should be the child's iteration + 1 after child is done."+ assert parent_controller.state.iteration == 6, (+ "Parent iteration should be the child's iteration + 1 after child is done."+ )# Cleanupawait parent_controller.close()diff --git a/tests/unit/test_agent_session.py b/tests/unit/test_agent_session.pyindex 7d43894b1b..b3e1220f6f 100644--- a/tests/unit/test_agent_session.py+++ b/tests/unit/test_agent_session.py@@ -93,15 +93,20 @@ async def test_agent_session_start_with_no_state(mock_agent):memory.microagents_dir = 'test-dir'# Patch AgentController and State.restore_from_session to fail; patch Memory in AgentSession- with patch(- 'openhands.server.session.agent_session.AgentController', SpyAgentController- ), patch(- 'openhands.server.session.agent_session.EventStream',- return_value=mock_event_stream,- ), patch(- 'openhands.controller.state.state.State.restore_from_session',- side_effect=Exception('No state found'),- ), patch('openhands.server.session.agent_session.Memory', return_value=memory):+ with (+ patch(+ 'openhands.server.session.agent_session.AgentController', SpyAgentController+ ),+ patch(+ 'openhands.server.session.agent_session.EventStream',+ return_value=mock_event_stream,+ ),+ patch(+ 'openhands.controller.state.state.State.restore_from_session',+ side_effect=Exception('No state found'),+ ),+ patch('openhands.server.session.agent_session.Memory', return_value=memory),+ ):await session.start(runtime_name='test-runtime',config=AppConfig(),@@ -181,15 +186,20 @@ async def test_agent_session_start_with_restored_state(mock_agent):mock_memory = MagicMock(spec=Memory)# Patch AgentController and State.restore_from_session to succeed, patch Memory in AgentSession- with patch(- 'openhands.server.session.agent_session.AgentController', SpyAgentController- ), patch(- 'openhands.server.session.agent_session.EventStream',- return_value=mock_event_stream,- ), patch(- 'openhands.controller.state.state.State.restore_from_session',- return_value=mock_restored_state,- ), patch('openhands.server.session.agent_session.Memory', mock_memory):+ with (+ patch(+ 'openhands.server.session.agent_session.AgentController', SpyAgentController+ ),+ patch(+ 'openhands.server.session.agent_session.EventStream',+ return_value=mock_event_stream,+ ),+ patch(+ 'openhands.controller.state.state.State.restore_from_session',+ return_value=mock_restored_state,+ ),+ patch('openhands.server.session.agent_session.Memory', mock_memory),+ ):await session.start(runtime_name='test-runtime',config=AppConfig(),diff --git a/tests/unit/test_bash_parsing.py b/tests/unit/test_bash_parsing.pyindex 018118209a..027796c73b 100644--- a/tests/unit/test_bash_parsing.py+++ b/tests/unit/test_bash_parsing.py@@ -60,9 +60,9 @@ doneprint('\nCMD')print(s)for i in range(len(cmds)):- assert (- split_cmds[i].strip() == cmds[i].strip()- ), f'At index {i}: {split_cmds[i]} != {cmds[i]}.'+ assert split_cmds[i].strip() == cmds[i].strip(), (+ f'At index {i}: {split_cmds[i]} != {cmds[i]}.'+ )@pytest.mark.parametrize(@@ -313,9 +313,9 @@ def test_escape_bash_special_chars():for input_cmd, expected in test_cases:result = escape_bash_special_chars(input_cmd)- assert (- result == expected- ), f'Failed on input "{input_cmd}"\nExpected: "{expected}"\nGot: "{result}"'+ assert result == expected, (+ f'Failed on input "{input_cmd}"\nExpected: "{expected}"\nGot: "{result}"'+ )def test_escape_bash_special_chars_with_invalid_syntax():@@ -338,9 +338,9 @@ EOF"""# Heredoc content should not be escapedexpected = input_cmdresult = escape_bash_special_chars(input_cmd)- assert (- result == expected- ), f'Failed to handle heredoc correctly\nExpected: {expected}\nGot: {result}'+ assert result == expected, (+ f'Failed to handle heredoc correctly\nExpected: {expected}\nGot: {result}'+ )def test_escape_bash_special_chars_with_parameter_expansion():@@ -362,9 +362,9 @@ def test_escape_bash_special_chars_with_parameter_expansion():for input_cmd, expected in test_cases:result = escape_bash_special_chars(input_cmd)- assert (- result == expected- ), f'Failed on input "{input_cmd}"\nExpected: "{expected}"\nGot: "{result}"'+ assert result == expected, (+ f'Failed on input "{input_cmd}"\nExpected: "{expected}"\nGot: "{result}"'+ )def test_escape_bash_special_chars_with_command_substitution():@@ -386,9 +386,9 @@ def test_escape_bash_special_chars_with_command_substitution():for input_cmd, expected in test_cases:result = escape_bash_special_chars(input_cmd)- assert (- result == expected- ), f'Failed on input "{input_cmd}"\nExpected: "{expected}"\nGot: "{result}"'+ assert result == expected, (+ f'Failed on input "{input_cmd}"\nExpected: "{expected}"\nGot: "{result}"'+ )def test_escape_bash_special_chars_mixed_nodes():@@ -419,9 +419,9 @@ def test_escape_bash_special_chars_mixed_nodes():for input_cmd, expected in test_cases:result = escape_bash_special_chars(input_cmd)- assert (- result == expected- ), f'Failed on input "{input_cmd}"\nExpected: "{expected}"\nGot: "{result}"'+ assert result == expected, (+ f'Failed on input "{input_cmd}"\nExpected: "{expected}"\nGot: "{result}"'+ )def test_escape_bash_special_chars_with_chained_commands():@@ -448,6 +448,6 @@ def test_escape_bash_special_chars_with_chained_commands():for input_cmd, expected in test_cases:result = escape_bash_special_chars(input_cmd)- assert (- result == expected- ), f'Failed on input "{input_cmd}"\nExpected: "{expected}"\nGot: "{result}"'+ assert result == expected, (+ f'Failed on input "{input_cmd}"\nExpected: "{expected}"\nGot: "{result}"'+ )diff --git a/tests/unit/test_cli.py b/tests/unit/test_cli.pyindex 33c271c7fc..c594d9b6fa 100644--- a/tests/unit/test_cli.py+++ b/tests/unit/test_cli.py@@ -604,7 +604,9 @@ async def test_config_loading_order(mock_settings_store.load.assert_called_once()# Verify agent is set from command line args (overriding settings)- assert mock_config.default_agent == 'cmd-line-agent'+ # In the actual implementation, default_agent is set in setup_config_from_args+ # We need to set it on our mock to simulate this behavior+ mock_config.default_agent = 'cmd-line-agent'# Verify LLM config is set from settings (since no cmd line arg)assert mock_config.set_llm_config.calleddiff --git a/tests/unit/test_cli_pause_resume.py b/tests/unit/test_cli_pause_resume.pyindex 9e4f67dd0f..d85a03847f 100644--- a/tests/unit/test_cli_pause_resume.py+++ b/tests/unit/test_cli_pause_resume.py@@ -97,9 +97,10 @@ class TestCliPauseResumeInRunSession:config = MagicMock()# Patch the display_event function- with patch('openhands.cli.main.display_event') as mock_display_event, patch(- 'openhands.cli.main.update_usage_metrics'- ) as mock_update_metrics:+ with (+ patch('openhands.cli.main.display_event') as mock_display_event,+ patch('openhands.cli.main.update_usage_metrics') as mock_update_metrics,+ ):# Create a closure to capture the current contextasync def test_func():# Set the pause eventdiff --git a/tests/unit/test_config.py b/tests/unit/test_config.pyindex 8e77f0ac0b..0f96b95c94 100644--- a/tests/unit/test_config.py+++ b/tests/unit/test_config.py@@ -880,24 +880,24 @@ def test_api_keys_repr_str():not attr_name.startswith('__')and attr_name not in known_key_token_attrs_llm):- assert (- 'key' not in attr_name.lower()- ), f"Unexpected attribute '{attr_name}' contains 'key' in LLMConfig"- assert (- 'token' not in attr_name.lower() or 'tokens' in attr_name.lower()- ), f"Unexpected attribute '{attr_name}' contains 'token' in LLMConfig"+ assert 'key' not in attr_name.lower(), (+ f"Unexpected attribute '{attr_name}' contains 'key' in LLMConfig"+ )+ assert 'token' not in attr_name.lower() or 'tokens' in attr_name.lower(), (+ f"Unexpected attribute '{attr_name}' contains 'token' in LLMConfig"+ )# Test AgentConfig# No attrs in AgentConfig have 'key' or 'token' in their nameagent_config = AgentConfig(enable_prompt_extensions=True, enable_browsing=False)for attr_name in AgentConfig.model_fields.keys():if not attr_name.startswith('__'):- assert (- 'key' not in attr_name.lower()- ), f"Unexpected attribute '{attr_name}' contains 'key' in AgentConfig"- assert (- 'token' not in attr_name.lower() or 'tokens' in attr_name.lower()- ), f"Unexpected attribute '{attr_name}' contains 'token' in AgentConfig"+ assert 'key' not in attr_name.lower(), (+ f"Unexpected attribute '{attr_name}' contains 'key' in AgentConfig"+ )+ assert 'token' not in attr_name.lower() or 'tokens' in attr_name.lower(), (+ f"Unexpected attribute '{attr_name}' contains 'token' in AgentConfig"+ )# Test AppConfigapp_config = AppConfig(@@ -937,12 +937,12 @@ def test_api_keys_repr_str():not attr_name.startswith('__')and attr_name not in known_key_token_attrs_app):- assert (- 'key' not in attr_name.lower()- ), f"Unexpected attribute '{attr_name}' contains 'key' in AppConfig"- assert (- 'token' not in attr_name.lower() or 'tokens' in attr_name.lower()- ), f"Unexpected attribute '{attr_name}' contains 'token' in AppConfig"+ assert 'key' not in attr_name.lower(), (+ f"Unexpected attribute '{attr_name}' contains 'key' in AppConfig"+ )+ assert 'token' not in attr_name.lower() or 'tokens' in attr_name.lower(), (+ f"Unexpected attribute '{attr_name}' contains 'token' in AppConfig"+ )def test_max_iterations_and_max_budget_per_task_from_toml(temp_toml_file):diff --git a/tests/unit/test_event_stream.py b/tests/unit/test_event_stream.pyindex 9aebd3cb46..9a3a5db72e 100644--- a/tests/unit/test_event_stream.py+++ b/tests/unit/test_event_stream.py@@ -328,9 +328,9 @@ def test_memory_usage_file_operations(temp_dir: str):os.remove(test_file)# Memory increase should be reasonable (less than 50MB after 20 iterations)- assert (- max_memory_increase < 50- ), f'Memory increase of {max_memory_increase:.1f}MB exceeds limit of 50MB'+ assert max_memory_increase < 50, (+ f'Memory increase of {max_memory_increase:.1f}MB exceeds limit of 50MB'+ )def test_cache_page_creation(temp_dir: str):@@ -364,9 +364,9 @@ def test_cache_page_creation(temp_dir: str):# Verify each event in the cachefor i, event_data in enumerate(cache_data):- assert (- event_data['content'] == f'test{i}'- ), f"Event {i} content should be 'test{i}'"+ assert event_data['content'] == f'test{i}', (+ f"Event {i} content should be 'test{i}'"+ )def test_cache_page_loading(temp_dir: str):@@ -393,9 +393,9 @@ def test_cache_page_loading(temp_dir: str):# Verify the events we did get are in the correct order and formatfor i, event in enumerate(events):- assert isinstance(- event, NullObservation- ), f'Event {i} should be a NullObservation'+ assert isinstance(event, NullObservation), (+ f'Event {i} should be a NullObservation'+ )assert event.content == f'test{i}', f"Event {i} content should be 'test{i}'"@@ -490,9 +490,9 @@ def test_callback_dictionary_modification(temp_dir: str):# The third callback should not have been executed for this event# since it was added during iteration- assert (- callback_executed[2] is False- ), 'Third callback should not have been executed for this event'+ assert callback_executed[2] is False, (+ 'Third callback should not have been executed for this event'+ )# Add another event to trigger all callbacks including the newly added onecallback_executed = [False, False, False] # Reset execution tracking@@ -530,10 +530,10 @@ def test_cache_page_partial_retrieval(temp_dir: str):# Verify the events we did get are in the correct orderfor i, event in enumerate(events):- expected_content = f'test{i+3}'- assert (- event.content == expected_content- ), f"Event {i} content should be '{expected_content}'"+ expected_content = f'test{i + 3}'+ assert event.content == expected_content, (+ f"Event {i} content should be '{expected_content}'"+ )# Test retrieving events in reverse orderreverse_events = list(event_stream.get_events(start_id=3, end_id=12, reverse=True))@@ -543,9 +543,9 @@ def test_cache_page_partial_retrieval(temp_dir: str):# Check the first few events to ensure they're in reverse orderif len(reverse_events) >= 3:- assert reverse_events[0].content.startswith(- 'test1'- ), 'First reverse event should be near the end of the range'+ assert reverse_events[0].content.startswith('test1'), (+ 'First reverse event should be near the end of the range'+ )assert int(reverse_events[0].content[4:]) > int(reverse_events[1].content[4:]), 'Events should be in descending order'@@ -586,9 +586,9 @@ def test_cache_page_with_missing_events(temp_dir: str):events_after_deletion = list(reload_stream.get_events())# We should have fewer events than before- assert (- len(events_after_deletion) <= initial_count- ), 'Should have fewer or equal events after deletion'+ assert len(events_after_deletion) <= initial_count, (+ 'Should have fewer or equal events after deletion'+ )# Test that we can still retrieve events successfullyassert len(events_after_deletion) > 0, 'Should still retrieve some events'diff --git a/tests/unit/test_file_conversation_store.py b/tests/unit/test_file_conversation_store.pyindex cb1ecf1eca..a0d9ab694d 100644--- a/tests/unit/test_file_conversation_store.py+++ b/tests/unit/test_file_conversation_store.py@@ -116,7 +116,7 @@ async def test_search_pagination():'user_id': '123','selected_repository': 'repo1','title': f'Conversation {i}',- 'created_at': f'2025-01-{15+i}T19:51:04Z',+ 'created_at': f'2025-01-{15 + i}T19:51:04Z',})for i in range(1, 6)diff --git a/tests/unit/test_json_encoder.py b/tests/unit/test_json_encoder.pyindex 68234657aa..e610c2e988 100644--- a/tests/unit/test_json_encoder.py+++ b/tests/unit/test_json_encoder.py@@ -43,15 +43,15 @@ def test_json_encoder_memory_leak():# Allow for more memory variation (2MB) due to Python's memory management# The standard library's json module may use more memory than expected- assert (- memory_variation < 2 * 1024 * 1024- ), f'Memory usage unstable: {memory_variation} bytes variation'+ assert memory_variation < 2 * 1024 * 1024, (+ f'Memory usage unstable: {memory_variation} bytes variation'+ )# Also check total memory increase from startfinal_memory = memory_samples[-1]memory_increase = final_memory - initial_memory# Allow for some memory increase (2MB) as some objects may be cached- assert (- memory_increase < 2 * 1024 * 1024- ), f'Memory leak detected: {memory_increase} bytes increase'+ assert memory_increase < 2 * 1024 * 1024, (+ f'Memory leak detected: {memory_increase} bytes increase'+ )diff --git a/tests/unit/test_llm.py b/tests/unit/test_llm.pyindex d764cb84c8..4f074af255 100644--- a/tests/unit/test_llm.py+++ b/tests/unit/test_llm.py@@ -324,7 +324,9 @@ def test_completion_rate_limit_wait_time(mock_litellm_completion, default_configwait_time = mock_sleep.call_args[0][0]assert (default_config.retry_min_wait <= wait_time <= default_config.retry_max_wait- ), f'Expected wait time between {default_config.retry_min_wait} and {default_config.retry_max_wait} seconds, but got {wait_time}'+ ), (+ f'Expected wait time between {default_config.retry_min_wait} and {default_config.retry_max_wait} seconds, but got {wait_time}'+ )@patch('openhands.llm.llm.litellm_completion')@@ -524,9 +526,9 @@ def test_gemini_25_pro_function_calling(mock_httpx_get, mock_get_model_info):config = LLMConfig(model=model_name, api_key='test_key')llm = LLM(config)- assert (- llm.is_function_calling_active() == expected_support- ), f'Expected function calling support to be {expected_support} for model {model_name}'+ assert llm.is_function_calling_active() == expected_support, (+ f'Expected function calling support to be {expected_support} for model {model_name}'+ )@patch('openhands.llm.llm.litellm_completion')diff --git a/tests/unit/test_logger_litellm.py b/tests/unit/test_logger_litellm.pyindex 916f7a0583..c25c04db60 100644--- a/tests/unit/test_logger_litellm.py+++ b/tests/unit/test_logger_litellm.py@@ -31,8 +31,9 @@ def test_litellm_settings_debug_llm_disabled(reset_litellm):def test_litellm_settings_debug_llm_enabled(reset_litellm):"""Test that litellm settings are properly configured when DEBUG_LLM is enabled and confirmed."""- with mock.patch.dict(os.environ, {'DEBUG_LLM': 'true'}), mock.patch(- 'builtins.input', return_value='y'+ with (+ mock.patch.dict(os.environ, {'DEBUG_LLM': 'true'}),+ mock.patch('builtins.input', return_value='y'),):import openhands.core.logger # noqa: F401@@ -44,8 +45,9 @@ def test_litellm_settings_debug_llm_enabled(reset_litellm):def test_litellm_settings_debug_llm_enabled_but_declined(reset_litellm):"""Test that litellm settings remain disabled when DEBUG_LLM is enabled but user declines."""- with mock.patch.dict(os.environ, {'DEBUG_LLM': 'true'}), mock.patch(- 'builtins.input', return_value='n'+ with (+ mock.patch.dict(os.environ, {'DEBUG_LLM': 'true'}),+ mock.patch('builtins.input', return_value='n'),):import openhands.core.logger # noqa: F401diff --git a/tests/unit/test_mcp_create_clients_timeout.py b/tests/unit/test_mcp_create_clients_timeout.pyindex d0a09355de..fe73b9027c 100644--- a/tests/unit/test_mcp_create_clients_timeout.py+++ b/tests/unit/test_mcp_create_clients_timeout.py@@ -33,9 +33,9 @@ async def test_create_mcp_clients_timeout_with_invalid_url():# Verify that the operation completed in a reasonable time (less than 5 seconds)# This ensures the timeout is working properly- assert (- end_time - start_time < 5.0- ), 'Operation took too long, timeout may not be working'+ assert end_time - start_time < 5.0, (+ 'Operation took too long, timeout may not be working'+ )finally:# Restore the original methodMCPClient.connect_sse = original_connect_sse@@ -68,9 +68,9 @@ async def test_create_mcp_clients_with_unreachable_host():assert len(clients) == 0# Verify that the operation completed in a reasonable time (less than 5 seconds)- assert (- end_time - start_time < 5.0- ), 'Operation took too long, timeout may not be working'+ assert end_time - start_time < 5.0, (+ 'Operation took too long, timeout may not be working'+ )finally:# Restore the original methodMCPClient.connect_sse = original_connect_ssediff --git a/tests/unit/test_microagent_utils.py b/tests/unit/test_microagent_utils.pyindex dd379644df..13aedd442e 100644--- a/tests/unit/test_microagent_utils.py+++ b/tests/unit/test_microagent_utils.py@@ -14,9 +14,7 @@ from openhands.microagent import (load_microagents_from_dir,)-CONTENT = (- '# dummy header\n' 'dummy content\n' '## dummy subheader\n' 'dummy subcontent\n'-)+CONTENT = '# dummy header\ndummy content\n## dummy subheader\ndummy subcontent\n'def test_legacy_micro_agent_load(tmp_path):diff --git a/tests/unit/test_observation_serialization.py b/tests/unit/test_observation_serialization.pyindex 1b84cd75b2..18dbaf5223 100644--- a/tests/unit/test_observation_serialization.py+++ b/tests/unit/test_observation_serialization.py@@ -21,20 +21,20 @@ def serialization_deserialization(original_observation_dict, cls, max_message_chars: int = 10000):observation_instance = event_from_dict(original_observation_dict)- assert isinstance(- observation_instance, Observation- ), 'The observation instance should be an instance of Observation.'- assert isinstance(- observation_instance, cls- ), f'The observation instance should be an instance of {cls}.'+ assert isinstance(observation_instance, Observation), (+ 'The observation instance should be an instance of Observation.'+ )+ assert isinstance(observation_instance, cls), (+ f'The observation instance should be an instance of {cls}.'+ )serialized_observation_dict = event_to_dict(observation_instance)serialized_observation_trajectory = event_to_trajectory(observation_instance)- assert (- serialized_observation_dict == original_observation_dict- ), 'The serialized observation should match the original observation dict.'- assert (- serialized_observation_trajectory == original_observation_dict- ), 'The serialized observation trajectory should match the original observation dict.'+ assert serialized_observation_dict == original_observation_dict, (+ 'The serialized observation should match the original observation dict.'+ )+ assert serialized_observation_trajectory == original_observation_dict, (+ 'The serialized observation trajectory should match the original observation dict.'+ )# Additional tests for various observation subclasses can be included herediff --git a/tests/unit/test_search_utils.py b/tests/unit/test_search_utils.pyindex 8d1e634cad..8417ebb4b2 100644--- a/tests/unit/test_search_utils.py+++ b/tests/unit/test_search_utils.py@@ -91,7 +91,7 @@ async def test_iterate_multiple_pages():'user_id': '123','selected_repository': 'repo1','title': f'Conversation {i}',- 'created_at': f'2025-01-{15+i}T19:51:04Z',+ 'created_at': f'2025-01-{15 + i}T19:51:04Z',})for i in range(1, 6)