Skip to content

A programming framework for agentic AI

add documentation files

Qingyun Wuf750e0037f30
diff --git a/website/docs/Contribute.md b/website/docs/Contribute.md
index e69de29bb..e27481230 100644
--- a/website/docs/Contribute.md
+++ b/website/docs/Contribute.md
@@ -0,0 +1,124 @@
+
+# Contributing
+
+This project welcomes and encourages all forms of contributions, including but not limited to:
+
+- Pushing patches.
+- Code review of pull requests.
+- Documentation, examples and test cases.
+- Readability improvement, e.g., improvement on docstr and comments.
+- Community participation in [issues](https://github.com/microsoft/autogen/issues), [discussions](https://github.com/microsoft/autogen/discussions), and [discord]().
+- Tutorials, blog posts, talks that promote the project.
+- Sharing application scenarios and/or related research.
+
+You can take a look at the [Roadmap for Upcoming Features](https://github.com/microsoft/autogen/wiki/Roadmap-for-Upcoming-Features) to identify potential things to work on.
+
+Most contributions require you to agree to a
+Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
+the rights to use your contribution. For details, visit <https://cla.opensource.microsoft.com>.
+
+If you are new to GitHub [here](https://help.github.com/categories/collaborating-with-issues-and-pull-requests/) 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 provide
+a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions
+provided by the bot. You will only need to do this once across all repos using our CLA.
+
+This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
+For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
+contact [[email protected]](mailto:[email protected]) with any additional questions or comments.
+
+## How to make a good bug report
+
+When you submit an issue to [GitHub](https://github.com/microsoft/autogen/issues), please do your best to
+follow these guidelines! This will make it a lot easier to provide you with good
+feedback:
+
+- The ideal bug report contains a short reproducible code snippet. This way
+ anyone can try to reproduce the bug easily (see [this](https://stackoverflow.com/help/mcve) for more details). If your snippet is
+ longer than around 50 lines, please link to a [gist](https://gist.github.com) or a GitHub repo.
+
+- If an exception is raised, please **provide the full traceback**.
+
+- Please include your **operating system type and version number**, as well as
+ your **Python, autogen, scikit-learn versions**. The version of autogen
+ can be found by running the following code snippet:
+```python
+import autogen
+print(autogen.__version__)
+```
+
+- Please ensure all **code snippets and error messages are formatted in
+ appropriate code blocks**. See [Creating and highlighting code blocks](https://help.github.com/articles/creating-and-highlighting-code-blocks)
+ for more details.
+
+
+## Becoming a Reviewer
+
+There is currently no formal reviewer solicitation process. Current reviewers identify reviewers from active contributors. If you are willing to become a reviewer, you are welcome to let us know on discord.
+
+## Developing
+
+### Setup
+
+```bash
+git clone https://github.com/microsoft/autogen.git
+pip install -e autogen[notebook]
+```
+
+In case the `pip install` command fails, try escaping the brackets such as `pip install -e autogen\[notebook\]`.
+
+### Docker
+
+We provide a simple [Dockerfile](https://github.com/microsoft/autogen/blob/main/Dockerfile).
+
+```bash
+docker build https://github.com/microsoft/autogen.git#main -t autogen-dev
+docker run -it autogen-dev
+```
+
+### Develop in Remote Container
+
+If you use vscode, you can open the autogen folder in a [Container](https://code.visualstudio.com/docs/remote/containers).
+We have provided the configuration in [devcontainer](https://github.com/microsoft/autogen/blob/main/.devcontainer).
+
+### Pre-commit
+
+Run `pre-commit install` to install pre-commit into your git hooks. Before you commit, run
+`pre-commit run` to check if you meet the pre-commit requirements. If you use Windows (without WSL) and can't commit after installing pre-commit, you can run `pre-commit uninstall` to uninstall the hook. In WSL or Linux this is supposed to work.
+
+### Coverage
+
+Any code you commit should not decrease coverage. To run all unit tests, install the [test] option under autogen/:
+
+```bash
+pip install -e."[test]"
+coverage run -m pytest test
+```
+
+Then you can see the coverage report by
+`coverage report -m` or `coverage html`.
+
+### Documentation
+
+To build and test documentation locally, install [Node.js](https://nodejs.org/en/download/). For example,
+
+```bash
+nvm install --lts
+```
+
+Then:
+
+```console
+npm install --global yarn # skip if you use the dev container we provided
+pip install pydoc-markdown==4.5.0 # skip if you use the dev container we provided
+cd website
+yarn install --frozen-lockfile --ignore-engines
+pydoc-markdown
+yarn start
+```
+
+The last command starts a local development server and opens up a browser window.
+Most changes are reflected live without having to restart the server.
+
+Note:
+some tips in this guide are based off the contributor guide from [ray](https://docs.ray.io/en/latest/ray-contribute/getting-involved.html), [scikit-learn](https://scikit-learn.org/stable/developers/contributing.html), [hummingbird](https://github.com/microsoft/hummingbird/blob/main/CONTRIBUTING.md), or [FLAML](https://microsoft.github.io/FLAML/docs/Contribute).
diff --git a/website/docs/FAQ.md b/website/docs/FAQ.md
index e69de29bb..318b08dc2 100644
--- a/website/docs/FAQ.md
+++ b/website/docs/FAQ.md
@@ -0,0 +1 @@
+# Frequently Asked Questions
diff --git a/website/docs/Getting-Started.md b/website/docs/Getting-Started.md
index e69de29bb..cc0a807d7 100644
--- a/website/docs/Getting-Started.md
+++ b/website/docs/Getting-Started.md
@@ -0,0 +1,61 @@
+
+
+# Getting Started
+
+<!-- ### Welcome to AutoGen, a library for enabling Next-Gen LLM Applications via Multi-Agent Conversation Framework! -->
+
+AutoGen is a framework that enables development of LLM applications using multiple agents that can converse with each other to solve task. 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.
+
+### Main Features
+
+* AutoGen enables building next-gen LLM applications based on multi-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 augments their weakness.
+* It supports diverse 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 a wide range of applications from various domains and complexities. They demonstrate how
+AutoGen can easily support different conversation patterns.
+
+AutoGen is powered by collaborative [research studies](/docs/Research) from Microsoft, Penn State University, and University of Washington.
+
+### Quickstart
+
+Install AutoGen from pip: `pip install autogen`. Find more options in [Installation](/docs/Installation).
+
+
+Autogen enables the next-gen GPT-X applications with a generic multi-agent conversation framework.
+It offers customizable and conversable agents which integrate LLMs, tools and human.
+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 example,
+```python
+import autogen
+assistant = autogen.AssistantAgent("assistant")
+user_proxy = autogen.UserProxyAgent("user_proxy")
+user_proxy.initiate_chat(assistant, message="Show me the YTD gain of 10 largest technology companies as of today.")
+# This initiates an automated chat between the two agents to solve the task
+```
+
+Autogen also helps maximize the utility out of the expensive LLMs such as ChatGPT and GPT-4. It offers a drop-in replacement of `openai.Completion` or `openai.ChatCompletion` with powerful functionalites like tuning, caching, error handling, templating. For example, you can optimize generations by LLM with your own tuning data, success metrics and budgets.
+```python
+# perform tuning
+config, analysis = autogen.Completion.tune(
+ data=tune_data,
+ metric="success",
+ mode="max",
+ eval_func=eval_func,
+ inference_budget=0.05,
+ optimization_budget=3,
+ num_samples=-1,
+)
+# perform inference for a test instance
+response = autogen.Completion.create(context=test_instance, **config)
+```
+
+### Where to Go Next?
+
+* Understand the use cases for [Autogen](/docs/Use-Cases/Autogen).
+* Find code examples from [Examples](/docs/Examples).
+* Learn about [research](/docs/Research) around AutoGen and check [blogposts](/blog).
+* Chat on [Discord](TBD).
+
+If you like our project, please give it a [star](https://github.com/microsoft/autogen/stargazers) on GitHub. If you are interested in contributing, please read [Contributor's Guide](/docs/Contribute).
+
+<iframe src="https://ghbtns.com/github-btn.html?user=microsoft&amp;repo=autogen&amp;type=star&amp;count=true&amp;size=large" frameborder="0" scrolling="0" width="170" height="30" title="GitHub"></iframe>
\ No newline at end of file
diff --git a/website/docs/Installation.md b/website/docs/Installation.md
index e69de29bb..02d3744df 100644
--- a/website/docs/Installation.md
+++ b/website/docs/Installation.md
@@ -0,0 +1,18 @@
+# Installation
+
+## Python
+
+AutoGen requires **Python version >= 3.8**. It can be installed from pip:
+
+```bash
+pip install autogen
+```
+
+or conda:
+```
+conda install autogen -c conda-forge
+```
+
+### Optional Dependencies
+
+TBD
\ No newline at end of file
diff --git a/website/docs/Research.md b/website/docs/Research.md
index e69de29bb..7806bbfae 100644
--- a/website/docs/Research.md
+++ b/website/docs/Research.md
@@ -0,0 +1,16 @@
+# Research
+
+For technical details, please check our research publications.
+
+* [AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation Framework](https://arxiv.org/abs/2308.08155) Qingyun Wu, Gagan Bansal, Jieyu Zhang, Yiran Wu, Shaokun Zhang, Erkang Zhu, Beibin Li, Li Jiang, Xiaoyun Zhang and Chi Wang. ArXiv 2023.
+
+```bibtex
+@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 Shaokun Zhang and Erkang Zhu and Beibin Li and Li Jiang and Xiaoyun Zhang and Chi Wang},
+ year={2023},
+ eprint={2308.08155},
+ archivePrefix={arXiv},
+ primaryClass={cs.AI}
+}
+```