os1ai
  • os1
  • Maintainers
  • NOTICE
  • os1: Responsible AI FAQs
  • Devcontainer Configurations for os1
  • .github
    • ISSUE_TEMPLATE
    • PULL_REQUEST_TEMPLATE
  • notebook
    • Contributing
  • Website
  • OS1
    • agentchat
      • contrib
        • agent_eval
        • captainagent
          • tools
Powered by GitBook
On this page
  • What is os1
  • Quickstart
  • Installation
  • Option 1. Install and Run os1 in Docker
  • Option 2. Install os1 Locally
  • Multi-Agent Conversation Framework
  • Enhanced LLM Inferences
  • CookBook
  • Related Papers
  • Contributors Wall
  • License

os1

NextMaintainers

Last updated 4 months ago

.

IMPORTANT

Nov 11, 2024: We are evolving AutoGen into os1! A new organization is created to host the development of os1 and related projects with open governance. Check .

We invite collaborators from all organizations and individuals to join the development.

os1 is available via pyautogen (or its alias autogen or os1) on PyPI!

pip install pyautogen

📄 License: We adopt the Apache 2.0 license from v0.3. This enhances our commitment to open-source collaboration while providing additional protections for contributors and users alike.

May 29, 2024: DeepLearning.ai launched a new short course , made in collaboration with Microsoft and Penn State University, and taught by AutoGen creators and .

May 24, 2024: Foundation Capital published an article on and a video .

May 13, 2024: published an article about multi-agent systems (MAS) following a January 2024 interview with .

May 11, 2024: received the best paper award at the .

Apr 17, 2024: Andrew Ng cited AutoGen in and at Sequoia Capital's AI Ascent (Mar 26).

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

Dec 31, 2023: is selected by .

Nov 8, 2023: AutoGen is selected into 35 days after spinoff from .

Mar 29, 2023: AutoGen is first created in .

What is os1

os1 (formerly AutoGen) is an open-source programming framework for building AI agents and facilitating cooperation among multiple agents to solve tasks. os1 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.

Quickstart

The easiest way to start playing is

  1. Click below to use the GitHub Codespace

  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-4o as the default model. If you use a different model, you may need to revise various system prompts (especially if using weaker models like gpt-4o-mini). Proceed with caution when updating this default and be aware of additional risks related to alignment and safety.

Option 1. Install and Run os1 in Docker

Option 2. Install os1 Locally

os1 requires Python version >= 3.9, < 3.14. It can be installed from pip:

pip install os1

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

Multi-Agent Conversation Framework

Features of this use case include:

  • Multi-agent conversations: os1 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: os1 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: os1 seamlessly allows human participation. This means that humans can provide input and feedback to the agents as needed.

from autogen import AssistantAgent, UserProxyAgent, config_list_from_json
# Load LLM inference endpoints from an env variable or a file
# See https://docs.os1.ai/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-4o', '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, recommended
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

python test/twoagent.py

After the repo is cloned. The figure below shows an example conversation flow with os1.

Enhanced LLM Inferences

CookBook

Related Papers

@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},
}
@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}
}
@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}
}

Contributors Wall

License

The project is currently maintained by a from several organizations. Contact project administrators Chi Wang and Qingyun Wu via if you are interested in becoming a maintainer.

os1 Overview

Find detailed instructions for users , and for developers .

Find more options in .

Even if you are installing and running os1 locally outside of docker, the recommendation and default behavior of agents is to perform in docker. Find more instructions and how to change the default behaviour .

For LLM inference configurations, check the .

os1 enables the next-gen LLM applications with a generic 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.

For ,

Agent Chat Example

Alternatively, the here allows a user to chat with an os1 agent in ChatGPT style. Please find more for this feature.

os1 also helps maximize the utility out of the expensive LLMs such as gpt-4o. It offers with powerful functionalities like caching, error handling, multi-config inference and templating.

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

This project is licensed under the .

This project is a spin-off of and contains code under two licenses:

The original code from https://github.com/microsoft/autogen is licensed under the MIT License. See the file for details.

Modifications and additions made in this fork are licensed under the Apache License, Version 2.0. See the file for the full license text.

🎉
🔥
🎉
🔥
🎉
🎉
🎉
🎉
🎉
🎉
🎉
🎉
🎉
🎉
📚 Cite paper
ashton17h
os1's new look
AI Agentic Design Patterns with AutoGen
Chi Wang
Qingyun Wu
Forbes: The Promise of Multi-Agent AI
AI in the Real World Episode 2: Exploring Multi-Agent AI and AutoGen with Chi Wang
The Economist
Chi Wang
AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation
ICLR 2024 LLM Agents Workshop
The Batch newsletter
What's next for AI agentic workflows
Blog
Youtube
AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation Framework
TheSequence: My Five Favorite AI Papers of 2023
Open100: Top 100 Open Source achievements
FLAML
FLAML
dynamic group of volunteers
support@os1ai.io
↑ Back to Top ↑
↑ Back to Top ↑
Installation
here
here
Installation
code execution
here
FAQs
↑ Back to Top ↑
multi-agent conversation
example
sample code
code examples
↑ Back to Top ↑
enhanced LLM inference
↑ Back to Top ↑
Cookbook
AutoGen
EcoOptiGen
MathChat
AgentOptimizer
StateFlow
↑ Back to Top ↑
↑ Back to Top ↑
Apache License, Version 2.0 (Apache-2.0)
AutoGen
LICENSE_original_MIT
LICENSE