Skip to content
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

[Roadmap Issue]: CaptainAgent #39

Open
sonichi opened this issue Nov 19, 2024 · 3 comments · Fixed by #46
Open

[Roadmap Issue]: CaptainAgent #39

sonichi opened this issue Nov 19, 2024 · 3 comments · Fixed by #46
Assignees
Labels

Comments

@sonichi
Copy link
Collaborator

sonichi commented Nov 19, 2024

Describe the issue

Build a strong agent that performs planning, task decomposition, dynamic agent team creation, tool/agent selection, self-improvement. Save the manual effort of developers in experimenting with multi-agent design.

Additional Information

This is a long-term goal with ongoing research. As the first step, offer a built-in CaptainAgent based on https://arxiv.org/pdf/2405.19425
Then keep doing more research and improve it.

Code example

from autogen import CaptainAgent, UserProxyAgent

llm_config = {"model": "gpt-4o"}
captain = CaptainAgent(name="captain", llm_config=llm_config, code_execution_config={"use_docker": False})
user_proxy = UserProxyAgent(name="user_proxy")
query = 'Find the stock price of Microsoft in the past 1 year and plot a line chart to show the trend. Save the line chart as "microsoft_stock_price.png".'
result = user_proxy.initiate_chat(captain, message=query)

Expectation: outperform the existing AssistantAgent:

from autogen import UserProxyAgent, AssistantAgent

llm_config = {"model": "gpt-4o"}
user_proxy = UserProxyAgent(
    name="user_proxy",
    code_execution_config={"use_docker": False},
)
assistant = AssistantAgent(name="assistant", llm_config=llm_config)
query = 'Find the stock price of Microsoft in the past 1 year and plot a line chart to show the trend. Save the line chart as "microsoft_stock_price.png".'
result = user_proxy.initiate_chat(assistant, message=query)
@BlocUnited
Copy link
Collaborator

I can’t wait to use this!

@szwang-seedtech
Copy link
Collaborator

Nice job! BTW, is there any place or where can I follow up with the progress of graph RAG? I think it is crucial to captain agent, or captain agent may be easily messed up with all the info.

@qingyun-wu
Copy link
Contributor

Nice job! BTW, is there any place or where can I follow up with the progress of graph RAG? I think it is crucial to captain agent, or captain agent may be easily messed up with all the info.

@szwang-seedtech you can follow up with @randombet about graph RAG!

@sonichi sonichi linked a pull request Nov 20, 2024 that will close this issue
3 tasks
@sonichi sonichi reopened this Nov 26, 2024
github-merge-queue bot pushed a commit that referenced this issue Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants