-
Notifications
You must be signed in to change notification settings - Fork 366
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: doc update * Feature/debugging (#271) * feat: upgrade to ten 0.2 * feat: disable auto_start * feat: allow customize build type * feat: add debugging tools * feat: add debugging and build configs * fix: go debugging launch * feat: update image * feat: update version * fix: greeting missed * test: build docker * Revert "test: build docker" This reverts commit 06a4269. --------- Co-authored-by: Jay Zhang <[email protected]> * feat: switch to native env * Feat/refactor exts (#276) * feat: openai extension refactoring * feat: adding refactor code / async.io * feat: fix refactoring bugs * fix: add manifest.json * feat: add queue logic * fix: fix issues - remove test code - prevent sending full content again - add queue logic * feat: fix parseSentence * fix: fix end_segment bug * feat: add chatflow abstraction - chatflow - refactor to simplify flow run - added event emitter for intermedium execution * feat: refactor openai, support multi data-stream data pack * feat: finalize openai extension refactoring - change asyncio.queue to AsyncQueue - change the way we abstract chatflow - use eventEmitter for easier tool notification - use queue to ensure task are processed one by one and cancellable * feat: add docs * feat: don't use private api * feat: support on-demand build * fix: fix type failures * feat: update playground image * feat: separate playground and demo (#282) - support graph reading for playground - support property adjusting * fix: fix table type issue * feat: image update * feat: adjust demo ui * feat: update build image (#301) * feat:use axios instead of fetch * replace all fetch in demo * replace all fetch in playground with axios --------- Co-authored-by: Zhang Qianze <[email protected]> Co-authored-by: Ethan Zhang <[email protected]>
- Loading branch information
1 parent
fdba72c
commit 23066da
Showing
227 changed files
with
7,816 additions
and
398 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
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,53 +1,63 @@ | ||
name: Build Docker | ||
|
||
on: | ||
on: | ||
push: | ||
branches: [ "main" ] | ||
branches: ["main"] | ||
# Publish semver tags as releases. | ||
tags: [ 'v*.*.*' ] | ||
tags: ["v*.*.*"] | ||
paths-ignore: | ||
- '.devcontainer/**' | ||
- '.github/ISSUE_TEMPLATE/**' | ||
- 'images/**' | ||
- 'playground/**' | ||
- '**.md' | ||
- ".devcontainer/**" | ||
- ".github/ISSUE_TEMPLATE/**" | ||
- "images/**" | ||
- "playground/**" | ||
- "**.md" | ||
pull_request: | ||
branches: [ "main" ] | ||
workflow_dispatch: | ||
|
||
env: | ||
SERVER_IMAGE_NAME: astra_agents_server | ||
PLAYGROUND_IMAGE_NAME: astra_playground | ||
DEMO_IMAGE_NAME: agent_demo | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-tags: true | ||
fetch-depth: '0' | ||
- id: pre-step | ||
shell: bash | ||
run: echo "image-tag=$(git describe --tags --always)" >> $GITHUB_OUTPUT | ||
- name: Build & Publish Docker Image for Agents Server | ||
uses: elgohr/Publish-Docker-Github-Action@v5 | ||
with: | ||
name: ${{ github.repository_owner }}/${{ env.SERVER_IMAGE_NAME }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
registry: ghcr.io | ||
tags: "${{ github.ref == 'refs/heads/main' && 'latest,' || '' }}${{ steps.pre-step.outputs.image-tag }}" | ||
no_push: ${{ github.event_name == 'pull_request' }} | ||
- name: Build & Publish Docker Image for Playground | ||
uses: elgohr/Publish-Docker-Github-Action@v5 | ||
with: | ||
name: ${{ github.repository_owner }}/${{ env.PLAYGROUND_IMAGE_NAME }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
registry: ghcr.io | ||
workdir: playground | ||
tags: "${{ github.ref == 'refs/heads/main' && 'latest,' || '' }}${{ steps.pre-step.outputs.image-tag }}" | ||
no_push: ${{ github.event_name == 'pull_request' }} | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-tags: true | ||
fetch-depth: "0" | ||
- id: pre-step | ||
shell: bash | ||
run: echo "image-tag=$(git describe --tags --always)" >> $GITHUB_OUTPUT | ||
- name: Build & Publish Docker Image for Agents Server | ||
uses: elgohr/Publish-Docker-Github-Action@v5 | ||
with: | ||
name: ${{ github.repository_owner }}/${{ env.SERVER_IMAGE_NAME }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
registry: ghcr.io | ||
tags: "${{ github.ref == 'refs/heads/main' && 'latest,' || '' }}${{ steps.pre-step.outputs.image-tag }}" | ||
no_push: ${{ github.event_name == 'pull_request' }} | ||
- name: Build & Publish Docker Image for Playground | ||
uses: elgohr/Publish-Docker-Github-Action@v5 | ||
with: | ||
name: ${{ github.repository_owner }}/${{ env.PLAYGROUND_IMAGE_NAME }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
registry: ghcr.io | ||
workdir: playground | ||
tags: "${{ github.ref == 'refs/heads/main' && 'latest,' || '' }}${{ steps.pre-step.outputs.image-tag }}" | ||
no_push: ${{ github.event_name == 'pull_request' }} | ||
- name: Build & Publish Docker Image for demo | ||
uses: elgohr/Publish-Docker-Github-Action@v5 | ||
with: | ||
name: ${{ github.repository_owner }}/${{ env.DEMO_IMAGE_NAME }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
registry: ghcr.io | ||
workdir: demo | ||
tags: "${{ github.ref == 'refs/heads/main' && 'latest,' || '' }}${{ steps.pre-step.outputs.image-tag }}" | ||
no_push: ${{ github.event_name == 'pull_request' }} |
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,47 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "debug go", | ||
"type": "go", | ||
"request": "launch", | ||
"mode": "exec", | ||
"cwd": "${workspaceFolder}", | ||
"program": "${workspaceFolder}/agents/bin/worker", | ||
"env": { | ||
"LD_LIBRARY_PATH": "${workspaceFolder}/agents/ten_packages/system/ten_runtime_go/lib:${workspaceFolder}/agents/ten_packages/system/agora_rtc_sdk/lib:${workspaceFolder}/agents/ten_packages/system/azure_speech_sdk/lib", | ||
"TEN_APP_BASE_DIR": "${workspaceFolder}/agents" | ||
} | ||
}, | ||
{ | ||
"name": "debug python", | ||
"type": "debugpy", | ||
"request": "attach", | ||
"connect": { | ||
"host": "localhost", | ||
"port": 5678 | ||
}, | ||
"preLaunchTask": "start app" | ||
}, | ||
{ | ||
"name": "debug cpp", | ||
"type": "cppdbg", | ||
"request": "launch", | ||
"program": "${workspaceFolder}/agents/bin/worker", | ||
"cwd": "${workspaceFolder}", | ||
"environment": [ | ||
{ | ||
"name": "LD_LIBRARY_PATH", | ||
"value": "${workspaceFolder}/agents/ten_packages/system/agora_rtc_sdk/lib:${workspaceFolder}/agents/ten_packages/system/azure_speech_sdk/lib" | ||
}, | ||
{ | ||
"name": "CGO_LDFLAGS", | ||
"value": "-L${workspaceFolder}/agents/ten_packages/system/ten_runtime_go/lib -lten_runtime_go -Wl,-rpath,@loader_path/lib -Wl,-rpath,@loader_path/../lib" | ||
} | ||
] | ||
} | ||
] | ||
} |
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,22 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"type": "shell", | ||
"label": "build", | ||
"command": "make build", | ||
"args": [], | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
} | ||
}, | ||
{ | ||
"label": "start app", | ||
"type": "shell", | ||
"command": "export TEN_ENABLE_PYTHON_DEBUG=true; export TEN_PYTHON_DEBUG_PORT=5678; ./agents/bin/start", | ||
"group": "none", | ||
"isBackground": true | ||
}, | ||
] | ||
} |
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
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.