File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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)" ,
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ export class EchoTool extends Tool {
112112
113113## 测试
114114
115- 将当前房间的聊天模式设置为插件模式 ,并确保上面的工具已经注册到 ChatLuna 服务。
115+ 将当前房间的聊天模式设置为 Agent 模式 ,并确保上面的工具已经注册到 ChatLuna 服务。
116116
117117尝试让模型调用你的工具,如成功,则说明你已经掌握了如何为 ChatLuna 添加自定义工具。
118118
Original file line number Diff line number Diff line change 33此开发教程面向有 Koishi 插件开发经验的开发者。通过本教程,你将学会:
44
55- 为你的 Koishi 插件接入大语言模型支持。
6- - 编写 ChatLuna 插件,接入更多大语言模型平台,或为插件模式提供更多工具 。
6+ - 编写 ChatLuna 插件,接入更多大语言模型平台,或为 Agent 模式提供更多工具 。
77- 定制化你的 ChatLuna,自定义渲染功能,消息处理等。
88- 基于 ChatLuna API 开发自己的 Koishi 插件,使用大语言模型能力赋能更多场景。
99
Original file line number Diff line number Diff line change 5151* 类型:` chat|plugin `
5252
5353* 默认值:` chat `
54- * 描述:聊天模式(chat: 聊天模式, plugin: 插件模式 )
54+ * 描述:聊天模式(chat: 聊天模式, plugin: Agent 模式 )
5555
5656#### promptType
5757
108108
109109* 类型:` chat|plugin `
110110* 默认值:` chat `
111- * 描述:聊天模式(chat: 聊天模式, plugin: 插件模式 )
111+ * 描述:聊天模式(chat: 聊天模式, plugin: Agent 模式 )
112112
113113#### interceptPromptType
114114
Original file line number Diff line number Diff line change 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。
Original file line number Diff line number Diff line change 88ChatLuna 插件同时也是 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## 回复渲染器
Original file line number Diff line number Diff line change 11# 基础工具合集 (Plugin Common)
22
3- 此插件为 ChatLuna 的插件模式提供了一些基础的工具 。
3+ 此插件为 ChatLuna 的 Agent 模式提供了一些基础的工具 。
44
55## 配置
66
Original file line number Diff line number Diff line change 22
33MCP 协议是 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 服务器。
Original file line number Diff line number Diff line change @@ -22,16 +22,16 @@ ChatLuna 中内置了以下几种聊天模式:
2222
2323chat,也就是最主要的聊天模式。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
Original file line number Diff line number Diff line change 2323
2424## 测试
2525
26- 将当前房间设置为插件模式 ,即可询问模型进行文生图。当机器人发送的内容包含图片时,说明文生图工具配置成功。
26+ 将当前房间设置为 Agent 模式 ,即可询问模型进行文生图。当机器人发送的内容包含图片时,说明文生图工具配置成功。
2727
2828<chat-panel >
2929 <chat-message nickname =" User " >chatluna.chat.text 画一个在樱花树下的和服少女</chat-message >
You can’t perform that action at this time.
0 commit comments