Skip to content

Commit 1e9e765

Browse files
committed
feat: plugin model -> agent mode
1 parent f0ab215 commit 1e9e765

16 files changed

Lines changed: 25 additions & 25 deletions

File tree

docs/.vitepress/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ function sidebarEcosystem(): DefaultTheme.SidebarItem[] {
606606
link: "/ecosystem/introduction",
607607
},
608608
{
609-
text: "聊天模式 / 插件模式工具",
609+
text: "聊天模式 / Agent 模式工具",
610610
items: [
611611
{
612612
text: "搜索服务 (Search Service)",

docs/development/extend-chatluna-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export class EchoTool extends Tool {
112112

113113
## 测试
114114

115-
将当前房间的聊天模式设置为插件模式,并确保上面的工具已经注册到 ChatLuna 服务。
115+
将当前房间的聊天模式设置为 Agent 模式,并确保上面的工具已经注册到 ChatLuna 服务。
116116

117117
尝试让模型调用你的工具,如成功,则说明你已经掌握了如何为 ChatLuna 添加自定义工具。
118118

docs/development/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
此开发教程面向有 Koishi 插件开发经验的开发者。通过本教程,你将学会:
44

55
- 为你的 Koishi 插件接入大语言模型支持。
6-
- 编写 ChatLuna 插件,接入更多大语言模型平台,或为插件模式提供更多工具
6+
- 编写 ChatLuna 插件,接入更多大语言模型平台,或为 Agent 模式提供更多工具
77
- 定制化你的 ChatLuna,自定义渲染功能,消息处理等。
88
- 基于 ChatLuna API 开发自己的 Koishi 插件,使用大语言模型能力赋能更多场景。
99

docs/ecosystem/extension/action.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
* 类型:`chat|plugin`
5252

5353
* 默认值:`chat`
54-
* 描述:聊天模式(chat: 聊天模式, plugin: 插件模式
54+
* 描述:聊天模式(chat: 聊天模式, plugin: Agent 模式
5555

5656
#### promptType
5757

@@ -108,7 +108,7 @@
108108

109109
* 类型:`chat|plugin`
110110
* 默认值:`chat`
111-
* 描述:聊天模式(chat: 聊天模式, plugin: 插件模式
111+
* 描述:聊天模式(chat: 聊天模式, plugin: Agent 模式
112112

113113
#### interceptPromptType
114114

docs/ecosystem/extension/knowledge.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
![alt text](../../public/images/image-60.png)
2525

26-
对于插件模式,需要填写 [基础工具合集](../plugin/common.md#knowledgeid) 里的 ID。
26+
对于 Agent 模式,需要填写 [基础工具合集](../plugin/common.md#knowledgeid) 里的 ID。
2727

2828
> [!TIP] 提示
2929
> 如果你使用的是聊天模式或者浏览模式,可在预设中设置使用的知识库,支持设置多个知识库 ID。

docs/ecosystem/introduction.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
ChatLuna 插件同时也是 Koishi 插件。
99
:::
1010

11-
## 聊天模式 / 插件模式工具
11+
## 聊天模式 / Agent 模式工具
1212

13-
为 ChatLuna 提供其他聊天模式或是插件模式可用工具的插件
13+
为 ChatLuna 提供其他聊天模式或是 Agent 模式可用工具的插件
1414

1515
- [koishi-plugin-chatluna-service-search](./plugin/search-service.md): 搜索服务插件,为 ChatLuna 提供浏览聊天模式和网页搜索能力(工具)。
16-
- [koishi-plugin-chatluna-plugin-common](./plugin/common.md): ChatLuna 插件模式的基础工具合集。提供文件浏览,画图等工具。
16+
- [koishi-plugin-chatluna-plugin-common](./plugin/common.md): ChatLuna Agent 模式的基础工具合集。提供文件浏览,画图等工具。
1717
- [koishi-plugin-chatluna-long-memory](./plugin/long-term-memory.md): ChatLuna 长期记忆插件。提供基于向量数据库的长期记忆能力。
1818

1919
## 回复渲染器

docs/ecosystem/plugin/common.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 基础工具合集 (Plugin Common)
22

3-
此插件为 ChatLuna 的插件模式提供了一些基础的工具
3+
此插件为 ChatLuna 的 Agent 模式提供了一些基础的工具
44

55
## 配置
66

docs/ecosystem/plugin/mcp-client.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
MCP 协议是 Model Context Protocol 的缩写,是 LangChain 提供的一种协议,用于在不同的模型之间传递上下文。
44

5-
此插件为 ChatLuna 的插件模式提供了 MCP 协议支持。
5+
此插件为 ChatLuna 的 Agent 模式提供了 MCP 协议支持。
66

77
## 配置
88

@@ -28,7 +28,7 @@ MCP 协议是 Model Context Protocol 的缩写,是 LangChain 提供的一种
2828
## 使用
2929

3030
> [!TIP]
31-
> 启用此插件时,请确保你当前聊天房间的聊天模式为 `plugin` 插件模式
31+
> 启用此插件时,请确保你当前聊天房间的聊天模式为 `plugin` Agent 模式
3232
> 可以查看 [聊天模式](../../guide/chat-chain/chat-mode.md) 了解如何切换聊天模式。
3333
3434
你需要在 `chatluna-mcp-client` 插件的配置中设置 `servers` 选项,来指定你想要连接的 MCP 服务器。

docs/guide/chat-chain/chat-mode.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ ChatLuna 中内置了以下几种聊天模式:
2222

2323
chat,也就是最主要的聊天模式。ChatLuna 的主插件已经内置此模式,无需额外配置。
2424

25-
### plugin
25+
### agent
2626

27-
plugin 模式也是 ChatLuna 主插件中内置的聊天模式。
27+
agent 模式也是 ChatLuna 主插件中内置的聊天模式。
2828

29-
plugin 模式基于 LangChain 的 `Agent``Tool`,需要有相关的工具才能让模型调用它们
29+
agent 模式让模型可以调用工具,并根据工具的返回结果,继续调用工具,直到完成任务。能实现复杂的任务
3030

3131
> [!TIP]
32-
> ChatLuna 主插件中没有内置可供 plugin 聊天模式使用的工具。
32+
> ChatLuna 主插件中没有内置可供 agent 聊天模式使用的工具。
3333
>
34-
> 因此你需要安装 [`chatluna-plugin-common`](../../ecosystem/introduction.md)[`chatluna-mcp-client`](../../ecosystem/plugin/mcp-client.md) 插件来为 plugin 模式提供可用的工具。
34+
> 因此你需要安装 [`chatluna-plugin-common`](../../ecosystem/introduction.md)[`chatluna-mcp-client`](../../ecosystem/plugin/mcp-client.md) 插件来为 agent 模式提供可用的工具。
3535
3636
### browsing
3737

docs/guide/model-plugin-system/draw.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
## 测试
2525

26-
将当前房间设置为插件模式,即可询问模型进行文生图。当机器人发送的内容包含图片时,说明文生图工具配置成功。
26+
将当前房间设置为 Agent 模式,即可询问模型进行文生图。当机器人发送的内容包含图片时,说明文生图工具配置成功。
2727

2828
<chat-panel>
2929
<chat-message nickname="User">chatluna.chat.text 画一个在樱花树下的和服少女</chat-message>

0 commit comments

Comments
 (0)