Skip to content

Commit 68251a1

Browse files
authored
Merge branch 'main' into add-poetry-to-docs
2 parents 0444666 + 913b5f2 commit 68251a1

File tree

166 files changed

+10011
-1063
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+10011
-1063
lines changed

.github/ISSUE_TEMPLATE.md

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
### Description
2+
<!-- A clear and concise description of the issue or feature request. -->
3+
4+
### Environment
5+
- AutoGen version: <!-- Specify the AutoGen version (e.g., v0.2.0) -->
6+
- Python version: <!-- Specify the Python version (e.g., 3.8) -->
7+
- Operating System: <!-- Specify the OS (e.g., Windows 10, Ubuntu 20.04) -->
8+
9+
### Steps to Reproduce (for bugs)
10+
<!-- Provide detailed steps to reproduce the issue. Include code snippets, configuration files, or any other relevant information. -->
11+
12+
1. Step 1
13+
2. Step 2
14+
3. ...
15+
16+
### Expected Behavior
17+
<!-- Describe what you expected to happen. -->
18+
19+
### Actual Behavior
20+
<!-- Describe what actually happened. Include any error messages, stack traces, or unexpected behavior. -->
21+
22+
### Screenshots / Logs (if applicable)
23+
<!-- If relevant, include screenshots or logs that help illustrate the issue. -->
24+
25+
### Additional Information
26+
<!-- Include any additional information that might be helpful, such as specific configurations, data samples, or context about the environment. -->
27+
28+
### Possible Solution (if you have one)
29+
<!-- If you have suggestions on how to address the issue, provide them here. -->
30+
31+
### Is this a Bug or Feature Request?
32+
<!-- Choose one: Bug | Feature Request -->
33+
34+
### Priority
35+
<!-- Choose one: High | Medium | Low -->
36+
37+
### Difficulty
38+
<!-- Choose one: Easy | Moderate | Hard -->
39+
40+
### Any related issues?
41+
<!-- If this is related to another issue, reference it here. -->
42+
43+
### Any relevant discussions?
44+
<!-- If there are any discussions or forum threads related to this issue, provide links. -->
45+
46+
### Checklist
47+
<!-- Please check the items that you have completed -->
48+
- [ ] I have searched for similar issues and didn't find any duplicates.
49+
- [ ] I have provided a clear and concise description of the issue.
50+
- [ ] I have included the necessary environment details.
51+
- [ ] I have outlined the steps to reproduce the issue.
52+
- [ ] I have included any relevant logs or screenshots.
53+
- [ ] I have indicated whether this is a bug or a feature request.
54+
- [ ] I have set the priority and difficulty levels.
55+
56+
### Additional Comments
57+
<!-- Any additional comments or context that you think would be helpful. -->

.github/ISSUE_TEMPLATE/bug_report.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Bug Report
2+
description: File a bug report
3+
title: "[Bug]: "
4+
labels: ["bug"]
5+
6+
body:
7+
- type: textarea
8+
id: description
9+
attributes:
10+
label: Describe the bug
11+
description: A clear and concise description of what the bug is.
12+
placeholder: What went wrong?
13+
- type: textarea
14+
id: reproduce
15+
attributes:
16+
label: Steps to reproduce
17+
description: |
18+
Steps to reproduce the behavior:
19+
20+
1. Step 1
21+
2. Step 2
22+
3. ...
23+
4. See error
24+
placeholder: How can we replicate the issue?
25+
- type: textarea
26+
id: expected_behavior
27+
attributes:
28+
label: Expected Behavior
29+
description: A clear and concise description of what you expected to happen.
30+
placeholder: What should have happened?
31+
- type: textarea
32+
id: screenshots
33+
attributes:
34+
label: Screenshots and logs
35+
description: If applicable, add screenshots and logs to help explain your problem.
36+
placeholder: Add screenshots here
37+
- type: textarea
38+
id: additional_information
39+
attributes:
40+
label: Additional Information
41+
description: |
42+
- AutoGen Version: <!-- Specify the AutoGen version (e.g., v0.2.0) -->
43+
- Operating System: <!-- Specify the OS (e.g., Windows 10, Ubuntu 20.04) -->
44+
- Python Version: <!-- Specify the Python version (e.g., 3.8) -->
45+
- Related Issues: <!-- Link to any related issues here (e.g., #1) -->
46+
- Any other relevant information.
47+
placeholder: Any additional details

.github/ISSUE_TEMPLATE/config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: true
+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Feature Request
2+
description: File a feature request
3+
labels: ["enhancement"]
4+
title: "[Feature Request]: "
5+
6+
body:
7+
- type: textarea
8+
id: problem_description
9+
attributes:
10+
label: Is your feature request related to a problem? Please describe.
11+
description: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
placeholder: What problem are you trying to solve?
13+
14+
- type: textarea
15+
id: solution_description
16+
attributes:
17+
label: Describe the solution you'd like
18+
description: A clear and concise description of what you want to happen.
19+
placeholder: How do you envision the solution?
20+
21+
- type: textarea
22+
id: additional_context
23+
attributes:
24+
label: Additional context
25+
description: Add any other context or screenshots about the feature request here.
26+
placeholder: Any additional information
+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: General Issue
2+
description: File a general issue
3+
title: "[Issue]: "
4+
labels: []
5+
6+
body:
7+
- type: textarea
8+
id: description
9+
attributes:
10+
label: Describe the issue
11+
description: A clear and concise description of what the issue is.
12+
placeholder: What went wrong?
13+
- type: textarea
14+
id: reproduce
15+
attributes:
16+
label: Steps to reproduce
17+
description: |
18+
Steps to reproduce the behavior:
19+
20+
1. Step 1
21+
2. Step 2
22+
3. ...
23+
4. See error
24+
placeholder: How can we replicate the issue?
25+
- type: textarea
26+
id: screenshots
27+
attributes:
28+
label: Screenshots and logs
29+
description: If applicable, add screenshots and logs to help explain your problem.
30+
placeholder: Add screenshots here
31+
- type: textarea
32+
id: additional_information
33+
attributes:
34+
label: Additional Information
35+
description: |
36+
- AutoGen Version: <!-- Specify the AutoGen version (e.g., v0.2.0) -->
37+
- Operating System: <!-- Specify the OS (e.g., Windows 10, Ubuntu 20.04) -->
38+
- Python Version: <!-- Specify the Python version (e.g., 3.8) -->
39+
- Related Issues: <!-- Link to any related issues here (e.g., #1) -->
40+
- Any other relevant information.
41+
placeholder: Any additional details

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
- name: Coverage
5050
if: matrix.python-version == '3.10'
5151
run: |
52-
pip install -e .[mathchat,test]
52+
pip install -e .[test]
5353
pip uninstall -y openai
5454
coverage run -a -m pytest test --ignore=test/agentchat/contrib
5555
coverage xml

.github/workflows/contrib-lmm.yml

-60
This file was deleted.

.github/workflows/contrib-openai.yml

+38
Original file line numberDiff line numberDiff line change
@@ -176,3 +176,41 @@ jobs:
176176
with:
177177
file: ./coverage.xml
178178
flags: unittests
179+
AgentBuilder:
180+
strategy:
181+
matrix:
182+
os: [ ubuntu-latest ]
183+
python-version: [ "3.11" ]
184+
runs-on: ${{ matrix.os }}
185+
environment: openai1
186+
steps:
187+
# checkout to pr branch
188+
- name: Checkout
189+
uses: actions/checkout@v3
190+
with:
191+
ref: ${{ github.event.pull_request.head.sha }}
192+
- name: Set up Python ${{ matrix.python-version }}
193+
uses: actions/setup-python@v4
194+
with:
195+
python-version: ${{ matrix.python-version }}
196+
- name: Install packages and dependencies
197+
run: |
198+
docker --version
199+
python -m pip install --upgrade pip wheel
200+
pip install -e .
201+
python -c "import autogen"
202+
pip install coverage pytest-asyncio
203+
- name: Coverage
204+
env:
205+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
206+
AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }}
207+
AZURE_OPENAI_API_BASE: ${{ secrets.AZURE_OPENAI_API_BASE }}
208+
OAI_CONFIG_LIST: ${{ secrets.OAI_CONFIG_LIST }}
209+
run: |
210+
coverage run -a -m pytest test/agentchat/contrib/test_agent_builder.py
211+
coverage xml
212+
- name: Upload coverage to Codecov
213+
uses: codecov/codecov-action@v3
214+
with:
215+
file: ./coverage.xml
216+
flags: unittests

.github/workflows/contrib-tests.yml

+77-1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ jobs:
6161
with:
6262
file: ./coverage.xml
6363
flags: unittests
64+
6465
CompressionTest:
6566
runs-on: ${{ matrix.os }}
6667
strategy:
@@ -83,9 +84,21 @@ jobs:
8384
pip install -e .
8485
pip uninstall -y openai
8586
- name: Test Compression
86-
if: matrix.python-version != '3.10'
87+
if: matrix.python-version != '3.10' # diversify the python versions
8788
run: |
8889
pytest test/agentchat/contrib/test_compressible_agent.py
90+
- name: Coverage
91+
if: matrix.python-version == '3.10'
92+
run: |
93+
pip install coverage>=5.3
94+
coverage run -a -m pytest test/agentchat/contrib/test_compressible_agent.py
95+
coverage xml
96+
- name: Upload coverage to Codecov
97+
if: matrix.python-version == '3.10'
98+
uses: codecov/codecov-action@v3
99+
with:
100+
file: ./coverage.xml
101+
flags: unittests
89102

90103
GPTAssistantAgent:
91104
runs-on: ${{ matrix.os }}
@@ -109,8 +122,21 @@ jobs:
109122
pip install -e .
110123
pip uninstall -y openai
111124
- name: Test GPTAssistantAgent
125+
if: matrix.python-version != '3.11' # diversify the python versions
112126
run: |
113127
pytest test/agentchat/contrib/test_gpt_assistant.py
128+
- name: Coverage
129+
if: matrix.python-version == '3.11'
130+
run: |
131+
pip install coverage>=5.3
132+
coverage run -a -m pytest test/agentchat/contrib/test_gpt_assistant.py
133+
coverage xml
134+
- name: Upload coverage to Codecov
135+
if: matrix.python-version == '3.11'
136+
uses: codecov/codecov-action@v3
137+
with:
138+
file: ./coverage.xml
139+
flags: unittests
114140

115141
TeachableAgent:
116142
runs-on: ${{ matrix.os }}
@@ -134,5 +160,55 @@ jobs:
134160
pip install -e .[teachable]
135161
pip uninstall -y openai
136162
- name: Test TeachableAgent
163+
if: matrix.python-version != '3.9' # diversify the python versions
137164
run: |
138165
pytest test/agentchat/contrib/test_teachable_agent.py
166+
- name: Coverage
167+
if: matrix.python-version == '3.9'
168+
run: |
169+
pip install coverage>=5.3
170+
coverage run -a -m pytest test/agentchat/contrib/test_teachable_agent.py
171+
coverage xml
172+
- name: Upload coverage to Codecov
173+
if: matrix.python-version == '3.9'
174+
uses: codecov/codecov-action@v3
175+
with:
176+
file: ./coverage.xml
177+
flags: unittests
178+
179+
LMMTest:
180+
runs-on: ${{ matrix.os }}
181+
strategy:
182+
fail-fast: false
183+
matrix:
184+
os: [ubuntu-latest, macos-latest, windows-2019]
185+
python-version: ["3.8", "3.9", "3.10", "3.11"]
186+
steps:
187+
- uses: actions/checkout@v3
188+
- name: Set up Python ${{ matrix.python-version }}
189+
uses: actions/setup-python@v4
190+
with:
191+
python-version: ${{ matrix.python-version }}
192+
- name: Install packages and dependencies for all tests
193+
run: |
194+
python -m pip install --upgrade pip wheel
195+
pip install pytest
196+
- name: Install packages and dependencies for LMM
197+
run: |
198+
pip install -e .[lmm]
199+
pip uninstall -y openai
200+
- name: Test LMM and LLaVA
201+
run: |
202+
pytest test/agentchat/contrib/test_img_utils.py test/agentchat/contrib/test_lmm.py test/agentchat/contrib/test_llava.py
203+
- name: Coverage
204+
if: matrix.python-version == '3.10'
205+
run: |
206+
pip install coverage>=5.3
207+
coverage run -a -m pytest test/agentchat/contrib/test_img_utils.py test/agentchat/contrib/test_lmm.py test/agentchat/contrib/test_llava.py
208+
coverage xml
209+
- name: Upload coverage to Codecov
210+
if: matrix.python-version == '3.10'
211+
uses: codecov/codecov-action@v3
212+
with:
213+
file: ./coverage.xml
214+
flags: unittests

0 commit comments

Comments
 (0)