-
Notifications
You must be signed in to change notification settings - Fork 605
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement babyagi_agent
and integrate it into multimodel role playing
#210
Conversation
Please keep this PR as a draft |
Still one error in mypy test: camel/agents/babyagi_agent.py:21: error: Cannot find implementation or library stub for module named "chromadb.utils.embedding_functions" [import]. I used |
babyagi_agent
and intergrate it into multimodel role playing
babyagi_agent
and intergrate it into multimodel role playingbabyagi_agent
and integrate it into multimodel role playing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look good! Thanks for the fix. Left a few small comments.
Co-authored-by: Guohao Li <lightaime@gmail.com>
Co-authored-by: Guohao Li <lightaime@gmail.com>
Co-authored-by: Guohao Li <lightaime@gmail.com>
Co-authored-by: Guohao Li <lightaime@gmail.com>
Co-authored-by: Guohao Li <lightaime@gmail.com>
Co-authored-by: Guohao Li <lightaime@gmail.com>
Co-authored-by: Guohao Li <lightaime@gmail.com>
Co-authored-by: Guohao Li <lightaime@gmail.com>
Co-authored-by: Guohao Li <lightaime@gmail.com>
Co-authored-by: Guohao Li <lightaime@gmail.com>
The output of the
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @hychen-naza. Did some small modifications. I think it is good to merge.
@hychen-naza @Obs01ete let me know if there is any question. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
Add
babyagi code
under camel agents, and put its itsexample code
andtesting code
in corresponding folders.Feature change:
camel/agents/babyagi_agent.py
: main updates happen here. I tried to make the code style and format close tochat_agent.py
and reuse its functions, which hopefully would make your review process easier.Example File:
camel/societies/role_playing_multi_model.py
: babyagi_agent and chat_agent work together, but I only changed agent initialization compare torole_playing.py
examples/ai_society/babyagi_playing.py
: babyagi_agent alone to plan and solve the taskTest File:
test/agents/test_babyagi_agent.py
: test babyagi_agentBabyagi Agent works by running an infinite loop that does the following steps:
1, Pulls the first task from the task list.
2, Sends the task to the execution agent, which uses OpenAI's API to complete the task based on the context.
3, Enriches the result and stores it in Chroma.
4, Creates new tasks and reprioritizes the task list based on the objective and the result of the previous task.
Compared to role-play, which has AI user and AI assistant, Babyagi Agent gives itself instructions through task creation and solve solutions by task execution.
Motivation and Context
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
close #186
Types of changes
What types of changes does your code introduce? Put an
x
in all the boxes that apply:Checklist
Go over all the following points, and put an
x
in all the boxes that apply.If you are unsure about any of these, don't hesitate to ask. We are here to help!