AutoGen

AutoGen: Enable Next-Gen Large Language Model Applications

1 min


[vc_headings linewidth=”0″ borderwidth=”1″ borderclr=”#000000″ title=”AutoGen” google_fonts=”font_family:Comfortaa%3A300%2Cregular%2C700|font_style:700%20bold%20regular%3A700%3Anormal” titlesize=”60″ titleclr=”#000000″ caption_url=”” caption_urls=”” caption_urlss=”” caption_urldesc=””]Enable Next-Gen Large Language Model Applications[/vc_headings]
Github logo

AutoGen is a platform that supports the creation of LLM applications with multiple agents that can communicate with each other to accomplish tasks. AutoGen agents are adaptable, interactive, and smoothly integrate human involvement. They can work in different modes that use combinations of LLMs, human inputs, and tools.

[vc_headings style=”theme4″ borderclr=”#000000″ style2=”image” title=”Features” google_fonts=”font_family:Comfortaa%3A300%2Cregular%2C700|font_style:700%20bold%20regular%3A700%3Anormal” lineheight=”3″ titlesize=”40″ titleclr=”#000000″ image_id=”2871″][/vc_headings]
[vc_headings style=”theme4″ borderclr=”#000000″ style2=”image” title=”Getting Started 🚀” google_fonts=”font_family:Comfortaa%3A300%2Cregular%2C700|font_style:700%20bold%20regular%3A700%3Anormal” lineheight=”3″ titlesize=”40″ titleclr=”#000000″ image_id=”2854″ caption_url=”” caption_urls=”” caption_urlss=”” caption_urldesc=””][/vc_headings]

If you want to get started right away, follow these simple steps:

1. Click on the button below to launch the GitHub Codespace

Open in GitHub Codespaces

2. Rename OAI_CONFIG_LIST_sample to OAI_CONFIG_LIST and move it to /notebook folder. Make sure to adjust the config settings as needed.

3. Enjoy exploring the notebooks!

AutoGen is a framework for creating LLM applications with conversational agents and minimal coding
AutoGen supports various conversation patterns and agent configurations for complex workflows
AutoGen showcases a range of working systems from different domains and complexities
AutoGen offers an enhanced inference API with performance tuning, utilities, and advanced features
AutoGen is based on collaborative research from Microsoft, Penn State University, and the University of Washington
AutoGen
[vc_headings style=”theme4″ borderclr=”#000000″ style2=”image” title=”Installation” google_fonts=”font_family:Comfortaa%3A300%2Cregular%2C700|font_style:700%20bold%20regular%3A700%3Anormal” lineheight=”3″ titlesize=”40″ titleclr=”#000000″ image_id=”2854″ caption_url=”” caption_urls=”” caption_urlss=”” caption_urldesc=””][/vc_headings]

To use AutoGen, you need Python version 3.8 or higher. You can get it from pip:

pip install pyautogen

This will install the basic dependencies. For additional features, you can specify extra options when installing.

See Installation for more options.

We highly recommend using docker and the python docker package for code execution.

For LLM inference settings, refer to the FAQs.

from autogen import AssistantAgent, 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_sample
config_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

Multi-Agent Conversation Framework

Autogen is a generic framework for building next-gen LLM applications that involve multi-agent conversations. It allows users to create and customize conversable agents that can integrate LLMs, tools, and humans. By enabling chat among multiple intelligent agents, Autogen can facilitate tasks that require collective problem-solving, automation, or human guidance, including tasks that involve using tools via code.

Some of the features of this use case are:

✅Multi-agent conversations

Autogen enables communication among different agents to accomplish tasks. This enables more advanced and diverse applications than what a single LLM can do.

✅Customization

Autogen allows users to tailor the agents to their specific application needs. This includes the option to select the LLMs, the human input modes, and the tools to use.

✅Human participation

Autogen smoothly integrates human involvement. This means that humans can interact with and provide feedback to the agents as needed.

[mvc_advanced_button align=”center” btn_text=”Github” icon_size=”25″ use_theme_fonts=”yes” btn_icon=”fab fa-github” btn_url=”url:https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fautogen|target:_blank” btn_clr=”#ffffff” btn_bg=”#0a0a0a” btn_radius=”50″ caption_url=”” caption_urls=”” caption_urlss=””]
[mvc_advanced_button align=”center” btn_text=”Python” icon_size=”25″ use_theme_fonts=”yes” btn_url=”url:https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fautogen%2Factions%2Fworkflows%2Fpython-package.yml|target:_blank” btn_clr=”#ffffff” btn_bg=”#ff4300″ btn_radius=”50″ btn_icon=”fas fa-code” caption_url=”” caption_urls=”” caption_urlss=””]
[mvc_advanced_button align=”center” btn_text=”Discord” padding_left=”21″ icon_size=”25″ use_theme_fonts=”yes” btn_url=”url:https%3A%2F%2Fdiscord.gg%2FpAbnFJrkgZ|target:_blank” btn_clr=”#ffffff” btn_bg=”#7289da” btn_radius=”50″ caption_url=”” caption_urls=”” caption_urlss=”” btn_icon=”fas fa-users”]

Like it? Share with your friends!

0

0 Comments

Your email address will not be published. Required fields are marked *

Belmechri

I am an IT engineer, content creator, and proud father with a passion for innovation and excellence. In both my personal and professional life, I strive for excellence and am committed to finding innovative solutions to complex problems.
Choose A Format
Personality quiz
Series of questions that intends to reveal something about the personality
Trivia quiz
Series of questions with right and wrong answers that intends to check knowledge
Poll
Voting to make decisions or determine opinions
Story
Formatted Text with Embeds and Visuals
List
The Classic Internet Listicles
Countdown
The Classic Internet Countdowns
Open List
Submit your own item and vote up for the best submission
Ranked List
Upvote or downvote to decide the best list item
Meme
Upload your own images to make custom memes
Video
Youtube and Vimeo Embeds
Audio
Soundcloud or Mixcloud Embeds
Image
Photo or GIF
Gif
GIF format