-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
423 additions
and
271 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,36 @@ | ||
# CoAct Multi-Agent Framework | ||
|
||
This folder implements a multi-agent workflow inspired by the CoAct framework ([paper](https://arxiv.org/abs/2406.13381)), that provides a robust structure for defining, planning, and executing tasks using multiple agents. | ||
This folder implements a multi-agent workflow inspired by the CoAct framework ([paper](https://arxiv.org/abs/2406.13381)), that provides a robust structure for defining, planning, and executing tasks using multiple agents. | ||
|
||
## Agents | ||
## Agents | ||
|
||
1. `CoActPlannerAgent`: | ||
- is responsible for exploring and creating a global plan. It can replan if there are issues with the previous one. | ||
- has full capabilities of [CodeActAgent](https://github.com/All-Hands-AI/OpenHands/tree/main/agenthub/codeact_agent). | ||
2. `CoActExecutorAgent`: | ||
- is responsible for executing the proposed plan. Facing issues with the plan, it can request for a new one. | ||
- also has full capabilities of [CodeActAgent](https://github.com/All-Hands-AI/OpenHands/tree/main/agenthub/codeact_agent). | ||
1. `CoActPlannerAgent`: | ||
- is responsible for exploring and creating a global plan. It can replan if there are issues with the previous one. | ||
- has full capabilities of [CodeActAgent](https://github.com/All-Hands-AI/OpenHands/tree/main/agenthub/codeact_agent). | ||
2. `CoActExecutorAgent`: | ||
- is responsible for executing the proposed plan. Facing issues with the plan, it can request for a new one. | ||
- also has full capabilities of [CodeActAgent](https://github.com/All-Hands-AI/OpenHands/tree/main/agenthub/codeact_agent). | ||
|
||
|
||
## Plan structure | ||
```markdown | ||
The user message is: <<Full user's message here.>> | ||
# Phases | ||
## Phase 1 | ||
- description: <<The task that needs to be done in this phase.>> | ||
- reason: <<Assistant's thorough thoughts on why this phase is necessary, with tips/codes to instruct the executor finish the task easier.>> | ||
- expected_state: <<Describe the expected state after this phase is completed. If the task involves code editing, provide the expectation of the code after the edit.>> | ||
<file_path> <<The file path to edit. In one phase only 1 file is edited.>> </file_path> | ||
<expected_content> | ||
<<The partial expected content here WITH LINE NUMBERS and a vertical bar before the actual code e.g., 1|, 11|.>> | ||
</expected_content> | ||
## Phase 2 | ||
- description: ... | ||
- reason: ... | ||
- expected_state: ... | ||
<file_path> ... </file_path> | ||
<expected_content> | ||
...|... | ||
</expected_content> | ||
## Phase ... | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.