-
Notifications
You must be signed in to change notification settings - Fork 124
docs(tutorial): setup documentation by VitePress #52
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
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
53bd4c2
docs(tutorial): setup documentation by VitePress
DavdGao cd597b3
docs(tutorial): setup documentation by VitePress
DavdGao 99ea035
fix
DavdGao ba2df8c
fix
DavdGao 7bb5c63
docs(tracing): add docs for the tracing page (#2)
Cirilla-zmh e7cdb4d
docs(project): add docs for project management section (#1)
zhijianma 0ec7c36
wip
DavdGao 265163b
Merge remote-tracking branch 'agentscope-studio/main' into dev/docs
DavdGao 8cb8d09
wip
DavdGao a57a189
wip
DavdGao 4fd6535
wip
DavdGao File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,59 @@ | ||
| name: Deploy Documentation | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - 'docs/**' | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
| pages: write | ||
| id-token: write | ||
|
|
||
| concurrency: | ||
| group: pages | ||
| cancel-in-progress: false | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Setup Node | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 20 | ||
| cache: npm | ||
|
|
||
| - name: Setup Pages | ||
| uses: actions/configure-pages@v4 | ||
|
|
||
| - name: Install dependencies | ||
| run: npm ci | ||
|
|
||
| - name: Build with VitePress | ||
| run: npm run docs:build | ||
|
|
||
| - name: Upload artifact | ||
| uses: actions/upload-pages-artifact@v3 | ||
| with: | ||
| path: docs/.vitepress/dist | ||
|
|
||
| deploy: | ||
| environment: | ||
| name: github-pages | ||
| url: ${{ steps.deployment.outputs.page_url }} | ||
| needs: build | ||
| runs-on: ubuntu-latest | ||
| name: Deploy | ||
| steps: | ||
| - name: Deploy to GitHub Pages | ||
| id: deployment | ||
| uses: actions/deploy-pages@v4 |
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -45,3 +45,7 @@ logs/ | |
| *.log | ||
|
|
||
| dist/ | ||
|
|
||
| # Docs | ||
| docs/.vitepress/dist | ||
| docs/.vitepress/cache | ||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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,125 @@ | ||
| import { defineConfig } from 'vitepress'; | ||
|
|
||
| // Shared configuration | ||
| const sharedThemeConfig = { | ||
| socialLinks: [ | ||
| { | ||
| icon: 'github', | ||
| link: 'https://github.com/agentscope-ai/agentscope-studio', | ||
| }, | ||
| ], | ||
| }; | ||
|
|
||
| // https://vitepress.dev/reference/site-config | ||
| export default defineConfig({ | ||
| srcDir: 'tutorial', | ||
|
|
||
| title: 'AgentScope-Studio', | ||
| description: 'A development-oriented visualization toolkit for AgentScope', | ||
|
|
||
| rewrites: { | ||
| 'en/:rest*': ':rest*', | ||
| }, | ||
|
|
||
| locales: { | ||
| root: { | ||
| label: 'English', | ||
| lang: 'en', | ||
| themeConfig: { | ||
| ...sharedThemeConfig, | ||
| nav: [ | ||
| { text: 'Home', link: '/' }, | ||
| { text: 'Tutorial', link: '/tutorial/overview' }, | ||
| ], | ||
| sidebar: [ | ||
| { | ||
| text: 'Tutorial', | ||
| items: [ | ||
| { | ||
| text: 'Overview', | ||
| link: '/tutorial/overview', | ||
| }, | ||
| { | ||
| text: 'Quick Start', | ||
| link: '/tutorial/quick_start', | ||
| }, | ||
| { | ||
| text: 'Contributing', | ||
| link: '/tutorial/contributing', | ||
| }, | ||
| ], | ||
| }, | ||
| { | ||
| text: 'Develop', | ||
| items: [ | ||
| { text: 'Project', link: '/develop/project' }, | ||
| { text: 'Tracing', link: '/develop/tracing' }, | ||
| { | ||
| text: 'Evaluation', | ||
| link: '/develop/evaluation', | ||
| }, | ||
| ], | ||
| }, | ||
| { | ||
| text: 'Agent', | ||
| items: [{ text: 'Friday', link: '/agent/friday' }], | ||
| }, | ||
| ], | ||
| }, | ||
| }, | ||
| zh_CN: { | ||
| label: '简体中文', | ||
| lang: 'zh-CN', | ||
| link: '/zh_CN/', | ||
| themeConfig: { | ||
| ...sharedThemeConfig, | ||
| nav: [ | ||
| { text: '首页', link: '/zh_CN/' }, | ||
| { text: '教程', link: '/zh_CN/tutorial/overview' }, | ||
| ], | ||
| sidebar: [ | ||
| { | ||
| text: '教程', | ||
| items: [ | ||
| { | ||
| text: '概览', | ||
| link: '/zh_CN/tutorial/overview', | ||
| }, | ||
| { | ||
| text: '快速开始', | ||
| link: '/zh_CN/tutorial/quick_start', | ||
| }, | ||
| { | ||
| text: '贡献指南', | ||
| link: '/zh_CN/tutorial/contributing', | ||
| }, | ||
| ], | ||
| }, | ||
| { | ||
| text: '开发', | ||
| items: [ | ||
| { | ||
| text: '项目管理', | ||
| link: '/zh_CN/develop/project', | ||
| }, | ||
| { | ||
| text: '运行追踪', | ||
| link: '/zh_CN/develop/tracing', | ||
| }, | ||
| { | ||
| text: '应用评测', | ||
| link: '/zh_CN/develop/evaluation', | ||
| }, | ||
| ], | ||
| }, | ||
| { | ||
| text: '智能体', | ||
| items: [ | ||
| { text: 'Friday', link: '/zh_CN/agent/friday' }, | ||
| ], | ||
| }, | ||
| ], | ||
| }, | ||
| }, | ||
| }, | ||
| }); | ||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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,49 @@ | ||
| # AgentScope-Friday | ||
|
|
||
| Friday is an experimental local-deployed agent built by AgentScope, aims at | ||
|
|
||
| - answering questions about the AgentScope, | ||
| - providing a quick secondary development environment for developers, | ||
| - integrating all available features in AgentScope to build a more powerful agent, and | ||
| - testing and integrating the advanced features in AgentScope. | ||
|
|
||
| Its source code is also open-sourced in the [AgentScope-Studio repository](https://github.com/agentscope-ai/agentscope-studio/tree/main/packages/app). | ||
|
|
||
| The code structure is as follows: | ||
|
|
||
| ``` | ||
| packages/ | ||
| app/ | ||
| friday/ | ||
| tool/ | ||
| utils/ | ||
| connect.py # The websocket connection used for realtime steering/interruption | ||
| ... | ||
| main.py # The entry point of Friday agent | ||
| args.py # The argument parser for Friday agent | ||
| hook.py # The hook functions used to push messages to AgentScope-Studio frontend | ||
| model.py # Initialize the LLM based on the configuration | ||
| requirements.txt # The dependencies for Friday agent | ||
| ``` | ||
|
|
||
| ## How to Use | ||
|
|
||
| At the first time using Friday, you need to configure the agent in the following page, including the model, API KEY, | ||
| tools, and other parameters. | ||
|
|
||
|  | ||
|
|
||
| After that, you can start chatting with Friday in the chat page. | ||
|
|
||
| ## Equipped Features | ||
|
|
||
| We are continuously integrating more features into Friday. The current and upcoming features include: | ||
|
|
||
| - [x] Basic chat functionality with LLMs | ||
| - [x] Support meta tool | ||
| - [x] Support realtime steering/interruption | ||
| - [x] Support state/Session management | ||
| - [ ] 🚧 Support planning and plan visualization | ||
| - [ ] 🚧 Support long-term memory | ||
| - [ ] Support anthropic agent skill | ||
| - [ ] Support user to add MCP server dynamically |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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,3 @@ | ||
| # Evaluation | ||
|
|
||
| Coming soon ... |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.