Skip to content

Commit 222f198

Browse files
SDK regeneration
1 parent 2c15146 commit 222f198

File tree

21 files changed

+929
-231
lines changed

21 files changed

+929
-231
lines changed

.mock/definition/empathic-voice/__package__.yml

Lines changed: 51 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ types:
8080
docs: >-
8181
ID of the assistant message. Allows the Assistant Message to be
8282
tracked and referenced.
83+
language:
84+
type: optional<string>
85+
docs: Detected language of the message text.
8386
message:
8487
type: ChatMessage
8588
docs: Transcript of the message.
@@ -726,22 +729,15 @@ types:
726729
docs: Name of the tool called.
727730
parameters:
728731
type: string
729-
docs: >-
730-
Parameters of the tool.
731-
732-
733-
These parameters define the inputs needed for the tool's execution,
734-
including the expected data type and description for each input field.
735-
Structured as a stringified JSON schema, this format ensures the tool
736-
receives data in the expected format.
732+
docs: Parameters of the tool call. Is a stringified JSON schema.
737733
response_required:
738734
type: boolean
739735
docs: >-
740736
Indicates whether a response to the tool call is required from the
741737
developer, either in the form of a [Tool Response
742-
message](/reference/speech-to-speech-evi/chat#send.ToolResponseMessage)
738+
message](/reference/empathic-voice-interface-evi/chat/chat#send.Tool%20Response%20Message.type)
743739
or a [Tool Error
744-
message](/reference/speech-to-speech-evi/chat#send.ToolErrorMessage).
740+
message](/reference/empathic-voice-interface-evi/chat/chat#send.Tool%20Error%20Message.type).
745741
tool_call_id:
746742
type: string
747743
docs: >-
@@ -752,12 +748,12 @@ types:
752748
invocation, ensuring that the correct response is linked to the
753749
appropriate request.
754750
tool_type:
755-
type: optional<ToolType>
751+
type: ToolType
756752
docs: >-
757753
Type of tool called. Either `builtin` for natively implemented tools,
758754
like web search, or `function` for user-defined tools.
759755
type:
760-
type: literal<"tool_call">
756+
type: optional<literal<"tool_call">>
761757
docs: >-
762758
The type of message sent through the socket; for a Tool Call message,
763759
this must be `tool_call`.
@@ -766,7 +762,7 @@ types:
766762
This message indicates that the supplemental LLM has detected a need
767763
to invoke the specified tool.
768764
source:
769-
openapi: evi-asyncapi.json
765+
openapi: evi-openapi.json
770766
ToolErrorMessage:
771767
docs: When provided, the output is a function call error.
772768
properties:
@@ -970,6 +966,9 @@ types:
970966
Interim transcripts are only sent when the
971967
[`verbose_transcription`](/reference/speech-to-speech-evi/chat#request.query.verbose_transcription)
972968
query parameter is set to `true` in the initial handshake.
969+
language:
970+
type: optional<string>
971+
docs: Detected language of the message text.
973972
message:
974973
type: ChatMessage
975974
docs: Transcript of the message.
@@ -1214,7 +1213,7 @@ types:
12141213
- type: PauseAssistantMessage
12151214
- type: ResumeAssistantMessage
12161215
source:
1217-
openapi: evi-asyncapi.json
1216+
openapi: evi-openapi.json
12181217
HTTPValidationError:
12191218
properties:
12201219
detail:
@@ -1394,6 +1393,7 @@ types:
13941393
union:
13951394
- WebhookEventChatStarted
13961395
- WebhookEventChatEnded
1396+
- WebhookEventToolCall
13971397
source:
13981398
openapi: evi-openapi.json
13991399
WebhookEventChatEnded:
@@ -1477,6 +1477,37 @@ types:
14771477
- ERROR
14781478
source:
14791479
openapi: evi-openapi.json
1480+
WebhookEventToolCall:
1481+
properties:
1482+
caller_number:
1483+
type: optional<string>
1484+
docs: >-
1485+
Phone number of the caller in E.164 format (e.g., `+12223333333`).
1486+
This field is included only if the Chat was created via the [Twilio
1487+
phone calling](/docs/empathic-voice-interface-evi/phone-calling)
1488+
integration.
1489+
custom_session_id:
1490+
type: optional<string>
1491+
docs: >-
1492+
User-defined session ID. Relevant only when employing a [custom
1493+
language
1494+
model](/docs/empathic-voice-interface-evi/custom-language-model) in
1495+
the EVI Config.
1496+
event_name:
1497+
type: optional<literal<"tool_call">>
1498+
docs: Always `tool_call`.
1499+
timestamp:
1500+
type: integer
1501+
docs: >-
1502+
Unix timestamp (in milliseconds) indicating when the tool call was
1503+
triggered.
1504+
tool_call_message:
1505+
type: ToolCallMessage
1506+
docs: The tool call.
1507+
extends:
1508+
- WebhookEventBase
1509+
source:
1510+
openapi: evi-openapi.json
14801511
ErrorResponse:
14811512
properties:
14821513
error: optional<string>
@@ -1668,9 +1699,6 @@ types:
16681699
Version numbers are integer values representing different iterations
16691700
of the Prompt. Each update to the Prompt increments its version
16701701
number.
1671-
version_description:
1672-
type: optional<string>
1673-
docs: An optional description of the Prompt version.
16741702
version_type:
16751703
type: ReturnPromptVersionType
16761704
docs: >-
@@ -1686,6 +1714,9 @@ types:
16861714
docs: >-
16871715
Time at which the Prompt was last modified. Measured in seconds since
16881716
the Unix epoch.
1717+
version_description:
1718+
type: optional<string>
1719+
docs: An optional description of the Prompt version.
16891720
source:
16901721
openapi: evi-openapi.json
16911722
ReturnPagedConfigs:
@@ -1741,9 +1772,6 @@ types:
17411772
Version numbers are integer values representing different iterations
17421773
of the Config. Each update to the Config increments its version
17431774
number.
1744-
version_description:
1745-
type: optional<string>
1746-
docs: An optional description of the Config version.
17471775
language_model:
17481776
type: optional<ReturnLanguageModel>
17491777
docs: >-
@@ -1798,6 +1826,9 @@ types:
17981826
docs: >-
17991827
Time at which the Config was last modified. Measured in seconds since
18001828
the Unix epoch.
1829+
version_description:
1830+
type: optional<string>
1831+
docs: An optional description of the Config version.
18011832
tools:
18021833
type: optional<list<optional<ReturnUserDefinedTool>>>
18031834
docs: List of user-defined tools associated with this Config.

.mock/definition/empathic-voice/chatWebhooks.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,25 @@ webhooks:
3434
custom_session_id: null
3535
start_time: 1
3636
docs: Sent when an EVI chat is started.
37+
toolCall:
38+
audiences: []
39+
method: POST
40+
display-name: Tool Call
41+
headers: {}
42+
payload: root.WebhookEventToolCall
43+
examples:
44+
- payload:
45+
chat_group_id: chat_group_id
46+
chat_id: chat_id
47+
config_id: null
48+
caller_number: null
49+
custom_session_id: null
50+
timestamp: 1
51+
tool_call_message:
52+
custom_session_id: null
53+
name: name
54+
parameters: parameters
55+
response_required: true
56+
tool_call_id: tool_call_id
57+
tool_type: builtin
58+
docs: Sent when EVI triggers a tool call

.mock/definition/empathic-voice/controlPlane.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ service:
1818
content-type: application/json
1919
errors:
2020
- root.UnprocessableEntityError
21+
examples:
22+
- path-parameters:
23+
chat_id: chat_id
24+
request:
25+
type: session_settings
2126
source:
2227
openapi: evi-openapi.json
2328
channel:
@@ -30,6 +35,10 @@ channel:
3035
been started with `allow_connection=true`. The connection can be used to
3136
send and receive the same messages as the original chat, with the exception
3237
that `audio_input` messages are not allowed.
38+
path-parameters:
39+
chat_id:
40+
type: string
41+
docs: The ID of the chat to connect to.
3342
query-parameters:
3443
access_token:
3544
type: optional<string>

0 commit comments

Comments
 (0)