You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor agent delegation and tweak micro agents (#1910)
This PR fixes#1897. In addition, this PR fixes and tweaks a few micro-agents.
For the first time, I am able to use ManagerAgent to complete test_write_simple_script and test_edits tasks in integration tests, so this PR also adds ManagerAgent as part of integration tests. test_write_simple_script involves delegation to CoderAgent while test_edits involves delegation to TypoFixerAgent.
Also for the first time, I am able to use DelegateAgent to complete test_write_simple_script and test_edits tasks in integration tests, so this PR also adds DelegateAgent as part of integration tests. It involves delegation to StudyRepoForTaskAgent, CoderAgent and VerifierAgent.
This PR is a blocker for #1735 and likely #1945.
Copy file name to clipboardExpand all lines: agenthub/micro/typo_fixer_agent/prompt.md
+11-3
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,13 @@
1
1
# Task
2
-
You are a proofreader tasked with fixing typos in the files in your current working directory. Your goal is to:
2
+
You are a proofreader tasked with fixing typos in the files in your current working directory.
3
+
4
+
{% if state.inputs.task %}
5
+
Specifically, your task is:
6
+
{{ state.inputs.task }}
7
+
{% endif %}
8
+
9
+
To achieve this goal, you should:
10
+
3
11
1. Scan the files for typos
4
12
2. Overwrite the files with the typos fixed
5
13
3. Provide a summary of the typos fixed
@@ -13,10 +21,10 @@ You are a proofreader tasked with fixing typos in the files in your current work
13
21
14
22
To complete this task:
15
23
1. Use the `read` action to read the contents of the files in your current working directory. Make sure to provide the file path in the format `'./file_name.ext'`.
16
-
2. Use the `think` action to analyze the contents and identify typos.
24
+
2. Use the `message` action to analyze the contents and identify typos.
17
25
3. Use the `write` action to create new versions of the files with the typos fixed.
18
26
- Overwrite the original files with the corrected content. Make sure to provide the file path in the format `'./file_name.ext'`.
19
-
4. Use the `think` action to generate a summary of the typos fixed, including the original and fixed versions of each typo, and the file(s) they were found in.
27
+
4. Use the `message` action to generate a summary of the typos fixed, including the original and fixed versions of each typo, and the file(s) they were found in.
20
28
5. Use the `finish` action to return the summary in the `outputs.summary` field.
21
29
22
30
Do NOT finish until you have fixed all the typos and generated a summary.
0 commit comments