Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A programming framework for agentic AI. Discord:https://discord.gg/pAbnFJrkgZ

License

NotificationsYou must be signed in to change notification settings

autogenhub/autogen

 
 

Repository files navigation

PyPI versionBuildPython VersionDiscordTwitter

📚 Cite paper.

🔥 🎉 Sep 06, 2024: AutoGen now available asautogen on PyPI! We're excited to announce a more convenient package name for AutoGen: Starting with version 0.3.0, you can now install AutoGen using:

pip install autogen

We extend our sincere gratitude to the original owner ofautogen pypi package for generously transferring it to us.

Note: The previous package namepyautogen will remain valid for a transitional period. However, we encourage users to switch to the new, more intuitiveautogen package name, aspyautogen will eventually be deprecated.

📄License Change:With this new release and package name, we are officially switching to the Apache 2.0 license. This enhances our commitment to open-source collaboration while providing additional protections for contributors and users alike.

🔥 Aug, 2024: A new organizationautogenhub is created to host the development of AutoGen and related projects with open governance. We invite collaborators from all organizations and individuals.

🎉 May 29, 2024: DeepLearning.ai launched a new short courseAI Agentic Design Patterns with AutoGen, made in collaboration with Microsoft and Penn State University, and taught by AutoGen creatorsChi Wang andQingyun Wu.

🎉 May 24, 2024: Foundation Capital published an article onForbes: The Promise of Multi-Agent AI and a videoAI in the Real World Episode 2: Exploring Multi-Agent AI and AutoGen with Chi Wang.

🎉 May 13, 2024:The Economist published an article about multi-agent systems (MAS) following a January 2024 interview withChi Wang.

🎉 May 11, 2024:AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation received the best paper award at theICLR 2024 LLM Agents Workshop.

🎉 Apr 17, 2024: Andrew Ng cited AutoGen inThe Batch newsletter andWhat's next for AI agentic workflows at Sequoia Capital's AI Ascent (Mar 26).

🎉 Mar 3, 2024: What's new in AutoGen? 📰Blog; 📺Youtube.

🎉 Dec 31, 2023:AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation Framework is selected byTheSequence: My Five Favorite AI Papers of 2023.

🎉 Nov 8, 2023: AutoGen is selected intoOpen100: Top 100 Open Source achievements 35 days after spinoff fromFLAML.

🎉 Mar 29, 2023: AutoGen is first created inFLAML.

What is AutoGen

AutoGen is an open-source programming framework for building AI agents and facilitating cooperation among multiple agents to solve tasks. AutoGen aims to streamline the development and research of agentic AI, much like PyTorch does for Deep Learning. It offers features such as agents capable of interacting with each other, facilitates the use of various large language models (LLMs) and tool use support, autonomous and human-in-the-loop workflows, and multi-agent conversation patterns.

Open Source Statement: The project welcomes contributions from developers and organizations worldwide. Our goal is to foster a collaborative and inclusive community where diverse perspectives and expertise can drive innovation and enhance the project's capabilities. Whether you are an individual contributor or represent an organization, we invite you to join us in shaping the future of this project. Together, we can build something truly remarkable.

The project is currently maintained by adynamic group of volunteers from several organizations. Contact project administrators Chi Wang and Qingyun Wu viaauto-gen@outlook.com if you are interested in becoming a maintainer.

AutoGen Overview

AutoGen is created out of collaborativeresearch from Microsoft, Penn State University, and the University of Washington.

↑ Back to Top ↑

Quickstart

The easiest way to start playing is

  1. Click below to use the GitHub Codespace

    Open in GitHub Codespaces

  2. Copy OAI_CONFIG_LIST_sample to ./notebook folder, name to OAI_CONFIG_LIST, and set the correct configuration.

  3. Start playing with the notebooks!

NOTE: OAI_CONFIG_LIST_sample lists GPT-4 as the default model, as this represents our current recommendation, and is known to work well with AutoGen. If you use a model other than GPT-4, you may need to revise various system prompts (especially if using weaker models like GPT-3.5-turbo). Moreover, if you use models other than those hosted by OpenAI or Azure, you may incur additional risks related to alignment and safety. Proceed with caution if updating this default.

↑ Back to Top ↑

Option 1. Install and Run AutoGen in Docker

Find detailed instructions for usershere, and for developershere.

Option 2. Install AutoGen Locally

AutoGen requiresPython version >= 3.8, < 3.13. It can be installed from pip:

pip install autogen

Minimal dependencies are installed without extra options. You can install extra options based on the feature you need.

Find more options inInstallation.

Even if you are installing and running AutoGen locally outside of docker, the recommendation and default behavior of agents is to performcode execution in docker. Find more instructions and how to change the default behaviourhere.

For LLM inference configurations, check theFAQs.

↑ Back to Top ↑

Multi-Agent Conversation Framework

Autogen enables the next-gen LLM applications with a genericmulti-agent conversation framework. It offers customizable and conversable agents that integrate LLMs, tools, and humans.By automating chat among multiple capable agents, one can easily make them collectively perform tasks autonomously or with human feedback, including tasks that require using tools via code.

Features of this use case include:

  • Multi-agent conversations: AutoGen agents can communicate with each other to solve tasks. This allows for more complex and sophisticated applications than would be possible with a single LLM.
  • Customization: AutoGen agents can be customized to meet the specific needs of an application. This includes the ability to choose the LLMs to use, the types of human input to allow, and the tools to employ.
  • Human participation: AutoGen seamlessly allows human participation. This means that humans can provide input and feedback to the agents as needed.

Forexample,

fromautogenimportAssistantAgent,UserProxyAgent,config_list_from_json# Load LLM inference endpoints from an env variable or a file# See https://autogenhub.github.io/autogen/docs/FAQ#set-your-api-endpoints# and OAI_CONFIG_LIST_sampleconfig_list=config_list_from_json(env_or_file="OAI_CONFIG_LIST")# You can also set config_list directly as a list, for example, config_list = [{'model': 'gpt-4', 'api_key': '<your OpenAI API key here>'},]assistant=AssistantAgent("assistant",llm_config={"config_list":config_list})user_proxy=UserProxyAgent("user_proxy",code_execution_config={"work_dir":"coding","use_docker":False})# IMPORTANT: set to True to run code in docker, recommendeduser_proxy.initiate_chat(assistant,message="Plot a chart of NVDA and TESLA stock price change YTD.")# This initiates an automated chat between the two agents to solve the task

This example can be run with

pythontest/twoagent.py

After the repo is cloned.The figure below shows an example conversation flow with AutoGen.Agent Chat Example

Alternatively, thesample code here allows a user to chat with an AutoGen agent in ChatGPT style.Please find morecode examples for this feature.

↑ Back to Top ↑

Enhanced LLM Inferences

Autogen also helps maximize the utility out of the expensive LLMs such as ChatGPT and GPT-4. It offersenhanced LLM inference with powerful functionalities like caching, error handling, multi-config inference and templating.

↑ Back to Top ↑

Documentation

You can find detailed documentation about AutoGenhere.

In addition, you can find:

↑ Back to Top ↑

CookBook

Explore detailed implementations with sample code and applications to help you get started with AutoGen.Cookbook

Related Papers

AutoGen

@inproceedings{wu2023autogen,      title={AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation Framework},      author={Qingyun Wu and Gagan Bansal and Jieyu Zhang and Yiran Wu and Beibin Li and Erkang Zhu and Li Jiang and Xiaoyun Zhang and Shaokun Zhang and Jiale Liu and Ahmed Hassan Awadallah and Ryen W White and Doug Burger and Chi Wang},      year={2023},      eprint={2308.08155},      archivePrefix={arXiv},      primaryClass={cs.AI}}

EcoOptiGen

@inproceedings{wang2023EcoOptiGen,    title={Cost-Effective Hyperparameter Optimization for Large Language Model Generation Inference},    author={Chi Wang and Susan Xueqing Liu and Ahmed H. Awadallah},    year={2023},    booktitle={AutoML'23},}

MathChat

@inproceedings{wu2023empirical,    title={An Empirical Study on Challenging Math Problem Solving with GPT-4},    author={Yiran Wu and Feiran Jia and Shaokun Zhang and Hangyu Li and Erkang Zhu and Yue Wang and Yin Tat Lee and Richard Peng and Qingyun Wu and Chi Wang},    year={2023},    booktitle={ArXiv preprint arXiv:2306.01337},}

AgentOptimizer

@article{zhang2024training,  title={Training Language Model Agents without Modifying Language Models},  author={Zhang, Shaokun and Zhang, Jieyu and Liu, Jiale and Song, Linxin and Wang, Chi and Krishna, Ranjay and Wu, Qingyun},  journal={ICML'24},  year={2024}}

StateFlow

@article{wu2024stateflow,  title={StateFlow: Enhancing LLM Task-Solving through State-Driven Workflows},  author={Wu, Yiran and Yue, Tianwei and Zhang, Shaokun and Wang, Chi and Wu, Qingyun},  journal={arXiv preprint arXiv:2403.11322},  year={2024}}

↑ Back to Top ↑

Contributors Wall

↑ Back to Top ↑

License

This project is licensed under theApache License, Version 2.0 (Apache-2.0).

This project is a fork ofhttps://github.com/microsoft/autogen and contains code under two licenses:

We have documented these changes for clarity and to ensure transparency with our user and contributor community. For more details, please see theNOTICE file.

Packages

No packages published

Languages

  • Jupyter Notebook79.2%
  • Python12.1%
  • C#6.6%
  • MDX1.8%
  • JavaScript0.2%
  • CSS0.1%

[8]ページ先頭

©2009-2025 Movatter.jp