feat: add AI学习助手 agent (KG+RAG ideal) and renshenguo feishu bot
- Add AI学习助手 agent creation script with all 39 tools, 3-layer KG+RAG memory - Add renshenguo (人参果) feishu bot integration (app_service + ws_handler) - Register renshenguo WS client in main.py startup - Add RENSHENGUO_APP_ID / RENSHENGUO_APP_SECRET / RENSHENGUO_AGENT_ID config - Reorganize docs from root into docs/ subdirectories - Move startup scripts to scripts/startup/ - Various backend optimizations and tool improvements Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2
misc/test-data/123.md
Normal file
2
misc/test-data/123.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# 123
|
||||
e2e zhini12 123.md marker
|
||||
1
misc/test-data/456.md
Normal file
1
misc/test-data/456.md
Normal file
@@ -0,0 +1 @@
|
||||
# 456.md 文件已创建</|DSML|parameter>
|
||||
6
misc/test-data/daily_reminder_config.md
Normal file
6
misc/test-data/daily_reminder_config.md
Normal file
@@ -0,0 +1,6 @@
|
||||
# ⏰ 每日作业提醒配置
|
||||
- **任务名称**: 每日作业任务提醒
|
||||
- **提醒时间**: 每天早上 8:00
|
||||
- **Cron表达式**: 0 8 * * *
|
||||
- **创建时间**: 2026-05-02 23:47
|
||||
- **状态**: ✅ 待系统激活
|
||||
99
misc/test-data/index.html
Normal file
99
misc/test-data/index.html
Normal file
@@ -0,0 +1,99 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>欢迎页面</title>
|
||||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
body {
|
||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
color: #fff;
|
||||
}
|
||||
.container {
|
||||
text-align: center;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
backdrop-filter: blur(10px);
|
||||
padding: 50px 60px;
|
||||
border-radius: 20px;
|
||||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
|
||||
border: 1px solid rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
h1 {
|
||||
font-size: 48px;
|
||||
margin-bottom: 15px;
|
||||
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
p {
|
||||
font-size: 18px;
|
||||
opacity: 0.9;
|
||||
margin-bottom: 30px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
.btn {
|
||||
display: inline-block;
|
||||
padding: 12px 36px;
|
||||
background: #fff;
|
||||
color: #764ba2;
|
||||
text-decoration: none;
|
||||
border-radius: 50px;
|
||||
font-weight: 600;
|
||||
font-size: 16px;
|
||||
transition: all 0.3s ease;
|
||||
cursor: pointer;
|
||||
border: none;
|
||||
}
|
||||
.btn:hover {
|
||||
transform: translateY(-3px);
|
||||
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
.time {
|
||||
margin-top: 20px;
|
||||
font-size: 14px;
|
||||
opacity: 0.7;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>🌞 你好,世界!</h1>
|
||||
<p>这是一个简单美观的 HTML 页面。<br>欢迎来到 D:\aaa\test 目录。</p>
|
||||
<button class="btn" onclick="showMessage()">点我试试</button>
|
||||
<div class="time" id="timeDisplay"></div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
// 显示欢迎消息
|
||||
function showMessage() {
|
||||
alert('🎉 欢迎来到我的页面!');
|
||||
}
|
||||
|
||||
// 显示当前时间
|
||||
function updateTime() {
|
||||
const now = new Date();
|
||||
const timeStr = now.toLocaleString('zh-CN', {
|
||||
year: 'numeric',
|
||||
month: '2-digit',
|
||||
day: '2-digit',
|
||||
hour: '2-digit',
|
||||
minute: '2-digit',
|
||||
second: '2-digit'
|
||||
});
|
||||
document.getElementById('timeDisplay').textContent = '当前时间:' + timeStr;
|
||||
}
|
||||
|
||||
// 每秒更新时间
|
||||
updateTime();
|
||||
setInterval(updateTime, 1000);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
196
misc/test-data/multi_route_workflow.json
Normal file
196
misc/test-data/multi_route_workflow.json
Normal file
@@ -0,0 +1,196 @@
|
||||
{
|
||||
"name": "企业多线路由助手",
|
||||
"description": "根据query内容自动路由到客服/研发/运维专精LLM,合并结果输出",
|
||||
"nodes": [
|
||||
{
|
||||
"id": "start-1",
|
||||
"type": "start",
|
||||
"position": { "x": 100, "y": 250 },
|
||||
"data": {
|
||||
"label": "开始",
|
||||
"description": "工作流开始节点"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "input-1",
|
||||
"type": "input",
|
||||
"position": { "x": 300, "y": 250 },
|
||||
"data": {
|
||||
"label": "输入查询",
|
||||
"field": "query",
|
||||
"description": "输入用户查询内容",
|
||||
"required": true,
|
||||
"placeholder": "请输入您的问题..."
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "switch-1",
|
||||
"type": "switch",
|
||||
"position": { "x": 500, "y": 250 },
|
||||
"data": {
|
||||
"label": "路由判断",
|
||||
"field": "query",
|
||||
"cases": {
|
||||
"客服": "customer_service",
|
||||
"研发": "development",
|
||||
"运维": "operation"
|
||||
},
|
||||
"default": "customer_service",
|
||||
"description": "根据query内容路由到不同专精LLM"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "llm-customer",
|
||||
"type": "llm",
|
||||
"position": { "x": 700, "y": 150 },
|
||||
"data": {
|
||||
"label": "客服专精LLM",
|
||||
"model": "deepseek",
|
||||
"prompt": "你是一个专业的客服助手,擅长处理客户咨询、投诉、售后问题。请根据用户问题提供专业、友好的客服解答。\n\n用户问题:{{query}}\n\n请回答:",
|
||||
"temperature": 0.7,
|
||||
"max_tokens": 1000,
|
||||
"enable_tools": true,
|
||||
"description": "客服领域专精AI助手"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "llm-development",
|
||||
"type": "llm",
|
||||
"position": { "x": 700, "y": 250 },
|
||||
"data": {
|
||||
"label": "研发专精LLM",
|
||||
"model": "deepseek",
|
||||
"prompt": "你是一个专业的研发工程师,擅长技术问题解答、代码调试、架构设计。请根据用户问题提供专业的技术解决方案。\n\n用户问题:{{query}}\n\n请回答:",
|
||||
"temperature": 0.7,
|
||||
"max_tokens": 1000,
|
||||
"enable_tools": true,
|
||||
"description": "研发技术专精AI助手"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "llm-operation",
|
||||
"type": "llm",
|
||||
"position": { "x": 700, "y": 350 },
|
||||
"data": {
|
||||
"label": "运维专精LLM",
|
||||
"model": "deepseek",
|
||||
"prompt": "你是一个专业的运维工程师,擅长系统部署、监控、故障排查。请根据用户问题提供专业的运维解决方案。\n\n用户问题:{{query}}\n\n请回答:",
|
||||
"temperature": 0.7,
|
||||
"max_tokens": 1000,
|
||||
"enable_tools": true,
|
||||
"description": "运维领域专精AI助手"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "merge-1",
|
||||
"type": "merge",
|
||||
"position": { "x": 900, "y": 250 },
|
||||
"data": {
|
||||
"label": "结果合并",
|
||||
"mode": "merge_all",
|
||||
"strategy": "object",
|
||||
"description": "合并所有分支结果(实际上只有一个分支会执行)"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "output-1",
|
||||
"type": "output",
|
||||
"position": { "x": 1100, "y": 250 },
|
||||
"data": {
|
||||
"label": "输出结果",
|
||||
"field": "response",
|
||||
"description": "输出最终回答"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "end-1",
|
||||
"type": "end",
|
||||
"position": { "x": 1300, "y": 250 },
|
||||
"data": {
|
||||
"label": "结束",
|
||||
"description": "工作流结束"
|
||||
}
|
||||
}
|
||||
],
|
||||
"edges": [
|
||||
{
|
||||
"id": "e1",
|
||||
"source": "start-1",
|
||||
"target": "input-1",
|
||||
"sourceHandle": "right",
|
||||
"targetHandle": "left"
|
||||
},
|
||||
{
|
||||
"id": "e2",
|
||||
"source": "input-1",
|
||||
"target": "switch-1",
|
||||
"sourceHandle": "right",
|
||||
"targetHandle": "left"
|
||||
},
|
||||
{
|
||||
"id": "e3-customer",
|
||||
"source": "switch-1",
|
||||
"target": "llm-customer",
|
||||
"sourceHandle": "right",
|
||||
"targetHandle": "left",
|
||||
"data": {
|
||||
"branch": "customer_service"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "e3-development",
|
||||
"source": "switch-1",
|
||||
"target": "llm-development",
|
||||
"sourceHandle": "right",
|
||||
"targetHandle": "left",
|
||||
"data": {
|
||||
"branch": "development"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "e3-operation",
|
||||
"source": "switch-1",
|
||||
"target": "llm-operation",
|
||||
"sourceHandle": "right",
|
||||
"targetHandle": "left",
|
||||
"data": {
|
||||
"branch": "operation"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "e4-customer",
|
||||
"source": "llm-customer",
|
||||
"target": "merge-1",
|
||||
"sourceHandle": "right",
|
||||
"targetHandle": "left"
|
||||
},
|
||||
{
|
||||
"id": "e4-development",
|
||||
"source": "llm-development",
|
||||
"target": "merge-1",
|
||||
"sourceHandle": "right",
|
||||
"targetHandle": "left"
|
||||
},
|
||||
{
|
||||
"id": "e4-operation",
|
||||
"source": "llm-operation",
|
||||
"target": "merge-1",
|
||||
"sourceHandle": "right",
|
||||
"targetHandle": "left"
|
||||
},
|
||||
{
|
||||
"id": "e5",
|
||||
"source": "merge-1",
|
||||
"target": "output-1",
|
||||
"sourceHandle": "right",
|
||||
"targetHandle": "left"
|
||||
},
|
||||
{
|
||||
"id": "e6",
|
||||
"source": "output-1",
|
||||
"target": "end-1",
|
||||
"sourceHandle": "right",
|
||||
"targetHandle": "left"
|
||||
}
|
||||
]
|
||||
}
|
||||
27
misc/test-data/test_emails.txt
Normal file
27
misc/test-data/test_emails.txt
Normal file
@@ -0,0 +1,27 @@
|
||||
user@example.com
|
||||
first.last@example.com
|
||||
user+tag@example.co.uk
|
||||
user_name@example.org
|
||||
user%name@example.com
|
||||
123456@example.cn
|
||||
a@b.co
|
||||
nice&simple@example.com
|
||||
very.common@example.com
|
||||
disposable.style.email.with+symbol@example.com
|
||||
other.email-with-hyphen@example.com
|
||||
fully-qualified-domain@example.com
|
||||
user.name+tag+sorting@example.com
|
||||
x@example.com
|
||||
example-indeed@strange-example.com
|
||||
|
||||
plainaddress
|
||||
@no-local-part.com
|
||||
user@.com
|
||||
user@com
|
||||
user@domain..com
|
||||
user@-domain.com
|
||||
user@domain.com.
|
||||
user name@example.com
|
||||
user@domain,com
|
||||
user@domain.c
|
||||
user@.domain.com
|
||||
1
misc/test-data/user_profile.json
Normal file
1
misc/test-data/user_profile.json
Normal file
@@ -0,0 +1 @@
|
||||
{"name": "小七"}</|DSML|parameter>
|
||||
3
misc/test-data/作业.txt
Normal file
3
misc/test-data/作业.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
语文作业:1背诵第八课人之初
|
||||
2写生字
|
||||
3帮妈妈扫地
|
||||
Reference in New Issue
Block a user