Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
6da65ea5
authored
Aug 20, 2025
by
Finley Ge
Committed by
GitHub
Aug 20, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: update dev system tool (#5486)
parent
1e7a1a73
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
8 deletions
+13
-8
document/content/docs/introduction/development/design/design_plugin.mdx
+1
-0
document/content/docs/introduction/guide/plugins/dev_system_tool.mdx
+10
-6
document/data/doc-last-modified.json
+2
-2
No files found.
document/content/docs/introduction/development/design/design_plugin.mdx
View file @
6da65ea5
...
@@ -45,6 +45,7 @@ description: FastGPT 系统插件设计方案
...
@@ -45,6 +45,7 @@ description: FastGPT 系统插件设计方案
- ...
- ...
- **type** 类型定义
- **type** 类型定义
- **utils** 工具
- **utils** 工具
- **model** 模型预设
- **scripts** 脚本(编译、创建新工具)
- **scripts** 脚本(编译、创建新工具)
- **sdk**: SDK 定义,供外部调用,发布到了 npm
- **sdk**: SDK 定义,供外部调用,发布到了 npm
- **src**: 运行时,express 服务
- **src**: 运行时,express 服务
...
...
document/content/docs/introduction/guide/plugins/dev_system_tool.mdx
View file @
6da65ea5
...
@@ -16,11 +16,15 @@ FastGPT 系统工具项目从 4.10.0 版本后移动到独立的`fastgpt-plugin`
...
@@ -16,11 +16,15 @@ FastGPT 系统工具项目从 4.10.0 版本后移动到独立的`fastgpt-plugin`
## 1. 准备工作
## 1. 准备工作
- Fork[fastgpt-plugin 项目](https://github.com/labring/fastgpt-plugin)
- Fork [fastgpt-plugin 项目](https://github.com/labring/fastgpt-plugin)
- 安装[Bun](https://bun.sh/)
- 安装 [Bun](https://bun.sh/)
- 本地拉取项目进行 Dev 开发。
- 部署一套 Minio,也可以直接使用 FastGPT 的 `docker-compose.yml` 中的 Minio。
- bun install
- 本地 clone 项目 `git clone git@github.com:[your-github-username]/fastgpt-plugin.git`
- bun run dev
- 拷贝示例环境变量文件,并修改连接到开发环境的 Minio `cp .env.example .env.local`
- 安装依赖 `bun install`
- 运行开发环境 `bun run dev`
在 dev 环境下,Bun 将监听修改并热更新。
## 2. 初始化一个新的工具/工具集
## 2. 初始化一个新的工具/工具集
...
@@ -32,7 +36,7 @@ bun run new:tool
...
@@ -32,7 +36,7 @@ bun run new:tool
依据提示分别选择创建工具/工具集,以及目录名(使用 camelCase 小驼峰法命名)。
依据提示分别选择创建工具/工具集,以及目录名(使用 camelCase 小驼峰法命名)。
执行完后,系统会在 `modules/tool/packages/[your-tool-name]`下生成一个工具/工具集的目录。
执行完后,系统会在 `modules/tool/packages/[your-tool-name]`
下生成一个工具/工具集的目录。
系统工具 (Tool) 文件结构如下:
系统工具 (Tool) 文件结构如下:
...
...
document/data/doc-last-modified.json
View file @
6da65ea5
...
@@ -81,7 +81,7 @@
...
@@ -81,7 +81,7 @@
"document/content/docs/introduction/guide/knowledge_base/websync.mdx"
:
"2025-08-05T23:20:39+08:00"
,
"document/content/docs/introduction/guide/knowledge_base/websync.mdx"
:
"2025-08-05T23:20:39+08:00"
,
"document/content/docs/introduction/guide/knowledge_base/yuque_dataset.mdx"
:
"2025-07-23T21:35:03+08:00"
,
"document/content/docs/introduction/guide/knowledge_base/yuque_dataset.mdx"
:
"2025-07-23T21:35:03+08:00"
,
"document/content/docs/introduction/guide/plugins/bing_search_plugin.mdx"
:
"2025-07-23T21:35:03+08:00"
,
"document/content/docs/introduction/guide/plugins/bing_search_plugin.mdx"
:
"2025-07-23T21:35:03+08:00"
,
"document/content/docs/introduction/guide/plugins/dev_system_tool.mdx"
:
"2025-0
7-30T22:30:03
+08:00"
,
"document/content/docs/introduction/guide/plugins/dev_system_tool.mdx"
:
"2025-0
8-18T14:59:46
+08:00"
,
"document/content/docs/introduction/guide/plugins/doc2x_plugin_guide.mdx"
:
"2025-07-23T21:35:03+08:00"
,
"document/content/docs/introduction/guide/plugins/doc2x_plugin_guide.mdx"
:
"2025-07-23T21:35:03+08:00"
,
"document/content/docs/introduction/guide/plugins/google_search_plugin_guide.mdx"
:
"2025-07-23T21:35:03+08:00"
,
"document/content/docs/introduction/guide/plugins/google_search_plugin_guide.mdx"
:
"2025-07-23T21:35:03+08:00"
,
"document/content/docs/introduction/guide/plugins/searxng_plugin_guide.mdx"
:
"2025-07-23T21:35:03+08:00"
,
"document/content/docs/introduction/guide/plugins/searxng_plugin_guide.mdx"
:
"2025-07-23T21:35:03+08:00"
,
...
@@ -103,7 +103,7 @@
...
@@ -103,7 +103,7 @@
"document/content/docs/upgrading/4-11/4110.mdx"
:
"2025-08-05T23:20:39+08:00"
,
"document/content/docs/upgrading/4-11/4110.mdx"
:
"2025-08-05T23:20:39+08:00"
,
"document/content/docs/upgrading/4-11/4111.mdx"
:
"2025-08-07T22:49:09+08:00"
,
"document/content/docs/upgrading/4-11/4111.mdx"
:
"2025-08-07T22:49:09+08:00"
,
"document/content/docs/upgrading/4-12/4120.mdx"
:
"2025-08-12T22:45:19+08:00"
,
"document/content/docs/upgrading/4-12/4120.mdx"
:
"2025-08-12T22:45:19+08:00"
,
"document/content/docs/upgrading/4-12/4121.mdx"
:
"2025-08-15T22:
45:13
+08:00"
,
"document/content/docs/upgrading/4-12/4121.mdx"
:
"2025-08-15T22:
53:06
+08:00"
,
"document/content/docs/upgrading/4-8/40.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/upgrading/4-8/40.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/upgrading/4-8/41.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/upgrading/4-8/41.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/upgrading/4-8/42.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/upgrading/4-8/42.mdx"
:
"2025-08-02T19:38:37+08:00"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment