diff --git a/fern/apis/api/openapi.json b/fern/apis/api/openapi.json index ee7735798..8e00b583b 100644 --- a/fern/apis/api/openapi.json +++ b/fern/apis/api/openapi.json @@ -6869,6 +6869,10 @@ "$ref": "#/components/schemas/Gather", "title": "Gather" }, + { + "$ref": "#/components/schemas/ToolCall", + "title": "ToolCall" + }, { "$ref": "#/components/schemas/Hangup", "title": "Hangup" @@ -11412,6 +11416,7 @@ "speech-update", "status-update", "transcript", + "transcript[transcriptType=\"final\"]", "tool-calls", "transfer-destination-request", "transfer-update", @@ -11444,6 +11449,7 @@ "speech-update", "status-update", "transcript", + "transcript[transcriptType=\"final\"]", "tool-calls", "transfer-destination-request", "transfer-update", @@ -11980,6 +11986,7 @@ "speech-update", "status-update", "transcript", + "transcript[transcriptType=\"final\"]", "tool-calls", "transfer-destination-request", "transfer-update", @@ -12012,6 +12019,7 @@ "speech-update", "status-update", "transcript", + "transcript[transcriptType=\"final\"]", "tool-calls", "transfer-destination-request", "transfer-update", @@ -13594,6 +13602,7 @@ "speech-update", "status-update", "transcript", + "transcript[transcriptType=\"final\"]", "tool-calls", "transfer-destination-request", "transfer-update", @@ -13626,6 +13635,7 @@ "speech-update", "status-update", "transcript", + "transcript[transcriptType=\"final\"]", "tool-calls", "transfer-destination-request", "transfer-update", @@ -14186,6 +14196,7 @@ "speech-update", "status-update", "transcript", + "transcript[transcriptType=\"final\"]", "tool-calls", "transfer-destination-request", "transfer-update", @@ -14218,6 +14229,7 @@ "speech-update", "status-update", "transcript", + "transcript[transcriptType=\"final\"]", "tool-calls", "transfer-destination-request", "transfer-update", @@ -23333,6 +23345,39 @@ "name" ] }, + "ToolCall": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "tool_call" + ] + }, + "tool": { + "description": "The core properties of the tool call.", + "allOf": [ + { + "$ref": "#/components/schemas/CreateFunctionToolDTO" + } + ] + }, + "toolBody": { + "type": "object", + "description": "This defined the JSON body of your tool call. For example, if `body_schema`\nincluded \"my_field\": \"my_gather_statement.user_age\", then the json body sent to the server would have that particular value assign to it.\nRight now, only data from gather statements are supported." + }, + "name": { + "type": "string", + "maxLength": 40 + } + }, + "required": [ + "type", + "tool", + "toolBody", + "name" + ] + }, "CreateWorkflowDTO": { "type": "object", "properties": { @@ -23354,6 +23399,10 @@ "$ref": "#/components/schemas/Gather", "title": "Gather" }, + { + "$ref": "#/components/schemas/ToolCall", + "title": "ToolCall" + }, { "$ref": "#/components/schemas/Hangup", "title": "Hangup" @@ -23398,6 +23447,10 @@ "$ref": "#/components/schemas/Gather", "title": "Gather" }, + { + "$ref": "#/components/schemas/ToolCall", + "title": "ToolCall" + }, { "$ref": "#/components/schemas/Hangup", "title": "Hangup" @@ -23567,7 +23620,8 @@ "type": "string", "description": "This is the type of the message. \"transcript\" is sent as transcriber outputs partial or final transcript.", "enum": [ - "transcript" + "transcript", + "transcript[transcriptType=\"final\"]" ] }, "role": { @@ -23598,52 +23652,6 @@ "transcript" ] }, - "ToolCallFunction": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "This is the name of the function the model called." - }, - "arguments": { - "type": "object", - "description": "These are the arguments that the function was called with." - } - }, - "required": [ - "name", - "arguments" - ] - }, - "ToolCall": { - "type": "object", - "properties": { - "type": { - "type": "string", - "description": "This is the type of tool the model called.", - "enum": [ - "function" - ] - }, - "function": { - "description": "This is the function the model called.", - "allOf": [ - { - "$ref": "#/components/schemas/ToolCallFunction" - } - ] - }, - "id": { - "type": "string", - "description": "This is the unique identifier for the tool call." - } - }, - "required": [ - "type", - "function", - "id" - ] - }, "ClientMessageToolCalls": { "type": "object", "properties": { @@ -25546,7 +25554,8 @@ "type": "string", "description": "This is the type of the message. \"transcript\" is sent as transcriber outputs partial or final transcript.", "enum": [ - "transcript" + "transcript", + "transcript[transcriptType=\"final\"]" ] }, "timestamp": {