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

Introducing AutoBuilder #780

Closed
wants to merge 113 commits into from
Closed

Introducing AutoBuilder #780

wants to merge 113 commits into from

Conversation

LinxinS97
Copy link
Collaborator

@LinxinS97 LinxinS97 commented Nov 27, 2023

Why are these changes needed?

AutoBuild can help users build a multi-agent group chat for a specific task more easily. Here is a sample case:

from autogen.agentchat.contrib.agent_builder import AgentBuilder

# Specify a building task with a general description. 
# Building task will help build manager (a LLM) decide what agents should be build.
building_task = "Find a paper on arxiv by programming, and analysis its application in some domain. For example, find a latest paper about gpt-4 on arxiv and find its potential applications in software."

# Initialize a builder
builder = AgentBuilder(config_path=config_path, builder_model='gpt-4-1106-preview', agent_model='gpt-4-1106-preview')

# Let the builder generate the group chat agents' configs, including agent name and system message.
builder.build(building_task, default_llm_config)

# Let agents generated in build() complete the task collaboratively in a group chat.
builder.start(task="Find a latest paper about gpt-4 on arxiv and find its potential applications in software.")

# Clear agent caches
builder.clear_all_agents(recycle_endpoint=True)

Related issue number

Checks

@LinxinS97
Copy link
Collaborator Author

LinxinS97 commented Dec 4, 2023

This PR has been merged by PR #846 #855 #856

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
group chat/teams group-chat-related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants