Skip to content

Commit 4e5f3ab

Browse files
authoredNov 1, 2024··
Update version to 0.4.0.dev3 (#4043)
1 parent 4fec22d commit 4e5f3ab

File tree

10 files changed

+34
-32
lines changed

10 files changed

+34
-32
lines changed
 

‎.github/workflows/docs.yml

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
{ ref: "v0.4.0.dev0", dest-dir: "0.4.0.dev0" },
3636
{ ref: "v0.4.0.dev1", dest-dir: "0.4.0.dev1" },
3737
{ ref: "v0.4.0.dev2", dest-dir: "0.4.0.dev2" },
38+
{ ref: "v0.4.0.dev3", dest-dir: "0.4.0.dev3" },
3839
]
3940
steps:
4041
- name: Checkout

‎README.md

+10-14
Original file line numberDiff line numberDiff line change
@@ -101,37 +101,33 @@ We look forward to your contributions!
101101
First install the packages:
102102

103103
```bash
104-
pip install autogen-agentchat==0.4.0.dev2 autogen-ext==0.4.0.dev2
104+
pip install 'autogen-agentchat==0.4.0.dev3' 'autogen-ext[docker]==0.4.0.dev3'
105105
```
106106

107107
The following code uses code execution, you need to have [Docker installed](https://docs.docker.com/engine/install/)
108108
and running on your machine.
109109

110110
```python
111111
import asyncio
112-
import logging
113-
from autogen_agentchat import EVENT_LOGGER_NAME
114-
from autogen_agentchat.agents import CodeExecutorAgent, CodingAssistantAgent
115-
from autogen_agentchat.logging import ConsoleLogHandler
116-
from autogen_agentchat.teams import RoundRobinGroupChat, StopMessageTermination
117112
from autogen_ext.code_executor.docker_executor import DockerCommandLineCodeExecutor
118113
from autogen_ext.models import OpenAIChatCompletionClient
119-
120-
logger = logging.getLogger(EVENT_LOGGER_NAME)
121-
logger.addHandler(ConsoleLogHandler())
122-
logger.setLevel(logging.INFO)
114+
from autogen_agentchat.agents import CodeExecutorAgent, CodingAssistantAgent
115+
from autogen_agentchat.teams import RoundRobinGroupChat
116+
from autogen_agentchat.task import TextMentionTermination
123117

124118
async def main() -> None:
125119
async with DockerCommandLineCodeExecutor(work_dir="coding") as code_executor:
126120
code_executor_agent = CodeExecutorAgent("code_executor", code_executor=code_executor)
127121
coding_assistant_agent = CodingAssistantAgent(
128122
"coding_assistant", model_client=OpenAIChatCompletionClient(model="gpt-4o", api_key="YOUR_API_KEY")
129123
)
130-
group_chat = RoundRobinGroupChat([coding_assistant_agent, code_executor_agent])
131-
result = await group_chat.run(
132-
task="Create a plot of NVDIA and TSLA stock returns YTD from 2024-01-01 and save it to 'nvidia_tesla_2024_ytd.png'.",
133-
termination_condition=StopMessageTermination(),
124+
termination = TextMentionTermination("TERMINATE")
125+
group_chat = RoundRobinGroupChat([coding_assistant_agent, code_executor_agent], termination_condition=termination)
126+
stream = group_chat.run_stream(
127+
"Create a plot of NVDIA and TSLA stock returns YTD from 2024-01-01 and save it to 'nvidia_tesla_2024_ytd.png'."
134128
)
129+
async for message in stream:
130+
print(message)
135131

136132
asyncio.run(main())
137133
```

‎docs/switcher.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@
2121
{
2222
"name": "0.4.0.dev2",
2323
"version": "0.4.0.dev2",
24-
"url": "/autogen/0.4.0.dev2/",
24+
"url": "/autogen/0.4.0.dev2/"
25+
},
26+
{
27+
"name": "0.4.0.dev3",
28+
"version": "0.4.0.dev3",
29+
"url": "/autogen/0.4.0.dev3/",
2530
"preferred": true
2631
}
2732
]

‎python/packages/autogen-agentchat/pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "autogen-agentchat"
7-
version = "0.4.0.dev2"
7+
version = "0.4.0.dev3"
88
license = {file = "LICENSE-CODE"}
99
description = "AutoGen agents and teams library"
1010
readme = "README.md"
@@ -15,7 +15,7 @@ classifiers = [
1515
"Operating System :: OS Independent",
1616
]
1717
dependencies = [
18-
"autogen-core==0.4.0.dev2",
18+
"autogen-core==0.4.0.dev3",
1919
]
2020

2121
[tool.uv]

‎python/packages/autogen-core/docs/src/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ AgentChat </div>
6161
High-level API that includes preset agents and teams for building multi-agent systems.
6262

6363
```sh
64-
pip install autogen-agentchat==0.4.0.dev2
64+
pip install autogen-agentchat==0.4.0.dev3
6565
```
6666

6767
💡 *Start here if you are looking for an API similar to AutoGen 0.2*
@@ -82,7 +82,7 @@ Get Started
8282
Provides building blocks for creating asynchronous, event driven multi-agent systems.
8383

8484
```sh
85-
pip install autogen-core==0.4.0.dev2
85+
pip install autogen-core==0.4.0.dev3
8686
```
8787

8888
+++

‎python/packages/autogen-core/docs/src/packages/index.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ myst:
2929
Library that is at a similar level of abstraction as AutoGen 0.2, including default agents and group chat.
3030

3131
```sh
32-
pip install autogen-agentchat==0.4.0.dev2
32+
pip install autogen-agentchat==0.4.0.dev3
3333
```
3434

35-
[{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)
35+
[{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)
3636
:::
3737

3838
(pkg-info-autogen-core)=
@@ -44,10 +44,10 @@ pip install autogen-agentchat==0.4.0.dev2
4444
Implements the core functionality of the AutoGen framework, providing basic building blocks for creating multi-agent systems.
4545

4646
```sh
47-
pip install autogen-core==0.4.0.dev2
47+
pip install autogen-core==0.4.0.dev3
4848
```
4949

50-
[{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)
50+
[{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)
5151
:::
5252

5353
(pkg-info-autogen-ext)=
@@ -59,7 +59,7 @@ pip install autogen-core==0.4.0.dev2
5959
Implementations of core components that interface with external services, or use extra dependencies. For example, Docker based code execution.
6060

6161
```sh
62-
pip install autogen-ext==0.4.0.dev2
62+
pip install autogen-ext==0.4.0.dev3
6363
```
6464

6565
Extras:
@@ -69,7 +69,7 @@ Extras:
6969
- `docker` needed for {py:class}`~autogen_ext.code_executors.DockerCommandLineCodeExecutor`
7070
- `openai` needed for {py:class}`~autogen_ext.models.OpenAIChatCompletionClient`
7171

72-
[{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)
72+
[{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)
7373
:::
7474

7575
(pkg-info-autogen-magentic-one)=

‎python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/installation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Install the `autogen-agentchat` package using pip:
6161

6262
```bash
6363

64-
pip install autogen-agentchat==0.4.0.dev2
64+
pip install autogen-agentchat==0.4.0.dev3
6565
```
6666

6767
## Install Docker for Code Execution

‎python/packages/autogen-core/pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "autogen-core"
7-
version = "0.4.0.dev2"
7+
version = "0.4.0.dev3"
88
license = {file = "LICENSE-CODE"}
99
description = "Foundational interfaces and agent runtime implementation for AutoGen"
1010
readme = "README.md"

‎python/packages/autogen-ext/pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "autogen-ext"
7-
version = "0.4.0.dev2"
7+
version = "0.4.0.dev3"
88
license = {file = "LICENSE-CODE"}
99
description = "AutoGen extensions library"
1010
readme = "README.md"
@@ -15,7 +15,7 @@ classifiers = [
1515
"Operating System :: OS Independent",
1616
]
1717
dependencies = [
18-
"autogen-core==0.4.0.dev2",
18+
"autogen-core==0.4.0.dev3",
1919
]
2020

2121

‎python/uv.lock

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)