去掉智能体代码
@ -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.
|
||||
61
README.md
@ -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`
|
||||
|
||||
BIN
dist/agent-foundation-client-yuedong.zip
vendored
@ -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.
|
||||
@ -1 +0,0 @@
|
||||
level=none expiry=0
|
||||
@ -1,2 +0,0 @@
|
||||
{
|
||||
}
|
||||
@ -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
|
||||
}
|
||||
|
Before Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 39 KiB |
|
Before Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 38 KiB |
|
Before Width: | Height: | Size: 58 KiB |
|
Before Width: | Height: | Size: 35 KiB |
|
Before Width: | Height: | Size: 49 KiB |
|
Before Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 37 KiB |
|
Before Width: | Height: | Size: 46 KiB |
|
Before Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 26 KiB |