Skip to content

Commit f2beec9

Browse files
committed
call manager tool
1 parent ab8cee2 commit f2beec9

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/app/components/audiochat.tsx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,26 @@ const AudioChat: React.FC = () => {
216216
}
217217
);
218218

219+
// 직원 호출 툴
220+
client.addTool(
221+
{
222+
name: 'call_manager',
223+
description: 'Call manager',
224+
parameters: {
225+
type: 'object',
226+
properties: {},
227+
required: [],
228+
}
229+
},
230+
() => {
231+
console.log("Function calling: call_manager");
232+
233+
fetch('/api/call');
234+
235+
return "Successfully called manager";
236+
}
237+
)
238+
219239
// 메뉴 추가 툴
220240
client.addTool(
221241
{

0 commit comments

Comments
 (0)