From 3b0e1361a414acd3adb7ce090490a1d325ff7bc8 Mon Sep 17 00:00:00 2001 From: RainRat Date: Wed, 5 Jun 2024 08:06:40 -0700 Subject: [PATCH] fix typos (#2267) * fix typos no functional change * fix typos * fix typos * fix integration test --------- Co-authored-by: Engel Nyst Co-authored-by: Leo Co-authored-by: yufansong --- Development.md | 2 +- agenthub/browsing_agent/prompt.py | 2 +- agenthub/micro/study_repo_for_task/prompt.md | 2 +- tests/integration/mock/DelegatorAgent/test_edits/prompt_001.log | 2 +- tests/integration/mock/DelegatorAgent/test_edits/prompt_002.log | 2 +- tests/integration/mock/DelegatorAgent/test_edits/prompt_003.log | 2 +- .../mock/DelegatorAgent/test_write_simple_script/prompt_001.log | 2 +- .../mock/DelegatorAgent/test_write_simple_script/prompt_002.log | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Development.md b/Development.md index c30fd629d5..57b7c7b781 100644 --- a/Development.md +++ b/Development.md @@ -98,5 +98,5 @@ Please refer to [this README](./tests/integration/README.md) for details. ### 9. Add or update dependency -1. Add your dependency in `pyproject.toml` or use `peotry add xxx` +1. Add your dependency in `pyproject.toml` or use `poetry add xxx` 2. Update the poetry.lock file via `poetry lock --no-update` diff --git a/agenthub/browsing_agent/prompt.py b/agenthub/browsing_agent/prompt.py index 5c62b67204..0a40d97c76 100644 --- a/agenthub/browsing_agent/prompt.py +++ b/agenthub/browsing_agent/prompt.py @@ -161,7 +161,7 @@ class Truncater(Shrinkable): def __init__(self, visible, shrink_speed=0.3, start_truncate_iteration=10): super().__init__(visible=visible) - self.shrink_speed = shrink_speed # the percentage shrinked in each iteration + self.shrink_speed = shrink_speed # the percentage shrunk in each iteration self.start_truncate_iteration = ( start_truncate_iteration # the iteration to start truncating ) diff --git a/agenthub/micro/study_repo_for_task/prompt.md b/agenthub/micro/study_repo_for_task/prompt.md index 3199181d1d..37bc699f52 100644 --- a/agenthub/micro/study_repo_for_task/prompt.md +++ b/agenthub/micro/study_repo_for_task/prompt.md @@ -20,7 +20,7 @@ Do NOT finish until you have a complete understanding of which parts of the codebase are relevant to the project, including particular files, functions, and classes. When you're done, put your summary in `outputs.summary` in the `finish` action. Remember, your task is to explore and study the current repository, not actually -implement the solution. If the codebase is empty, you shoud call the `finish` action. +implement the solution. If the codebase is empty, you should call the `finish` action. ## History {{ instructions.history_truncated }} diff --git a/tests/integration/mock/DelegatorAgent/test_edits/prompt_001.log b/tests/integration/mock/DelegatorAgent/test_edits/prompt_001.log index 375a73b70a..9eef05af7f 100644 --- a/tests/integration/mock/DelegatorAgent/test_edits/prompt_001.log +++ b/tests/integration/mock/DelegatorAgent/test_edits/prompt_001.log @@ -34,7 +34,7 @@ Do NOT finish until you have a complete understanding of which parts of the codebase are relevant to the project, including particular files, functions, and classes. When you're done, put your summary in `outputs.summary` in the `finish` action. Remember, your task is to explore and study the current repository, not actually -implement the solution. If the codebase is empty, you shoud call the `finish` action. +implement the solution. If the codebase is empty, you should call the `finish` action. ## History Here is a recent history of actions you've taken in service of this plan, diff --git a/tests/integration/mock/DelegatorAgent/test_edits/prompt_002.log b/tests/integration/mock/DelegatorAgent/test_edits/prompt_002.log index cffca888f1..41f568d174 100644 --- a/tests/integration/mock/DelegatorAgent/test_edits/prompt_002.log +++ b/tests/integration/mock/DelegatorAgent/test_edits/prompt_002.log @@ -34,7 +34,7 @@ Do NOT finish until you have a complete understanding of which parts of the codebase are relevant to the project, including particular files, functions, and classes. When you're done, put your summary in `outputs.summary` in the `finish` action. Remember, your task is to explore and study the current repository, not actually -implement the solution. If the codebase is empty, you shoud call the `finish` action. +implement the solution. If the codebase is empty, you should call the `finish` action. ## History Here is a recent history of actions you've taken in service of this plan, diff --git a/tests/integration/mock/DelegatorAgent/test_edits/prompt_003.log b/tests/integration/mock/DelegatorAgent/test_edits/prompt_003.log index a58dd072b8..3900020edd 100644 --- a/tests/integration/mock/DelegatorAgent/test_edits/prompt_003.log +++ b/tests/integration/mock/DelegatorAgent/test_edits/prompt_003.log @@ -34,7 +34,7 @@ Do NOT finish until you have a complete understanding of which parts of the codebase are relevant to the project, including particular files, functions, and classes. When you're done, put your summary in `outputs.summary` in the `finish` action. Remember, your task is to explore and study the current repository, not actually -implement the solution. If the codebase is empty, you shoud call the `finish` action. +implement the solution. If the codebase is empty, you should call the `finish` action. ## History Here is a recent history of actions you've taken in service of this plan, diff --git a/tests/integration/mock/DelegatorAgent/test_write_simple_script/prompt_001.log b/tests/integration/mock/DelegatorAgent/test_write_simple_script/prompt_001.log index 14c93cc8fd..40d5b6cfcb 100644 --- a/tests/integration/mock/DelegatorAgent/test_write_simple_script/prompt_001.log +++ b/tests/integration/mock/DelegatorAgent/test_write_simple_script/prompt_001.log @@ -34,7 +34,7 @@ Do NOT finish until you have a complete understanding of which parts of the codebase are relevant to the project, including particular files, functions, and classes. When you're done, put your summary in `outputs.summary` in the `finish` action. Remember, your task is to explore and study the current repository, not actually -implement the solution. If the codebase is empty, you shoud call the `finish` action. +implement the solution. If the codebase is empty, you should call the `finish` action. ## History Here is a recent history of actions you've taken in service of this plan, diff --git a/tests/integration/mock/DelegatorAgent/test_write_simple_script/prompt_002.log b/tests/integration/mock/DelegatorAgent/test_write_simple_script/prompt_002.log index f113fdb048..c2900529bf 100644 --- a/tests/integration/mock/DelegatorAgent/test_write_simple_script/prompt_002.log +++ b/tests/integration/mock/DelegatorAgent/test_write_simple_script/prompt_002.log @@ -34,7 +34,7 @@ Do NOT finish until you have a complete understanding of which parts of the codebase are relevant to the project, including particular files, functions, and classes. When you're done, put your summary in `outputs.summary` in the `finish` action. Remember, your task is to explore and study the current repository, not actually -implement the solution. If the codebase is empty, you shoud call the `finish` action. +implement the solution. If the codebase is empty, you should call the `finish` action. ## History Here is a recent history of actions you've taken in service of this plan,