You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/api/types/BashTool.ts
+11-8Lines changed: 11 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,17 @@ export interface BashTool {
24
24
type: "bash";
25
25
/** The sub type of tool. */
26
26
subType: "bash_20241022";
27
+
/**
28
+
* This is the server where a `tool-calls` webhook will be sent.
29
+
*
30
+
* Notes:
31
+
* - Webhook is sent to this server when a tool call is made.
32
+
* - Webhook contains the call, assistant, and phone number objects.
33
+
* - Webhook contains the variables set on the assistant.
34
+
* - Webhook is sent to the first available URL in this order: {{tool.server.url}}, {{assistant.server.url}}, {{phoneNumber.server.url}}, {{org.server.url}}.
35
+
* - Webhook expects a response with tool call result.
36
+
*/
37
+
server?: Vapi.Server;
27
38
/** This is the unique identifier for the tool. */
28
39
id: string;
29
40
/** This is the unique identifier for the organization that this tool belongs to. */
@@ -40,14 +51,6 @@ export interface BashTool {
40
51
* An example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument "reason". Then, in `messages` array, you can have many "request-complete" messages. One of these messages will be triggered if the `messages[].conditions` matches the "reason" argument.
41
52
*/
42
53
function?: Vapi.OpenAiFunction;
43
-
/**
44
-
* This is the server that will be hit when this tool is requested by the model.
45
-
*
46
-
* All requests will be sent with the call object among other things. You can find more details in the Server URL documentation.
47
-
*
48
-
* This overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.
0 commit comments