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.
0 commit comments