update dev8 (#4417)

This commit is contained in:
Eric Zhu 2024-11-27 14:39:31 -08:00 committed by GitHub
parent 7c8d25c448
commit f70869f236
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
17 changed files with 468 additions and 457 deletions

View File

@ -40,6 +40,7 @@ jobs:
{ ref: "v0.4.0.dev5", dest-dir: "0.4.0.dev5" }, { ref: "v0.4.0.dev5", dest-dir: "0.4.0.dev5" },
{ ref: "v0.4.0.dev6", dest-dir: "0.4.0.dev6" }, { ref: "v0.4.0.dev6", dest-dir: "0.4.0.dev6" },
{ ref: "v0.4.0.dev7", dest-dir: "0.4.0.dev7" }, { ref: "v0.4.0.dev7", dest-dir: "0.4.0.dev7" },
{ ref: "v0.4.0.dev8", dest-dir: "0.4.0.dev8" },
] ]
steps: steps:
- name: Checkout - name: Checkout

View File

@ -49,8 +49,8 @@ We will update verion numbers according to the following rules:
1. Create a PR that updates the version numbers across the codebase ([example](https://github.com/microsoft/autogen/pull/4359)) 1. Create a PR that updates the version numbers across the codebase ([example](https://github.com/microsoft/autogen/pull/4359))
2. The docs CI will fail for the PR, but this is expected and will be resolved in the next step 2. The docs CI will fail for the PR, but this is expected and will be resolved in the next step
2. After merging the PR, create and push a tag that corresponds to the new verion. For example, for `0.4.0.dev7`: 2. After merging the PR, create and push a tag that corresponds to the new verion. For example, for `0.4.0.dev8`:
- `git tag 0.4.0.dev7 && git push origin 0.4.0.dev7` - `git tag 0.4.0.dev8 && git push origin 0.4.0.dev8`
3. Restart the docs CI by finding the failed [job corresponding to the `push` event](https://github.com/microsoft/autogen/actions/workflows/docs.yml) and restarting all jobs 3. Restart the docs CI by finding the failed [job corresponding to the `push` event](https://github.com/microsoft/autogen/actions/workflows/docs.yml) and restarting all jobs
4. Run [this](https://github.com/microsoft/autogen/actions/workflows/single-python-package.yml) workflow for each of the packages that need to be released and get an approval for the release for it to run 4. Run [this](https://github.com/microsoft/autogen/actions/workflows/single-python-package.yml) workflow for each of the packages that need to be released and get an approval for the release for it to run

View File

@ -4,14 +4,14 @@
<img src="https://microsoft.github.io/autogen/0.2/img/ag.svg" alt="AutoGen Logo" width="100"> <img src="https://microsoft.github.io/autogen/0.2/img/ag.svg" alt="AutoGen Logo" width="100">
[![Twitter](https://img.shields.io/twitter/url/https/twitter.com/cloudposse.svg?style=social&label=Follow%20%40pyautogen)](https://twitter.com/pyautogen) [![GitHub Discussions](https://img.shields.io/badge/Discussions-Q%26A-green?logo=github)](https://github.com/microsoft/autogen/discussions) [![0.2 Docs](https://img.shields.io/badge/Docs-0.2-blue)](https://microsoft.github.io/autogen/0.2/) [![0.4 Docs](https://img.shields.io/badge/Docs-0.4-blue)](https://microsoft.github.io/autogen/dev/) [![Twitter](https://img.shields.io/twitter/url/https/twitter.com/cloudposse.svg?style=social&label=Follow%20%40pyautogen)](https://twitter.com/pyautogen) [![GitHub Discussions](https://img.shields.io/badge/Discussions-Q%26A-green?logo=github)](https://github.com/microsoft/autogen/discussions) [![0.2 Docs](https://img.shields.io/badge/Docs-0.2-blue)](https://microsoft.github.io/autogen/0.2/) [![0.4 Docs](https://img.shields.io/badge/Docs-0.4-blue)](https://microsoft.github.io/autogen/dev/)
[![PyPi autogen-core](https://img.shields.io/badge/PyPi-autogen--core-blue?logo=pypi)](https://pypi.org/project/autogen-core/0.4.0.dev7/) [![PyPi autogen-agentchat](https://img.shields.io/badge/PyPi-autogen--agentchat-blue?logo=pypi)](https://pypi.org/project/autogen-agentchat/0.4.0.dev7/) [![PyPi autogen-ext](https://img.shields.io/badge/PyPi-autogen--ext-blue?logo=pypi)](https://pypi.org/project/autogen-ext/0.4.0.dev7/) [![PyPi autogen-core](https://img.shields.io/badge/PyPi-autogen--core-blue?logo=pypi)](https://pypi.org/project/autogen-core/0.4.0.dev8/) [![PyPi autogen-agentchat](https://img.shields.io/badge/PyPi-autogen--agentchat-blue?logo=pypi)](https://pypi.org/project/autogen-agentchat/0.4.0.dev8/) [![PyPi autogen-ext](https://img.shields.io/badge/PyPi-autogen--ext-blue?logo=pypi)](https://pypi.org/project/autogen-ext/0.4.0.dev8/)
</div> </div>
# AutoGen # AutoGen
> [!IMPORTANT] > [!IMPORTANT]
>
> - (11/14/24) ⚠️ In response to a number of asks to clarify and distinguish between official AutoGen and its forks that created confusion, we issued a [clarification statement](https://github.com/microsoft/autogen/discussions/4217). > - (11/14/24) ⚠️ In response to a number of asks to clarify and distinguish between official AutoGen and its forks that created confusion, we issued a [clarification statement](https://github.com/microsoft/autogen/discussions/4217).
> - (10/13/24) Interested in the standard AutoGen as a prior user? Find it at the actively-maintained *AutoGen* [0.2 branch](https://github.com/microsoft/autogen/tree/0.2) and `autogen-agentchat~=0.2` PyPi package. > - (10/13/24) Interested in the standard AutoGen as a prior user? Find it at the actively-maintained *AutoGen* [0.2 branch](https://github.com/microsoft/autogen/tree/0.2) and `autogen-agentchat~=0.2` PyPi package.
> - (10/02/24) [AutoGen 0.4](https://microsoft.github.io/autogen/dev) is a from-the-ground-up rewrite of AutoGen. Learn more about the history, goals and future at [this blog post](https://microsoft.github.io/autogen/blog). Were excited to work with the community to gather feedback, refine, and improve the project before we officially release 0.4. This is a big change, so AutoGen 0.2 is still available, maintained, and developed in the [0.2 branch](https://github.com/microsoft/autogen/tree/0.2). > - (10/02/24) [AutoGen 0.4](https://microsoft.github.io/autogen/dev) is a from-the-ground-up rewrite of AutoGen. Learn more about the history, goals and future at [this blog post](https://microsoft.github.io/autogen/blog). Were excited to work with the community to gather feedback, refine, and improve the project before we officially release 0.4. This is a big change, so AutoGen 0.2 is still available, maintained, and developed in the [0.2 branch](https://github.com/microsoft/autogen/tree/0.2).
@ -104,7 +104,7 @@ We look forward to your contributions!
First install the packages: First install the packages:
```bash ```bash
pip install 'autogen-agentchat==0.4.0.dev7' 'autogen-ext[openai]==0.4.0.dev7' pip install 'autogen-agentchat==0.4.0.dev8' 'autogen-ext[openai]==0.4.0.dev8'
``` ```
The following code uses OpenAI's GPT-4o model and you need to provide your The following code uses OpenAI's GPT-4o model and you need to provide your

View File

@ -46,7 +46,12 @@
{ {
"name": "0.4.0.dev7", "name": "0.4.0.dev7",
"version": "0.4.0.dev7", "version": "0.4.0.dev7",
"url": "/autogen/0.4.0.dev7/", "url": "/autogen/0.4.0.dev7/"
},
{
"name": "0.4.0.dev8",
"version": "0.4.0.dev8",
"url": "/autogen/0.4.0.dev8/",
"preferred": true "preferred": true
} }
] ]

View File

@ -1,8 +1,7 @@
# AutoGen Python packages # AutoGen Python packages
[![0.4 Docs](https://img.shields.io/badge/Docs-0.4-blue)](https://microsoft.github.io/autogen/dev/) [![0.4 Docs](https://img.shields.io/badge/Docs-0.4-blue)](https://microsoft.github.io/autogen/dev/)
[![PyPi autogen-core](https://img.shields.io/badge/PyPi-autogen--core-blue?logo=pypi)](https://pypi.org/project/autogen-core/0.4.0.dev7/) [![PyPi autogen-agentchat](https://img.shields.io/badge/PyPi-autogen--agentchat-blue?logo=pypi)](https://pypi.org/project/autogen-agentchat/0.4.0.dev7/) [![PyPi autogen-ext](https://img.shields.io/badge/PyPi-autogen--ext-blue?logo=pypi)](https://pypi.org/project/autogen-ext/0.4.0.dev7/) [![PyPi autogen-core](https://img.shields.io/badge/PyPi-autogen--core-blue?logo=pypi)](https://pypi.org/project/autogen-core/0.4.0.dev8/) [![PyPi autogen-agentchat](https://img.shields.io/badge/PyPi-autogen--agentchat-blue?logo=pypi)](https://pypi.org/project/autogen-agentchat/0.4.0.dev8/) [![PyPi autogen-ext](https://img.shields.io/badge/PyPi-autogen--ext-blue?logo=pypi)](https://pypi.org/project/autogen-ext/0.4.0.dev8/)
This directory works as a single `uv` workspace containing all project packages. See [`packages`](./packages/) to discover all project packages. This directory works as a single `uv` workspace containing all project packages. See [`packages`](./packages/) to discover all project packages.
@ -17,10 +16,13 @@ poe check
``` ```
### Setup ### Setup
`uv` is a package manager that assists in creating the necessary environment and installing packages to run AutoGen. `uv` is a package manager that assists in creating the necessary environment and installing packages to run AutoGen.
- [Install `uv`](https://docs.astral.sh/uv/getting-started/installation/). - [Install `uv`](https://docs.astral.sh/uv/getting-started/installation/).
### Virtual Environment ### Virtual Environment
During development, you may need to test changes made to any of the packages.\ During development, you may need to test changes made to any of the packages.\
To do so, create a virtual environment where the AutoGen packages are installed based on the current state of the directory.\ To do so, create a virtual environment where the AutoGen packages are installed based on the current state of the directory.\
Run the following commands at the root level of the Python directory: Run the following commands at the root level of the Python directory:
@ -29,11 +31,14 @@ Run the following commands at the root level of the Python directory:
uv sync --all-extras uv sync --all-extras
source .venv/bin/activate source .venv/bin/activate
``` ```
- `uv sync --all-extras` will create a `.venv` directory at the current level and install packages from the current directory along with any other dependencies. The `all-extras` flag adds optional dependencies. - `uv sync --all-extras` will create a `.venv` directory at the current level and install packages from the current directory along with any other dependencies. The `all-extras` flag adds optional dependencies.
- `source .venv/bin/activate` activates the virtual environment. - `source .venv/bin/activate` activates the virtual environment.
### Common Tasks ### Common Tasks
To create a pull request (PR), ensure the following checks are met. You can run each check individually: To create a pull request (PR), ensure the following checks are met. You can run each check individually:
- Format: `poe format` - Format: `poe format`
- Lint: `poe lint` - Lint: `poe lint`
- Test: `poe test` - Test: `poe test`

View File

@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project] [project]
name = "autogen-agentchat" name = "autogen-agentchat"
version = "0.4.0.dev7" version = "0.4.0.dev8"
license = {file = "LICENSE-CODE"} license = {file = "LICENSE-CODE"}
description = "AutoGen agents and teams library" description = "AutoGen agents and teams library"
readme = "README.md" readme = "README.md"
@ -15,7 +15,7 @@ classifiers = [
"Operating System :: OS Independent", "Operating System :: OS Independent",
] ]
dependencies = [ dependencies = [
"autogen-core==0.4.0.dev7", "autogen-core==0.4.0.dev8",
] ]
[tool.uv] [tool.uv]

View File

@ -61,7 +61,7 @@ AgentChat </div>
High-level API that includes preset agents and teams for building multi-agent systems. High-level API that includes preset agents and teams for building multi-agent systems.
```sh ```sh
pip install 'autogen-agentchat==0.4.0.dev7' pip install 'autogen-agentchat==0.4.0.dev8'
``` ```
💡 *Start here if you are looking for an API similar to AutoGen 0.2* 💡 *Start here if you are looking for an API similar to AutoGen 0.2*
@ -82,7 +82,7 @@ Get Started
Provides building blocks for creating asynchronous, event driven multi-agent systems. Provides building blocks for creating asynchronous, event driven multi-agent systems.
```sh ```sh
pip install 'autogen-core==0.4.0.dev7' pip install 'autogen-core==0.4.0.dev8'
``` ```
+++ +++

View File

@ -31,10 +31,10 @@ myst:
Library that is at a similar level of abstraction as AutoGen 0.2, including default agents and group chat. Library that is at a similar level of abstraction as AutoGen 0.2, including default agents and group chat.
```sh ```sh
pip install 'autogen-agentchat==0.4.0.dev7' pip install 'autogen-agentchat==0.4.0.dev8'
``` ```
[{fas}`circle-info;pst-color-primary` User Guide](/user-guide/agentchat-user-guide/index.md) | [{fas}`file-code;pst-color-primary` API Reference](/reference/python/autogen_agentchat/autogen_agentchat.rst) | [{fab}`python;pst-color-primary` PyPI](https://pypi.org/project/autogen-agentchat/0.4.0.dev7/) | [{fab}`github;pst-color-primary` Source](https://github.com/microsoft/autogen/tree/main/python/packages/autogen-agentchat) [{fas}`circle-info;pst-color-primary` User Guide](/user-guide/agentchat-user-guide/index.md) | [{fas}`file-code;pst-color-primary` API Reference](/reference/python/autogen_agentchat/autogen_agentchat.rst) | [{fab}`python;pst-color-primary` PyPI](https://pypi.org/project/autogen-agentchat/0.4.0.dev8/) | [{fab}`github;pst-color-primary` Source](https://github.com/microsoft/autogen/tree/main/python/packages/autogen-agentchat)
::: :::
(pkg-info-autogen-core)= (pkg-info-autogen-core)=
@ -46,10 +46,10 @@ pip install 'autogen-agentchat==0.4.0.dev7'
Implements the core functionality of the AutoGen framework, providing basic building blocks for creating multi-agent systems. Implements the core functionality of the AutoGen framework, providing basic building blocks for creating multi-agent systems.
```sh ```sh
pip install 'autogen-core==0.4.0.dev7' pip install 'autogen-core==0.4.0.dev8'
``` ```
[{fas}`circle-info;pst-color-primary` User Guide](/user-guide/core-user-guide/index.md) | [{fas}`file-code;pst-color-primary` API Reference](/reference/python/autogen_core/autogen_core.rst) | [{fab}`python;pst-color-primary` PyPI](https://pypi.org/project/autogen-core/0.4.0.dev7/) | [{fab}`github;pst-color-primary` Source](https://github.com/microsoft/autogen/tree/main/python/packages/autogen-core) [{fas}`circle-info;pst-color-primary` User Guide](/user-guide/core-user-guide/index.md) | [{fas}`file-code;pst-color-primary` API Reference](/reference/python/autogen_core/autogen_core.rst) | [{fab}`python;pst-color-primary` PyPI](https://pypi.org/project/autogen-core/0.4.0.dev8/) | [{fab}`github;pst-color-primary` Source](https://github.com/microsoft/autogen/tree/main/python/packages/autogen-core)
::: :::
(pkg-info-autogen-ext)= (pkg-info-autogen-ext)=
@ -61,7 +61,7 @@ pip install 'autogen-core==0.4.0.dev7'
Implementations of core components that interface with external services, or use extra dependencies. For example, Docker based code execution. Implementations of core components that interface with external services, or use extra dependencies. For example, Docker based code execution.
```sh ```sh
pip install 'autogen-ext==0.4.0.dev7' pip install 'autogen-ext==0.4.0.dev8'
``` ```
Extras: Extras:
@ -71,7 +71,7 @@ Extras:
- `docker` needed for {py:class}`~autogen_ext.code_executors.DockerCommandLineCodeExecutor` - `docker` needed for {py:class}`~autogen_ext.code_executors.DockerCommandLineCodeExecutor`
- `openai` needed for {py:class}`~autogen_ext.models.OpenAIChatCompletionClient` - `openai` needed for {py:class}`~autogen_ext.models.OpenAIChatCompletionClient`
[{fas}`circle-info;pst-color-primary` User Guide](/user-guide/extensions-user-guide/index.md) | [{fas}`file-code;pst-color-primary` API Reference](/reference/python/autogen_ext/autogen_ext.rst) | [{fab}`python;pst-color-primary` PyPI](https://pypi.org/project/autogen-ext/0.4.0.dev7/) | [{fab}`github;pst-color-primary` Source](https://github.com/microsoft/autogen/tree/main/python/packages/autogen-ext) [{fas}`circle-info;pst-color-primary` User Guide](/user-guide/extensions-user-guide/index.md) | [{fas}`file-code;pst-color-primary` API Reference](/reference/python/autogen_ext/autogen_ext.rst) | [{fab}`python;pst-color-primary` PyPI](https://pypi.org/project/autogen-ext/0.4.0.dev8/) | [{fab}`github;pst-color-primary` Source](https://github.com/microsoft/autogen/tree/main/python/packages/autogen-ext)
::: :::
(pkg-info-autogen-magentic-one)= (pkg-info-autogen-magentic-one)=

View File

@ -61,7 +61,7 @@ Install the `autogen-agentchat` package using pip:
```bash ```bash
pip install 'autogen-agentchat==0.4.0.dev7' pip install 'autogen-agentchat==0.4.0.dev8'
``` ```
```{note} ```{note}
@ -74,7 +74,7 @@ To use the OpenAI and Azure OpenAI models, you need to install the following
extensions: extensions:
```bash ```bash
pip install 'autogen-ext[openai]==0.4.0.dev7' pip install 'autogen-ext[openai]==0.4.0.dev8'
``` ```
## Install Docker for Code Execution ## Install Docker for Code Execution

View File

@ -37,7 +37,7 @@
}, },
"outputs": [], "outputs": [],
"source": [ "source": [
"pip install 'autogen-agentchat==0.4.0.dev7' 'autogen-ext[openai]==0.4.0.dev7'" "pip install 'autogen-agentchat==0.4.0.dev8' 'autogen-ext[openai]==0.4.0.dev8'"
] ]
}, },
{ {

View File

@ -30,7 +30,7 @@
}, },
"outputs": [], "outputs": [],
"source": [ "source": [
"pip install 'autogen-ext[openai]==0.4.0.dev7'" "pip install 'autogen-ext[openai]==0.4.0.dev8'"
] ]
}, },
{ {
@ -110,7 +110,7 @@
}, },
"outputs": [], "outputs": [],
"source": [ "source": [
"pip install 'autogen-ext[openai,azure]==0.4.0.dev7'" "pip install 'autogen-ext[openai,azure]==0.4.0.dev8'"
] ]
}, },
{ {

View File

@ -24,7 +24,7 @@
"````{note}\n", "````{note}\n",
"The distributed agent runtime requires extra dependencies, install them using:\n", "The distributed agent runtime requires extra dependencies, install them using:\n",
"```bash\n", "```bash\n",
"pip install autogen-core[grpc]==0.4.0.dev7\n", "pip install autogen-core[grpc]==0.4.0.dev8\n",
"```\n", "```\n",
"````\n", "````\n",
"\n", "\n",

View File

@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project] [project]
name = "autogen-core" name = "autogen-core"
version = "0.4.0.dev7" version = "0.4.0.dev8"
license = {file = "LICENSE-CODE"} license = {file = "LICENSE-CODE"}
description = "Foundational interfaces and agent runtime implementation for AutoGen" description = "Foundational interfaces and agent runtime implementation for AutoGen"
readme = "README.md" readme = "README.md"

View File

@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project] [project]
name = "autogen-ext" name = "autogen-ext"
version = "0.4.0.dev7" version = "0.4.0.dev8"
license = {file = "LICENSE-CODE"} license = {file = "LICENSE-CODE"}
description = "AutoGen extensions library" description = "AutoGen extensions library"
readme = "README.md" readme = "README.md"
@ -15,7 +15,7 @@ classifiers = [
"Operating System :: OS Independent", "Operating System :: OS Independent",
] ]
dependencies = [ dependencies = [
"autogen-core==0.4.0.dev7", "autogen-core==0.4.0.dev8",
] ]

View File

@ -908,7 +908,7 @@ class OpenAIChatCompletionClient(BaseOpenAIChatCompletionClient):
.. code-block:: bash .. code-block:: bash
pip install 'autogen-ext[openai]==0.4.0.dev7' pip install 'autogen-ext[openai]==0.4.0.dev8'
The following code snippet shows how to use the client with an OpenAI model: The following code snippet shows how to use the client with an OpenAI model:
@ -988,7 +988,7 @@ class AzureOpenAIChatCompletionClient(BaseOpenAIChatCompletionClient):
.. code-block:: bash .. code-block:: bash
pip install 'autogen-ext[openai,azure]==0.4.0.dev7' pip install 'autogen-ext[openai,azure]==0.4.0.dev8'
To use the client, you need to provide your deployment id, Azure Cognitive Services endpoint, To use the client, you need to provide your deployment id, Azure Cognitive Services endpoint,
api version, and model capabilities. api version, and model capabilities.

View File

@ -33,9 +33,9 @@ dependencies = [
"alembic", "alembic",
"loguru", "loguru",
"pyyaml", "pyyaml",
"autogen-core==0.4.0.dev7", "autogen-core==0.4.0.dev8",
"autogen-agentchat==0.4.0.dev7", "autogen-agentchat==0.4.0.dev8",
"autogen-ext==0.4.0.dev7" "autogen-ext==0.4.0.dev8"
] ]
optional-dependencies = {web = ["fastapi", "uvicorn"], database = ["psycopg"]} optional-dependencies = {web = ["fastapi", "uvicorn"], database = ["psycopg"]}

View File

@ -331,7 +331,7 @@ wheels = [
[[package]] [[package]]
name = "autogen-agentchat" name = "autogen-agentchat"
version = "0.4.0.dev7" version = "0.4.0.dev8"
source = { editable = "packages/autogen-agentchat" } source = { editable = "packages/autogen-agentchat" }
dependencies = [ dependencies = [
{ name = "autogen-core" }, { name = "autogen-core" },
@ -342,7 +342,7 @@ requires-dist = [{ name = "autogen-core", editable = "packages/autogen-core" }]
[[package]] [[package]]
name = "autogen-core" name = "autogen-core"
version = "0.4.0.dev7" version = "0.4.0.dev8"
source = { editable = "packages/autogen-core" } source = { editable = "packages/autogen-core" }
dependencies = [ dependencies = [
{ name = "aiohttp" }, { name = "aiohttp" },
@ -465,7 +465,7 @@ dev = [
[[package]] [[package]]
name = "autogen-ext" name = "autogen-ext"
version = "0.4.0.dev7" version = "0.4.0.dev8"
source = { editable = "packages/autogen-ext" } source = { editable = "packages/autogen-ext" }
dependencies = [ dependencies = [
{ name = "autogen-core" }, { name = "autogen-core" },