-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(agent): Agent modular refactoring (#1487)
- Loading branch information
Showing
86 changed files
with
4,506 additions
and
960 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
This file was deleted.
Oops, something went wrong.
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 +1,22 @@ | ||
"""Core Module for the Agent.""" | ||
"""Core Module for the Agent. | ||
There are four modules in DB-GPT agent core according the paper | ||
`A survey on large language model based autonomous agents | ||
<https://link.springer.com/article/10.1007/s11704-024-40231-1>` | ||
by `Lei Wang, Chen Ma, Xueyang Feng, et al.`: | ||
1. Profiling Module: The profiling module aims to indicate the profiles of the agent | ||
roles. | ||
2. Memory Module: It stores information perceived from the environment and leverages | ||
the recorded memories to facilitate future actions. | ||
3. Planning Module: When faced with a complex task, humans tend to deconstruct it into | ||
simpler subtasks and solve them individually. The planning module aims to empower the | ||
agents with such human capability, which is expected to make the agent behave more | ||
reasonably, powerfully, and reliably | ||
4. Action Module: The action module is responsible for translating the agent’s | ||
decisions into specific outcomes. This module is located at the most downstream | ||
position and directly interacts with the environment. | ||
""" |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
"""Action Module. | ||
The action module is responsible for translating the agent’s decisions into specific | ||
outcomes. This module is located at the most downstream position and directly interacts | ||
with the environment. It is influenced by the profile, memory, and planning modules. | ||
The Goal Of The Action Module: | ||
-------- | ||
1. Task Completion: Complete specific tasks, write a function in software development, | ||
and make an iron pick in the game. | ||
2. Communication: Communicate with other agents. | ||
3. Environment exploration: Explore unfamiliar environments to expand its perception | ||
and strike a balance between exploring and exploiting. | ||
""" | ||
|
||
from .base import Action, ActionOutput # noqa: F401 | ||
from .blank_action import BlankAction # noqa: F401 |
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.