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:
renjianbo
2026-05-06 01:37:13 +08:00
parent f33bc461ff
commit eabf90c496
171 changed files with 4906 additions and 445 deletions

View File

@@ -41,10 +41,11 @@ export const useAgentStore = defineStore('agent', () => {
if (options?.status) params.status = options.status
if (options?.skip !== undefined) params.skip = options.skip
if (options?.limit !== undefined) params.limit = options.limit
const response = await api.get('/api/v1/agents', { params })
agents.value = response.data
return response.data
const total = parseInt(response.headers['x-total-count'] || '0', 10)
return { data: response.data, total }
} finally {
loading.value = false
}

View File

@@ -791,13 +791,13 @@ const handleRefresh = async () => {
// 加载Agent列表
const loadAgents = async () => {
try {
const agents = await agentStore.fetchAgents({
const result = await agentStore.fetchAgents({
search: searchText.value || undefined,
status: statusFilter.value || undefined,
skip: (currentPage.value - 1) * pageSize.value,
limit: pageSize.value
})
total.value = agents.length
total.value = result.total
} catch (error: any) {
ElMessage.error(error.response?.data?.detail || '加载Agent列表失败')
}