- Notifications
You must be signed in to change notification settings - Fork1
Enable Next-Gen Large Language Model Applications. Join our Discord:https://discord.gg/pAbnFJrkgZ
License
binary-husky/autogen
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
🔥 Nov 24: pyautogenv0.2 is released with many updates and new features compared to v0.1.1. It switches to using openai-python v1. Please read themigration guide.
🔥 Nov 11: OpenAI's Assistants are available in AutoGen and interoperatable with other AutoGen agents! Checkout ourblogpost for details and examples.
🔥 Nov 8: AutoGen is selected intoOpen100: Top 100 Open Source achievements 35 days after spinoff.
🔥 Nov 6: AutoGen is mentioned by Satya Nadella in afireside chat around 13:20.
🔥 Nov 1: AutoGen is the top trending repo on GitHub in October 2023.
🎉 Oct 03: AutoGen spins off fromFLAML on Github and has a major paper update.
🎉 Aug 16: Paper about AutoGen onarxiv.📚 Cite paper.
🎉 Mar 29: AutoGen is first created inFLAML.
AutoGen is a framework that enables the development of LLM applications using multiple agents that can converse with each other to solve tasks. AutoGen agents are customizable, conversable, and seamlessly allow human participation. They can operate in various modes that employ combinations of LLMs, human inputs, and tools.
- AutoGen enables building next-gen LLM applications based onmulti-agent conversations with minimal effort. It simplifies the orchestration, automation, and optimization of a complex LLM workflow. It maximizes the performance of LLM models and overcomes their weaknesses.
- It supportsdiverse conversation patterns for complex workflows. With customizable and conversable agents, developers can use AutoGen to build a wide range of conversation patterns concerning conversation autonomy,the number of agents, and agent conversation topology.
- It provides a collection of working systems with different complexities. These systems span awide range of applications from various domains and complexities. This demonstrates how AutoGen can easily support diverse conversation patterns.
- AutoGen providesenhanced LLM inference. It offers utilities like API unification and caching, and advanced usage patterns, such as error handling, multi-config inference, context programming, etc.
AutoGen is powered by collaborativeresearch studies from Microsoft, Penn State University, and the University of Washington.
The easiest way to start playing is
Click below to use the GitHub Codespace
Copy OAI_CONFIG_LIST_sample to ./notebook folder, name to OAI_CONFIG_LIST, and set the correct configuration.
Start playing with the notebooks!
AutoGen requiresPython version >= 3.8, < 3.12. It can be installed from pip:
pip install pyautogen
Minimal dependencies are installed without extra options. You can install extra options based on the feature you need.
Find more options inInstallation.
Forcode execution, we strongly recommend installing the Python docker package and using docker.
For LLM inference configurations, check theFAQs.
For GUI configurations, check theGUI docs.
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://microsoft.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"})user_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.
Please find morecode examples for this feature.
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.
You can find detailed documentation about AutoGenhere.
In addition, you can find:
Research,blogposts around AutoGen, andTransparency FAQs
@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}}
@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},}
@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},}
This project welcomes contributions and suggestions. Most contributions require you to agree to aContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant usthe rights to use your contribution. For details, visithttps://cla.opensource.microsoft.com.
If you are new to GitHubhere is a detailed help source on getting involved with development on GitHub.
When you submit a pull request, a CLA bot will automatically determine whether you need to providea CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructionsprovided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted theMicrosoft Open Source Code of Conduct.For more information, see theCode of Conduct FAQ orcontactopencode@microsoft.com with any additional questions or comments.
Microsoft and any contributors grant you a license to the Microsoft documentation and other contentin this repository under theCreative Commons Attribution 4.0 International Public License,see theLICENSE file, and grant you a license to any code in the repository under theMIT License, see theLICENSE-CODE file.
Microsoft, Windows, Microsoft Azure, and/or other Microsoft products and services referenced in the documentationmay be either trademarks or registered trademarks of Microsoft in the United States and/or other countries.The licenses for this project do not grant you rights to use any Microsoft names, logos, or trademarks.Microsoft's general trademark guidelines can be found athttp://go.microsoft.com/fwlink/?LinkID=254653.
Privacy information can be found athttps://privacy.microsoft.com/en-us/
Microsoft and any contributors reserve all other rights, whether under their respective copyrights, patents,or trademarks, whether by implication, estoppel, or otherwise.
About
Enable Next-Gen Large Language Model Applications. Join our Discord:https://discord.gg/pAbnFJrkgZ
Resources
License
Code of conduct
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Languages
- Jupyter Notebook88.5%
- Python9.2%
- MDX2.0%
- Other0.3%