Skip to content

Commit 65ba171

Browse files
author
“skzhang1”
committed
Merge branch 'main' into define_function
update
2 parents 09fc54b + c1d6a5e commit 65ba171

35 files changed

+3377
-29
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
run: |
5656
pip install -e .[mathchat,test]
5757
pip uninstall -y openai
58-
coverage run -a -m pytest test
58+
coverage run -a -m pytest test --ignore=test/agentchat/contrib
5959
coverage xml
6060
- name: Upload coverage to Codecov
6161
if: matrix.python-version == '3.10'

.github/workflows/contrib-openai.yml

+82
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,85 @@ jobs:
5656
with:
5757
file: ./coverage.xml
5858
flags: unittests
59+
CompressionTest:
60+
strategy:
61+
matrix:
62+
os: [ubuntu-latest]
63+
python-version: ["3.9"]
64+
runs-on: ${{ matrix.os }}
65+
environment: openai1
66+
steps:
67+
# checkout to pr branch
68+
- name: Checkout
69+
uses: actions/checkout@v3
70+
with:
71+
ref: ${{ github.event.pull_request.head.sha }}
72+
- name: Set up Python ${{ matrix.python-version }}
73+
uses: actions/setup-python@v4
74+
with:
75+
python-version: ${{ matrix.python-version }}
76+
- name: Install packages and dependencies
77+
run: |
78+
docker --version
79+
python -m pip install --upgrade pip wheel
80+
pip install -e .
81+
python -c "import autogen"
82+
pip install coverage pytest-asyncio
83+
- name: Install packages for test when needed
84+
run: |
85+
pip install docker
86+
- name: Coverage
87+
env:
88+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
89+
AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }}
90+
AZURE_OPENAI_API_BASE: ${{ secrets.AZURE_OPENAI_API_BASE }}
91+
OAI_CONFIG_LIST: ${{ secrets.OAI_CONFIG_LIST }}
92+
run: |
93+
coverage run -a -m pytest test/agentchat/contrib/test_compressible_agent.py
94+
coverage xml
95+
- name: Upload coverage to Codecov
96+
uses: codecov/codecov-action@v3
97+
with:
98+
file: ./coverage.xml
99+
flags: unittests
100+
GPTAssistantAgent:
101+
strategy:
102+
matrix:
103+
os: [ubuntu-latest]
104+
python-version: ["3.11"]
105+
runs-on: ${{ matrix.os }}
106+
environment: openai1
107+
steps:
108+
# checkout to pr branch
109+
- name: Checkout
110+
uses: actions/checkout@v3
111+
with:
112+
ref: ${{ github.event.pull_request.head.sha }}
113+
- name: Set up Python ${{ matrix.python-version }}
114+
uses: actions/setup-python@v4
115+
with:
116+
python-version: ${{ matrix.python-version }}
117+
- name: Install packages and dependencies
118+
run: |
119+
docker --version
120+
python -m pip install --upgrade pip wheel
121+
pip install -e .
122+
python -c "import autogen"
123+
pip install coverage pytest-asyncio
124+
- name: Install packages for test when needed
125+
run: |
126+
pip install docker
127+
- name: Coverage
128+
env:
129+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
130+
AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }}
131+
AZURE_OPENAI_API_BASE: ${{ secrets.AZURE_OPENAI_API_BASE }}
132+
OAI_CONFIG_LIST: ${{ secrets.OAI_CONFIG_LIST }}
133+
run: |
134+
coverage run -a -m pytest test/agentchat/contrib/test_gpt_assistant.py
135+
coverage xml
136+
- name: Upload coverage to Codecov
137+
uses: codecov/codecov-action@v3
138+
with:
139+
file: ./coverage.xml
140+
flags: unittests

.github/workflows/contrib-tests.yml

+51
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,54 @@ jobs:
5757
with:
5858
file: ./coverage.xml
5959
flags: unittests
60+
CompressionTest:
61+
runs-on: ${{ matrix.os }}
62+
strategy:
63+
fail-fast: false
64+
matrix:
65+
os: [ubuntu-latest, macos-latest, windows-2019]
66+
python-version: ["3.8", "3.9", "3.10", "3.11"]
67+
steps:
68+
- uses: actions/checkout@v3
69+
- name: Set up Python ${{ matrix.python-version }}
70+
uses: actions/setup-python@v4
71+
with:
72+
python-version: ${{ matrix.python-version }}
73+
- name: Install packages and dependencies for all tests
74+
run: |
75+
python -m pip install --upgrade pip wheel
76+
pip install pytest
77+
- name: Install packages and dependencies for Compression
78+
run: |
79+
pip install -e .
80+
pip uninstall -y openai
81+
- name: Test Compression
82+
if: matrix.python-version != '3.10'
83+
run: |
84+
pytest test/agentchat/contrib/test_compressible_agent.py
85+
86+
GPTAssistantAgent:
87+
runs-on: ${{ matrix.os }}
88+
strategy:
89+
fail-fast: false
90+
matrix:
91+
os: [ubuntu-latest, macos-latest, windows-2019]
92+
python-version: ["3.8", "3.9", "3.10", "3.11"]
93+
steps:
94+
- uses: actions/checkout@v3
95+
- name: Set up Python ${{ matrix.python-version }}
96+
uses: actions/setup-python@v4
97+
with:
98+
python-version: ${{ matrix.python-version }}
99+
- name: Install packages and dependencies for all tests
100+
run: |
101+
python -m pip install --upgrade pip wheel
102+
pip install pytest
103+
- name: Install packages and dependencies for GPTAssistantAgent
104+
run: |
105+
pip install -e .
106+
pip uninstall -y openai
107+
- name: Test GPTAssistantAgent
108+
if: matrix.python-version != '3.10'
109+
run: |
110+
pytest test/agentchat/contrib/test_gpt_assistant.py

.github/workflows/openai.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
AZURE_OPENAI_API_BASE: ${{ secrets.AZURE_OPENAI_API_BASE }}
5555
OAI_CONFIG_LIST: ${{ secrets.OAI_CONFIG_LIST }}
5656
run: |
57-
coverage run -a -m pytest test
57+
coverage run -a -m pytest test --ignore=test/agentchat/contrib
5858
coverage xml
5959
- name: Coverage and check notebook outputs
6060
if: matrix.python-version != '3.9'

README.md

+13-2
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,28 @@
33
![Python Version](https://img.shields.io/badge/3.8%20%7C%203.9%20%7C%203.10%20%7C%203.11-blue)
44
[![Downloads](https://static.pepy.tech/badge/pyautogen/week)](https://pepy.tech/project/pyautogen)
55
[![](https://img.shields.io/discord/1153072414184452236?logo=discord&style=flat)](https://discord.gg/pAbnFJrkgZ)
6+
[![Twitter](https://img.shields.io/twitter/url/https/twitter.com/cloudposse.svg?style=social&label=Follow%20%40pyautogen)](https://twitter.com/pyautogen)
67

7-
This project is a spinoff from [FLAML](https://github.com/microsoft/FLAML).
88

99
# AutoGen
1010

1111
<!-- <p align="center">
1212
<img src="https://github.com/microsoft/autogen/blob/main/website/static/img/flaml.svg" width=200>
1313
<br>
1414
</p> -->
15+
:fire: Nov 11: AutoGen experimentally supports OpenAI's Assistants! Checkout the [GPT Assistant Agent](autogen/agentchat/contrib/gpt_assistant_agent.py).
1516

16-
:fire: Heads-up: pyautogen v0.2 will switch to using openai v1.
17+
:fire: Nov 8: AutoGen is selected into [Open100: Top 100 Open Source achievements](https://www.benchcouncil.org/evaluation/opencs/annual.html) 35 days after spinoff.
18+
19+
:fire: Nov 6: AutoGen is mentioned by Satya Nadella in a [fireside chat](https://youtu.be/0pLBvgYtv6U) around 13:20.
20+
21+
:fire: Nov 1: AutoGen is the top trending repo on GitHub in October 2023.
22+
23+
:fire: Heads-up: pyautogen v0.2 will switch to using openai v1. Please read the [migration guide](https://microsoft.github.io/autogen/docs/Installation#python).
24+
25+
:tada: **Oct 03**: Autogen spins off from [FLAML](https://github.com/microsoft/FLAML) on Github and has a major paper update.
26+
27+
:tada: Aug 16: [Paper about AutoGen](https://arxiv.org/abs/2308.08155) on arxiv.
1728

1829
<!--
1930
:fire: FLAML is highlighted in OpenAI's [cookbook](https://github.com/openai/openai-cookbook#related-resources-from-around-the-web).

0 commit comments

Comments
 (0)