-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapi.json
More file actions
692 lines (692 loc) · 16.7 KB
/
Copy pathapi.json
File metadata and controls
692 lines (692 loc) · 16.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
{
"name": "opc_team",
"description": "OPC Team - 跨平台 AI Agent 协作框架。负责任务管理、决策履历、风险评分、三级记忆系统、agent 状态看板与模型路由。",
"version": "4.8.2",
"tools": [
{
"name": "task_create",
"description": "创建新任务",
"input_schema": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "任务标题"
},
"ceo_input": {
"type": "string",
"description": "CEO 输入/原始需求"
}
},
"required": [
"title",
"ceo_input"
]
}
},
{
"name": "task_assess",
"description": "任务定级(L1-L4)",
"input_schema": {
"type": "object",
"properties": {
"task_id": {
"type": "string",
"description": "任务ID,如 T001"
},
"level": {
"type": "string",
"description": "任务级别",
"enum": [
"L1",
"L2",
"L3",
"L4"
]
},
"reason": {
"type": "string",
"description": "定级原因"
}
},
"required": [
"task_id",
"level",
"reason"
]
}
},
{
"name": "task_transition",
"description": "任务状态流转",
"input_schema": {
"type": "object",
"properties": {
"task_id": {
"type": "string",
"description": "任务ID"
},
"to": {
"type": "string",
"description": "目标状态",
"enum": [
"assessed",
"in_strategy",
"in_execution",
"in_debate",
"completed",
"blocked",
"escalated"
]
},
"actor": {
"type": "string",
"description": "操作者,如 COO魏明远"
}
},
"required": [
"task_id",
"to",
"actor"
]
}
},
{
"name": "task_progress",
"description": "上报任务进度",
"input_schema": {
"type": "object",
"properties": {
"task_id": {
"type": "string",
"description": "任务ID"
},
"message": {
"type": "string",
"description": "进度描述"
},
"progress": {
"type": "integer",
"description": "进度百分比 0-100",
"minimum": 0,
"maximum": 100
}
},
"required": [
"task_id",
"message",
"progress"
]
}
},
{
"name": "task_status",
"description": "查询任务状态",
"input_schema": {
"type": "object",
"properties": {
"task_id": {
"type": "string",
"description": "任务ID"
}
},
"required": [
"task_id"
]
}
},
{
"name": "decision_create",
"description": "创建决策履历",
"input_schema": {
"type": "object",
"properties": {
"task_id": {
"type": "string",
"description": "关联任务ID"
},
"decision_id": {
"type": "string",
"description": "决策ID(可选,自动生成)"
},
"title": {
"type": "string",
"description": "决策标题"
},
"options": {
"type": "string",
"description": "供选方案(逗号分隔),如 方案A,方案B,方案C"
},
"chosen": {
"type": "string",
"description": "最终选择"
},
"reason": {
"type": "string",
"description": "决策依据"
},
"assumptions": {
"type": "string",
"description": "假设清单,格式 假设1:描述1,假设2:描述2"
}
},
"required": [
"task_id",
"title",
"options",
"chosen",
"reason",
"assumptions"
]
}
},
{
"name": "decision_update_assumption",
"description": "更新假设验证状态",
"input_schema": {
"type": "object",
"properties": {
"decision_id": {
"type": "string",
"description": "决策ID,如 D001"
},
"assumption_id": {
"type": "integer",
"description": "假设ID(从1开始)"
},
"status": {
"type": "string",
"description": "验证状态",
"enum": [
"验证",
"证伪",
"部分验证"
]
},
"actual": {
"type": "string",
"description": "实际情况描述"
},
"trigger_review": {
"type": "boolean",
"description": "是否触发48小时重审"
}
},
"required": [
"decision_id",
"assumption_id",
"status"
]
}
},
{
"name": "decision_backfill",
"description": "回填决策结果",
"input_schema": {
"type": "object",
"properties": {
"decision_id": {
"type": "string",
"description": "决策ID"
},
"result": {
"type": "string",
"description": "结果",
"enum": [
"成功",
"失败",
"部分成功"
]
},
"metrics": {
"type": "string",
"description": "量化指标"
},
"lessons": {
"type": "string",
"description": "经验教训"
}
},
"required": [
"decision_id",
"result"
]
}
},
{
"name": "risk_assess",
"description": "评估风险(概率×影响=等级)",
"input_schema": {
"type": "object",
"properties": {
"task_id": {
"type": "string",
"description": "任务ID"
},
"risk_name": {
"type": "string",
"description": "风险名称"
},
"probability": {
"type": "integer",
"description": "发生概率 1-5",
"minimum": 1,
"maximum": 5
},
"impact": {
"type": "integer",
"description": "影响程度 1-5",
"minimum": 1,
"maximum": 5
},
"mitigation": {
"type": "string",
"description": "应对预案"
}
},
"required": [
"task_id",
"risk_name",
"probability",
"impact"
]
}
},
{
"name": "risk_update",
"description": "更新风险状态",
"input_schema": {
"type": "object",
"properties": {
"risk_id": {
"type": "string",
"description": "风险ID,如 R001"
},
"status": {
"type": "string",
"description": "状态,如 未发生/已发生"
},
"actual_impact": {
"type": "integer",
"description": "实际影响 1-5"
}
},
"required": [
"risk_id",
"status"
]
}
},
{
"name": "risk_list",
"description": "列出任务风险",
"input_schema": {
"type": "object",
"properties": {
"task_id": {
"type": "string",
"description": "任务ID"
},
"min_level": {
"type": "integer",
"description": "最小风险等级(1-5)"
}
},
"required": [
"task_id"
]
}
},
{
"name": "memory_write",
"description": "写入 L0 即时记忆",
"input_schema": {
"type": "object",
"properties": {
"task_id": {
"type": "string",
"description": "任务ID"
},
"content": {
"type": "string",
"description": "记忆内容"
}
},
"required": [
"task_id",
"content"
]
}
},
{
"name": "memory_compress",
"description": "压缩 L0 到 L1 短期记忆",
"input_schema": {
"type": "object",
"properties": {
"task_id": {
"type": "string",
"description": "任务ID"
},
"summary": {
"type": "string",
"description": "任务摘要"
}
},
"required": [
"task_id",
"summary"
]
}
},
{
"name": "memory_archive",
"description": "归档到 L2 长期记忆",
"input_schema": {
"type": "object",
"properties": {
"category": {
"type": "string",
"description": "分类",
"enum": [
"CEO偏好",
"方法论",
"避坑指南",
"成功案例"
]
},
"content": {
"type": "string",
"description": "归档内容"
}
},
"required": [
"category",
"content"
]
}
},
{
"name": "memory_sync",
"description": "同步任务记忆到 MEMORY.md",
"input_schema": {
"type": "object",
"properties": {
"task_id": {
"type": "string",
"description": "任务ID"
}
},
"required": [
"task_id"
]
}
},
{
"name": "agent_list",
"description": "列出主 agent / sub-agent 的状态与模型配置",
"input_schema": {
"type": "object",
"properties": {}
}
},
{
"name": "agent_get",
"description": "获取某个 agent 的详情",
"input_schema": {
"type": "object",
"properties": {
"agent_id": {
"type": "string",
"description": "agent ID,如 ceo / coo / strategist / tech"
}
},
"required": [
"agent_id"
]
}
},
{
"name": "agent_set_status",
"description": "更新某个 agent 的运行状态",
"input_schema": {
"type": "object",
"properties": {
"agent_id": {
"type": "string",
"description": "agent ID"
},
"status": {
"type": "string",
"description": "agent 状态",
"enum": [
"idle",
"running",
"waiting",
"blocked",
"completed",
"offline"
]
},
"task_id": {
"type": "string",
"description": "当前任务 ID"
},
"task_title": {
"type": "string",
"description": "当前任务标题"
},
"task_state": {
"type": "string",
"description": "任务状态"
},
"task_level": {
"type": "string",
"description": "任务等级"
},
"progress": {
"type": "integer",
"description": "当前进度 0-100",
"minimum": 0,
"maximum": 100
},
"message": {
"type": "string",
"description": "状态说明"
},
"assignment_id": {
"type": "string",
"description": "当前派发任务 ID,如 A001"
},
"assigned_by": {
"type": "string",
"description": "派发方 agent ID,如 ceo"
}
},
"required": [
"agent_id",
"status"
]
}
},
{
"name": "agent_dispatch",
"description": "由主 agent 给 sub-agent 派发任务",
"input_schema": {
"type": "object",
"properties": {
"from_agent": {
"type": "string",
"description": "派发方 agent ID,通常是 ceo"
},
"to_agent": {
"type": "string",
"description": "接收方 sub-agent ID"
},
"title": {
"type": "string",
"description": "派发标题"
},
"brief": {
"type": "string",
"description": "任务简报"
},
"task_id": {
"type": "string",
"description": "关联主任务 ID"
},
"task_title": {
"type": "string",
"description": "关联主任务标题"
},
"auto_start": {
"type": "boolean",
"description": "是否派发后直接进入 running"
}
},
"required": [
"from_agent",
"to_agent",
"title",
"brief"
]
}
},
{
"name": "assignment_list",
"description": "列出主 agent 派发给 sub-agent 的任务",
"input_schema": {
"type": "object",
"properties": {
"from_agent": {
"type": "string",
"description": "按派发方过滤"
},
"to_agent": {
"type": "string",
"description": "按接收方过滤"
},
"open_only": {
"type": "boolean",
"description": "是否只返回未关闭派发"
}
}
}
},
{
"name": "assignment_get",
"description": "查看单个派发任务详情",
"input_schema": {
"type": "object",
"properties": {
"assignment_id": {
"type": "string",
"description": "派发任务 ID,如 A001"
}
},
"required": [
"assignment_id"
]
}
},
{
"name": "agent_set_model",
"description": "设置某个 agent 的模型路由",
"input_schema": {
"type": "object",
"properties": {
"agent_id": {
"type": "string",
"description": "agent ID"
},
"source": {
"type": "string",
"description": "模型来源",
"enum": [
"default",
"platform_default",
"custom_api"
]
},
"provider": {
"type": "string",
"description": "provider,例如 openai / anthropic / deepseek"
},
"model": {
"type": "string",
"description": "模型名"
},
"api_base": {
"type": "string",
"description": "自定义 API Base"
},
"api_key_env": {
"type": "string",
"description": "API Key 对应环境变量名"
},
"temperature": {
"type": "number",
"description": "采样温度"
},
"max_tokens": {
"type": "integer",
"description": "最大输出 token"
},
"headers": {
"type": "object",
"description": "附加请求头"
}
},
"required": [
"agent_id",
"source"
]
}
},
{
"name": "agent_resolve_model",
"description": "查看某个 agent 的最终生效模型配置",
"input_schema": {
"type": "object",
"properties": {
"agent_id": {
"type": "string",
"description": "agent ID"
}
},
"required": [
"agent_id"
]
}
},
{
"name": "dashboard_summary",
"description": "读取 OPC 本地看板的聚合摘要",
"input_schema": {
"type": "object",
"properties": {}
}
},
{
"name": "config_info",
"description": "获取配置信息",
"input_schema": {
"type": "object",
"properties": {}
}
}
],
"risk_levels": {
"1": "可忽略 - 顺带处理",
"2": "低危 - 监控即可",
"3": "中危 - 必须有应对预案",
"4": "高危 - 升级处理,建议暂缓",
"5": "致命 - 触发停止机制"
},
"task_levels": {
"L1": "简单查询/执行 - <5分钟",
"L2": "有限判断 - 5-30分钟",
"L3": "多方案+风险 - 30分-2小时",
"L4": "战略级 - 2小时以上"
}
}