去掉智能体代码

This commit is contained in:
tanglong 2026-07-13 16:50:29 +08:00
parent 1e10f09d4d
commit f057ca5053
1539 changed files with 14 additions and 388657 deletions

View File

@ -1,19 +0,0 @@
Yuedong short-video local worker
Before first use, install:
1. Node.js LTS
2. Microsoft Edge or Google Chrome
How to start:
1. Unzip this package to a normal folder, for example Desktop\agent-foundation-client.
2. Double-click start_yuedong_client.bat.
3. If a Douyin or Xiaohongshu login page opens, login in the browser, then press Enter in the terminal window.
4. Keep the worker terminal window open while using the system.
Server API:
http://agent.yuedongsports.com
Local login data is stored only on this computer under:
data\platform-profiles\
Do not copy data\platform-profiles\ to another person.

View File

@ -1,63 +1,20 @@
# Agent Foundation
Java Spring Boot base platform for multiple enterprise agents (CRM assistant, knowledge-base assistant, customer service assistant).
Java Spring Boot service for Enterprise WeChat callbacks and internal APIs.
## Core API
- POST `/v1/chat/completions`
- GET `/v1/healthz`
## Agent Gateway Architecture
`agent-foundation` is the company AI gateway and agent orchestration service.
It should stay focused on:
- WeCom / API entrypoints
- user identity and permission context
- intent recognition
- capability routing
- model gateway calls
- logs, audit, and runtime diagnostics
Business-heavy features such as CRM data, knowledge base, PPT generation,
bidding documents, reports, and media operations should be implemented as
separate capability handlers first, and can later be split into independent
services.
Current runtime flow:
```text
WeCom / API
-> AgentOrchestratorService
-> IntentRecognitionService
-> CapabilityRegistry
-> AgentCapabilityHandler
```
To add a new business skill:
1. Add a new intent in `AgentIntent`.
2. Add keyword / LLM routing rules in `IntentRecognitionService`.
3. Implement `AgentCapabilityHandler`.
4. Mark it as a Spring `@Component`.
5. Test it through `/v1/agent/messages` or WeCom.
## Agent Runtime API
- POST `/v1/agent/messages`
- GET `/v1/agent/capabilities`
Example:
```bash
curl -X POST "http://127.0.0.1:8880/v1/agent/messages" \
-H "Content-Type: application/json" \
-H "X-Agent-Id: crm-assistant" \
-H "X-Internal-Key: crm-dev-key" \
-d '{"wecomUserId":"YiNianYiQingJing","message":"今日客资情况"}'
```
## WeCom CRM Bot Integration
## WeCom Callback
- Callback URL: `/v1/integrations/wecom/callback`
- Receive enterprise WeCom text messages and route to `crm-assistant`
- Send the model response back to the same WeCom user
- Verifies Enterprise WeChat callback signatures
- Decrypts encrypted callback payloads when safe mode is enabled
- Deduplicates text messages
- Sends a fixed text reply: `你好`
The old internal agent orchestration code has been removed. Future intelligent
responses should be connected through Coze while keeping this callback entrypoint.
### Required env vars
- `DEEPSEEK_API_KEY`

Binary file not shown.

View File

@ -1,19 +0,0 @@
Yuedong short-video local worker
Before first use, install:
1. Node.js LTS
2. Microsoft Edge or Google Chrome
How to start:
1. Unzip this package to a normal folder, for example Desktop\agent-foundation-client.
2. Double-click start_yuedong_client.bat.
3. If a Douyin or Xiaohongshu login page opens, login in the browser, then press Enter in the terminal window.
4. Keep the worker terminal window open while using the system.
Server API:
http://agent.yuedongsports.com
Local login data is stored only on this computer under:
data\platform-profiles\
Do not copy data\platform-profiles\ to another person.

View File

@ -1,61 +0,0 @@
{
"checksum": "6ebb62e54f8b72daf7e455ea03f01894",
"roots": {
"bookmark_bar": {
"children": [ {
"date_added": "13426240218493338",
"date_last_used": "0",
"guid": "8bf490a4-3480-4d50-aeee-fa1e4ea8dfd9",
"id": "7",
"name": "McAfee Security",
"show_icon": false,
"source": "oem_preload",
"type": "url",
"url": "https://www.mcafee.com/consumer/v/browserfav/dell.html",
"visit_count": 0
} ],
"date_added": "13426240218347863",
"date_last_used": "0",
"date_modified": "13426240218493338",
"guid": "0bc5d13f-2cba-5d74-951f-3f233fe6c908",
"id": "1",
"name": "收藏夹栏",
"source": "unknown",
"type": "folder"
},
"other": {
"children": [ ],
"date_added": "13426240218347863",
"date_last_used": "0",
"date_modified": "0",
"guid": "82b081ec-3dd3-529c-8475-ab6c344590dd",
"id": "2",
"name": "其他收藏夹",
"source": "unknown",
"type": "folder"
},
"synced": {
"children": [ ],
"date_added": "13426240218347863",
"date_last_used": "0",
"date_modified": "0",
"guid": "4cf2e351-0e85-532b-bb37-df045d8f8d0f",
"id": "3",
"name": "移动收藏夹",
"source": "unknown",
"type": "folder"
},
"workspaces_v2": {
"children": [ ],
"date_added": "13426240218347863",
"date_last_used": "0",
"date_modified": "0",
"guid": "75aa6670-344f-549d-b742-660f029506ab",
"id": "5",
"name": "工作区",
"source": "unknown",
"type": "folder"
}
},
"version": 1
}

Some files were not shown because too many files have changed in this diff Show More