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

Feature/ten 0.5 #503

Open
wants to merge 28 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
c224b20
refactor: remove chat_transcriber_python
wangyoucao577 Dec 18, 2024
c84cbf1
feat: upgrade runtime deps
wangyoucao577 Dec 18, 2024
a3fa1b1
feat: add required ext
wangyoucao577 Dec 18, 2024
6a53124
fix: schema
wangyoucao577 Dec 18, 2024
c2c72e5
fix: await
wangyoucao577 Dec 18, 2024
bec4301
fix: fix upgrade errors
plutoless Dec 19, 2024
5511aaa
fix: enable pylint
plutoless Dec 20, 2024
cf7f048
fix: keep adding lint fix
plutoless Dec 20, 2024
2828b47
fix: fix all lint issues
plutoless Dec 20, 2024
06d3859
feat: add lint to ci
plutoless Dec 20, 2024
36dac48
feat: add lint step
plutoless Dec 20, 2024
8cd894c
feat: provide pylint
plutoless Dec 20, 2024
03d7f35
feat: move lint after deps install
plutoless Dec 20, 2024
8c6a499
feat: add install-tools script & upgrade RTM
plutoless Dec 23, 2024
c4aad3b
fix: enalbe pyright & fix all async/await issues
plutoless Dec 23, 2024
f08f165
fix: fix env
plutoless Dec 23, 2024
05f2b21
fix: fix env
plutoless Dec 23, 2024
d39a329
fix: fix env path
plutoless Dec 23, 2024
3546b83
fix: fix pylint issue
plutoless Dec 23, 2024
3944cf1
fix: fixed manifest for tools
plutoless Dec 23, 2024
69a3b44
fix: fix circular imports and breaks
plutoless Dec 23, 2024
ae17c15
fix: fix all default graphs
plutoless Dec 23, 2024
349353c
fix: fix gemini voice issue
plutoless Dec 23, 2024
f5d3462
fix: fix lint issues
plutoless Dec 23, 2024
1f7c48b
fix: fix demo manifest & property
plutoless Dec 23, 2024
264f550
fix: fix callback exception
plutoless Dec 24, 2024
df670b3
chore(): use the ten_env logging module uniformly
sunshinexcode Dec 26, 2024
bc47d09
chore(): use the ten_env logging module uniformly
sunshinexcode Dec 26, 2024
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
652 changes: 652 additions & 0 deletions .pylintrc

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@
],
"C_Cpp.intelliSenseEngine": "disabled",
"editor.formatOnSave": true,
"editor.defaultFormatter": null,
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter"
},
}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ WORKDIR /app
COPY . .
COPY agents/${SESSION_CONTROL_CONF} agents/session_control.conf

RUN task clean && task use AGENT=agents/examples/demo && \
RUN task clean && task use AGENT=agents/examples/demo && task install-tools && task lint && \
cd agents && ./scripts/package.sh

FROM ubuntu:22.04
Expand Down
12 changes: 12 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@ tasks:
- task: clean-agents
- task: clean-server

lint:
desc: lint-agent
env:
PYTHONPATH: "./agents/ten_packages/system/ten_runtime_python/lib:./agents/ten_packages/system/ten_runtime_python/interface:./agents/ten_packages/system/ten_ai_base/interface"
cmds:
- ./agents/scripts/pylint.sh

install-tools:
desc: install tools
cmds:
- pip install pylint
plutoless marked this conversation as resolved.
Show resolved Hide resolved

build:
desc: build
cmds:
Expand Down
116 changes: 108 additions & 8 deletions agents/examples/default/manifest.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
{
"type": "app",
"name": "agent_demo",
"version": "0.4.0",
"version": "0.5.0",
"dependencies": [
{
"type": "system",
"name": "ten_runtime_go",
"version": "0.4"
"version": "0.5"
},
{
"type": "extension",
"name": "py_init_extension_cpp",
"version": "0.4"
"version": "0.5"
},
{
"type": "extension",
"name": "agora_rtc",
"version": "=0.9.0-rc1"
"version": "=0.10.0-rc3"
},
{
"type": "extension",
"name": "agora_sess_ctrl",
"version": "0.3.0-rc1"
"version": "=0.4.0-rc1"
},
{
"type": "system",
Expand All @@ -31,12 +31,112 @@
{
"type": "extension",
"name": "azure_tts",
"version": "=0.6.2"
"version": "=0.7.0"
},
{
"type": "extension",
"name": "agora_rtm",
"version": "=0.3.0"
"name": "openai_v2v_python",
"version": "=0.1.0"
},
{
"type": "extension",
"name": "message_collector",
"version": "=0.1.0"
},
{
"type": "extension",
"name": "bingsearch_tool_python",
"version": "=0.1.0"
},
{
"type": "extension",
"name": "openai_chatgpt_python",
"version": "=0.1.0"
},
{
"type": "extension",
"name": "fish_audio_tts",
"version": "=0.1.0"
},
{
"type": "extension",
"name": "interrupt_detector_python",
"version": "=0.1.0"
},
{
"type": "extension",
"name": "weatherapi_tool_python",
"version": "=0.1.0"
},
{
"type": "extension",
"name": "deepgram_asr_python",
"version": "=0.1.0"
},
{
"type": "extension",
"name": "vision_tool_python",
"version": "=0.1.0"
},
{
"type": "extension",
"name": "vision_analyze_tool_python",
"version": "=0.1.0"
},
{
"type": "extension",
"name": "transcribe_asr_python",
"version": "=0.1.0"
},
{
"type": "extension",
"name": "gemini_llm_python",
"version": "=0.1.0"
},
{
"type": "extension",
"name": "bedrock_llm_python",
"version": "=0.1.0"
},
{
"type": "extension",
"name": "polly_tts",
"version": "=0.1.0"
},
{
"type": "extension",
"name": "minimax_tts_python",
"version": "=0.1.0"
},
{
"type": "extension",
"name": "minimax_v2v_python",
"version": "=0.1.0"
},
{
"type": "extension",
"name": "cosy_tts_python",
"version": "=0.1.0"
},
{
"type": "extension",
"name": "elevenlabs_tts_python",
"version": "=0.1.0"
},
{
"type": "extension",
"name": "dify_python",
"version": "=0.1.0"
},
{
"type": "extension",
"name": "gemini_v2v_python",
"version": "=0.1.0"
},
{
"type": "extension",
"name": "coze_python_async",
"version": "=0.1.0"
}
]
}
69 changes: 62 additions & 7 deletions agents/examples/demo/manifest.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
{
"type": "app",
"name": "agent_demo",
"version": "0.4.0",
"version": "0.5.0",
"dependencies": [
{
"type": "system",
"name": "ten_runtime_go",
"version": "0.4"
"version": "0.5"
},
{
"type": "extension",
"name": "py_init_extension_cpp",
"version": "0.4"
"version": "0.5"
},
{
"type": "extension",
"name": "agora_rtc",
"version": "=0.9.0-rc1"
"version": "=0.10.0-rc3"
},
{
"type": "extension",
"name": "agora_sess_ctrl",
"version": "0.3.0-rc1"
"version": "=0.4.0-rc1"
},
{
"type": "system",
Expand All @@ -31,12 +31,67 @@
{
"type": "extension",
"name": "azure_tts",
"version": "=0.6.2"
"version": "=0.7.0"
},
{
"type": "extension",
"name": "agora_rtm",
"version": "=0.3.0"
"version": "=0.5.1"
},
{
"type": "extension",
"name": "dify_python",
"version": "=0.1.0"
},
{
"type": "extension",
"name": "gemini_v2v_python",
"version": "=0.1.0"
},
{
"type": "extension",
"name": "openai_chatgpt_python",
"version": "=0.1.0"
},
{
"type": "extension",
"name": "bingsearch_tool_python",
"version": "=0.1.0"
},
{
"type": "extension",
"name": "vision_tool_python",
"version": "=0.1.0"
},
{
"type": "extension",
"name": "weatherapi_tool_python",
"version": "=0.1.0"
},
{
"type": "extension",
"name": "interrupt_detector_python",
"version": "=0.1.0"
},
{
"type": "extension",
"name": "openai_v2v_python",
"version": "=0.1.0"
},
{
"type": "extension",
"name": "message_collector",
"version": "=0.1.0"
},
{
"type": "extension",
"name": "coze_python_async",
"version": "=0.1.0"
},
{
"type": "extension",
"name": "fish_audio_tts",
"version": "=0.1.0"
}
]
}
2 changes: 1 addition & 1 deletion agents/examples/demo/property.json
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@
{
"type": "extension",
"name": "interrupt_detector",
"addon": "interrupt_detector",
"addon": "interrupt_detector_python",
"extension_group": "default"
},
{
Expand Down
12 changes: 6 additions & 6 deletions agents/examples/experimental/manifest.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
{
"type": "app",
"name": "agent_experimental",
"version": "0.4.0",
"version": "0.5.0",
"dependencies": [
{
"type": "system",
"name": "ten_runtime_go",
"version": "0.4"
"version": "0.5"
},
{
"type": "extension",
"name": "py_init_extension_cpp",
"version": "0.4"
"version": "0.5"
},
{
"type": "extension",
"name": "agora_rtc",
"version": "=0.9.0-rc1"
"version": "=0.10.0-rc3"
},
{
"type": "extension",
"name": "agora_sess_ctrl",
"version": "0.3.0-rc1"
"version": "=0.4.0-rc1"
},
{
"type": "system",
Expand All @@ -31,7 +31,7 @@
{
"type": "extension",
"name": "azure_tts",
"version": "=0.6.0"
"version": "=0.7.0"
},
{
"type": "extension",
Expand Down
2 changes: 1 addition & 1 deletion agents/scripts/install_deps_and_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ build_cxx_extensions() {
fi
if [[ ! -d $extension/lib ]]; then
echo "No output for extension $extension_name."
exit 1
# exit 1
fi

mkdir -p $app_dir/ten_packages/extension/$extension_name/lib
Expand Down
4 changes: 4 additions & 0 deletions agents/scripts/pylint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash


pylint ./agents/ten_packages/extension/. || pylint-exit --warn-fail --error-fail $?
6 changes: 3 additions & 3 deletions agents/ten_packages/bak/litellm_python/manifest.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"type": "extension",
"name": "litellm_python",
"version": "0.4.0",
"version": "0.1.0",
"dependencies": [
{
"type": "system",
"name": "ten_runtime_python",
"version": "0.4"
"version": "0.5"
}
],
"api": {
Expand Down Expand Up @@ -79,4 +79,4 @@
}
]
}
}
}
Loading
Loading