Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing AutoBuild #846

Merged
merged 123 commits into from
Dec 4, 2023
Merged
Show file tree
Hide file tree
Changes from 119 commits
Commits
Show all changes
123 commits
Select commit Hold shift + click to select a range
bc9a87e
init notebook for agent set up
LinxinS97 Oct 26, 2023
f3b1c50
Merge remote-tracking branch 'origin/main'
LinxinS97 Oct 26, 2023
4f79d48
complete AgentCreator
LinxinS97 Oct 28, 2023
2068ef1
Merge branch 'microsoft:main' into main
LinxinS97 Oct 28, 2023
11642a3
Merge remote-tracking branch 'origin/main'
LinxinS97 Oct 28, 2023
73b4061
AgentCreator first step features completed.
LinxinS97 Oct 29, 2023
c7e297d
update AgentCreator
LinxinS97 Oct 29, 2023
d7725ad
update AgentCreator
LinxinS97 Oct 31, 2023
8c767b5
update AgentCreator (modify params of build)
LinxinS97 Oct 31, 2023
830f2d5
Merge branch 'microsoft:main' into main
LinxinS97 Oct 31, 2023
f1402fb
Merge branch 'microsoft:main' into main
JieyuZ2 Oct 31, 2023
9211870
[update AgentCreator] add auto judgement of coding
LinxinS97 Nov 3, 2023
b2ec4f0
Merge remote-tracking branch 'origin/main'
LinxinS97 Nov 3, 2023
290c037
Merge branch 'microsoft:main' into main
LinxinS97 Nov 3, 2023
00287a2
Merge remote-tracking branch 'origin/main'
LinxinS97 Nov 3, 2023
8ac9715
add autobuild
LinxinS97 Nov 3, 2023
8941d33
rename autobuild notebook
LinxinS97 Nov 4, 2023
b904d57
Merge branch 'microsoft:main' into main
LinxinS97 Nov 5, 2023
3aa2495
Add step-by-step command.
LinxinS97 Nov 7, 2023
249c44f
Merge branch 'microsoft:main' into main
LinxinS97 Nov 7, 2023
95c0b91
Merge remote-tracking branch 'origin/main'
LinxinS97 Nov 7, 2023
dbfe0c4
modify name
LinxinS97 Nov 7, 2023
34684f1
fix bugs
LinxinS97 Nov 7, 2023
ca7d990
Merge branch 'microsoft:main' into main
LinxinS97 Nov 8, 2023
f3ba3f7
update for new openai api
LinxinS97 Nov 8, 2023
809e073
add example
LinxinS97 Nov 8, 2023
faa54ad
add load_config, save_config, and add task in build and start
LinxinS97 Nov 9, 2023
a4c27cb
Merge branch 'microsoft:main' into main
LinxinS97 Nov 9, 2023
c429e28
Merge remote-tracking branch 'origin/main'
LinxinS97 Nov 9, 2023
987bb33
modify notebook
LinxinS97 Nov 9, 2023
6e07a8d
rewrite save and load function; update notebook
LinxinS97 Nov 10, 2023
bb617c8
Merge branch 'microsoft:main' into main
LinxinS97 Nov 10, 2023
aec0035
Merge remote-tracking branch 'origin/main'
LinxinS97 Nov 10, 2023
cafe4c4
update description
LinxinS97 Nov 10, 2023
57940bf
update description
LinxinS97 Nov 10, 2023
4a50ba7
update description
LinxinS97 Nov 10, 2023
7bdfe84
change member variable of agent_creator.py
LinxinS97 Nov 10, 2023
8da1eb3
update notebook
LinxinS97 Nov 10, 2023
14eaf3e
new feature: auto-generate agent name and system message
LinxinS97 Nov 16, 2023
db7c5d2
Merge branch 'microsoft:main' into main
LinxinS97 Nov 16, 2023
cb09ec3
Merge remote-tracking branch 'origin/main'
LinxinS97 Nov 16, 2023
f4a776e
Merge branch 'microsoft:main' into main
LinxinS97 Nov 20, 2023
628ffd0
new feature: add gpts support
LinxinS97 Nov 20, 2023
8f2b0ac
Merge remote-tracking branch 'origin/main'
LinxinS97 Nov 20, 2023
863c47c
update notebook
LinxinS97 Nov 20, 2023
bbe0656
Merge branch 'microsoft:main' into main
LinxinS97 Nov 23, 2023
7ec8952
update notebook
LinxinS97 Nov 23, 2023
a758ecf
Merge remote-tracking branch 'origin/main'
LinxinS97 Nov 23, 2023
f7115d2
beautify; add docstring for build
LinxinS97 Nov 23, 2023
5551e44
Update notebook; PR version
LinxinS97 Nov 25, 2023
6404115
typo
LinxinS97 Nov 25, 2023
1f537a4
update notebook
LinxinS97 Nov 26, 2023
1da48d8
Merge branch 'microsoft:main' into autobuild
LinxinS97 Nov 26, 2023
7d4afb8
Merge remote-tracking branch 'origin/autobuild' into autobuild
LinxinS97 Nov 26, 2023
1c6fb7c
fix typo
LinxinS97 Nov 26, 2023
be8a203
try to run llama
JieyuZ2 Nov 26, 2023
d999ee0
try to run llama
JieyuZ2 Nov 26, 2023
c017349
switch api_base to base_url
LinxinS97 Nov 27, 2023
69cbf7f
Merge branch 'microsoft:main' into autobuild
LinxinS97 Nov 27, 2023
4f0108f
Merge remote-tracking branch 'origin/autobuild' into autobuild
LinxinS97 Nov 27, 2023
ba9f734
add details for Step 6; add print in clear_all_agents()
LinxinS97 Nov 27, 2023
bf8acea
Merge branch 'microsoft:main' into autobuild
LinxinS97 Nov 27, 2023
59d7db6
Merge remote-tracking branch 'origin/autobuild' into autobuild
LinxinS97 Nov 27, 2023
38ad6db
Change description of Step 5
LinxinS97 Nov 27, 2023
ece286b
delete ASSISTANT_CONFIG_LIST
LinxinS97 Nov 27, 2023
0dadaaf
add Linxin to blog authors
JieyuZ2 Nov 27, 2023
ae9737b
add blog
JieyuZ2 Nov 27, 2023
02f0d81
Update index.mdx
JieyuZ2 Nov 27, 2023
5c4efe7
Merge branch 'microsoft:main' into autobuild
LinxinS97 Nov 28, 2023
0cf7c3a
add test; add user proxy constrain; change show case in notebook
LinxinS97 Nov 28, 2023
08df314
modify blog for test
LinxinS97 Nov 28, 2023
5f32e73
change test file name; modify test
LinxinS97 Nov 28, 2023
2e8e912
modify test
LinxinS97 Nov 28, 2023
3796215
modify test
LinxinS97 Nov 28, 2023
84bc57d
add try/catch for dependency
LinxinS97 Nov 28, 2023
53b6ce7
add version requirement for openai
LinxinS97 Nov 28, 2023
f79a48c
add exception for DistributionNotFound error
LinxinS97 Nov 28, 2023
891fbce
add requirement
LinxinS97 Nov 28, 2023
86d1e37
change assertion
LinxinS97 Nov 28, 2023
99a03bd
rename test; modify index.mdx
LinxinS97 Nov 28, 2023
3d71325
change config file name
LinxinS97 Nov 28, 2023
1bf7b24
Merge branch 'microsoft:main' into autobuild
LinxinS97 Nov 28, 2023
52556f4
Merge remote-tracking branch 'origin/autobuild' into autobuild
LinxinS97 Nov 28, 2023
be88442
Update agent_chat.md
JieyuZ2 Nov 29, 2023
5402f8f
Update agent_chat.md
JieyuZ2 Nov 29, 2023
b429dd2
Update AgentChat.md
JieyuZ2 Nov 29, 2023
e869436
complete blog; fix typos in notebook
LinxinS97 Nov 30, 2023
74b2f81
Merge remote-tracking branch 'origin/autobuild' into autobuild
LinxinS97 Nov 30, 2023
3661eb4
add autobuild banner
LinxinS97 Nov 30, 2023
2e8fb36
try to merge
LinxinS97 Dec 1, 2023
cd8f043
Merge branch 'microsoft:main' into autobuild
LinxinS97 Dec 1, 2023
e188a4d
Update Examples.md
JieyuZ2 Dec 1, 2023
9561b63
Merge branch 'main' into autobuild
JieyuZ2 Dec 2, 2023
dce0056
update test
LinxinS97 Dec 2, 2023
1206e91
Merge remote-tracking branch 'origin/autobuild' into autobuild
LinxinS97 Dec 2, 2023
e0bc09c
skip if openai not installed
LinxinS97 Dec 2, 2023
495d7b8
pre-commit
LinxinS97 Dec 2, 2023
e560f61
Update website/blog/2023-11-26-Agent-AutoBuild/index.mdx
LinxinS97 Dec 2, 2023
3f7da75
Merge branch 'main' into autobuild
JieyuZ2 Dec 2, 2023
1ac7e95
update contrib-openai.yml
LinxinS97 Dec 2, 2023
c491a29
Merge remote-tracking branch 'origin/autobuild' into autobuild
LinxinS97 Dec 2, 2023
ba9e42b
Merge branch 'autobuild_pr' into autobuild
LinxinS97 Dec 2, 2023
c3de93e
Merge branch 'main' into autobuild
JieyuZ2 Dec 2, 2023
260e113
change pull_request_target to pull_request
LinxinS97 Dec 2, 2023
472ca1b
Merge branch 'main' into autobuild
JieyuZ2 Dec 3, 2023
bdce6b5
Merge branch 'main' into autobuild
JieyuZ2 Dec 3, 2023
89a0a70
disable other openai tests
LinxinS97 Dec 3, 2023
1057f12
Merge remote-tracking branch 'origin/autobuild' into autobuild
LinxinS97 Dec 3, 2023
376730c
address issues from ekzhu; modify notebook; modify blog; modify test
LinxinS97 Dec 3, 2023
e0f535f
Merge branch 'microsoft:autobuild' into autobuild
LinxinS97 Dec 3, 2023
0bdb9af
Merge remote-tracking branch 'origin/autobuild' into autobuild
LinxinS97 Dec 3, 2023
dda6760
update test example
LinxinS97 Dec 3, 2023
9f625d4
Merge branch 'autobuild_pr' into autobuild
LinxinS97 Dec 3, 2023
e00a38d
update test
LinxinS97 Dec 3, 2023
d6de761
Merge branch 'autobuild_pr' into autobuild
LinxinS97 Dec 3, 2023
8348686
Merge branch 'main' into autobuild
qingyun-wu Dec 3, 2023
3231fb0
Update agent_chat.md
JieyuZ2 Dec 3, 2023
0c4a1bb
Merge branch 'main' into autobuild
JieyuZ2 Dec 4, 2023
9774235
Update Examples.md
JieyuZ2 Dec 4, 2023
38cc1ff
address issues from qingyun; update agent_builder.py; update notebook
LinxinS97 Dec 4, 2023
c895e00
Merge remote-tracking branch 'origin/autobuild' into autobuild
LinxinS97 Dec 4, 2023
e38904d
recover contrib-openai.yml
LinxinS97 Dec 4, 2023
bf6715b
pre-commit solve
LinxinS97 Dec 4, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
298 changes: 168 additions & 130 deletions .github/workflows/contrib-openai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
name: OpenAI4ContribTests

on:
pull_request_target:
pull_request:
branches: ['main']
paths:
- 'autogen/**'
Expand All @@ -13,11 +13,174 @@ on:
- 'setup.py'

jobs:
RetrieveChatTest:
# RetrieveChatTest:
# strategy:
# matrix:
# os: [ubuntu-latest]
# python-version: ["3.10"]
# runs-on: ${{ matrix.os }}
# environment: openai1
# steps:
# # checkout to pr branch
# - name: Checkout
# uses: actions/checkout@v3
# with:
# ref: ${{ github.event.pull_request.head.sha }}
# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v4
# with:
# python-version: ${{ matrix.python-version }}
# - name: Install packages and dependencies
# run: |
# docker --version
# python -m pip install --upgrade pip wheel
# pip install -e .
# python -c "import autogen"
# pip install coverage pytest-asyncio
# - name: Install packages for test when needed
# run: |
# pip install docker
# pip install qdrant_client[fastembed]
# pip install -e .[retrievechat]
# - name: Coverage
# env:
# OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
# AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }}
# AZURE_OPENAI_API_BASE: ${{ secrets.AZURE_OPENAI_API_BASE }}
# OAI_CONFIG_LIST: ${{ secrets.OAI_CONFIG_LIST }}
# run: |
# coverage run -a -m pytest test/agentchat/contrib/test_retrievechat.py test/agentchat/contrib/test_qdrant_retrievechat.py
# coverage xml
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v3
# with:
# file: ./coverage.xml
# flags: unittests
# CompressionTest:
# strategy:
# matrix:
# os: [ubuntu-latest]
# python-version: ["3.9"]
# runs-on: ${{ matrix.os }}
# environment: openai1
# steps:
# # checkout to pr branch
# - name: Checkout
# uses: actions/checkout@v3
# with:
# ref: ${{ github.event.pull_request.head.sha }}
# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v4
# with:
# python-version: ${{ matrix.python-version }}
# - name: Install packages and dependencies
# run: |
# docker --version
# python -m pip install --upgrade pip wheel
# pip install -e .
# python -c "import autogen"
# pip install coverage pytest-asyncio
# - name: Install packages for test when needed
# run: |
# pip install docker
# - name: Coverage
# env:
# OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
# AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }}
# AZURE_OPENAI_API_BASE: ${{ secrets.AZURE_OPENAI_API_BASE }}
# OAI_CONFIG_LIST: ${{ secrets.OAI_CONFIG_LIST }}
# run: |
# coverage run -a -m pytest test/agentchat/contrib/test_compressible_agent.py
# coverage xml
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v3
# with:
# file: ./coverage.xml
# flags: unittests
# GPTAssistantAgent:
# strategy:
# matrix:
# os: [ubuntu-latest]
# python-version: ["3.11"]
# runs-on: ${{ matrix.os }}
# environment: openai1
# steps:
# # checkout to pr branch
# - name: Checkout
# uses: actions/checkout@v3
# with:
# ref: ${{ github.event.pull_request.head.sha }}
# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v4
# with:
# python-version: ${{ matrix.python-version }}
# - name: Install packages and dependencies
# run: |
# docker --version
# python -m pip install --upgrade pip wheel
# pip install -e .
# python -c "import autogen"
# pip install coverage pytest-asyncio
# - name: Install packages for test when needed
# run: |
# pip install docker
# - name: Coverage
# env:
# OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
# AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }}
# AZURE_OPENAI_API_BASE: ${{ secrets.AZURE_OPENAI_API_BASE }}
# OAI_CONFIG_LIST: ${{ secrets.OAI_CONFIG_LIST }}
# run: |
# coverage run -a -m pytest test/agentchat/contrib/test_gpt_assistant.py
# coverage xml
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v3
# with:
# file: ./coverage.xml
# flags: unittests
# TeachableAgent:
# strategy:
# matrix:
# os: [ubuntu-latest]
# python-version: ["3.11"]
# runs-on: ${{ matrix.os }}
# environment: openai1
# steps:
# # checkout to pr branch
# - name: Checkout
# uses: actions/checkout@v3
# with:
# ref: ${{ github.event.pull_request.head.sha }}
# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v4
# with:
# python-version: ${{ matrix.python-version }}
# - name: Install packages and dependencies
# run: |
# docker --version
# python -m pip install --upgrade pip wheel
# pip install -e .[teachable]
# python -c "import autogen"
# pip install coverage pytest
# - name: Coverage
# env:
# OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
# AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }}
# AZURE_OPENAI_API_BASE: ${{ secrets.AZURE_OPENAI_API_BASE }}
# OAI_CONFIG_LIST: ${{ secrets.OAI_CONFIG_LIST }}
# run: |
# coverage run -a -m pytest test/agentchat/contrib/test_teachable_agent.py
# coverage xml
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v3
# with:
# file: ./coverage.xml
# flags: unittests
AgentBuilder:
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.10"]
os: [ ubuntu-latest ]
python-version: [ "3.11" ]
runs-on: ${{ matrix.os }}
environment: openai1
steps:
Expand All @@ -37,139 +200,14 @@ jobs:
pip install -e .
python -c "import autogen"
pip install coverage pytest-asyncio
- name: Install packages for test when needed
run: |
pip install docker
pip install qdrant_client[fastembed]
pip install -e .[retrievechat]
- name: Coverage
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }}
AZURE_OPENAI_API_BASE: ${{ secrets.AZURE_OPENAI_API_BASE }}
OAI_CONFIG_LIST: ${{ secrets.OAI_CONFIG_LIST }}
run: |
coverage run -a -m pytest test/agentchat/contrib/test_retrievechat.py test/agentchat/contrib/test_qdrant_retrievechat.py
coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
flags: unittests
CompressionTest:
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.9"]
runs-on: ${{ matrix.os }}
environment: openai1
steps:
# checkout to pr branch
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install packages and dependencies
run: |
docker --version
python -m pip install --upgrade pip wheel
pip install -e .
python -c "import autogen"
pip install coverage pytest-asyncio
- name: Install packages for test when needed
run: |
pip install docker
- name: Coverage
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }}
AZURE_OPENAI_API_BASE: ${{ secrets.AZURE_OPENAI_API_BASE }}
OAI_CONFIG_LIST: ${{ secrets.OAI_CONFIG_LIST }}
run: |
coverage run -a -m pytest test/agentchat/contrib/test_compressible_agent.py
coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
flags: unittests
GPTAssistantAgent:
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.11"]
runs-on: ${{ matrix.os }}
environment: openai1
steps:
# checkout to pr branch
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install packages and dependencies
run: |
docker --version
python -m pip install --upgrade pip wheel
pip install -e .
python -c "import autogen"
pip install coverage pytest-asyncio
- name: Install packages for test when needed
run: |
pip install docker
- name: Coverage
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }}
AZURE_OPENAI_API_BASE: ${{ secrets.AZURE_OPENAI_API_BASE }}
OAI_CONFIG_LIST: ${{ secrets.OAI_CONFIG_LIST }}
run: |
coverage run -a -m pytest test/agentchat/contrib/test_gpt_assistant.py
coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
flags: unittests
TeachableAgent:
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.11"]
runs-on: ${{ matrix.os }}
environment: openai1
steps:
# checkout to pr branch
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install packages and dependencies
run: |
docker --version
python -m pip install --upgrade pip wheel
pip install -e .[teachable]
python -c "import autogen"
pip install coverage pytest
- name: Coverage
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }}
AZURE_OPENAI_API_BASE: ${{ secrets.AZURE_OPENAI_API_BASE }}
OAI_CONFIG_LIST: ${{ secrets.OAI_CONFIG_LIST }}
run: |
coverage run -a -m pytest test/agentchat/contrib/test_teachable_agent.py
coverage run -a -m pytest test/agentchat/contrib/test_agent_builder.py
coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
Expand Down
Loading
Loading