Skip to content

A programming framework for agentic AI

Update version to 0.4.0.dev3 (#4043)

Eric Zhu4e5f3ababea1
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index d2219e6c7..4e469df17 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -35,6 +35,7 @@ jobs:
{ ref: "v0.4.0.dev0", dest-dir: "0.4.0.dev0" },
{ ref: "v0.4.0.dev1", dest-dir: "0.4.0.dev1" },
{ ref: "v0.4.0.dev2", dest-dir: "0.4.0.dev2" },
+ { ref: "v0.4.0.dev3", dest-dir: "0.4.0.dev3" },
]
steps:
- name: Checkout
diff --git a/README.md b/README.md
index 43bdd263d..049612da4 100644
--- a/README.md
+++ b/README.md
@@ -101,7 +101,7 @@ We look forward to your contributions!
First install the packages:
```bash
-pip install autogen-agentchat==0.4.0.dev2 autogen-ext==0.4.0.dev2
+pip install 'autogen-agentchat==0.4.0.dev3' 'autogen-ext[docker]==0.4.0.dev3'
```
The following code uses code execution, you need to have [Docker installed](https://docs.docker.com/engine/install/)
@@ -109,17 +109,11 @@ and running on your machine.
```python
import asyncio
-import logging
-from autogen_agentchat import EVENT_LOGGER_NAME
-from autogen_agentchat.agents import CodeExecutorAgent, CodingAssistantAgent
-from autogen_agentchat.logging import ConsoleLogHandler
-from autogen_agentchat.teams import RoundRobinGroupChat, StopMessageTermination
from autogen_ext.code_executor.docker_executor import DockerCommandLineCodeExecutor
from autogen_ext.models import OpenAIChatCompletionClient
-
-logger = logging.getLogger(EVENT_LOGGER_NAME)
-logger.addHandler(ConsoleLogHandler())
-logger.setLevel(logging.INFO)
+from autogen_agentchat.agents import CodeExecutorAgent, CodingAssistantAgent
+from autogen_agentchat.teams import RoundRobinGroupChat
+from autogen_agentchat.task import TextMentionTermination
async def main() -> None:
async with DockerCommandLineCodeExecutor(work_dir="coding") as code_executor:
@@ -127,11 +121,13 @@ async def main() -> None:
coding_assistant_agent = CodingAssistantAgent(
"coding_assistant", model_client=OpenAIChatCompletionClient(model="gpt-4o", api_key="YOUR_API_KEY")
)
- group_chat = RoundRobinGroupChat([coding_assistant_agent, code_executor_agent])
- result = await group_chat.run(
- task="Create a plot of NVDIA and TSLA stock returns YTD from 2024-01-01 and save it to 'nvidia_tesla_2024_ytd.png'.",
- termination_condition=StopMessageTermination(),
+ termination = TextMentionTermination("TERMINATE")
+ group_chat = RoundRobinGroupChat([coding_assistant_agent, code_executor_agent], termination_condition=termination)
+ stream = group_chat.run_stream(
+ "Create a plot of NVDIA and TSLA stock returns YTD from 2024-01-01 and save it to 'nvidia_tesla_2024_ytd.png'."
)
+ async for message in stream:
+ print(message)
asyncio.run(main())
```
diff --git a/docs/switcher.json b/docs/switcher.json
index 364394a4f..8bde73629 100644
--- a/docs/switcher.json
+++ b/docs/switcher.json
@@ -21,7 +21,12 @@
{
"name": "0.4.0.dev2",
"version": "0.4.0.dev2",
- "url": "/autogen/0.4.0.dev2/",
+ "url": "/autogen/0.4.0.dev2/"
+ },
+ {
+ "name": "0.4.0.dev3",
+ "version": "0.4.0.dev3",
+ "url": "/autogen/0.4.0.dev3/",
"preferred": true
}
]
diff --git a/python/packages/autogen-agentchat/pyproject.toml b/python/packages/autogen-agentchat/pyproject.toml
index 48874b9de..755959b5a 100644
--- a/python/packages/autogen-agentchat/pyproject.toml
+++ b/python/packages/autogen-agentchat/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "autogen-agentchat"
-version = "0.4.0.dev2"
+version = "0.4.0.dev3"
license = {file = "LICENSE-CODE"}
description = "AutoGen agents and teams library"
readme = "README.md"
@@ -15,7 +15,7 @@ classifiers = [
"Operating System :: OS Independent",
]
dependencies = [
- "autogen-core==0.4.0.dev2",
+ "autogen-core==0.4.0.dev3",
]
[tool.uv]
diff --git a/python/packages/autogen-core/docs/src/index.md b/python/packages/autogen-core/docs/src/index.md
index 4910721f5..21a6fa35a 100644
--- a/python/packages/autogen-core/docs/src/index.md
+++ b/python/packages/autogen-core/docs/src/index.md
@@ -61,7 +61,7 @@ AgentChat </div>
High-level API that includes preset agents and teams for building multi-agent systems.
```sh
-pip install autogen-agentchat==0.4.0.dev2
+pip install autogen-agentchat==0.4.0.dev3
```
💡 *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.
```sh
-pip install autogen-core==0.4.0.dev2
+pip install autogen-core==0.4.0.dev3
```
+++
diff --git a/python/packages/autogen-core/docs/src/packages/index.md b/python/packages/autogen-core/docs/src/packages/index.md
index f471d4e48..7dd616108 100644
--- a/python/packages/autogen-core/docs/src/packages/index.md
+++ b/python/packages/autogen-core/docs/src/packages/index.md
@@ -29,10 +29,10 @@ myst:
Library that is at a similar level of abstraction as AutoGen 0.2, including default agents and group chat.
```sh
-pip install autogen-agentchat==0.4.0.dev2
+pip install autogen-agentchat==0.4.0.dev3
```
-[{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.dev2/) | [{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.dev3/) | [{fab}`github;pst-color-primary` Source](https://github.com/microsoft/autogen/tree/main/python/packages/autogen-agentchat)
:::
(pkg-info-autogen-core)=
@@ -44,10 +44,10 @@ pip install autogen-agentchat==0.4.0.dev2
Implements the core functionality of the AutoGen framework, providing basic building blocks for creating multi-agent systems.
```sh
-pip install autogen-core==0.4.0.dev2
+pip install autogen-core==0.4.0.dev3
```
-[{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.dev2/) | [{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.dev3/) | [{fab}`github;pst-color-primary` Source](https://github.com/microsoft/autogen/tree/main/python/packages/autogen-core)
:::
(pkg-info-autogen-ext)=
@@ -59,7 +59,7 @@ pip install autogen-core==0.4.0.dev2
Implementations of core components that interface with external services, or use extra dependencies. For example, Docker based code execution.
```sh
-pip install autogen-ext==0.4.0.dev2
+pip install autogen-ext==0.4.0.dev3
```
Extras:
@@ -69,7 +69,7 @@ Extras:
- `docker` needed for {py:class}`~autogen_ext.code_executors.DockerCommandLineCodeExecutor`
- `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.dev2/) | [{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.dev3/) | [{fab}`github;pst-color-primary` Source](https://github.com/microsoft/autogen/tree/main/python/packages/autogen-ext)
:::
(pkg-info-autogen-magentic-one)=
diff --git a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/installation.md b/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/installation.md
index 528710a54..0b005a2b3 100644
--- a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/installation.md
+++ b/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/installation.md
@@ -61,7 +61,7 @@ Install the `autogen-agentchat` package using pip:
```bash
-pip install autogen-agentchat==0.4.0.dev2
+pip install autogen-agentchat==0.4.0.dev3
```
## Install Docker for Code Execution
diff --git a/python/packages/autogen-core/pyproject.toml b/python/packages/autogen-core/pyproject.toml
index ea2a1b545..bc0b614cf 100644
--- a/python/packages/autogen-core/pyproject.toml
+++ b/python/packages/autogen-core/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "autogen-core"
-version = "0.4.0.dev2"
+version = "0.4.0.dev3"
license = {file = "LICENSE-CODE"}
description = "Foundational interfaces and agent runtime implementation for AutoGen"
readme = "README.md"
diff --git a/python/packages/autogen-ext/pyproject.toml b/python/packages/autogen-ext/pyproject.toml
index f13843aab..9740f3d20 100644
--- a/python/packages/autogen-ext/pyproject.toml
+++ b/python/packages/autogen-ext/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "autogen-ext"
-version = "0.4.0.dev2"
+version = "0.4.0.dev3"
license = {file = "LICENSE-CODE"}
description = "AutoGen extensions library"
readme = "README.md"
@@ -15,7 +15,7 @@ classifiers = [
"Operating System :: OS Independent",
]
dependencies = [
- "autogen-core==0.4.0.dev2",
+ "autogen-core==0.4.0.dev3",
]
diff --git a/python/uv.lock b/python/uv.lock
index d1c9d588c..facd0b402 100644
--- a/python/uv.lock
+++ b/python/uv.lock
@@ -360,7 +360,7 @@ wheels = [
[[package]]
name = "autogen-agentchat"
-version = "0.4.0.dev2"
+version = "0.4.0.dev3"
source = { editable = "packages/autogen-agentchat" }
dependencies = [
{ name = "autogen-core" },
@@ -371,7 +371,7 @@ requires-dist = [{ name = "autogen-core", editable = "packages/autogen-core" }]
[[package]]
name = "autogen-core"
-version = "0.4.0.dev2"
+version = "0.4.0.dev3"
source = { editable = "packages/autogen-core" }
dependencies = [
{ name = "aiohttp" },
@@ -484,7 +484,7 @@ dev = [
[[package]]
name = "autogen-ext"
-version = "0.4.0.dev2"
+version = "0.4.0.dev3"
source = { editable = "packages/autogen-ext" }
dependencies = [
{ name = "autogen-core" },