Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 58a9181

Browse files
committedMay 28, 2025·
SDK regeneration
1 parent e885438 commit 58a9181

File tree

119 files changed

+772
-745
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+772
-745
lines changed
 

‎src/api/types/AssistantMessage.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as Vapi from "../index";
6+
7+
export interface AssistantMessage {
8+
/** This is the role of the message author */
9+
role: "assistant";
10+
/** This is the content of the assistant message */
11+
content?: string;
12+
/** This is the refusal message generated by the model */
13+
refusal?: string;
14+
/** This is the tool calls generated by the model */
15+
tool_calls?: Vapi.ToolCall[];
16+
/** This is an optional name for the participant */
17+
name?: string;
18+
}

‎src/api/types/BashTool.ts

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,17 @@ export interface BashTool {
2424
type: "bash";
2525
/** The sub type of tool. */
2626
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;
2738
/** This is the unique identifier for the tool. */
2839
id: string;
2940
/** This is the unique identifier for the organization that this tool belongs to. */
@@ -40,14 +51,6 @@ export interface BashTool {
4051
* 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.
4152
*/
4253
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.
49-
*/
50-
server?: Vapi.Server;
5154
/** The name of the tool, fixed to 'bash' */
5255
name: "bash";
5356
}

0 commit comments

Comments
 (0)
Please sign in to comment.