-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. refactor interface of llm and agent for flexible customization 2. refactor tool interface and add registration for tool 3. add memory and storage module 4. add chatglm4 and vllm server support 5. add example of different agent in modelscope_agent/agents 6. add more test cases --------- Co-authored-by: wangyijunlyy <1157637345@qq.com> Co-authored-by: tujianhong.tjh <tujianhong.tjh@alibaba-inc.com> Co-authored-by: suluyan.sly <suluyan.sly@alibaba-inc.com> Co-authored-by: Jianhong Tu <37433392+tuhahaha@users.noreply.github.com> Co-authored-by: mushenL <125954878+mushenL@users.noreply.github.com> Co-authored-by: Zhicheng Zhang <zhangzhicheng.zzc@alibaba-inc.com> Co-authored-by: suluyana <110878454+suluyana@users.noreply.github.com> Co-authored-by: wyw <1006629314@qq.com> Co-authored-by: nil.wyw <nil.wyw@alibaba-inc.com> Co-authored-by: Col0ring <1561999073@qq.com> Co-authored-by: wenmeng.zwm <wenmeng.zwm@alibaba-inc.com> Co-authored-by: Col0ring <47329987+Col0ring@users.noreply.github.com> Co-authored-by: skyline2006 <skyline2006@163.com> Co-authored-by: lylalala <liuyang070424@163.com> Co-authored-by: ly119399 <ly119399@alibaba-inc.com> Co-authored-by: Jintao Huang <huangjintao.hjt@alibaba-inc.com>
- Loading branch information
1 parent
7a805e6
commit ca7ed93
Showing
195 changed files
with
157,679 additions
and
7,847 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
# install dependencies for ci | ||
wget -O ffmpeg.tar.xz https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-amd64-static.tar.xz | ||
tar xvf ffmpeg.tar.xz | ||
export export PATH=`pwd`:$PATH | ||
pip install torch | ||
export CODE_INTERPRETER_WORK_DIR=${GITHUB_WORKSPACE} | ||
echo "${CODE_INTERPRETER_WORK_DIR}" | ||
|
||
# cp file | ||
cp tests/samples/* "${CODE_INTERPRETER_WORK_DIR}/" | ||
ls "${CODE_INTERPRETER_WORK_DIR}" | ||
|
||
# run ci | ||
pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
name: citest | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- "release/**" | ||
paths-ignore: | ||
- "setup.*" | ||
- "requirements.txt" | ||
- "apps/**" | ||
- "docs/**" | ||
- "demo/**" | ||
- "config/**" | ||
- "resource/**" | ||
- "README.md" | ||
- "README_zh-CN.md" | ||
- "NOTICE" | ||
- ".github/workflows/lint.yaml" | ||
|
||
pull_request: | ||
paths-ignore: | ||
- "setup.*" | ||
- "requirements.txt" | ||
- "apps/**" | ||
- "docs/**" | ||
- "demo/**" | ||
- "config/**" | ||
- "resource/**" | ||
- "README.md" | ||
- "README_zh-CN.md" | ||
- "NOTICE" | ||
- ".github/workflows/lint.yaml" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
unittest: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 20 | ||
environment: testci | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
# - name: Cache Python dependencies | ||
# uses: actions/cache@v3 | ||
# id: cache | ||
# with: | ||
# path: ~/.cache/pip | ||
# key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} | ||
|
||
- name: Set up Python 3.10.13 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.10.13" | ||
|
||
- name: Install dependencies | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: pip install -r requirements.txt | ||
|
||
- name: Run tests | ||
env: | ||
AMAP_TOKEN: ${{ secrets.AMAP_TOKEN }} | ||
BING_SEARCH_V7_SUBSCRIPTION_KEY: ${{ secrets.BING_SEARCH_V7_SUBSCRIPTION_KEY }} | ||
DASHSCOPE_API_KEY: ${{ secrets.DASHSCOPE_API_KEY }} | ||
MODELSCOPE_API_TOKEN: ${{ secrets.MODELSCOPE_API_TOKEN }} | ||
|
||
shell: bash | ||
run: bash .dev_scripts/dockerci.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,8 @@ wheels/ | |
*.egg | ||
/package | ||
/temp | ||
**/tmp/ | ||
/apps/agentfabric/tmp/ | ||
MANIFEST | ||
|
||
# PyInstaller | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
recursive-include modelscope_agent/tools/code_interpreter_utils *.ttf | ||
recursive-include modelscope_agent/tools/code_interpreter *.ttf | ||
recursive-include modelscope_agent/utils *.tiktoken | ||
recursive-include modelscope_agent/utils/nltk *.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.