blob: 6c544c91573e2c92ccd48699cc0e5d746c05a8ac (
plain)
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
|
import { WebSocket } from "ws";
export interface Session {
twilioConn?: WebSocket;
frontendConn?: WebSocket;
modelConn?: WebSocket;
config?: any;
streamSid?: string;
}
export interface FunctionCallItem {
name: string;
arguments: string;
call_id?: string;
}
export interface FunctionSchema {
name: string;
type: "function";
description?: string;
parameters: {
type: string;
properties: Record<string, { type: string; description?: string }>;
required: string[];
};
}
export interface FunctionHandler {
schema: FunctionSchema;
handler: (args: any) => Promise<string>;
}
|