@teamlearners/clawops 0.8.1 → 0.11.0
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 +25 -0
- package/dist/agent/index.cjs +413 -73
- package/dist/agent/index.cjs.map +1 -1
- package/dist/agent/index.d.cts +40 -3
- package/dist/agent/index.d.ts +40 -3
- package/dist/agent/index.js +406 -66
- package/dist/agent/index.js.map +1 -1
- package/dist/{chunk-RUVY7MYW.js → chunk-5IY2ZR3F.js} +3 -3
- package/dist/{chunk-RUVY7MYW.js.map → chunk-5IY2ZR3F.js.map} +1 -1
- package/dist/{chunk-MOH4FRJZ.cjs → chunk-COBPAA3N.cjs} +3 -3
- package/dist/{chunk-MOH4FRJZ.cjs.map → chunk-COBPAA3N.cjs.map} +1 -1
- package/dist/index.cjs +35 -35
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -45,6 +45,31 @@ agent.on('call_start', async (call) => {
|
|
|
45
45
|
await agent.serve(); // Ctrl+C로 종료
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
+
### Call Transfer (통화 전환)
|
|
49
|
+
|
|
50
|
+
AI가 통화 중 다른 번호로 전환할 수 있습니다. Blind(즉시)와 Warm(안내 후) 모드를 지원합니다.
|
|
51
|
+
|
|
52
|
+
```typescript
|
|
53
|
+
import { ClawOpsAgent, OpenAIRealtime, BuiltinTool } from '@teamlearners/clawops/agent';
|
|
54
|
+
|
|
55
|
+
const agent = new ClawOpsAgent({
|
|
56
|
+
from: '07012341234',
|
|
57
|
+
session: new OpenAIRealtime({
|
|
58
|
+
systemPrompt: '고객 문의를 처리하고, 필요하면 상담원에게 전환하세요.',
|
|
59
|
+
}),
|
|
60
|
+
builtinTools: [BuiltinTool.HANG_UP, BuiltinTool.TRANSFER_CALL],
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
// 코드에서 직접 전환도 가능
|
|
64
|
+
agent.on('call_start', async (call) => {
|
|
65
|
+
if (shouldTransfer) {
|
|
66
|
+
await call.transfer('01012345678', { mode: 'warm', whisper: 'VIP 고객입니다.' });
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
await agent.serve();
|
|
71
|
+
```
|
|
72
|
+
|
|
48
73
|
### MCP 서버 연동
|
|
49
74
|
|
|
50
75
|
MCP 서버를 연결하여 AI에게 외부 도구를 제공할 수 있습니다.
|