ppagent 0.0.34 → 0.0.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,8 +1,76 @@
1
1
 
2
2
 
3
+ ## 简介
3
4
 
5
+ > PPAgent是一个用于连接大模型和消息客户端的中间件,可以用来实现如钉钉、飞书等平台对接大模型、智能体的功能。
6
+ > 文档地址:[https://doc.ppagent.cn](http://doc.ppagent.cn)
7
+ > 配置页面地址:[https://ppagent.cn](https://ppagent.cn) 第一次打开加载资源较多,请耐心等待。
4
8
 
5
- # 安装注意事项
9
+ PPAgent可以作为一个SDK,用于开发后端项目,也支持通过插件的方式对其功能进行扩展,还支持通过可视化的方式进行方便的配置使用。
6
10
 
7
- - windows powershell下ffmpeg-static $Env:FFMPEG_BINARIES_URL="https://cdn.npmmirror.com/binaries/ffmpeg-static"
8
- - linux下 export FFMPEG_BINARIES_URL=https://cdn.npmmirror.com/binaries/ffmpeg-static
11
+ ![简介](./images/index-intro.png)
12
+
13
+ ## 核心概念
14
+
15
+ ### 消息源
16
+
17
+ > 消息源顾名思义就是消息的来源,如QQ、微信、钉钉、飞书等。本框架内置了常见的消息源,也支持通过插件扩展更多的消息源支持。
18
+
19
+ ![支持的消息源](./images/sources.png)
20
+
21
+ #### 消息源特性
22
+
23
+ - 支持多实例
24
+ - 统一消息结构,可二开为消息网关
25
+ - 支持图片、文字、声音、文件、地理位置、卡片消息等各种类型
26
+ - 大部分数据源对
27
+ - 钉钉、飞书均支持流式发送
28
+
29
+ ![流式回复](./images/index-stream.png)
30
+
31
+ ### 后端模型
32
+
33
+ > 后端模型是用来对用户的消息进行响应的模型,当前主要是指大语言模型或者基于大语言模型的智能体。本框架中内置了众多常见的大模型和智能体后端接口支持。
34
+
35
+ ![支持的模型](./images/models.png)
36
+
37
+ - 支持多实例
38
+ ![多实例](./images/index-models.png)
39
+ - 多模态支持
40
+ - OpenAI兼容模型支持
41
+ - 支持思考过程
42
+
43
+ ![思考过程](./images/index-feishu-stream.png)
44
+
45
+ - 统一大模型输出接口,可二开为大模型网关
46
+
47
+ ### 智能体
48
+
49
+ - 内置历史消息管理
50
+ - 消息拆分发送
51
+ - 图片提取发送
52
+ - 技能叠加,实现语音文字转换、消息总结等各类功能
53
+ - 黑白名单,可针对群组、个人分别设置
54
+ - 区分思考过程和最终回复
55
+ - 设置发送间隔
56
+ - 排队发送
57
+
58
+ ### 插件
59
+
60
+ - 支持在线安装、更新、卸载插件
61
+
62
+ ## 常见场景
63
+ - 客服助手。自动回复,对接知识库等,或通过技能的开发实现转人工等操作。
64
+ - 企业内部助手。如对接项目管理平台、工单平台等,提供智能化服务
65
+ - 个人助手
66
+ - 群助理。活跃群气氛
67
+ - AI专家团队的消息交互
68
+ - 通过开发技能实现聊天记录持久化、自动清洗到知识库
69
+ - ...
70
+
71
+ ## 支持的部署方式
72
+
73
+ > 框架的部署主要指服务端。另外我们提供了线上的前端配置页面,可以对接私有化部署的服务端,提供便捷的配置服务
74
+
75
+ - [本地化直接部署](https://doc.ppagent.cn/starter/install_code.html)
76
+ - [Docker部署](https://doc.ppagent.cn/starter/install_docker.html)
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,11 +1,28 @@
1
1
  {
2
2
  "name": "ppagent",
3
- "version": "0.0.34",
3
+ "version": "0.0.35",
4
4
  "description": "an agent manager",
5
5
  "types": "dist/lib.d.ts",
6
6
  "main": "dist/lib.js",
7
7
  "type": "module",
8
8
  "displayName": "PP智能体对接工具",
9
+ "scripts": {
10
+ "lint": "eslint .",
11
+ "build": "esbuild \"src/**/*.ts\" --platform=node --outdir=build --resolve-extensions=.js --out-extension:.js=.js --format=esm",
12
+ "build:docker": "docker build . -t pp-agent --build-arg APP_ENV=production --progress=plain",
13
+ "start": "node build",
14
+ "tsx": "cross-env NODE_ENV=development tsx src/index.ts",
15
+ "dev": "cross-env NODE_ENV=development tsx watch src/index.ts",
16
+ "prod": "cross-env NODE_ENV=production tsx watch src/index.ts",
17
+ "deno": "deno --unstable-sloppy-imports --allow-env --allow-sys --allow-read --allow-write --allow-net --inspect src/index.ts | pino-pretty --colorize",
18
+ "lib": "node build.lib.js",
19
+ "test": "vitest",
20
+ "test:watch": "vitest -w",
21
+ "predocs:build":"typedoc",
22
+ "docs:dev": "vitepress dev docs",
23
+ "docs:build": "vitepress build docs",
24
+ "docs:preview": "vitepress preview docs"
25
+ },
9
26
  "repository": {
10
27
  "type": "git",
11
28
  "url": "git+https://github.com/ppagent/ppagent.git"
@@ -116,22 +133,5 @@
116
133
  "typescript-eslint": "^8.3.0",
117
134
  "vitepress": "^1.6.3",
118
135
  "vitest": "^2.0.5"
119
- },
120
- "scripts": {
121
- "lint": "eslint .",
122
- "build": "esbuild \"src/**/*.ts\" --platform=node --outdir=build --resolve-extensions=.js --out-extension:.js=.js --format=esm",
123
- "build:docker": "docker build . -t pp-agent --build-arg APP_ENV=production --progress=plain",
124
- "start": "node build",
125
- "tsx": "cross-env NODE_ENV=development tsx src/index.ts",
126
- "dev": "cross-env NODE_ENV=development tsx watch src/index.ts",
127
- "prod": "cross-env NODE_ENV=production tsx watch src/index.ts",
128
- "deno": "deno --unstable-sloppy-imports --allow-env --allow-sys --allow-read --allow-write --allow-net --inspect src/index.ts | pino-pretty --colorize",
129
- "lib": "node build.lib.js",
130
- "test": "vitest",
131
- "test:watch": "vitest -w",
132
- "predocs:build": "typedoc",
133
- "docs:dev": "vitepress dev docs",
134
- "docs:build": "vitepress build docs",
135
- "docs:preview": "vitepress preview docs"
136
136
  }
137
137
  }