opc-agent 1.1.0 โ 1.1.1
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 +232 -88
- package/README.zh-CN.md +334 -56
- package/dist/cli.js +1 -32
- package/dist/i18n/index.js +60 -9
- package/docs/.vitepress/config.ts +13 -2
- package/docs/zh/api/cli.md +54 -0
- package/docs/zh/api/oad-schema.md +86 -2
- package/docs/zh/api/sdk.md +102 -0
- package/docs/zh/guide/concepts.md +90 -14
- package/docs/zh/guide/configuration.md +109 -13
- package/docs/zh/guide/deployment.md +79 -1
- package/docs/zh/guide/getting-started.md +41 -17
- package/docs/zh/guide/templates.md +79 -17
- package/docs/zh/guide/testing.md +75 -5
- package/docs/zh/index.md +13 -13
- package/package.json +1 -1
- package/src/cli.ts +1 -35
- package/src/i18n/index.ts +60 -9
- package/tests/i18n.test.ts +1 -1
package/README.md
CHANGED
|
@@ -1,39 +1,46 @@
|
|
|
1
1
|
<p align="center">
|
|
2
2
|
<h1 align="center">๐ค OPC Agent</h1>
|
|
3
|
+
<p align="center"><strong>ๅผๆพๆบ่ฝไฝๆกๆถ โ ๆๅปบใๆต่ฏใ่ฟ่กไผไธ็บง AI ๆบ่ฝไฝ</strong></p>
|
|
3
4
|
<p align="center"><strong>Open Agent Framework โ Build, test, and run AI Agents for business workstations</strong></p>
|
|
4
5
|
<p align="center">
|
|
5
6
|
<a href="https://www.npmjs.com/package/opc-agent"><img src="https://img.shields.io/npm/v/opc-agent?color=blue" alt="npm"></a>
|
|
6
|
-
<a href="https://github.com/
|
|
7
|
-
<a href="https://github.com/
|
|
7
|
+
<a href="https://github.com/Deepleaper/opc-agent/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-green" alt="license"></a>
|
|
8
|
+
<a href="https://github.com/Deepleaper/opc-agent/actions"><img src="https://img.shields.io/badge/tests-passing-brightgreen" alt="tests"></a>
|
|
8
9
|
<a href="https://www.npmjs.com/package/opc-agent"><img src="https://img.shields.io/npm/dm/opc-agent?color=orange" alt="downloads"></a>
|
|
9
10
|
</p>
|
|
11
|
+
<p align="center">
|
|
12
|
+
<a href="#-ไธญๆๆๆกฃ">๐จ๐ณ ไธญๆ</a> ยท <a href="#-english-documentation">๐บ๐ธ English</a> ยท <a href="./README.zh-CN.md">ๅฎๆดไธญๆๆๆกฃ</a>
|
|
13
|
+
</p>
|
|
10
14
|
</p>
|
|
11
15
|
|
|
12
16
|
---
|
|
13
17
|
|
|
14
|
-
|
|
18
|
+
# ๐จ๐ณ ไธญๆๆๆกฃ
|
|
15
19
|
|
|
16
|
-
|
|
20
|
+
OPC Agent ๆฏไธไธช **TypeScript ไผๅ
็ๅผๆพๆบ่ฝไฝๆกๆถ**๏ผ็ฑ[่ท็็งๆ (Deepleaper)](https://www.deepleaper.com) ๅผๅใ็จไธไธช YAML ๆไปถๅฎไนๆบ่ฝไฝ๏ผๆฅๅ
ฅไปปๆๅคง่ฏญ่จๆจกๅ๏ผไธ้ฎ้จ็ฝฒๅฐๅคไธชๆธ ้ใๅผ็ฎฑๅณ็จ๏ผ็ไบงๅฏ็จใ
|
|
21
|
+
|
|
22
|
+
## โก ๅฟซ้ๅผๅง๏ผ30 ็ง๏ผ
|
|
17
23
|
|
|
18
24
|
```bash
|
|
19
|
-
#
|
|
25
|
+
# ๅฎ่ฃ
|
|
20
26
|
npm install -g opc-agent
|
|
21
27
|
|
|
22
|
-
#
|
|
28
|
+
# ๅๅปบไฝ ็็ฌฌไธไธชๆบ่ฝไฝ
|
|
23
29
|
opc init my-agent
|
|
24
30
|
cd my-agent
|
|
25
31
|
|
|
26
|
-
#
|
|
32
|
+
# ๅฏๅจ
|
|
27
33
|
opc run
|
|
28
34
|
```
|
|
29
35
|
|
|
30
|
-
|
|
36
|
+
ๆบ่ฝไฝๅทฒๅจ `http://localhost:3000` ไธ่ฟ่ก๏ผ่ชๅธฆ Web ๅฏน่ฏ็้ขใ
|
|
31
37
|
|
|
32
|
-
## โจ
|
|
38
|
+
## โจ ๅ่ฝ็นๆง
|
|
39
|
+
|
|
40
|
+
### ๐ ๅคๆจกๅไพๅบๅ
|
|
33
41
|
|
|
34
|
-
### ๐ Multi-Provider LLM Support
|
|
35
42
|
```yaml
|
|
36
|
-
# oad.yaml
|
|
43
|
+
# oad.yaml โ ๆบ่ฝไฝๅฎไนๆไปถ
|
|
37
44
|
spec:
|
|
38
45
|
provider:
|
|
39
46
|
default: deepseek
|
|
@@ -41,81 +48,239 @@ spec:
|
|
|
41
48
|
model: deepseek-chat
|
|
42
49
|
```
|
|
43
50
|
|
|
44
|
-
|
|
51
|
+
ๆฏๆ **DeepSeek**ใ**้ไนๅ้ฎ (Qwen)**ใ**OpenAI**ใ**Anthropic**ใ**Ollama**๏ผๆฌๅฐ้จ็ฝฒ๏ผ๏ผไปฅๅไปปไฝๅ
ผๅฎน OpenAI ๆฅๅฃ็ๆๅกใ
|
|
52
|
+
|
|
53
|
+
### ๐ก ๅคๆธ ้้จ็ฝฒ
|
|
45
54
|
|
|
46
|
-
### ๐ก Multi-Channel Deployment
|
|
47
55
|
```yaml
|
|
48
56
|
spec:
|
|
49
57
|
channels:
|
|
50
|
-
- type: web #
|
|
58
|
+
- type: web # Web ๅฏน่ฏ็้ข
|
|
51
59
|
port: 3000
|
|
52
|
-
- type: telegram # Telegram
|
|
53
|
-
- type: websocket #
|
|
54
|
-
- type: slack
|
|
55
|
-
- type: email
|
|
56
|
-
- type: wechat
|
|
57
|
-
- type:
|
|
58
|
-
- type:
|
|
60
|
+
- type: telegram # Telegram ๆบๅจไบบ
|
|
61
|
+
- type: websocket # ๅฎๆถ WebSocket
|
|
62
|
+
- type: slack # Slack ้ๆ
|
|
63
|
+
- type: email # ้ฎไปถๆธ ้
|
|
64
|
+
- type: wechat # ๅพฎไฟกๅ
ฌไผๅท
|
|
65
|
+
- type: feishu # ้ฃไนฆ
|
|
66
|
+
- type: voice # ่ฏญ้ณ๏ผSTT/TTS๏ผ
|
|
67
|
+
- type: webhook # Webhook ๅ่ฐ
|
|
59
68
|
```
|
|
60
69
|
|
|
61
|
-
### ๐ง
|
|
70
|
+
### ๐ง ็ฅ่ฏๅบ๏ผRAG๏ผ
|
|
71
|
+
|
|
62
72
|
```typescript
|
|
63
73
|
import { KnowledgeBase } from 'opc-agent';
|
|
64
74
|
|
|
65
75
|
const kb = new KnowledgeBase('./docs');
|
|
66
|
-
await kb.addFile('
|
|
67
|
-
//
|
|
76
|
+
await kb.addFile('ไบงๅๆๅ.pdf');
|
|
77
|
+
// ๆบ่ฝไฝ่ชๅจไฝฟ็จ็ฅ่ฏๅบๅขๅผบๅ็ญ
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### ๐ญ ๅคๆบ่ฝไฝ็ผๆ
|
|
81
|
+
|
|
82
|
+
```typescript
|
|
83
|
+
import { Orchestrator } from 'opc-agent';
|
|
84
|
+
|
|
85
|
+
const orchestrator = new Orchestrator({
|
|
86
|
+
agents: [ๅ่ฏๆบ่ฝไฝ, ้ๅฎๆบ่ฝไฝ, ๅฎขๆๆบ่ฝไฝ],
|
|
87
|
+
strategy: 'route-by-intent', // ๆๆๅพ่ทฏ็ฑ
|
|
88
|
+
});
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### ๐งช ๅ
็ฝฎๆต่ฏๆกๆถ
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
opc test # ่ฟ่กๆต่ฏ็จไพ
|
|
95
|
+
opc test --watch # ็ๅฌๆจกๅผ
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
```yaml
|
|
99
|
+
# ๅจ oad.yaml ไธญๅฎไนๆต่ฏ
|
|
100
|
+
spec:
|
|
101
|
+
testing:
|
|
102
|
+
cases:
|
|
103
|
+
- name: ้ฎๅๆต่ฏ
|
|
104
|
+
input: "ไฝ ๅฅฝ"
|
|
105
|
+
expect:
|
|
106
|
+
contains: ["ไฝ ๅฅฝ", "ๅธฎ"]
|
|
107
|
+
maxLatencyMs: 5000
|
|
68
108
|
```
|
|
69
109
|
|
|
70
|
-
### ๐ง
|
|
110
|
+
### ๐ง ๆไปถ็ณป็ป
|
|
111
|
+
|
|
71
112
|
```yaml
|
|
72
113
|
spec:
|
|
73
114
|
plugins:
|
|
74
|
-
- name: logging
|
|
75
|
-
- name: analytics
|
|
76
|
-
- name: rate-limit
|
|
115
|
+
- name: logging # ๆฅๅฟ
|
|
116
|
+
- name: analytics # ๆฐๆฎๅๆ
|
|
117
|
+
- name: rate-limit # ้ๆต
|
|
77
118
|
config: { maxPerMinute: 60 }
|
|
78
119
|
```
|
|
79
120
|
|
|
80
|
-
|
|
121
|
+
### ๐ ๅฎๅ
จ็นๆง
|
|
122
|
+
|
|
123
|
+
- ่พๅ
ฅๆถๆฏ๏ผ้ฒ XSSใๆณจๅ
ฅๆปๅป๏ผ
|
|
124
|
+
- API Key ่ฝฎๆข็ฎก็
|
|
125
|
+
- CORS ้
็ฝฎ
|
|
126
|
+
- ๅฎๅ
จๅๅบๅคด
|
|
127
|
+
- ไผ่ฏ้็ฆป็่ฎค่ฏไธญ้ดไปถ
|
|
128
|
+
|
|
129
|
+
### ๐ ็ๆงไธๅๆ
|
|
130
|
+
|
|
131
|
+
- `/api/health` โ ๅฅๅบทๆฃๆฅ
|
|
132
|
+
- `/api/metrics` โ Prometheus ๅ
ผๅฎนๆๆ
|
|
133
|
+
- `/api/dashboard` โ ๅฎๆถไปช่กจ็
|
|
134
|
+
- ๅฏน่ฏๅฏผๅบ๏ผJSON / Markdown / CSV๏ผ
|
|
135
|
+
|
|
136
|
+
## ๐๏ธ ๆถๆ
|
|
137
|
+
|
|
138
|
+
```
|
|
139
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
140
|
+
โ OAD (YAML ๅฎไนๆไปถ) โ
|
|
141
|
+
โ ๆบ่ฝไฝๅฎไนไธ้
็ฝฎ โ
|
|
142
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
|
|
143
|
+
โ โ
|
|
144
|
+
โ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โ
|
|
145
|
+
โ โ ๆธ ้ๅฑ โ โ ๆไปถๅฑ โ โ ๅฎๅ
จๅฑ โ โ
|
|
146
|
+
โ โ Web, TG, โ โ ๆฅๅฟ, โ โ ๆถๆฏ, โ โ
|
|
147
|
+
โ โ WS,Slack โ โ ๅๆ โ โ CORS, ่ฎค่ฏ โ โ
|
|
148
|
+
โ โโโโโโฌโโโโโโ โโโโโโฌโโโโโโ โโโโโโโโฌโโโโโโโโ โ
|
|
149
|
+
โ โ โ โ โ
|
|
150
|
+
โ โโโโโโผโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโผโโโโโโโโโ โ
|
|
151
|
+
โ โ ๆบ่ฝไฝ่ฟ่กๆถ (Runtime) โ โ
|
|
152
|
+
โ โ โโโโโโโโโโโ โโโโโโโโโโ โโโโโโโโโโโโโโโ โ โ
|
|
153
|
+
โ โ โ ่ฎฐๅฟ โ โ ๆ่ฝ โ โ ็ฅ่ฏๅบ โ โ โ
|
|
154
|
+
โ โ โโโโโโโโโโโ โโโโโโโโโโ โโโโโโโโโโโโโโโ โ โ
|
|
155
|
+
โ โโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโ โ
|
|
156
|
+
โ โ โ
|
|
157
|
+
โ โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโ โ
|
|
158
|
+
โ โ ๅคง่ฏญ่จๆจกๅไพๅบๅ โ โ
|
|
159
|
+
โ โ DeepSeek ยท ้ไนๅ้ฎ ยท OpenAI ยท Ollama โ โ
|
|
160
|
+
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
161
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
## ๐ ๆจกๆฟๅ่กจ
|
|
165
|
+
|
|
166
|
+
| ๆจกๆฟ | ่ฏดๆ | ้็จๅบๆฏ |
|
|
167
|
+
|------|------|---------|
|
|
168
|
+
| `customer-service` | ๅฎขๆๆบ่ฝไฝ | FAQ ๆฅ่ฏข + ไบบๅทฅ่ฝฌๆฅ |
|
|
169
|
+
| `sales-assistant` | ้ๅฎๅฉๆ | ไบงๅ้ฎ็ญ + ็บฟ็ดขๆ่ท |
|
|
170
|
+
| `knowledge-base` | ็ฅ่ฏๅบ้ฎ็ญ | RAG ่ฏญไนๆฃ็ดข |
|
|
171
|
+
| `code-reviewer` | ไปฃ็ ๅฎกๆฅ | Bug ๆฃๆต + ้ฃๆ ผๆฃๆฅ |
|
|
172
|
+
| `hr-recruiter` | HR ๆ่ๅฉๆ | ็ฎๅ็ญ้ + ้ข่ฏๅฎๆ |
|
|
173
|
+
| `project-manager` | ้กน็ฎ็ฎก็ | ไปปๅก่ท่ธช + ไผ่ฎฎ็บช่ฆ |
|
|
174
|
+
| `content-writer` | ๅ
ๅฎนๅไฝ | ๅๅฎข + ็คพๅช + SEO |
|
|
175
|
+
| `legal-assistant` | ๆณๅกๅฉๆ | ๅๅๅฎกๆฅ + ๅ่งๆฃๆฅ |
|
|
176
|
+
| `financial-advisor` | ่ดขๅก้กพ้ฎ | ้ข็ฎ็ฎก็ + ๆฏๅบ่ฟฝ่ธช |
|
|
177
|
+
| `executive-assistant` | ่กๆฟๅฉ็ | ๆฅ็จ + ้ฎไปถ + ไผ่ฎฎ |
|
|
178
|
+
| `data-analyst` | ๆฐๆฎๅๆๅธ | ๆฐๆฎๆฅ่ฏข + ๅฏ่งๅ |
|
|
179
|
+
| `teacher` | ๆๅญฆๅฉๆ | ่ฏพ็จ่ฎพ่ฎก + ๅบ้ข |
|
|
180
|
+
|
|
181
|
+
## ๐ ้จ็ฝฒๆๅ
|
|
81
182
|
|
|
82
|
-
###
|
|
83
|
-
- Input sanitization (XSS, injection prevention)
|
|
84
|
-
- API key rotation & management
|
|
85
|
-
- CORS configuration
|
|
86
|
-
- Helmet-style security headers
|
|
87
|
-
- Content Security Policy
|
|
88
|
-
- Auth middleware with session isolation
|
|
183
|
+
### Docker ้จ็ฝฒ
|
|
89
184
|
|
|
90
|
-
### ๐งช Agent Testing
|
|
91
185
|
```bash
|
|
92
|
-
opc
|
|
93
|
-
|
|
186
|
+
# ๆฏไธช opc init ้กน็ฎ่ชๅธฆ Dockerfile
|
|
187
|
+
docker compose up -d
|
|
94
188
|
```
|
|
95
189
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
contains: ["hello", "hi"]
|
|
101
|
-
maxLatencyMs: 5000
|
|
190
|
+
### ้จ็ฝฒๅฐ OpenClaw
|
|
191
|
+
|
|
192
|
+
```bash
|
|
193
|
+
opc deploy --target openclaw
|
|
102
194
|
```
|
|
103
195
|
|
|
104
|
-
###
|
|
196
|
+
### ้จ็ฝฒๅฐ Hermes ไบ
|
|
197
|
+
|
|
198
|
+
```bash
|
|
199
|
+
opc deploy --target hermes
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
## ๐ CLI ๅฝไปคๅ่
|
|
203
|
+
|
|
204
|
+
| ๅฝไปค | ่ฏดๆ |
|
|
205
|
+
|------|------|
|
|
206
|
+
| `opc init [name]` | ๅๅปบๆฐๆบ่ฝไฝ้กน็ฎ |
|
|
207
|
+
| `opc run` | ๅฏๅจๆบ่ฝไฝ |
|
|
208
|
+
| `opc dev` | ๅผๅๆจกๅผ๏ผ็ญ้่ฝฝ๏ผ |
|
|
209
|
+
| `opc test` | ่ฟ่กๆต่ฏ็จไพ |
|
|
210
|
+
| `opc chat` | ๅฝไปค่กไบคไบๅฏน่ฏ |
|
|
211
|
+
| `opc build` | ๆ ก้ช OAD ้
็ฝฎ |
|
|
212
|
+
| `opc deploy` | ้จ็ฝฒๆบ่ฝไฝ |
|
|
213
|
+
| `opc analytics` | ๆฅ็ๆฐๆฎๅๆ |
|
|
214
|
+
| `opc kb add <file>` | ๆทปๅ ็ฅ่ฏๅบๆไปถ |
|
|
215
|
+
| `opc kb search <query>` | ๆ็ดข็ฅ่ฏๅบ |
|
|
216
|
+
|
|
217
|
+
## ๐ API ๅ่
|
|
218
|
+
|
|
105
219
|
```typescript
|
|
106
|
-
import { Orchestrator } from 'opc-agent';
|
|
220
|
+
import { AgentRuntime, KnowledgeBase, Orchestrator } from 'opc-agent';
|
|
107
221
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
222
|
+
// ๅฏๅจๆบ่ฝไฝ
|
|
223
|
+
const runtime = new AgentRuntime();
|
|
224
|
+
await runtime.loadConfig('oad.yaml');
|
|
225
|
+
await runtime.initialize();
|
|
226
|
+
await runtime.start();
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
่ฏฆ็ป API ๆๆกฃ่ฏทๆฅ็ [SDK ๅ่](https://deepleaper.github.io/opc-agent/api/sdk)ใ
|
|
230
|
+
|
|
231
|
+
## ๐ค ่ดก็ฎๆๅ
|
|
232
|
+
|
|
233
|
+
ๆฌข่ฟๅไธ่ดก็ฎ๏ผ
|
|
234
|
+
|
|
235
|
+
1. Fork ๆฌไปๅบ
|
|
236
|
+
2. ๅๅปบๅ่ฝๅๆฏ๏ผ`git checkout -b feat/my-feature`
|
|
237
|
+
3. ็ผๅไปฃ็ ๅๆต่ฏ
|
|
238
|
+
4. ่ฟ่กๆต่ฏ๏ผ`npm test`
|
|
239
|
+
5. ๆไบค Pull Request
|
|
240
|
+
|
|
241
|
+
### ๆฌๅฐๅผๅ
|
|
242
|
+
|
|
243
|
+
```bash
|
|
244
|
+
git clone https://github.com/Deepleaper/opc-agent.git
|
|
245
|
+
cd opc-agent
|
|
246
|
+
npm install
|
|
247
|
+
npm run build
|
|
248
|
+
npm test
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
---
|
|
252
|
+
|
|
253
|
+
# ๐บ๐ธ English Documentation
|
|
254
|
+
|
|
255
|
+
OPC Agent is a **TypeScript-first framework** for building production AI agents by [Deepleaper](https://www.deepleaper.com). Define your agent in a single YAML file (OAD โ Open Agent Definition), connect any LLM provider, deploy to any channel.
|
|
256
|
+
|
|
257
|
+
## โก Quick Start (30 seconds)
|
|
258
|
+
|
|
259
|
+
```bash
|
|
260
|
+
# Install
|
|
261
|
+
npm install -g opc-agent
|
|
262
|
+
|
|
263
|
+
# Create your first agent
|
|
264
|
+
opc init my-agent
|
|
265
|
+
cd my-agent
|
|
266
|
+
|
|
267
|
+
# Run it
|
|
268
|
+
opc run
|
|
112
269
|
```
|
|
113
270
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
-
|
|
271
|
+
Your agent is now live at `http://localhost:3000` with a beautiful web chat UI.
|
|
272
|
+
|
|
273
|
+
## โจ Features
|
|
274
|
+
|
|
275
|
+
- ๐ **Multi-Provider LLM** โ DeepSeek, Qwen, OpenAI, Anthropic, Ollama, any OpenAI-compatible API
|
|
276
|
+
- ๐ก **Multi-Channel** โ Web, Telegram, Slack, WebSocket, Email, WeChat, Feishu, Voice, Webhook
|
|
277
|
+
- ๐ง **Knowledge Base (RAG)** โ Add files, auto-retrieve for context
|
|
278
|
+
- ๐ญ **Multi-Agent Orchestration** โ Route by intent, compose agent teams
|
|
279
|
+
- ๐งช **Built-in Testing** โ YAML-defined test cases, latency assertions
|
|
280
|
+
- ๐ง **Plugin System** โ Logging, analytics, rate limiting, custom hooks
|
|
281
|
+
- ๐ **Security** โ Input sanitization, CORS, auth, session isolation
|
|
282
|
+
- ๐ **Analytics & Monitoring** โ Health checks, Prometheus metrics, real-time dashboard
|
|
283
|
+
- ๐ **12 Templates** โ Customer service, sales, knowledge base, code review, and more
|
|
119
284
|
|
|
120
285
|
## ๐๏ธ Architecture
|
|
121
286
|
|
|
@@ -124,23 +289,18 @@ const orchestrator = new Orchestrator({
|
|
|
124
289
|
โ OAD (YAML) โ
|
|
125
290
|
โ Agent Definition & Config โ
|
|
126
291
|
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
|
|
127
|
-
โ โ
|
|
128
292
|
โ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โ
|
|
129
293
|
โ โ Channels โ โ Plugins โ โ Security โ โ
|
|
130
|
-
โ โ web,tg, โ โ logging, โ โ sanitize, โ โ
|
|
131
|
-
โ โ ws,slack โ โ analyticsโ โ CORS, auth โ โ
|
|
132
294
|
โ โโโโโโฌโโโโโโ โโโโโโฌโโโโโโ โโโโโโโโฌโโโโโโโโ โ
|
|
133
|
-
โ โ โ โ โ
|
|
134
295
|
โ โโโโโโผโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโผโโโโโโโโโ โ
|
|
135
296
|
โ โ Agent Runtime โ โ
|
|
136
297
|
โ โ โโโโโโโโโโโ โโโโโโโโโโ โโโโโโโโโโโโโโโ โ โ
|
|
137
298
|
โ โ โ Memory โ โ Skills โ โ Knowledge โ โ โ
|
|
138
299
|
โ โ โโโโโโโโโโโ โโโโโโโโโโ โโโโโโโโโโโโโโโ โ โ
|
|
139
300
|
โ โโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโ โ
|
|
140
|
-
โ โ โ
|
|
141
301
|
โ โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโ โ
|
|
142
302
|
โ โ LLM Providers โ โ
|
|
143
|
-
โ โ
|
|
303
|
+
โ โ DeepSeek ยท Qwen ยท OpenAI ยท Anthropic โ โ
|
|
144
304
|
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
145
305
|
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
146
306
|
```
|
|
@@ -151,39 +311,23 @@ const orchestrator = new Orchestrator({
|
|
|
151
311
|
|---------|-------------|
|
|
152
312
|
| `opc init [name]` | Create a new agent project |
|
|
153
313
|
| `opc run` | Start the agent |
|
|
154
|
-
| `opc dev` |
|
|
314
|
+
| `opc dev` | Development mode (hot-reload) |
|
|
155
315
|
| `opc test` | Run agent test cases |
|
|
156
|
-
| `opc
|
|
157
|
-
| `opc
|
|
158
|
-
| `opc
|
|
159
|
-
| `opc
|
|
160
|
-
| `opc
|
|
161
|
-
| `opc
|
|
316
|
+
| `opc chat` | Interactive CLI chat |
|
|
317
|
+
| `opc build` | Validate OAD configuration |
|
|
318
|
+
| `opc deploy` | Deploy agent |
|
|
319
|
+
| `opc analytics` | View analytics |
|
|
320
|
+
| `opc kb add <file>` | Add knowledge base file |
|
|
321
|
+
| `opc kb search <query>` | Search knowledge base |
|
|
162
322
|
|
|
163
323
|
## ๐ค Contributing
|
|
164
324
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
1. Fork the repository
|
|
168
|
-
2. Create a feature branch: `git checkout -b feat/my-feature`
|
|
169
|
-
3. Make your changes with tests
|
|
170
|
-
4. Run tests: `npm test`
|
|
171
|
-
5. Submit a pull request
|
|
172
|
-
|
|
173
|
-
### Development Setup
|
|
174
|
-
|
|
175
|
-
```bash
|
|
176
|
-
git clone https://github.com/anthropic-lab/opc-agent.git
|
|
177
|
-
cd opc-agent
|
|
178
|
-
npm install
|
|
179
|
-
npm run build
|
|
180
|
-
npm test
|
|
181
|
-
```
|
|
325
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
182
326
|
|
|
183
327
|
## ๐ License
|
|
184
328
|
|
|
185
|
-
[Apache License 2.0](LICENSE) โ
|
|
329
|
+
[Apache License 2.0](LICENSE) โ Free for commercial and open source use.
|
|
186
330
|
|
|
187
331
|
---
|
|
188
332
|
|
|
189
|
-
<p align="center">Built with โค๏ธ by
|
|
333
|
+
<p align="center">Built with โค๏ธ by <a href="https://www.deepleaper.com">Deepleaper ่ท็็งๆ</a></p>
|