hume 0.12.2 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (289) hide show
  1. package/.mock/definition/empathic-voice/__package__.yml +667 -712
  2. package/.mock/definition/empathic-voice/chat.yml +29 -23
  3. package/.mock/definition/empathic-voice/chatWebhooks.yml +3 -3
  4. package/.mock/definition/tts/__package__.yml +70 -87
  5. package/.mock/fern.config.json +1 -1
  6. package/api/resources/empathicVoice/client/index.d.ts +0 -1
  7. package/api/resources/empathicVoice/client/index.js +0 -15
  8. package/api/resources/empathicVoice/errors/index.d.ts +0 -1
  9. package/api/resources/empathicVoice/errors/index.js +0 -1
  10. package/api/resources/empathicVoice/types/AssistantEnd.d.ts +2 -2
  11. package/api/resources/empathicVoice/types/AssistantInput.d.ts +2 -2
  12. package/api/resources/empathicVoice/types/AssistantMessage.d.ts +8 -8
  13. package/api/resources/empathicVoice/types/AssistantProsody.d.ts +6 -6
  14. package/api/resources/empathicVoice/types/AudioConfiguration.d.ts +2 -2
  15. package/api/resources/empathicVoice/types/AudioInput.d.ts +6 -6
  16. package/api/resources/empathicVoice/types/AudioOutput.d.ts +4 -4
  17. package/api/resources/empathicVoice/types/BuiltinToolConfig.d.ts +1 -1
  18. package/api/resources/empathicVoice/types/ChatMessage.d.ts +2 -2
  19. package/api/resources/empathicVoice/types/ChatMetadata.d.ts +8 -8
  20. package/api/resources/empathicVoice/types/Context.d.ts +8 -14
  21. package/api/resources/empathicVoice/types/ContextType.d.ts +2 -3
  22. package/api/resources/empathicVoice/types/ContextType.js +1 -2
  23. package/api/resources/empathicVoice/types/LanguageModelType.d.ts +4 -1
  24. package/api/resources/empathicVoice/types/LanguageModelType.js +3 -0
  25. package/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +2 -2
  26. package/api/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +2 -2
  27. package/api/resources/empathicVoice/types/ReturnConfig.d.ts +7 -7
  28. package/api/resources/empathicVoice/types/ReturnPrompt.d.ts +2 -2
  29. package/api/resources/empathicVoice/types/SessionSettings.d.ts +29 -29
  30. package/api/resources/empathicVoice/types/Tool.d.ts +6 -6
  31. package/api/resources/empathicVoice/types/ToolCallMessage.d.ts +6 -6
  32. package/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +16 -16
  33. package/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +8 -8
  34. package/api/resources/empathicVoice/types/UserInput.d.ts +2 -2
  35. package/api/resources/empathicVoice/types/UserInterruption.d.ts +4 -4
  36. package/api/resources/empathicVoice/types/UserMessage.d.ts +12 -12
  37. package/api/resources/empathicVoice/types/VoiceProvider.d.ts +2 -1
  38. package/api/resources/empathicVoice/types/VoiceProvider.js +1 -0
  39. package/api/resources/empathicVoice/types/WebSocketError.d.ts +10 -10
  40. package/api/resources/empathicVoice/types/WebhookEventChatEnded.d.ts +8 -8
  41. package/api/resources/empathicVoice/types/WebhookEventChatStarted.d.ts +6 -6
  42. package/api/resources/empathicVoice/types/index.d.ts +16 -17
  43. package/api/resources/empathicVoice/types/index.js +16 -17
  44. package/api/resources/tts/client/Client.d.ts +21 -23
  45. package/api/resources/tts/client/Client.js +50 -58
  46. package/api/resources/tts/client/index.d.ts +0 -1
  47. package/api/resources/tts/client/index.js +0 -15
  48. package/api/resources/tts/types/PostedTts.d.ts +8 -8
  49. package/api/resources/tts/types/PostedUtterance.d.ts +6 -6
  50. package/api/resources/tts/types/ReturnGeneration.d.ts +5 -5
  51. package/api/resources/tts/types/ReturnTts.d.ts +1 -1
  52. package/api/resources/tts/types/Snippet.d.ts +6 -6
  53. package/dist/api/resources/empathicVoice/client/index.d.ts +0 -1
  54. package/dist/api/resources/empathicVoice/client/index.js +0 -15
  55. package/dist/api/resources/empathicVoice/errors/index.d.ts +0 -1
  56. package/dist/api/resources/empathicVoice/errors/index.js +0 -1
  57. package/dist/api/resources/empathicVoice/types/AssistantEnd.d.ts +2 -2
  58. package/dist/api/resources/empathicVoice/types/AssistantInput.d.ts +2 -2
  59. package/dist/api/resources/empathicVoice/types/AssistantMessage.d.ts +8 -8
  60. package/dist/api/resources/empathicVoice/types/AssistantProsody.d.ts +6 -6
  61. package/dist/api/resources/empathicVoice/types/AudioConfiguration.d.ts +2 -2
  62. package/dist/api/resources/empathicVoice/types/AudioInput.d.ts +6 -6
  63. package/dist/api/resources/empathicVoice/types/AudioOutput.d.ts +4 -4
  64. package/dist/api/resources/empathicVoice/types/BuiltinToolConfig.d.ts +1 -1
  65. package/dist/api/resources/empathicVoice/types/ChatMessage.d.ts +2 -2
  66. package/dist/api/resources/empathicVoice/types/ChatMetadata.d.ts +8 -8
  67. package/dist/api/resources/empathicVoice/types/Context.d.ts +8 -14
  68. package/dist/api/resources/empathicVoice/types/ContextType.d.ts +2 -3
  69. package/dist/api/resources/empathicVoice/types/ContextType.js +1 -2
  70. package/dist/api/resources/empathicVoice/types/LanguageModelType.d.ts +4 -1
  71. package/dist/api/resources/empathicVoice/types/LanguageModelType.js +3 -0
  72. package/dist/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +2 -2
  73. package/dist/api/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +2 -2
  74. package/dist/api/resources/empathicVoice/types/ReturnConfig.d.ts +7 -7
  75. package/dist/api/resources/empathicVoice/types/ReturnPrompt.d.ts +2 -2
  76. package/dist/api/resources/empathicVoice/types/SessionSettings.d.ts +29 -29
  77. package/dist/api/resources/empathicVoice/types/Tool.d.ts +6 -6
  78. package/dist/api/resources/empathicVoice/types/ToolCallMessage.d.ts +6 -6
  79. package/dist/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +16 -16
  80. package/dist/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +8 -8
  81. package/dist/api/resources/empathicVoice/types/UserInput.d.ts +2 -2
  82. package/dist/api/resources/empathicVoice/types/UserInterruption.d.ts +4 -4
  83. package/dist/api/resources/empathicVoice/types/UserMessage.d.ts +12 -12
  84. package/dist/api/resources/empathicVoice/types/VoiceProvider.d.ts +2 -1
  85. package/dist/api/resources/empathicVoice/types/VoiceProvider.js +1 -0
  86. package/dist/api/resources/empathicVoice/types/WebSocketError.d.ts +10 -10
  87. package/dist/api/resources/empathicVoice/types/WebhookEventChatEnded.d.ts +8 -8
  88. package/dist/api/resources/empathicVoice/types/WebhookEventChatStarted.d.ts +6 -6
  89. package/dist/api/resources/empathicVoice/types/index.d.ts +16 -17
  90. package/dist/api/resources/empathicVoice/types/index.js +16 -17
  91. package/dist/api/resources/tts/client/Client.d.ts +21 -23
  92. package/dist/api/resources/tts/client/Client.js +50 -58
  93. package/dist/api/resources/tts/client/index.d.ts +0 -1
  94. package/dist/api/resources/tts/client/index.js +0 -15
  95. package/dist/api/resources/tts/types/PostedTts.d.ts +8 -8
  96. package/dist/api/resources/tts/types/PostedUtterance.d.ts +6 -6
  97. package/dist/api/resources/tts/types/ReturnGeneration.d.ts +5 -5
  98. package/dist/api/resources/tts/types/ReturnTts.d.ts +1 -1
  99. package/dist/api/resources/tts/types/Snippet.d.ts +6 -6
  100. package/dist/serialization/resources/empathicVoice/index.d.ts +0 -1
  101. package/dist/serialization/resources/empathicVoice/index.js +0 -1
  102. package/dist/serialization/resources/empathicVoice/types/AssistantEnd.d.ts +1 -1
  103. package/dist/serialization/resources/empathicVoice/types/AssistantEnd.js +1 -1
  104. package/dist/serialization/resources/empathicVoice/types/AssistantInput.d.ts +1 -1
  105. package/dist/serialization/resources/empathicVoice/types/AssistantInput.js +1 -1
  106. package/dist/serialization/resources/empathicVoice/types/AssistantMessage.d.ts +2 -2
  107. package/dist/serialization/resources/empathicVoice/types/AssistantMessage.js +2 -2
  108. package/dist/serialization/resources/empathicVoice/types/AssistantProsody.d.ts +2 -2
  109. package/dist/serialization/resources/empathicVoice/types/AssistantProsody.js +2 -2
  110. package/dist/serialization/resources/empathicVoice/types/AudioConfiguration.d.ts +1 -1
  111. package/dist/serialization/resources/empathicVoice/types/AudioConfiguration.js +1 -1
  112. package/dist/serialization/resources/empathicVoice/types/AudioInput.d.ts +1 -1
  113. package/dist/serialization/resources/empathicVoice/types/AudioInput.js +1 -1
  114. package/dist/serialization/resources/empathicVoice/types/AudioOutput.d.ts +2 -2
  115. package/dist/serialization/resources/empathicVoice/types/AudioOutput.js +2 -2
  116. package/dist/serialization/resources/empathicVoice/types/BuiltinToolConfig.d.ts +1 -1
  117. package/dist/serialization/resources/empathicVoice/types/BuiltinToolConfig.js +1 -1
  118. package/dist/serialization/resources/empathicVoice/types/ChatMessage.d.ts +1 -1
  119. package/dist/serialization/resources/empathicVoice/types/ChatMessage.js +1 -1
  120. package/dist/serialization/resources/empathicVoice/types/ChatMetadata.d.ts +2 -2
  121. package/dist/serialization/resources/empathicVoice/types/ChatMetadata.js +2 -2
  122. package/dist/serialization/resources/empathicVoice/types/Context.d.ts +1 -1
  123. package/dist/serialization/resources/empathicVoice/types/Context.js +1 -1
  124. package/dist/serialization/resources/empathicVoice/types/ContextType.d.ts +1 -1
  125. package/dist/serialization/resources/empathicVoice/types/ContextType.js +1 -1
  126. package/dist/serialization/resources/empathicVoice/types/LanguageModelType.d.ts +1 -1
  127. package/dist/serialization/resources/empathicVoice/types/LanguageModelType.js +3 -0
  128. package/dist/serialization/resources/empathicVoice/types/PauseAssistantMessage.d.ts +1 -1
  129. package/dist/serialization/resources/empathicVoice/types/PauseAssistantMessage.js +1 -1
  130. package/dist/serialization/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +1 -1
  131. package/dist/serialization/resources/empathicVoice/types/ResumeAssistantMessage.js +1 -1
  132. package/dist/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +8 -8
  133. package/dist/serialization/resources/empathicVoice/types/ReturnConfig.js +8 -8
  134. package/dist/serialization/resources/empathicVoice/types/ReturnPrompt.d.ts +1 -1
  135. package/dist/serialization/resources/empathicVoice/types/ReturnPrompt.js +1 -1
  136. package/dist/serialization/resources/empathicVoice/types/SessionSettings.d.ts +8 -8
  137. package/dist/serialization/resources/empathicVoice/types/SessionSettings.js +8 -8
  138. package/dist/serialization/resources/empathicVoice/types/Tool.d.ts +3 -3
  139. package/dist/serialization/resources/empathicVoice/types/Tool.js +3 -3
  140. package/dist/serialization/resources/empathicVoice/types/ToolCallMessage.d.ts +3 -3
  141. package/dist/serialization/resources/empathicVoice/types/ToolCallMessage.js +3 -3
  142. package/dist/serialization/resources/empathicVoice/types/ToolErrorMessage.d.ts +6 -6
  143. package/dist/serialization/resources/empathicVoice/types/ToolErrorMessage.js +6 -6
  144. package/dist/serialization/resources/empathicVoice/types/ToolResponseMessage.d.ts +2 -2
  145. package/dist/serialization/resources/empathicVoice/types/ToolResponseMessage.js +2 -2
  146. package/dist/serialization/resources/empathicVoice/types/UserInput.d.ts +1 -1
  147. package/dist/serialization/resources/empathicVoice/types/UserInput.js +1 -1
  148. package/dist/serialization/resources/empathicVoice/types/UserInterruption.d.ts +1 -1
  149. package/dist/serialization/resources/empathicVoice/types/UserInterruption.js +1 -1
  150. package/dist/serialization/resources/empathicVoice/types/UserMessage.d.ts +3 -3
  151. package/dist/serialization/resources/empathicVoice/types/UserMessage.js +3 -3
  152. package/dist/serialization/resources/empathicVoice/types/VoiceProvider.d.ts +1 -1
  153. package/dist/serialization/resources/empathicVoice/types/VoiceProvider.js +1 -1
  154. package/dist/serialization/resources/empathicVoice/types/WebSocketError.d.ts +3 -3
  155. package/dist/serialization/resources/empathicVoice/types/WebSocketError.js +3 -3
  156. package/dist/serialization/resources/empathicVoice/types/WebhookEventChatEnded.d.ts +4 -4
  157. package/dist/serialization/resources/empathicVoice/types/WebhookEventChatEnded.js +4 -4
  158. package/dist/serialization/resources/empathicVoice/types/WebhookEventChatStarted.d.ts +3 -3
  159. package/dist/serialization/resources/empathicVoice/types/WebhookEventChatStarted.js +3 -3
  160. package/dist/serialization/resources/empathicVoice/types/index.d.ts +16 -17
  161. package/dist/serialization/resources/empathicVoice/types/index.js +16 -17
  162. package/dist/serialization/resources/tts/types/PostedTts.d.ts +3 -3
  163. package/dist/serialization/resources/tts/types/PostedTts.js +3 -3
  164. package/dist/serialization/resources/tts/types/PostedUtterance.d.ts +2 -2
  165. package/dist/serialization/resources/tts/types/PostedUtterance.js +2 -2
  166. package/dist/serialization/resources/tts/types/ReturnGeneration.d.ts +3 -3
  167. package/dist/serialization/resources/tts/types/ReturnGeneration.js +3 -3
  168. package/dist/serialization/resources/tts/types/ReturnTts.d.ts +1 -1
  169. package/dist/serialization/resources/tts/types/ReturnTts.js +1 -1
  170. package/dist/serialization/resources/tts/types/Snippet.d.ts +3 -3
  171. package/dist/serialization/resources/tts/types/Snippet.js +3 -3
  172. package/dist/version.d.ts +1 -1
  173. package/dist/version.js +1 -1
  174. package/package.json +1 -1
  175. package/reference.md +24 -78
  176. package/serialization/resources/empathicVoice/index.d.ts +0 -1
  177. package/serialization/resources/empathicVoice/index.js +0 -1
  178. package/serialization/resources/empathicVoice/types/AssistantEnd.d.ts +1 -1
  179. package/serialization/resources/empathicVoice/types/AssistantEnd.js +1 -1
  180. package/serialization/resources/empathicVoice/types/AssistantInput.d.ts +1 -1
  181. package/serialization/resources/empathicVoice/types/AssistantInput.js +1 -1
  182. package/serialization/resources/empathicVoice/types/AssistantMessage.d.ts +2 -2
  183. package/serialization/resources/empathicVoice/types/AssistantMessage.js +2 -2
  184. package/serialization/resources/empathicVoice/types/AssistantProsody.d.ts +2 -2
  185. package/serialization/resources/empathicVoice/types/AssistantProsody.js +2 -2
  186. package/serialization/resources/empathicVoice/types/AudioConfiguration.d.ts +1 -1
  187. package/serialization/resources/empathicVoice/types/AudioConfiguration.js +1 -1
  188. package/serialization/resources/empathicVoice/types/AudioInput.d.ts +1 -1
  189. package/serialization/resources/empathicVoice/types/AudioInput.js +1 -1
  190. package/serialization/resources/empathicVoice/types/AudioOutput.d.ts +2 -2
  191. package/serialization/resources/empathicVoice/types/AudioOutput.js +2 -2
  192. package/serialization/resources/empathicVoice/types/BuiltinToolConfig.d.ts +1 -1
  193. package/serialization/resources/empathicVoice/types/BuiltinToolConfig.js +1 -1
  194. package/serialization/resources/empathicVoice/types/ChatMessage.d.ts +1 -1
  195. package/serialization/resources/empathicVoice/types/ChatMessage.js +1 -1
  196. package/serialization/resources/empathicVoice/types/ChatMetadata.d.ts +2 -2
  197. package/serialization/resources/empathicVoice/types/ChatMetadata.js +2 -2
  198. package/serialization/resources/empathicVoice/types/Context.d.ts +1 -1
  199. package/serialization/resources/empathicVoice/types/Context.js +1 -1
  200. package/serialization/resources/empathicVoice/types/ContextType.d.ts +1 -1
  201. package/serialization/resources/empathicVoice/types/ContextType.js +1 -1
  202. package/serialization/resources/empathicVoice/types/LanguageModelType.d.ts +1 -1
  203. package/serialization/resources/empathicVoice/types/LanguageModelType.js +3 -0
  204. package/serialization/resources/empathicVoice/types/PauseAssistantMessage.d.ts +1 -1
  205. package/serialization/resources/empathicVoice/types/PauseAssistantMessage.js +1 -1
  206. package/serialization/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +1 -1
  207. package/serialization/resources/empathicVoice/types/ResumeAssistantMessage.js +1 -1
  208. package/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +8 -8
  209. package/serialization/resources/empathicVoice/types/ReturnConfig.js +8 -8
  210. package/serialization/resources/empathicVoice/types/ReturnPrompt.d.ts +1 -1
  211. package/serialization/resources/empathicVoice/types/ReturnPrompt.js +1 -1
  212. package/serialization/resources/empathicVoice/types/SessionSettings.d.ts +8 -8
  213. package/serialization/resources/empathicVoice/types/SessionSettings.js +8 -8
  214. package/serialization/resources/empathicVoice/types/Tool.d.ts +3 -3
  215. package/serialization/resources/empathicVoice/types/Tool.js +3 -3
  216. package/serialization/resources/empathicVoice/types/ToolCallMessage.d.ts +3 -3
  217. package/serialization/resources/empathicVoice/types/ToolCallMessage.js +3 -3
  218. package/serialization/resources/empathicVoice/types/ToolErrorMessage.d.ts +6 -6
  219. package/serialization/resources/empathicVoice/types/ToolErrorMessage.js +6 -6
  220. package/serialization/resources/empathicVoice/types/ToolResponseMessage.d.ts +2 -2
  221. package/serialization/resources/empathicVoice/types/ToolResponseMessage.js +2 -2
  222. package/serialization/resources/empathicVoice/types/UserInput.d.ts +1 -1
  223. package/serialization/resources/empathicVoice/types/UserInput.js +1 -1
  224. package/serialization/resources/empathicVoice/types/UserInterruption.d.ts +1 -1
  225. package/serialization/resources/empathicVoice/types/UserInterruption.js +1 -1
  226. package/serialization/resources/empathicVoice/types/UserMessage.d.ts +3 -3
  227. package/serialization/resources/empathicVoice/types/UserMessage.js +3 -3
  228. package/serialization/resources/empathicVoice/types/VoiceProvider.d.ts +1 -1
  229. package/serialization/resources/empathicVoice/types/VoiceProvider.js +1 -1
  230. package/serialization/resources/empathicVoice/types/WebSocketError.d.ts +3 -3
  231. package/serialization/resources/empathicVoice/types/WebSocketError.js +3 -3
  232. package/serialization/resources/empathicVoice/types/WebhookEventChatEnded.d.ts +4 -4
  233. package/serialization/resources/empathicVoice/types/WebhookEventChatEnded.js +4 -4
  234. package/serialization/resources/empathicVoice/types/WebhookEventChatStarted.d.ts +3 -3
  235. package/serialization/resources/empathicVoice/types/WebhookEventChatStarted.js +3 -3
  236. package/serialization/resources/empathicVoice/types/index.d.ts +16 -17
  237. package/serialization/resources/empathicVoice/types/index.js +16 -17
  238. package/serialization/resources/tts/types/PostedTts.d.ts +3 -3
  239. package/serialization/resources/tts/types/PostedTts.js +3 -3
  240. package/serialization/resources/tts/types/PostedUtterance.d.ts +2 -2
  241. package/serialization/resources/tts/types/PostedUtterance.js +2 -2
  242. package/serialization/resources/tts/types/ReturnGeneration.d.ts +3 -3
  243. package/serialization/resources/tts/types/ReturnGeneration.js +3 -3
  244. package/serialization/resources/tts/types/ReturnTts.d.ts +1 -1
  245. package/serialization/resources/tts/types/ReturnTts.js +1 -1
  246. package/serialization/resources/tts/types/Snippet.d.ts +3 -3
  247. package/serialization/resources/tts/types/Snippet.js +3 -3
  248. package/version.d.ts +1 -1
  249. package/version.js +1 -1
  250. package/api/resources/empathicVoice/client/requests/BodyCustomLanguageModelSupportsToolUseV0EviCustomLanguageModelSupportsToolUsePost.d.ts +0 -12
  251. package/api/resources/empathicVoice/client/requests/BodyCustomLanguageModelSupportsToolUseV0EviCustomLanguageModelSupportsToolUsePost.js +0 -5
  252. package/api/resources/empathicVoice/client/requests/index.d.ts +0 -1
  253. package/api/resources/empathicVoice/client/requests/index.js +0 -2
  254. package/api/resources/empathicVoice/errors/UnprocessableEntityError.d.ts +0 -9
  255. package/api/resources/empathicVoice/errors/UnprocessableEntityError.js +0 -52
  256. package/api/resources/empathicVoice/types/SupportsToolUse.d.ts +0 -7
  257. package/api/resources/empathicVoice/types/SupportsToolUse.js +0 -5
  258. package/api/resources/tts/client/requests/SynthesizeJsonRequest.d.ts +0 -36
  259. package/api/resources/tts/client/requests/SynthesizeJsonRequest.js +0 -5
  260. package/api/resources/tts/client/requests/index.d.ts +0 -1
  261. package/api/resources/tts/client/requests/index.js +0 -2
  262. package/dist/api/resources/empathicVoice/client/requests/BodyCustomLanguageModelSupportsToolUseV0EviCustomLanguageModelSupportsToolUsePost.d.ts +0 -12
  263. package/dist/api/resources/empathicVoice/client/requests/BodyCustomLanguageModelSupportsToolUseV0EviCustomLanguageModelSupportsToolUsePost.js +0 -5
  264. package/dist/api/resources/empathicVoice/client/requests/index.d.ts +0 -1
  265. package/dist/api/resources/empathicVoice/client/requests/index.js +0 -2
  266. package/dist/api/resources/empathicVoice/errors/UnprocessableEntityError.d.ts +0 -9
  267. package/dist/api/resources/empathicVoice/errors/UnprocessableEntityError.js +0 -52
  268. package/dist/api/resources/empathicVoice/types/SupportsToolUse.d.ts +0 -7
  269. package/dist/api/resources/empathicVoice/types/SupportsToolUse.js +0 -5
  270. package/dist/api/resources/tts/client/requests/SynthesizeJsonRequest.d.ts +0 -36
  271. package/dist/api/resources/tts/client/requests/SynthesizeJsonRequest.js +0 -5
  272. package/dist/api/resources/tts/client/requests/index.d.ts +0 -1
  273. package/dist/api/resources/tts/client/requests/index.js +0 -2
  274. package/dist/serialization/resources/empathicVoice/client/index.d.ts +0 -1
  275. package/dist/serialization/resources/empathicVoice/client/index.js +0 -17
  276. package/dist/serialization/resources/empathicVoice/client/requests/BodyCustomLanguageModelSupportsToolUseV0EviCustomLanguageModelSupportsToolUsePost.d.ts +0 -12
  277. package/dist/serialization/resources/empathicVoice/client/requests/BodyCustomLanguageModelSupportsToolUseV0EviCustomLanguageModelSupportsToolUsePost.js +0 -43
  278. package/dist/serialization/resources/empathicVoice/client/requests/index.d.ts +0 -1
  279. package/dist/serialization/resources/empathicVoice/client/requests/index.js +0 -5
  280. package/dist/serialization/resources/empathicVoice/types/SupportsToolUse.d.ts +0 -13
  281. package/dist/serialization/resources/empathicVoice/types/SupportsToolUse.js +0 -44
  282. package/serialization/resources/empathicVoice/client/index.d.ts +0 -1
  283. package/serialization/resources/empathicVoice/client/index.js +0 -17
  284. package/serialization/resources/empathicVoice/client/requests/BodyCustomLanguageModelSupportsToolUseV0EviCustomLanguageModelSupportsToolUsePost.d.ts +0 -12
  285. package/serialization/resources/empathicVoice/client/requests/BodyCustomLanguageModelSupportsToolUseV0EviCustomLanguageModelSupportsToolUsePost.js +0 -43
  286. package/serialization/resources/empathicVoice/client/requests/index.d.ts +0 -1
  287. package/serialization/resources/empathicVoice/client/requests/index.js +0 -5
  288. package/serialization/resources/empathicVoice/types/SupportsToolUse.d.ts +0 -13
  289. package/serialization/resources/empathicVoice/types/SupportsToolUse.js +0 -44
@@ -3,24 +3,18 @@
3
3
  */
4
4
  import * as Hume from "../../../index";
5
5
  export interface Context {
6
- /**
7
- * The context to be injected into the conversation. Helps inform the LLM's response by providing relevant information about the ongoing conversation.
8
- *
9
- * This text will be appended to the end of user messages based on the chosen persistence level. For example, if you want to remind EVI of its role as a helpful weather assistant, the context you insert will be appended to the end of user messages as `{Context: You are a helpful weather assistant}`.
10
- */
11
- text: string;
12
6
  /**
13
7
  * The persistence level of the injected context. Specifies how long the injected context will remain active in the session.
14
8
  *
15
- * There are three possible context types:
16
- *
17
- * - **Persistent**: The context is appended to all user messages for the duration of the session.
18
- *
19
- * - **Temporary**: The context is appended only to the next user message.
9
+ * - **Temporary**: Context that is only applied to the following assistant response.
20
10
  *
21
- * - **Editable**: The original context is updated to reflect the new context.
22
- *
23
- * If the type is not specified, it will default to `temporary`.
11
+ * - **Persistent**: Context that is applied to all subsequent assistant responses for the remainder of the Chat.
24
12
  */
25
13
  type?: Hume.empathicVoice.ContextType;
14
+ /**
15
+ * The context to be injected into the conversation. Helps inform the LLM's response by providing relevant information about the ongoing conversation.
16
+ *
17
+ * This text will be appended to the end of [user_messages](/reference/speech-to-speech-evi/chat#receive.UserMessage.message.content) based on the chosen persistence level. For example, if you want to remind EVI of its role as a helpful weather assistant, the context you insert will be appended to the end of user messages as `{Context: You are a helpful weather assistant}`.
18
+ */
19
+ text: string;
26
20
  }
@@ -1,9 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type ContextType = "editable" | "persistent" | "temporary";
4
+ export type ContextType = "temporary" | "persistent";
5
5
  export declare const ContextType: {
6
- readonly Editable: "editable";
7
- readonly Persistent: "persistent";
8
6
  readonly Temporary: "temporary";
7
+ readonly Persistent: "persistent";
9
8
  };
@@ -5,7 +5,6 @@
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ContextType = void 0;
7
7
  exports.ContextType = {
8
- Editable: "editable",
9
- Persistent: "persistent",
10
8
  Temporary: "temporary",
9
+ Persistent: "persistent",
11
10
  };
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type LanguageModelType = "claude-3-7-sonnet-latest" | "claude-3-5-sonnet-latest" | "claude-3-5-haiku-latest" | "claude-3-5-sonnet-20240620" | "claude-3-opus-20240229" | "claude-3-sonnet-20240229" | "claude-3-haiku-20240307" | "claude-sonnet-4-20250514" | "us.anthropic.claude-3-5-haiku-20241022-v1:0" | "us.anthropic.claude-3-5-sonnet-20240620-v1:0" | "us.anthropic.claude-3-haiku-20240307-v1:0" | "gpt-oss-120b" | "qwen-3-235b-a22b" | "qwen-3-235b-a22b-instruct-2507" | "qwen-3-235b-a22b-thinking-2507" | "gemini-1.5-pro" | "gemini-1.5-flash" | "gemini-1.5-pro-002" | "gemini-1.5-flash-002" | "gemini-2.0-flash" | "gemini-2.5-flash" | "gemini-2.5-flash-preview-04-17" | "gpt-4-turbo" | "gpt-4-turbo-preview" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo" | "gpt-4o" | "gpt-4o-mini" | "gpt-4.1" | "gemma-7b-it" | "llama3-8b-8192" | "llama3-70b-8192" | "llama-3.1-70b-versatile" | "llama-3.3-70b-versatile" | "llama-3.1-8b-instant" | "moonshotai/kimi-k2-instruct" | "accounts/fireworks/models/mixtral-8x7b-instruct" | "accounts/fireworks/models/llama-v3p1-405b-instruct" | "accounts/fireworks/models/llama-v3p1-70b-instruct" | "accounts/fireworks/models/llama-v3p1-8b-instruct" | "sonar" | "sonar-pro" | "sambanova" | "DeepSeek-R1-Distill-Llama-70B" | "Llama-4-Maverick-17B-128E-Instruct" | "Qwen3-32B" | "ellm" | "custom-language-model" | "hume-evi-3-web-search";
4
+ export type LanguageModelType = "claude-3-7-sonnet-latest" | "claude-3-5-sonnet-latest" | "claude-3-5-haiku-latest" | "claude-3-5-sonnet-20240620" | "claude-3-opus-20240229" | "claude-3-sonnet-20240229" | "claude-3-haiku-20240307" | "claude-sonnet-4-20250514" | "us.anthropic.claude-3-5-haiku-20241022-v1:0" | "us.anthropic.claude-3-5-sonnet-20240620-v1:0" | "us.anthropic.claude-3-haiku-20240307-v1:0" | "gpt-oss-120b" | "qwen-3-235b-a22b" | "qwen-3-235b-a22b-instruct-2507" | "qwen-3-235b-a22b-thinking-2507" | "gemini-1.5-pro" | "gemini-1.5-flash" | "gemini-1.5-pro-002" | "gemini-1.5-flash-002" | "gemini-2.0-flash" | "gemini-2.5-flash" | "gemini-2.5-flash-preview-04-17" | "gpt-4-turbo" | "gpt-4-turbo-preview" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo" | "gpt-4o" | "gpt-4o-mini" | "gpt-4.1" | "gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gemma-7b-it" | "llama3-8b-8192" | "llama3-70b-8192" | "llama-3.1-70b-versatile" | "llama-3.3-70b-versatile" | "llama-3.1-8b-instant" | "moonshotai/kimi-k2-instruct" | "accounts/fireworks/models/mixtral-8x7b-instruct" | "accounts/fireworks/models/llama-v3p1-405b-instruct" | "accounts/fireworks/models/llama-v3p1-70b-instruct" | "accounts/fireworks/models/llama-v3p1-8b-instruct" | "sonar" | "sonar-pro" | "sambanova" | "DeepSeek-R1-Distill-Llama-70B" | "Llama-4-Maverick-17B-128E-Instruct" | "Qwen3-32B" | "ellm" | "custom-language-model" | "hume-evi-3-web-search";
5
5
  export declare const LanguageModelType: {
6
6
  readonly Claude37SonnetLatest: "claude-3-7-sonnet-latest";
7
7
  readonly Claude35SonnetLatest: "claude-3-5-sonnet-latest";
@@ -32,6 +32,9 @@ export declare const LanguageModelType: {
32
32
  readonly Gpt4O: "gpt-4o";
33
33
  readonly Gpt4OMini: "gpt-4o-mini";
34
34
  readonly Gpt41: "gpt-4.1";
35
+ readonly Gpt5: "gpt-5";
36
+ readonly Gpt5Mini: "gpt-5-mini";
37
+ readonly Gpt5Nano: "gpt-5-nano";
35
38
  readonly Gemma7BIt: "gemma-7b-it";
36
39
  readonly Llama38B8192: "llama3-8b-8192";
37
40
  readonly Llama370B8192: "llama3-70b-8192";
@@ -34,6 +34,9 @@ exports.LanguageModelType = {
34
34
  Gpt4O: "gpt-4o",
35
35
  Gpt4OMini: "gpt-4o-mini",
36
36
  Gpt41: "gpt-4.1",
37
+ Gpt5: "gpt-5",
38
+ Gpt5Mini: "gpt-5-mini",
39
+ Gpt5Nano: "gpt-5-nano",
37
40
  Gemma7BIt: "gemma-7b-it",
38
41
  Llama38B8192: "llama3-8b-8192",
39
42
  Llama370B8192: "llama3-70b-8192",
@@ -5,12 +5,12 @@
5
5
  * Pause responses from EVI. Chat history is still saved and sent after resuming.
6
6
  */
7
7
  export interface PauseAssistantMessage {
8
- /** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
9
- customSessionId?: string;
10
8
  /**
11
9
  * The type of message sent through the socket; must be `pause_assistant_message` for our server to correctly identify and process it as a Pause Assistant message.
12
10
  *
13
11
  * Once this message is sent, EVI will not respond until a [Resume Assistant message](/reference/empathic-voice-interface-evi/chat/chat#send.ResumeAssistantMessage.type) is sent. When paused, EVI won’t respond, but transcriptions of your audio inputs will still be recorded.
14
12
  */
15
13
  type: "pause_assistant_message";
14
+ /** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
15
+ customSessionId?: string;
16
16
  }
@@ -5,12 +5,12 @@
5
5
  * Resume responses from EVI. Chat history sent while paused will now be sent.
6
6
  */
7
7
  export interface ResumeAssistantMessage {
8
- /** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
9
- customSessionId?: string;
10
8
  /**
11
9
  * The type of message sent through the socket; must be `resume_assistant_message` for our server to correctly identify and process it as a Resume Assistant message.
12
10
  *
13
11
  * Upon resuming, if any audio input was sent during the pause, EVI will retain context from all messages sent but only respond to the last user message. (e.g., If you ask EVI two questions while paused and then send a `resume_assistant_message`, EVI will respond to the second question and have added the first question to its conversation context.)
14
12
  */
15
13
  type: "resume_assistant_message";
14
+ /** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
15
+ customSessionId?: string;
16
16
  }
@@ -18,6 +18,10 @@ export interface ReturnConfig {
18
18
  * Version numbers are integer values representing different iterations of the Config. Each update to the Config increments its version number.
19
19
  */
20
20
  version?: number;
21
+ /** List of user-defined tools associated with this Config. */
22
+ tools?: (Hume.empathicVoice.ReturnUserDefinedTool | undefined)[];
23
+ /** An optional description of the Config version. */
24
+ versionDescription?: string;
21
25
  /**
22
26
  * The supplemental language model associated with this Config.
23
27
  *
@@ -33,6 +37,7 @@ export interface ReturnConfig {
33
37
  */
34
38
  eviVersion?: string;
35
39
  timeouts?: Hume.empathicVoice.ReturnTimeoutSpecs;
40
+ nudges?: Hume.empathicVoice.ReturnNudgeSpec;
36
41
  eventMessages?: Hume.empathicVoice.ReturnEventMessageSpecs;
37
42
  /**
38
43
  * The eLLM setup associated with this Config.
@@ -40,17 +45,12 @@ export interface ReturnConfig {
40
45
  * Hume's eLLM (empathic Large Language Model) is a multimodal language model that takes into account both expression measures and language. The eLLM generates short, empathic language responses and guides text-to-speech (TTS) prosody.
41
46
  */
42
47
  ellmModel?: Hume.empathicVoice.ReturnEllmModel;
48
+ voice?: unknown;
49
+ prompt?: Hume.empathicVoice.ReturnPrompt;
43
50
  /** Map of webhooks associated with this config. */
44
51
  webhooks?: (Hume.empathicVoice.ReturnWebhookSpec | undefined)[];
45
- /** An optional description of the Config version. */
46
- versionDescription?: string;
47
52
  /** Time at which the Config was created. Measured in seconds since the Unix epoch. */
48
53
  createdOn?: number;
49
54
  /** Time at which the Config was last modified. Measured in seconds since the Unix epoch. */
50
55
  modifiedOn?: number;
51
- nudges?: Hume.empathicVoice.ReturnNudgeSpec;
52
- voice?: unknown;
53
- prompt?: Hume.empathicVoice.ReturnPrompt;
54
- /** List of user-defined tools associated with this Config. */
55
- tools?: (Hume.empathicVoice.ReturnUserDefinedTool | undefined)[];
56
56
  }
@@ -26,10 +26,10 @@ export interface ReturnPrompt {
26
26
  * Version numbers are integer values representing different iterations of the Prompt. Each update to the Prompt increments its version number.
27
27
  */
28
28
  version: number;
29
- /** Versioning method for a Prompt. Either `FIXED` for using a fixed version number or `LATEST` for auto-updating to the latest version. */
30
- versionType: Hume.empathicVoice.ReturnPromptVersionType;
31
29
  /** An optional description of the Prompt version. */
32
30
  versionDescription?: string;
31
+ /** Versioning method for a Prompt. Either `FIXED` for using a fixed version number or `LATEST` for auto-updating to the latest version. */
32
+ versionType: Hume.empathicVoice.ReturnPromptVersionType;
33
33
  /** Time at which the Prompt was created. Measured in seconds since the Unix epoch. */
34
34
  createdOn: number;
35
35
  /** Time at which the Prompt was last modified. Measured in seconds since the Unix epoch. */
@@ -7,27 +7,13 @@ import * as Hume from "../../../index";
7
7
  */
8
8
  export interface SessionSettings {
9
9
  /**
10
- * Configuration details for the audio input used during the session. Ensures the audio is being correctly set up for processing.
11
- *
12
- * This optional field is only required when the audio input is encoded in PCM Linear 16 (16-bit, little-endian, signed PCM WAV data). For detailed instructions on how to configure session settings for PCM Linear 16 audio, please refer to the [Session Settings guide](/docs/empathic-voice-interface-evi/configuration/session-settings).
13
- */
14
- audio?: Hume.empathicVoice.AudioConfiguration;
15
- /**
16
- * List of built-in tools to enable for the session.
17
- *
18
- * Tools are resources used by EVI to perform various tasks, such as searching the web or calling external APIs. Built-in tools, like web search, are natively integrated, while user-defined tools are created and invoked by the user. To learn more, see our [Tool Use Guide](/docs/empathic-voice-interface-evi/features/tool-use).
19
- *
20
- * Currently, the only built-in tool Hume provides is **Web Search**. When enabled, Web Search equips EVI with the ability to search the web for up-to-date information.
21
- */
22
- builtinTools?: Hume.empathicVoice.BuiltinToolConfig[];
23
- /**
24
- * Allows developers to inject additional context into the conversation, which is appended to the end of user messages for the session.
10
+ * The type of message sent through the socket; must be `session_settings` for our server to correctly identify and process it as a Session Settings message.
25
11
  *
26
- * When included in a Session Settings message, the provided context can be used to remind the LLM of its role in every user message, prevent it from forgetting important details, or add new relevant information to the conversation.
12
+ * Session settings are temporary and apply only to the current Chat session. These settings can be adjusted dynamically based on the requirements of each session to ensure optimal performance and user experience.
27
13
  *
28
- * Set to `null` to disable context injection.
14
+ * For more information, please refer to the [Session Settings guide](/docs/empathic-voice-interface-evi/configuration/session-settings).
29
15
  */
30
- context?: Hume.empathicVoice.Context;
16
+ type: "session_settings";
31
17
  /**
32
18
  * Unique identifier for the session. Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions.
33
19
  *
@@ -36,13 +22,6 @@ export interface SessionSettings {
36
22
  * It is recommended to pass a `custom_session_id` if you are using a Custom Language Model. Please see our guide to [using a custom language model](/docs/empathic-voice-interface-evi/guides/custom-language-model) with EVI to learn more.
37
23
  */
38
24
  customSessionId?: string;
39
- /**
40
- * Third party API key for the supplemental language model.
41
- *
42
- * When provided, EVI will use this key instead of Hume’s API key for the supplemental LLM. This allows you to bypass rate limits and utilize your own API key as needed.
43
- */
44
- languageModelApiKey?: string;
45
- metadata?: Record<string, unknown>;
46
25
  /**
47
26
  * Instructions used to shape EVI’s behavior, responses, and style for the session.
48
27
  *
@@ -53,6 +32,26 @@ export interface SessionSettings {
53
32
  * For help writing a system prompt, see our [Prompting Guide](/docs/empathic-voice-interface-evi/guides/prompting).
54
33
  */
55
34
  systemPrompt?: string;
35
+ /**
36
+ * Field for injecting additional context into the conversation, which is appended to the end of user messages for the session.
37
+ *
38
+ * When included in a Session Settings message, the provided context can be used to remind the LLM of its role in every user message, prevent it from forgetting important details, or add new relevant information to the conversation.
39
+ *
40
+ * Set to `null` to clear injected context.
41
+ */
42
+ context?: Hume.empathicVoice.Context;
43
+ /**
44
+ * Configuration details for the audio input used during the session. Ensures the audio is being correctly set up for processing.
45
+ *
46
+ * This optional field is only required when the audio input is encoded in PCM Linear 16 (16-bit, little-endian, signed PCM WAV data). For detailed instructions on how to configure session settings for PCM Linear 16 audio, please refer to the [Session Settings guide](/docs/empathic-voice-interface-evi/configuration/session-settings).
47
+ */
48
+ audio?: Hume.empathicVoice.AudioConfiguration;
49
+ /**
50
+ * Third party API key for the supplemental language model.
51
+ *
52
+ * When provided, EVI will use this key instead of Hume’s API key for the supplemental LLM. This allows you to bypass rate limits and utilize your own API key as needed.
53
+ */
54
+ languageModelApiKey?: string;
56
55
  /**
57
56
  * List of user-defined tools to enable for the session.
58
57
  *
@@ -60,13 +59,14 @@ export interface SessionSettings {
60
59
  */
61
60
  tools?: Hume.empathicVoice.Tool[];
62
61
  /**
63
- * The type of message sent through the socket; must be `session_settings` for our server to correctly identify and process it as a Session Settings message.
62
+ * List of built-in tools to enable for the session.
64
63
  *
65
- * Session settings are temporary and apply only to the current Chat session. These settings can be adjusted dynamically based on the requirements of each session to ensure optimal performance and user experience.
64
+ * Tools are resources used by EVI to perform various tasks, such as searching the web or calling external APIs. Built-in tools, like web search, are natively integrated, while user-defined tools are created and invoked by the user. To learn more, see our [Tool Use Guide](/docs/empathic-voice-interface-evi/features/tool-use).
66
65
  *
67
- * For more information, please refer to the [Session Settings guide](/docs/empathic-voice-interface-evi/configuration/session-settings).
66
+ * Currently, the only built-in tool Hume provides is **Web Search**. When enabled, Web Search equips EVI with the ability to search the web for up-to-date information.
68
67
  */
69
- type: "session_settings";
68
+ builtinTools?: Hume.empathicVoice.BuiltinToolConfig[];
69
+ metadata?: Record<string, unknown>;
70
70
  /**
71
71
  * This field allows you to assign values to dynamic variables referenced in your system prompt.
72
72
  *
@@ -3,10 +3,8 @@
3
3
  */
4
4
  import * as Hume from "../../../index";
5
5
  export interface Tool {
6
- /** An optional description of what the tool does, used by the supplemental LLM to choose when and how to call the function. */
7
- description?: string;
8
- /** Optional text passed to the supplemental LLM if the tool call fails. The LLM then uses this text to generate a response back to the user, ensuring continuity in the conversation. */
9
- fallbackContent?: string;
6
+ /** Type of tool. Set to `function` for user-defined tools. */
7
+ type: Hume.empathicVoice.ToolType;
10
8
  /** Name of the user-defined tool to be enabled. */
11
9
  name: string;
12
10
  /**
@@ -15,6 +13,8 @@ export interface Tool {
15
13
  * These parameters define the inputs needed for the tool’s execution, including the expected data type and description for each input field. Structured as a JSON schema, this format ensures the tool receives data in the expected format.
16
14
  */
17
15
  parameters: string;
18
- /** Type of tool. Set to `function` for user-defined tools. */
19
- type: Hume.empathicVoice.ToolType;
16
+ /** An optional description of what the tool does, used by the supplemental LLM to choose when and how to call the function. */
17
+ description?: string;
18
+ /** Optional text passed to the supplemental LLM if the tool call fails. The LLM then uses this text to generate a response back to the user, ensuring continuity in the conversation. */
19
+ fallbackContent?: string;
20
20
  }
@@ -6,8 +6,6 @@ import * as Hume from "../../../index";
6
6
  * When provided, the output is a tool call.
7
7
  */
8
8
  export interface ToolCallMessage {
9
- /** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
10
- customSessionId?: string;
11
9
  /** Name of the tool called. */
12
10
  name: string;
13
11
  /**
@@ -16,20 +14,22 @@ export interface ToolCallMessage {
16
14
  * These parameters define the inputs needed for the tool’s execution, including the expected data type and description for each input field. Structured as a stringified JSON schema, this format ensures the tool receives data in the expected format.
17
15
  */
18
16
  parameters: string;
19
- /** Indicates whether a response to the tool call is required from the developer, either in the form of a [Tool Response message](/reference/empathic-voice-interface-evi/chat/chat#send.ToolResponseMessage.type) or a [Tool Error message](/reference/empathic-voice-interface-evi/chat/chat#send.ToolErrorMessage.type). */
20
- responseRequired: boolean;
21
17
  /**
22
18
  * The unique identifier for a specific tool call instance.
23
19
  *
24
20
  * This ID is used to track the request and response of a particular tool invocation, ensuring that the correct response is linked to the appropriate request.
25
21
  */
26
22
  toolCallId: string;
27
- /** Type of tool called. Either `builtin` for natively implemented tools, like web search, or `function` for user-defined tools. */
28
- toolType?: Hume.empathicVoice.ToolType;
29
23
  /**
30
24
  * The type of message sent through the socket; for a Tool Call message, this must be `tool_call`.
31
25
  *
32
26
  * This message indicates that the supplemental LLM has detected a need to invoke the specified tool.
33
27
  */
34
28
  type: "tool_call";
29
+ /** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
30
+ customSessionId?: string;
31
+ /** Type of tool called. Either `builtin` for natively implemented tools, like web search, or `function` for user-defined tools. */
32
+ toolType?: Hume.empathicVoice.ToolType;
33
+ /** Indicates whether a response to the tool call is required from the developer, either in the form of a [Tool Response message](/reference/empathic-voice-interface-evi/chat/chat#send.ToolResponseMessage.type) or a [Tool Error message](/reference/empathic-voice-interface-evi/chat/chat#send.ToolErrorMessage.type). */
34
+ responseRequired: boolean;
35
35
  }
@@ -6,28 +6,28 @@ import * as Hume from "../../../index";
6
6
  * When provided, the output is a function call error.
7
7
  */
8
8
  export interface ToolErrorMessage {
9
- /** Error code. Identifies the type of error encountered. */
10
- code?: string;
11
- /** Optional text passed to the supplemental LLM in place of the tool call result. The LLM then uses this text to generate a response back to the user, ensuring continuity in the conversation if the tool errors. */
12
- content?: string;
13
- /** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
14
- customSessionId?: string;
15
- /** Error message from the tool call, not exposed to the LLM or user. */
16
- error: string;
17
- /** Indicates the severity of an error; for a Tool Error message, this must be `warn` to signal an unexpected event. */
18
- level?: Hume.empathicVoice.ErrorLevel;
19
9
  /**
20
- * The unique identifier for a specific tool call instance.
10
+ * The type of message sent through the socket; for a Tool Error message, this must be `tool_error`.
21
11
  *
22
- * This ID is used to track the request and response of a particular tool invocation, ensuring that the Tool Error message is linked to the appropriate tool call request. The specified `tool_call_id` must match the one received in the [Tool Call message](/reference/empathic-voice-interface-evi/chat/chat#receive.ToolCallMessage.type).
12
+ * Upon receiving a [Tool Call message](/reference/empathic-voice-interface-evi/chat/chat#receive.ToolCallMessage.type) and failing to invoke the function, this message is sent to notify EVI of the tool's failure.
23
13
  */
24
- toolCallId: string;
14
+ type: "tool_error";
15
+ /** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
16
+ customSessionId?: string;
25
17
  /** Type of tool called. Either `builtin` for natively implemented tools, like web search, or `function` for user-defined tools. */
26
18
  toolType?: Hume.empathicVoice.ToolType;
27
19
  /**
28
- * The type of message sent through the socket; for a Tool Error message, this must be `tool_error`.
20
+ * The unique identifier for a specific tool call instance.
29
21
  *
30
- * Upon receiving a [Tool Call message](/reference/empathic-voice-interface-evi/chat/chat#receive.ToolCallMessage.type) and failing to invoke the function, this message is sent to notify EVI of the tool's failure.
22
+ * This ID is used to track the request and response of a particular tool invocation, ensuring that the Tool Error message is linked to the appropriate tool call request. The specified `tool_call_id` must match the one received in the [Tool Call message](/reference/empathic-voice-interface-evi/chat/chat#receive.ToolCallMessage.type).
31
23
  */
32
- type: "tool_error";
24
+ toolCallId: string;
25
+ /** Optional text passed to the supplemental LLM in place of the tool call result. The LLM then uses this text to generate a response back to the user, ensuring continuity in the conversation if the tool errors. */
26
+ content?: string;
27
+ /** Error message from the tool call, not exposed to the LLM or user. */
28
+ error: string;
29
+ /** Error code. Identifies the type of error encountered. */
30
+ code?: string;
31
+ /** Indicates the severity of an error; for a Tool Error message, this must be `warn` to signal an unexpected event. */
32
+ level?: Hume.empathicVoice.ErrorLevel;
33
33
  }
@@ -6,8 +6,12 @@ import * as Hume from "../../../index";
6
6
  * When provided, the output is a function call response.
7
7
  */
8
8
  export interface ToolResponseMessage {
9
- /** Return value of the tool call. Contains the output generated by the tool to pass back to EVI. */
10
- content: string;
9
+ /**
10
+ * The type of message sent through the socket; for a Tool Response message, this must be `tool_response`.
11
+ *
12
+ * Upon receiving a [Tool Call message](/reference/empathic-voice-interface-evi/chat/chat#receive.ToolCallMessage.type) and successfully invoking the function, this message is sent to convey the result of the function call back to EVI.
13
+ */
14
+ type: "tool_response";
11
15
  /** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
12
16
  customSessionId?: string;
13
17
  /**
@@ -16,6 +20,8 @@ export interface ToolResponseMessage {
16
20
  * This ID is used to track the request and response of a particular tool invocation, ensuring that the correct response is linked to the appropriate request. The specified `tool_call_id` must match the one received in the [Tool Call message](/reference/empathic-voice-interface-evi/chat/chat#receive.ToolCallMessage.tool_call_id).
17
21
  */
18
22
  toolCallId: string;
23
+ /** Return value of the tool call. Contains the output generated by the tool to pass back to EVI. */
24
+ content: string;
19
25
  /**
20
26
  * Name of the tool.
21
27
  *
@@ -24,10 +30,4 @@ export interface ToolResponseMessage {
24
30
  toolName?: string;
25
31
  /** Type of tool called. Either `builtin` for natively implemented tools, like web search, or `function` for user-defined tools. */
26
32
  toolType?: Hume.empathicVoice.ToolType;
27
- /**
28
- * The type of message sent through the socket; for a Tool Response message, this must be `tool_response`.
29
- *
30
- * Upon receiving a [Tool Call message](/reference/empathic-voice-interface-evi/chat/chat#receive.ToolCallMessage.type) and successfully invoking the function, this message is sent to convey the result of the function call back to EVI.
31
- */
32
- type: "tool_response";
33
33
  }
@@ -7,6 +7,8 @@
7
7
  * Expression measurement results are not available for User Input messages, as the prosody model relies on audio input and cannot process text alone.
8
8
  */
9
9
  export interface UserInput {
10
+ /** The type of message sent through the socket; must be `user_input` for our server to correctly identify and process it as a User Input message. */
11
+ type: "user_input";
10
12
  /** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
11
13
  customSessionId?: string;
12
14
  /**
@@ -15,6 +17,4 @@ export interface UserInput {
15
17
  * Expression measurement results are not available for User Input messages, as the prosody model relies on audio input and cannot process text alone.
16
18
  */
17
19
  text: string;
18
- /** The type of message sent through the socket; must be `user_input` for our server to correctly identify and process it as a User Input message. */
19
- type: "user_input";
20
20
  }
@@ -5,14 +5,14 @@
5
5
  * When provided, the output is an interruption.
6
6
  */
7
7
  export interface UserInterruption {
8
- /** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
9
- customSessionId?: string;
10
- /** Unix timestamp of the detected user interruption. */
11
- time: number;
12
8
  /**
13
9
  * The type of message sent through the socket; for a User Interruption message, this must be `user_interruption`.
14
10
  *
15
11
  * This message indicates the user has interrupted the assistant’s response. EVI detects the interruption in real-time and sends this message to signal the interruption event. This message allows the system to stop the current audio playback, clear the audio queue, and prepare to handle new user input.
16
12
  */
17
13
  type: "user_interruption";
14
+ /** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
15
+ customSessionId?: string;
16
+ /** Unix timestamp of the detected user interruption. */
17
+ time: number;
18
18
  }
@@ -6,8 +6,20 @@ import * as Hume from "../../../index";
6
6
  * When provided, the output is a user message.
7
7
  */
8
8
  export interface UserMessage {
9
+ /**
10
+ * The type of message sent through the socket; for a User Message, this must be `user_message`.
11
+ *
12
+ * This message contains both a transcript of the user’s input and the expression measurement predictions if the input was sent as an [Audio Input message](/reference/empathic-voice-interface-evi/chat/chat#send.AudioInput.type). Expression measurement predictions are not provided for a [User Input message](/reference/empathic-voice-interface-evi/chat/chat#send.UserInput.type), as the prosody model relies on audio input and cannot process text alone.
13
+ */
14
+ type: "user_message";
9
15
  /** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
10
16
  customSessionId?: string;
17
+ /** Transcript of the message. */
18
+ message: Hume.empathicVoice.ChatMessage;
19
+ /** Inference model results. */
20
+ models: Hume.empathicVoice.Inference;
21
+ /** Start and End time of user message. */
22
+ time: Hume.empathicVoice.MillisecondInterval;
11
23
  /** Indicates if this message was inserted into the conversation as text from a [User Input](/reference/empathic-voice-interface-evi/chat/chat#send.UserInput.text) message. */
12
24
  fromText: boolean;
13
25
  /**
@@ -19,16 +31,4 @@ export interface UserMessage {
19
31
  * Interim transcripts are only sent when the [`verbose_transcription`](/reference/empathic-voice-interface-evi/chat/chat#request.query.verbose_transcription) query parameter is set to `true` in the initial handshake.
20
32
  */
21
33
  interim: boolean;
22
- /** Transcript of the message. */
23
- message: Hume.empathicVoice.ChatMessage;
24
- /** Inference model results. */
25
- models: Hume.empathicVoice.Inference;
26
- /** Start and End time of user message. */
27
- time: Hume.empathicVoice.MillisecondInterval;
28
- /**
29
- * The type of message sent through the socket; for a User Message, this must be `user_message`.
30
- *
31
- * This message contains both a transcript of the user’s input and the expression measurement predictions if the input was sent as an [Audio Input message](/reference/empathic-voice-interface-evi/chat/chat#send.AudioInput.type). Expression measurement predictions are not provided for a [User Input message](/reference/empathic-voice-interface-evi/chat/chat#send.UserInput.type), as the prosody model relies on audio input and cannot process text alone.
32
- */
33
- type: "user_message";
34
34
  }
@@ -1,8 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type VoiceProvider = "HUME_AI" | "CUSTOM_VOICE";
4
+ export type VoiceProvider = "HUME_AI" | "CUSTOM_VOICE" | "OCTAVE_COMBINED";
5
5
  export declare const VoiceProvider: {
6
6
  readonly HumeAi: "HUME_AI";
7
7
  readonly CustomVoice: "CUSTOM_VOICE";
8
+ readonly OctaveCombined: "OCTAVE_COMBINED";
8
9
  };
@@ -7,4 +7,5 @@ exports.VoiceProvider = void 0;
7
7
  exports.VoiceProvider = {
8
8
  HumeAi: "HUME_AI",
9
9
  CustomVoice: "CUSTOM_VOICE",
10
+ OctaveCombined: "OCTAVE_COMBINED",
10
11
  };
@@ -5,20 +5,20 @@
5
5
  * When provided, the output is an error message.
6
6
  */
7
7
  export interface WebSocketError {
8
- /** Error code. Identifies the type of error encountered. */
9
- code: string;
10
- /** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
11
- customSessionId?: string;
12
- /** Detailed description of the error. */
13
- message: string;
14
- /** ID of the initiating request. */
15
- requestId?: string;
16
- /** Short, human-readable identifier and description for the error. See a complete list of error slugs on the [Errors page](/docs/resources/errors). */
17
- slug: string;
18
8
  /**
19
9
  * The type of message sent through the socket; for a Web Socket Error message, this must be `error`.
20
10
  *
21
11
  * This message indicates a disruption in the WebSocket connection, such as an unexpected disconnection, protocol error, or data transmission issue.
22
12
  */
23
13
  type: "error";
14
+ /** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
15
+ customSessionId?: string;
16
+ /** Error code. Identifies the type of error encountered. */
17
+ code: string;
18
+ /** Short, human-readable identifier and description for the error. See a complete list of error slugs on the [Errors page](/docs/resources/errors). */
19
+ slug: string;
20
+ /** Detailed description of the error. */
21
+ message: string;
22
+ /** ID of the initiating request. */
23
+ requestId?: string;
24
24
  }
@@ -3,16 +3,16 @@
3
3
  */
4
4
  import * as Hume from "../../../index";
5
5
  export interface WebhookEventChatEnded extends Hume.empathicVoice.WebhookEventBase {
6
- /** Phone number of the caller in E.164 format (e.g., `+12223333333`). This field is included only if the Chat was created via the [Twilio phone calling](/docs/empathic-voice-interface-evi/phone-calling) integration. */
7
- callerNumber?: string;
8
- /** User-defined session ID. Relevant only when employing a [custom language model](/docs/empathic-voice-interface-evi/custom-language-model) in the EVI Config. */
9
- customSessionId?: string;
6
+ /** Always `chat_ended`. */
7
+ eventName?: "chat_ended";
8
+ /** Unix timestamp (in milliseconds) indicating when the session ended. */
9
+ endTime: number;
10
10
  /** Total duration of the session in seconds. */
11
11
  durationSeconds: number;
12
12
  /** Reason for the session's termination. */
13
13
  endReason: Hume.empathicVoice.WebhookEventChatStatus;
14
- /** Unix timestamp (in milliseconds) indicating when the session ended. */
15
- endTime: number;
16
- /** Always `chat_ended`. */
17
- eventName?: "chat_ended";
14
+ /** Phone number of the caller in E.164 format (e.g., `+12223333333`). This field is included only if the Chat was created via the [Twilio phone calling](/docs/empathic-voice-interface-evi/phone-calling) integration. */
15
+ callerNumber?: string;
16
+ /** User-defined session ID. Relevant only when employing a [custom language model](/docs/empathic-voice-interface-evi/custom-language-model) in the EVI Config. */
17
+ customSessionId?: string;
18
18
  }
@@ -3,14 +3,14 @@
3
3
  */
4
4
  import * as Hume from "../../../index";
5
5
  export interface WebhookEventChatStarted extends Hume.empathicVoice.WebhookEventBase {
6
- /** Phone number of the caller in E.164 format (e.g., `+12223333333`). This field is included only if the Chat was created via the [Twilio phone calling](/docs/empathic-voice-interface-evi/phone-calling) integration. */
7
- callerNumber?: string;
8
- /** Indicates whether the chat is the first in a new Chat Group (`new_chat_group`) or the continuation of an existing chat group (`resumed_chat_group`). */
9
- chatStartType: Hume.empathicVoice.WebhookEventChatStartType;
10
- /** User-defined session ID. Relevant only when employing a [custom language model](/docs/empathic-voice-interface-evi/custom-language-model) in the EVI Config. */
11
- customSessionId?: string;
12
6
  /** Always `chat_started`. */
13
7
  eventName?: "chat_started";
14
8
  /** Unix timestamp (in milliseconds) indicating when the session started. */
15
9
  startTime: number;
10
+ /** Indicates whether the chat is the first in a new Chat Group (`new_chat_group`) or the continuation of an existing chat group (`resumed_chat_group`). */
11
+ chatStartType: Hume.empathicVoice.WebhookEventChatStartType;
12
+ /** Phone number of the caller in E.164 format (e.g., `+12223333333`). This field is included only if the Chat was created via the [Twilio phone calling](/docs/empathic-voice-interface-evi/phone-calling) integration. */
13
+ callerNumber?: string;
14
+ /** User-defined session ID. Relevant only when employing a [custom language model](/docs/empathic-voice-interface-evi/custom-language-model) in the EVI Config. */
15
+ customSessionId?: string;
16
16
  }