hume 0.15.12 → 0.15.13

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 (228) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +11 -3
  3. package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/Client.js +11 -3
  4. package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetAudioRequest.d.ts +1 -1
  5. package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetChatGroupRequest.d.ts +1 -1
  6. package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.ts +1 -1
  7. package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +6 -2
  8. package/dist/cjs/api/resources/empathicVoice/resources/chats/client/Client.d.ts +8 -2
  9. package/dist/cjs/api/resources/empathicVoice/resources/chats/client/Client.js +8 -2
  10. package/dist/cjs/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.ts +1 -1
  11. package/dist/cjs/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +1 -1
  12. package/dist/cjs/api/resources/empathicVoice/resources/configs/client/Client.d.ts +58 -10
  13. package/dist/cjs/api/resources/empathicVoice/resources/configs/client/Client.js +58 -10
  14. package/dist/cjs/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigVersionsRequest.d.ts +1 -1
  15. package/dist/cjs/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigsRequest.d.ts +1 -1
  16. package/dist/cjs/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +3 -2
  17. package/dist/cjs/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +2 -2
  18. package/dist/cjs/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersionDescription.d.ts +1 -1
  19. package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +57 -9
  20. package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/Client.js +57 -9
  21. package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +6 -2
  22. package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +6 -2
  23. package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersionDescription.d.ts +1 -1
  24. package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptVersionsRequest.d.ts +1 -1
  25. package/dist/cjs/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptsRequest.d.ts +1 -1
  26. package/dist/cjs/api/resources/empathicVoice/resources/tools/client/Client.d.ts +57 -9
  27. package/dist/cjs/api/resources/empathicVoice/resources/tools/client/Client.js +57 -9
  28. package/dist/cjs/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.ts +16 -5
  29. package/dist/cjs/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolName.d.ts +8 -1
  30. package/dist/cjs/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.ts +8 -4
  31. package/dist/cjs/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersionDescription.d.ts +1 -1
  32. package/dist/cjs/api/resources/empathicVoice/types/AssistantEnd.d.ts +1 -1
  33. package/dist/cjs/api/resources/empathicVoice/types/AssistantInput.d.ts +3 -1
  34. package/dist/cjs/api/resources/empathicVoice/types/AssistantMessage.d.ts +1 -1
  35. package/dist/cjs/api/resources/empathicVoice/types/AssistantProsody.d.ts +1 -1
  36. package/dist/cjs/api/resources/empathicVoice/types/AudioInput.d.ts +3 -1
  37. package/dist/cjs/api/resources/empathicVoice/types/AudioOutput.d.ts +3 -1
  38. package/dist/cjs/api/resources/empathicVoice/types/ChatMetadata.d.ts +3 -1
  39. package/dist/cjs/api/resources/empathicVoice/types/ConnectSessionSettings.d.ts +4 -2
  40. package/dist/cjs/api/resources/empathicVoice/types/ConnectSessionSettingsAudio.d.ts +3 -3
  41. package/dist/cjs/api/resources/empathicVoice/types/ConnectSessionSettingsContext.d.ts +5 -11
  42. package/dist/cjs/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +3 -1
  43. package/dist/cjs/api/resources/empathicVoice/types/PostedBuiltinTool.d.ts +1 -1
  44. package/dist/cjs/api/resources/empathicVoice/types/PostedEllmModel.d.ts +5 -1
  45. package/dist/cjs/api/resources/empathicVoice/types/PostedEventMessageSpec.d.ts +6 -2
  46. package/dist/cjs/api/resources/empathicVoice/types/PostedEventMessageSpecs.d.ts +3 -1
  47. package/dist/cjs/api/resources/empathicVoice/types/PostedLanguageModel.d.ts +5 -1
  48. package/dist/cjs/api/resources/empathicVoice/types/PostedNudgeSpec.d.ts +2 -2
  49. package/dist/cjs/api/resources/empathicVoice/types/PostedTimeoutSpec.d.ts +6 -2
  50. package/dist/cjs/api/resources/empathicVoice/types/PostedTimeoutSpecs.d.ts +3 -1
  51. package/dist/cjs/api/resources/empathicVoice/types/PostedWebhookEventType.d.ts +5 -1
  52. package/dist/cjs/api/resources/empathicVoice/types/PostedWebhookEventType.js +5 -1
  53. package/dist/cjs/api/resources/empathicVoice/types/PostedWebhookSpec.d.ts +6 -2
  54. package/dist/cjs/api/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +3 -1
  55. package/dist/cjs/api/resources/empathicVoice/types/ReturnBuiltinTool.d.ts +9 -2
  56. package/dist/cjs/api/resources/empathicVoice/types/ReturnChat.d.ts +4 -4
  57. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +9 -5
  58. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +5 -5
  59. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.d.ts +5 -1
  60. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +10 -6
  61. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +7 -3
  62. package/dist/cjs/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +10 -6
  63. package/dist/cjs/api/resources/empathicVoice/types/ReturnConfig.d.ts +17 -7
  64. package/dist/cjs/api/resources/empathicVoice/types/ReturnConfigSpec.d.ts +8 -2
  65. package/dist/cjs/api/resources/empathicVoice/types/ReturnEllmModel.d.ts +5 -1
  66. package/dist/cjs/api/resources/empathicVoice/types/ReturnEventMessageSpec.d.ts +6 -2
  67. package/dist/cjs/api/resources/empathicVoice/types/ReturnEventMessageSpecs.d.ts +3 -1
  68. package/dist/cjs/api/resources/empathicVoice/types/ReturnLanguageModel.d.ts +5 -1
  69. package/dist/cjs/api/resources/empathicVoice/types/ReturnNudgeSpec.d.ts +2 -2
  70. package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +6 -2
  71. package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedChats.d.ts +6 -2
  72. package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +6 -2
  73. package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +6 -2
  74. package/dist/cjs/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +6 -2
  75. package/dist/cjs/api/resources/empathicVoice/types/ReturnPrompt.d.ts +8 -4
  76. package/dist/cjs/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +6 -2
  77. package/dist/cjs/api/resources/empathicVoice/types/ReturnTimeoutSpecs.d.ts +3 -1
  78. package/dist/cjs/api/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +16 -5
  79. package/dist/cjs/api/resources/empathicVoice/types/ReturnWebhookEventType.d.ts +5 -1
  80. package/dist/cjs/api/resources/empathicVoice/types/ReturnWebhookEventType.js +5 -1
  81. package/dist/cjs/api/resources/empathicVoice/types/ReturnWebhookSpec.d.ts +6 -2
  82. package/dist/cjs/api/resources/empathicVoice/types/SessionSettings.d.ts +13 -4
  83. package/dist/cjs/api/resources/empathicVoice/types/ToolCallMessage.d.ts +8 -2
  84. package/dist/cjs/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +3 -1
  85. package/dist/cjs/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +3 -1
  86. package/dist/cjs/api/resources/empathicVoice/types/UserInput.d.ts +1 -1
  87. package/dist/cjs/api/resources/empathicVoice/types/UserInterruption.d.ts +3 -1
  88. package/dist/cjs/api/resources/empathicVoice/types/UserMessage.d.ts +3 -1
  89. package/dist/cjs/api/resources/empathicVoice/types/VoiceId.d.ts +1 -1
  90. package/dist/cjs/api/resources/empathicVoice/types/VoiceName.d.ts +1 -1
  91. package/dist/cjs/api/resources/empathicVoice/types/WebSocketError.d.ts +3 -1
  92. package/dist/cjs/api/resources/empathicVoice/types/WebhookEventChatEnded.d.ts +2 -0
  93. package/dist/cjs/api/resources/empathicVoice/types/WebhookEventChatStarted.d.ts +2 -0
  94. package/dist/cjs/api/resources/empathicVoice/types/WebhookEventToolCall.d.ts +2 -0
  95. package/dist/cjs/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Client.d.ts +2 -0
  96. package/dist/cjs/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Client.js +2 -2
  97. package/dist/cjs/api/resources/tts/resources/voices/client/Client.d.ts +1 -1
  98. package/dist/cjs/api/resources/tts/resources/voices/client/Client.js +1 -1
  99. package/dist/cjs/api/resources/tts/resources/voices/client/requests/VoicesListRequest.d.ts +1 -1
  100. package/dist/cjs/api/resources/tts/types/PostedUtteranceVoiceWithId.d.ts +1 -1
  101. package/dist/cjs/api/resources/tts/types/PostedUtteranceVoiceWithName.d.ts +1 -1
  102. package/dist/cjs/api/resources/tts/types/ReturnPagedVoices.d.ts +5 -1
  103. package/dist/cjs/core/schemas/builders/object/object.js +20 -2
  104. package/dist/cjs/serialization/resources/empathicVoice/types/WebhookEventChatEnded.d.ts +1 -0
  105. package/dist/cjs/serialization/resources/empathicVoice/types/WebhookEventChatEnded.js +1 -0
  106. package/dist/cjs/serialization/resources/empathicVoice/types/WebhookEventChatStarted.d.ts +1 -0
  107. package/dist/cjs/serialization/resources/empathicVoice/types/WebhookEventChatStarted.js +1 -0
  108. package/dist/cjs/serialization/resources/empathicVoice/types/WebhookEventToolCall.d.ts +1 -0
  109. package/dist/cjs/serialization/resources/empathicVoice/types/WebhookEventToolCall.js +1 -0
  110. package/dist/cjs/version.d.ts +1 -1
  111. package/dist/cjs/version.js +1 -1
  112. package/dist/esm/BaseClient.mjs +2 -2
  113. package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/Client.d.mts +11 -3
  114. package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/Client.mjs +11 -3
  115. package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetAudioRequest.d.mts +1 -1
  116. package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetChatGroupRequest.d.mts +1 -1
  117. package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.mts +1 -1
  118. package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.mts +6 -2
  119. package/dist/esm/api/resources/empathicVoice/resources/chats/client/Client.d.mts +8 -2
  120. package/dist/esm/api/resources/empathicVoice/resources/chats/client/Client.mjs +8 -2
  121. package/dist/esm/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.mts +1 -1
  122. package/dist/esm/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.mts +1 -1
  123. package/dist/esm/api/resources/empathicVoice/resources/configs/client/Client.d.mts +58 -10
  124. package/dist/esm/api/resources/empathicVoice/resources/configs/client/Client.mjs +58 -10
  125. package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigVersionsRequest.d.mts +1 -1
  126. package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigsRequest.d.mts +1 -1
  127. package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.mts +3 -2
  128. package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.mts +2 -2
  129. package/dist/esm/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersionDescription.d.mts +1 -1
  130. package/dist/esm/api/resources/empathicVoice/resources/prompts/client/Client.d.mts +57 -9
  131. package/dist/esm/api/resources/empathicVoice/resources/prompts/client/Client.mjs +57 -9
  132. package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.mts +6 -2
  133. package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.mts +6 -2
  134. package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersionDescription.d.mts +1 -1
  135. package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptVersionsRequest.d.mts +1 -1
  136. package/dist/esm/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptsRequest.d.mts +1 -1
  137. package/dist/esm/api/resources/empathicVoice/resources/tools/client/Client.d.mts +57 -9
  138. package/dist/esm/api/resources/empathicVoice/resources/tools/client/Client.mjs +57 -9
  139. package/dist/esm/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.mts +16 -5
  140. package/dist/esm/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolName.d.mts +8 -1
  141. package/dist/esm/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.mts +8 -4
  142. package/dist/esm/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersionDescription.d.mts +1 -1
  143. package/dist/esm/api/resources/empathicVoice/types/AssistantEnd.d.mts +1 -1
  144. package/dist/esm/api/resources/empathicVoice/types/AssistantInput.d.mts +3 -1
  145. package/dist/esm/api/resources/empathicVoice/types/AssistantMessage.d.mts +1 -1
  146. package/dist/esm/api/resources/empathicVoice/types/AssistantProsody.d.mts +1 -1
  147. package/dist/esm/api/resources/empathicVoice/types/AudioInput.d.mts +3 -1
  148. package/dist/esm/api/resources/empathicVoice/types/AudioOutput.d.mts +3 -1
  149. package/dist/esm/api/resources/empathicVoice/types/ChatMetadata.d.mts +3 -1
  150. package/dist/esm/api/resources/empathicVoice/types/ConnectSessionSettings.d.mts +4 -2
  151. package/dist/esm/api/resources/empathicVoice/types/ConnectSessionSettingsAudio.d.mts +3 -3
  152. package/dist/esm/api/resources/empathicVoice/types/ConnectSessionSettingsContext.d.mts +5 -11
  153. package/dist/esm/api/resources/empathicVoice/types/PauseAssistantMessage.d.mts +3 -1
  154. package/dist/esm/api/resources/empathicVoice/types/PostedBuiltinTool.d.mts +1 -1
  155. package/dist/esm/api/resources/empathicVoice/types/PostedEllmModel.d.mts +5 -1
  156. package/dist/esm/api/resources/empathicVoice/types/PostedEventMessageSpec.d.mts +6 -2
  157. package/dist/esm/api/resources/empathicVoice/types/PostedEventMessageSpecs.d.mts +3 -1
  158. package/dist/esm/api/resources/empathicVoice/types/PostedLanguageModel.d.mts +5 -1
  159. package/dist/esm/api/resources/empathicVoice/types/PostedNudgeSpec.d.mts +2 -2
  160. package/dist/esm/api/resources/empathicVoice/types/PostedTimeoutSpec.d.mts +6 -2
  161. package/dist/esm/api/resources/empathicVoice/types/PostedTimeoutSpecs.d.mts +3 -1
  162. package/dist/esm/api/resources/empathicVoice/types/PostedWebhookEventType.d.mts +5 -1
  163. package/dist/esm/api/resources/empathicVoice/types/PostedWebhookEventType.mjs +5 -1
  164. package/dist/esm/api/resources/empathicVoice/types/PostedWebhookSpec.d.mts +6 -2
  165. package/dist/esm/api/resources/empathicVoice/types/ResumeAssistantMessage.d.mts +3 -1
  166. package/dist/esm/api/resources/empathicVoice/types/ReturnBuiltinTool.d.mts +9 -2
  167. package/dist/esm/api/resources/empathicVoice/types/ReturnChat.d.mts +4 -4
  168. package/dist/esm/api/resources/empathicVoice/types/ReturnChatEvent.d.mts +9 -5
  169. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroup.d.mts +5 -5
  170. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.d.mts +5 -1
  171. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.mts +10 -6
  172. package/dist/esm/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.mts +7 -3
  173. package/dist/esm/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.mts +10 -6
  174. package/dist/esm/api/resources/empathicVoice/types/ReturnConfig.d.mts +17 -7
  175. package/dist/esm/api/resources/empathicVoice/types/ReturnConfigSpec.d.mts +8 -2
  176. package/dist/esm/api/resources/empathicVoice/types/ReturnEllmModel.d.mts +5 -1
  177. package/dist/esm/api/resources/empathicVoice/types/ReturnEventMessageSpec.d.mts +6 -2
  178. package/dist/esm/api/resources/empathicVoice/types/ReturnEventMessageSpecs.d.mts +3 -1
  179. package/dist/esm/api/resources/empathicVoice/types/ReturnLanguageModel.d.mts +5 -1
  180. package/dist/esm/api/resources/empathicVoice/types/ReturnNudgeSpec.d.mts +2 -2
  181. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.mts +6 -2
  182. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedChats.d.mts +6 -2
  183. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedConfigs.d.mts +6 -2
  184. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedPrompts.d.mts +6 -2
  185. package/dist/esm/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.mts +6 -2
  186. package/dist/esm/api/resources/empathicVoice/types/ReturnPrompt.d.mts +8 -4
  187. package/dist/esm/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.mts +6 -2
  188. package/dist/esm/api/resources/empathicVoice/types/ReturnTimeoutSpecs.d.mts +3 -1
  189. package/dist/esm/api/resources/empathicVoice/types/ReturnUserDefinedTool.d.mts +16 -5
  190. package/dist/esm/api/resources/empathicVoice/types/ReturnWebhookEventType.d.mts +5 -1
  191. package/dist/esm/api/resources/empathicVoice/types/ReturnWebhookEventType.mjs +5 -1
  192. package/dist/esm/api/resources/empathicVoice/types/ReturnWebhookSpec.d.mts +6 -2
  193. package/dist/esm/api/resources/empathicVoice/types/SessionSettings.d.mts +13 -4
  194. package/dist/esm/api/resources/empathicVoice/types/ToolCallMessage.d.mts +8 -2
  195. package/dist/esm/api/resources/empathicVoice/types/ToolErrorMessage.d.mts +3 -1
  196. package/dist/esm/api/resources/empathicVoice/types/ToolResponseMessage.d.mts +3 -1
  197. package/dist/esm/api/resources/empathicVoice/types/UserInput.d.mts +1 -1
  198. package/dist/esm/api/resources/empathicVoice/types/UserInterruption.d.mts +3 -1
  199. package/dist/esm/api/resources/empathicVoice/types/UserMessage.d.mts +3 -1
  200. package/dist/esm/api/resources/empathicVoice/types/VoiceId.d.mts +1 -1
  201. package/dist/esm/api/resources/empathicVoice/types/VoiceName.d.mts +1 -1
  202. package/dist/esm/api/resources/empathicVoice/types/WebSocketError.d.mts +3 -1
  203. package/dist/esm/api/resources/empathicVoice/types/WebhookEventChatEnded.d.mts +2 -0
  204. package/dist/esm/api/resources/empathicVoice/types/WebhookEventChatStarted.d.mts +2 -0
  205. package/dist/esm/api/resources/empathicVoice/types/WebhookEventToolCall.d.mts +2 -0
  206. package/dist/esm/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Client.d.mts +2 -0
  207. package/dist/esm/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Client.mjs +2 -2
  208. package/dist/esm/api/resources/tts/resources/voices/client/Client.d.mts +1 -1
  209. package/dist/esm/api/resources/tts/resources/voices/client/Client.mjs +1 -1
  210. package/dist/esm/api/resources/tts/resources/voices/client/requests/VoicesListRequest.d.mts +1 -1
  211. package/dist/esm/api/resources/tts/types/PostedUtteranceVoiceWithId.d.mts +1 -1
  212. package/dist/esm/api/resources/tts/types/PostedUtteranceVoiceWithName.d.mts +1 -1
  213. package/dist/esm/api/resources/tts/types/ReturnPagedVoices.d.mts +5 -1
  214. package/dist/esm/core/schemas/builders/object/object.mjs +20 -2
  215. package/dist/esm/serialization/resources/empathicVoice/types/WebhookEventChatEnded.d.mts +1 -0
  216. package/dist/esm/serialization/resources/empathicVoice/types/WebhookEventChatEnded.mjs +1 -0
  217. package/dist/esm/serialization/resources/empathicVoice/types/WebhookEventChatStarted.d.mts +1 -0
  218. package/dist/esm/serialization/resources/empathicVoice/types/WebhookEventChatStarted.mjs +1 -0
  219. package/dist/esm/serialization/resources/empathicVoice/types/WebhookEventToolCall.d.mts +1 -0
  220. package/dist/esm/serialization/resources/empathicVoice/types/WebhookEventToolCall.mjs +1 -0
  221. package/dist/esm/version.d.mts +1 -1
  222. package/dist/esm/version.mjs +1 -1
  223. package/package.json +2 -2
  224. package/reference.md +630 -46
  225. package/dist/cjs/core/fetcher/ResponseWithBody.d.ts +0 -4
  226. package/dist/cjs/core/fetcher/ResponseWithBody.js +0 -6
  227. package/dist/esm/core/fetcher/ResponseWithBody.d.mts +0 -4
  228. package/dist/esm/core/fetcher/ResponseWithBody.mjs +0 -3
@@ -11,6 +11,10 @@ export declare class PromptsClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<PromptsClient.Options>;
12
12
  constructor(options?: PromptsClient.Options);
13
13
  /**
14
+ * Fetches a paginated list of **Prompts**.
15
+ *
16
+ * See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt.
17
+ *
14
18
  * @param {Hume.empathicVoice.PromptsListPromptsRequest} request
15
19
  * @param {PromptsClient.RequestOptions} requestOptions - Request-specific configuration.
16
20
  *
@@ -24,6 +28,10 @@ export declare class PromptsClient {
24
28
  */
25
29
  listPrompts(request?: Hume.empathicVoice.PromptsListPromptsRequest, requestOptions?: PromptsClient.RequestOptions): Promise<core.Page<Hume.empathicVoice.ReturnPrompt | undefined, Hume.empathicVoice.ReturnPagedPrompts>>;
26
30
  /**
31
+ * Creates a **Prompt** that can be added to an [EVI configuration](/reference/speech-to-speech-evi/configs/create-config).
32
+ *
33
+ * See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt.
34
+ *
27
35
  * @param {Hume.empathicVoice.PostedPrompt} request
28
36
  * @param {PromptsClient.RequestOptions} requestOptions - Request-specific configuration.
29
37
  *
@@ -38,6 +46,10 @@ export declare class PromptsClient {
38
46
  createPrompt(request: Hume.empathicVoice.PostedPrompt, requestOptions?: PromptsClient.RequestOptions): core.HttpResponsePromise<Hume.empathicVoice.ReturnPrompt | undefined>;
39
47
  private __createPrompt;
40
48
  /**
49
+ * Fetches a list of a **Prompt's** versions.
50
+ *
51
+ * See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt.
52
+ *
41
53
  * @param {string} id
42
54
  * @param {Hume.empathicVoice.PromptsListPromptVersionsRequest} request
43
55
  * @param {PromptsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -50,7 +62,11 @@ export declare class PromptsClient {
50
62
  listPromptVersions(id: string, request?: Hume.empathicVoice.PromptsListPromptVersionsRequest, requestOptions?: PromptsClient.RequestOptions): core.HttpResponsePromise<Hume.empathicVoice.ReturnPagedPrompts>;
51
63
  private __listPromptVersions;
52
64
  /**
53
- * @param {string} id - Identifier for a prompt. Formatted as a UUID.
65
+ * Updates a **Prompt** by creating a new version of the **Prompt**.
66
+ *
67
+ * See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt.
68
+ *
69
+ * @param {string} id - Identifier for a Prompt. Formatted as a UUID.
54
70
  * @param {Hume.empathicVoice.PostedPromptVersion} request
55
71
  * @param {PromptsClient.RequestOptions} requestOptions - Request-specific configuration.
56
72
  *
@@ -65,7 +81,11 @@ export declare class PromptsClient {
65
81
  createPromptVersion(id: string, request: Hume.empathicVoice.PostedPromptVersion, requestOptions?: PromptsClient.RequestOptions): core.HttpResponsePromise<Hume.empathicVoice.ReturnPrompt | undefined>;
66
82
  private __createPromptVersion;
67
83
  /**
68
- * @param {string} id - Identifier for a prompt. Formatted as a UUID.
84
+ * Deletes a **Prompt** and its versions.
85
+ *
86
+ * See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt.
87
+ *
88
+ * @param {string} id - Identifier for a Prompt. Formatted as a UUID.
69
89
  * @param {PromptsClient.RequestOptions} requestOptions - Request-specific configuration.
70
90
  *
71
91
  * @throws {@link Hume.empathicVoice.BadRequestError}
@@ -76,7 +96,11 @@ export declare class PromptsClient {
76
96
  deletePrompt(id: string, requestOptions?: PromptsClient.RequestOptions): core.HttpResponsePromise<void>;
77
97
  private __deletePrompt;
78
98
  /**
79
- * @param {string} id - Identifier for a prompt. Formatted as a UUID.
99
+ * Updates the name of a **Prompt**.
100
+ *
101
+ * See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt.
102
+ *
103
+ * @param {string} id - Identifier for a Prompt. Formatted as a UUID.
80
104
  * @param {Hume.empathicVoice.PostedPromptName} request
81
105
  * @param {PromptsClient.RequestOptions} requestOptions - Request-specific configuration.
82
106
  *
@@ -90,8 +114,16 @@ export declare class PromptsClient {
90
114
  updatePromptName(id: string, request: Hume.empathicVoice.PostedPromptName, requestOptions?: PromptsClient.RequestOptions): core.HttpResponsePromise<string>;
91
115
  private __updatePromptName;
92
116
  /**
93
- * @param {string} id - Identifier for a prompt. Formatted as a UUID.
94
- * @param {number} version - Version number for a prompt. Version numbers should be integers.
117
+ * Fetches a specified version of a **Prompt**.
118
+ *
119
+ * See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt.
120
+ *
121
+ * @param {string} id - Identifier for a Prompt. Formatted as a UUID.
122
+ * @param {number} version - Version number for a Prompt.
123
+ *
124
+ * Prompts, Configs, Custom Voices, and Tools are versioned. This versioning system supports iterative development, allowing you to progressively refine prompts and revert to previous versions if needed.
125
+ *
126
+ * Version numbers are integer values representing different iterations of the Prompt. Each update to the Prompt increments its version number.
95
127
  * @param {PromptsClient.RequestOptions} requestOptions - Request-specific configuration.
96
128
  *
97
129
  * @throws {@link Hume.empathicVoice.BadRequestError}
@@ -102,8 +134,16 @@ export declare class PromptsClient {
102
134
  getPromptVersion(id: string, version: number, requestOptions?: PromptsClient.RequestOptions): core.HttpResponsePromise<Hume.empathicVoice.ReturnPrompt | undefined>;
103
135
  private __getPromptVersion;
104
136
  /**
105
- * @param {string} id - Identifier for a prompt. Formatted as a UUID.
106
- * @param {number} version - Version number for a prompt. Version numbers should be integers.
137
+ * Deletes a specified version of a **Prompt**.
138
+ *
139
+ * See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt.
140
+ *
141
+ * @param {string} id - Identifier for a Prompt. Formatted as a UUID.
142
+ * @param {number} version - Version number for a Prompt.
143
+ *
144
+ * Prompts, Configs, Custom Voices, and Tools are versioned. This versioning system supports iterative development, allowing you to progressively refine prompts and revert to previous versions if needed.
145
+ *
146
+ * Version numbers are integer values representing different iterations of the Prompt. Each update to the Prompt increments its version number.
107
147
  * @param {PromptsClient.RequestOptions} requestOptions - Request-specific configuration.
108
148
  *
109
149
  * @throws {@link Hume.empathicVoice.BadRequestError}
@@ -114,8 +154,16 @@ export declare class PromptsClient {
114
154
  deletePromptVersion(id: string, version: number, requestOptions?: PromptsClient.RequestOptions): core.HttpResponsePromise<void>;
115
155
  private __deletePromptVersion;
116
156
  /**
117
- * @param {string} id - Identifier for a prompt. Formatted as a UUID.
118
- * @param {number} version - Version number for a prompt. Version numbers should be integers.
157
+ * Updates the description of a **Prompt**.
158
+ *
159
+ * See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt.
160
+ *
161
+ * @param {string} id - Identifier for a Prompt. Formatted as a UUID.
162
+ * @param {number} version - Version number for a Prompt.
163
+ *
164
+ * Prompts, Configs, Custom Voices, and Tools are versioned. This versioning system supports iterative development, allowing you to progressively refine prompts and revert to previous versions if needed.
165
+ *
166
+ * Version numbers are integer values representing different iterations of the Prompt. Each update to the Prompt increments its version number.
119
167
  * @param {Hume.empathicVoice.PostedPromptVersionDescription} request
120
168
  * @param {PromptsClient.RequestOptions} requestOptions - Request-specific configuration.
121
169
  *
@@ -57,6 +57,10 @@ class PromptsClient {
57
57
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
58
58
  }
59
59
  /**
60
+ * Fetches a paginated list of **Prompts**.
61
+ *
62
+ * See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt.
63
+ *
60
64
  * @param {Hume.empathicVoice.PromptsListPromptsRequest} request
61
65
  * @param {PromptsClient.RequestOptions} requestOptions - Request-specific configuration.
62
66
  *
@@ -140,6 +144,10 @@ class PromptsClient {
140
144
  });
141
145
  }
142
146
  /**
147
+ * Creates a **Prompt** that can be added to an [EVI configuration](/reference/speech-to-speech-evi/configs/create-config).
148
+ *
149
+ * See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt.
150
+ *
143
151
  * @param {Hume.empathicVoice.PostedPrompt} request
144
152
  * @param {PromptsClient.RequestOptions} requestOptions - Request-specific configuration.
145
153
  *
@@ -210,6 +218,10 @@ class PromptsClient {
210
218
  });
211
219
  }
212
220
  /**
221
+ * Fetches a list of a **Prompt's** versions.
222
+ *
223
+ * See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt.
224
+ *
213
225
  * @param {string} id
214
226
  * @param {Hume.empathicVoice.PromptsListPromptVersionsRequest} request
215
227
  * @param {PromptsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -278,7 +290,11 @@ class PromptsClient {
278
290
  });
279
291
  }
280
292
  /**
281
- * @param {string} id - Identifier for a prompt. Formatted as a UUID.
293
+ * Updates a **Prompt** by creating a new version of the **Prompt**.
294
+ *
295
+ * See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt.
296
+ *
297
+ * @param {string} id - Identifier for a Prompt. Formatted as a UUID.
282
298
  * @param {Hume.empathicVoice.PostedPromptVersion} request
283
299
  * @param {PromptsClient.RequestOptions} requestOptions - Request-specific configuration.
284
300
  *
@@ -349,7 +365,11 @@ class PromptsClient {
349
365
  });
350
366
  }
351
367
  /**
352
- * @param {string} id - Identifier for a prompt. Formatted as a UUID.
368
+ * Deletes a **Prompt** and its versions.
369
+ *
370
+ * See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt.
371
+ *
372
+ * @param {string} id - Identifier for a Prompt. Formatted as a UUID.
353
373
  * @param {PromptsClient.RequestOptions} requestOptions - Request-specific configuration.
354
374
  *
355
375
  * @throws {@link Hume.empathicVoice.BadRequestError}
@@ -401,7 +421,11 @@ class PromptsClient {
401
421
  });
402
422
  }
403
423
  /**
404
- * @param {string} id - Identifier for a prompt. Formatted as a UUID.
424
+ * Updates the name of a **Prompt**.
425
+ *
426
+ * See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt.
427
+ *
428
+ * @param {string} id - Identifier for a Prompt. Formatted as a UUID.
405
429
  * @param {Hume.empathicVoice.PostedPromptName} request
406
430
  * @param {PromptsClient.RequestOptions} requestOptions - Request-specific configuration.
407
431
  *
@@ -463,8 +487,16 @@ class PromptsClient {
463
487
  });
464
488
  }
465
489
  /**
466
- * @param {string} id - Identifier for a prompt. Formatted as a UUID.
467
- * @param {number} version - Version number for a prompt. Version numbers should be integers.
490
+ * Fetches a specified version of a **Prompt**.
491
+ *
492
+ * See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt.
493
+ *
494
+ * @param {string} id - Identifier for a Prompt. Formatted as a UUID.
495
+ * @param {number} version - Version number for a Prompt.
496
+ *
497
+ * Prompts, Configs, Custom Voices, and Tools are versioned. This versioning system supports iterative development, allowing you to progressively refine prompts and revert to previous versions if needed.
498
+ *
499
+ * Version numbers are integer values representing different iterations of the Prompt. Each update to the Prompt increments its version number.
468
500
  * @param {PromptsClient.RequestOptions} requestOptions - Request-specific configuration.
469
501
  *
470
502
  * @throws {@link Hume.empathicVoice.BadRequestError}
@@ -525,8 +557,16 @@ class PromptsClient {
525
557
  });
526
558
  }
527
559
  /**
528
- * @param {string} id - Identifier for a prompt. Formatted as a UUID.
529
- * @param {number} version - Version number for a prompt. Version numbers should be integers.
560
+ * Deletes a specified version of a **Prompt**.
561
+ *
562
+ * See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt.
563
+ *
564
+ * @param {string} id - Identifier for a Prompt. Formatted as a UUID.
565
+ * @param {number} version - Version number for a Prompt.
566
+ *
567
+ * Prompts, Configs, Custom Voices, and Tools are versioned. This versioning system supports iterative development, allowing you to progressively refine prompts and revert to previous versions if needed.
568
+ *
569
+ * Version numbers are integer values representing different iterations of the Prompt. Each update to the Prompt increments its version number.
530
570
  * @param {PromptsClient.RequestOptions} requestOptions - Request-specific configuration.
531
571
  *
532
572
  * @throws {@link Hume.empathicVoice.BadRequestError}
@@ -578,8 +618,16 @@ class PromptsClient {
578
618
  });
579
619
  }
580
620
  /**
581
- * @param {string} id - Identifier for a prompt. Formatted as a UUID.
582
- * @param {number} version - Version number for a prompt. Version numbers should be integers.
621
+ * Updates the description of a **Prompt**.
622
+ *
623
+ * See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt.
624
+ *
625
+ * @param {string} id - Identifier for a Prompt. Formatted as a UUID.
626
+ * @param {number} version - Version number for a Prompt.
627
+ *
628
+ * Prompts, Configs, Custom Voices, and Tools are versioned. This versioning system supports iterative development, allowing you to progressively refine prompts and revert to previous versions if needed.
629
+ *
630
+ * Version numbers are integer values representing different iterations of the Prompt. Each update to the Prompt increments its version number.
583
631
  * @param {Hume.empathicVoice.PostedPromptVersionDescription} request
584
632
  * @param {PromptsClient.RequestOptions} requestOptions - Request-specific configuration.
585
633
  *
@@ -8,8 +8,12 @@
8
8
  export interface PostedPrompt {
9
9
  /** Name applied to all versions of a particular Prompt. */
10
10
  name: string;
11
- /** Text used for this version of the Prompt. */
11
+ /**
12
+ * Instructions used to shape EVI's behavior, responses, and style.
13
+ *
14
+ * You can use the Prompt to define a specific goal or role for EVI, specifying how it should act or what it should focus on during the conversation. For example, EVI can be instructed to act as a customer support representative, a fitness coach, or a travel advisor, each with its own set of behaviors and response styles. For help writing a system prompt, see our [Prompting Guide](/docs/speech-to-speech-evi/guides/prompting).
15
+ */
12
16
  text: string;
13
- /** Description that is appended to a specific version of a Prompt. */
17
+ /** An optional description of the Prompt version. */
14
18
  versionDescription?: string;
15
19
  }
@@ -6,8 +6,12 @@
6
6
  * }
7
7
  */
8
8
  export interface PostedPromptVersion {
9
- /** Text used for this version of the Prompt. */
9
+ /**
10
+ * Instructions used to shape EVI's behavior, responses, and style.
11
+ *
12
+ * You can use the Prompt to define a specific goal or role for EVI, specifying how it should act or what it should focus on during the conversation. For example, EVI can be instructed to act as a customer support representative, a fitness coach, or a travel advisor, each with its own set of behaviors and response styles. For help writing a system prompt, see our [Prompting Guide](/docs/speech-to-speech-evi/guides/prompting).
13
+ */
10
14
  text: string;
11
- /** Description that is appended to a specific version of a Prompt. */
15
+ /** An optional description of the Prompt version. */
12
16
  versionDescription?: string;
13
17
  }
@@ -5,6 +5,6 @@
5
5
  * }
6
6
  */
7
7
  export interface PostedPromptVersionDescription {
8
- /** Description that is appended to a specific version of a Prompt. */
8
+ /** An optional description of the Prompt version. */
9
9
  versionDescription?: string;
10
10
  }
@@ -15,6 +15,6 @@ export interface PromptsListPromptVersionsRequest {
15
15
  * For example, if `page_size` is set to 10, each page will include up to 10 items. Defaults to 10.
16
16
  */
17
17
  pageSize?: number;
18
- /** Only include the most recent version of each prompt in the list. */
18
+ /** By default, `restrict_to_most_recent` is set to true, returning only the latest version of each prompt. To include all versions of each prompt in the list, set `restrict_to_most_recent` to false. */
19
19
  restrictToMostRecent?: boolean;
20
20
  }
@@ -18,7 +18,7 @@ export interface PromptsListPromptsRequest {
18
18
  * For example, if `page_size` is set to 10, each page will include up to 10 items. Defaults to 10.
19
19
  */
20
20
  pageSize?: number;
21
- /** Only include the most recent version of each prompt in the list. */
21
+ /** By default, `restrict_to_most_recent` is set to true, returning only the latest version of each prompt. To include all versions of each prompt in the list, set `restrict_to_most_recent` to false. */
22
22
  restrictToMostRecent?: boolean;
23
23
  /** Filter to only include prompts with name. */
24
24
  name?: string;
@@ -11,6 +11,10 @@ export declare class ToolsClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<ToolsClient.Options>;
12
12
  constructor(options?: ToolsClient.Options);
13
13
  /**
14
+ * Fetches a paginated list of **Tools**.
15
+ *
16
+ * Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
17
+ *
14
18
  * @param {Hume.empathicVoice.ToolsListToolsRequest} request
15
19
  * @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
16
20
  *
@@ -24,6 +28,10 @@ export declare class ToolsClient {
24
28
  */
25
29
  listTools(request?: Hume.empathicVoice.ToolsListToolsRequest, requestOptions?: ToolsClient.RequestOptions): Promise<core.Page<Hume.empathicVoice.ReturnUserDefinedTool | undefined, Hume.empathicVoice.ReturnPagedUserDefinedTools>>;
26
30
  /**
31
+ * Creates a **Tool** that can be added to an [EVI configuration](/reference/speech-to-speech-evi/configs/create-config).
32
+ *
33
+ * Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
34
+ *
27
35
  * @param {Hume.empathicVoice.PostedUserDefinedTool} request
28
36
  * @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
29
37
  *
@@ -41,6 +49,10 @@ export declare class ToolsClient {
41
49
  createTool(request: Hume.empathicVoice.PostedUserDefinedTool, requestOptions?: ToolsClient.RequestOptions): core.HttpResponsePromise<Hume.empathicVoice.ReturnUserDefinedTool | undefined>;
42
50
  private __createTool;
43
51
  /**
52
+ * Fetches a list of a **Tool's** versions.
53
+ *
54
+ * Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
55
+ *
44
56
  * @param {string} id
45
57
  * @param {Hume.empathicVoice.ToolsListToolVersionsRequest} request
46
58
  * @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -52,7 +64,11 @@ export declare class ToolsClient {
52
64
  */
53
65
  listToolVersions(id: string, request?: Hume.empathicVoice.ToolsListToolVersionsRequest, requestOptions?: ToolsClient.RequestOptions): Promise<core.Page<Hume.empathicVoice.ReturnUserDefinedTool | undefined, Hume.empathicVoice.ReturnPagedUserDefinedTools>>;
54
66
  /**
55
- * @param {string} id - Identifier for a tool. Formatted as a UUID.
67
+ * Updates a **Tool** by creating a new version of the **Tool**.
68
+ *
69
+ * Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
70
+ *
71
+ * @param {string} id - Identifier for a Tool. Formatted as a UUID.
56
72
  * @param {Hume.empathicVoice.PostedUserDefinedToolVersion} request
57
73
  * @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
58
74
  *
@@ -69,7 +85,11 @@ export declare class ToolsClient {
69
85
  createToolVersion(id: string, request: Hume.empathicVoice.PostedUserDefinedToolVersion, requestOptions?: ToolsClient.RequestOptions): core.HttpResponsePromise<Hume.empathicVoice.ReturnUserDefinedTool | undefined>;
70
86
  private __createToolVersion;
71
87
  /**
72
- * @param {string} id - Identifier for a tool. Formatted as a UUID.
88
+ * Deletes a **Tool** and its versions.
89
+ *
90
+ * Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
91
+ *
92
+ * @param {string} id - Identifier for a Tool. Formatted as a UUID.
73
93
  * @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
74
94
  *
75
95
  * @throws {@link Hume.empathicVoice.BadRequestError}
@@ -80,7 +100,11 @@ export declare class ToolsClient {
80
100
  deleteTool(id: string, requestOptions?: ToolsClient.RequestOptions): core.HttpResponsePromise<void>;
81
101
  private __deleteTool;
82
102
  /**
83
- * @param {string} id - Identifier for a tool. Formatted as a UUID.
103
+ * Updates the name of a **Tool**.
104
+ *
105
+ * Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
106
+ *
107
+ * @param {string} id - Identifier for a Tool. Formatted as a UUID.
84
108
  * @param {Hume.empathicVoice.PostedUserDefinedToolName} request
85
109
  * @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
86
110
  *
@@ -94,8 +118,16 @@ export declare class ToolsClient {
94
118
  updateToolName(id: string, request: Hume.empathicVoice.PostedUserDefinedToolName, requestOptions?: ToolsClient.RequestOptions): core.HttpResponsePromise<string>;
95
119
  private __updateToolName;
96
120
  /**
97
- * @param {string} id - Identifier for a tool. Formatted as a UUID.
98
- * @param {number} version - Version number for a tool. Version numbers should be integers.
121
+ * Fetches a specified version of a **Tool**.
122
+ *
123
+ * Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
124
+ *
125
+ * @param {string} id - Identifier for a Tool. Formatted as a UUID.
126
+ * @param {number} version - Version number for a Tool.
127
+ *
128
+ * Tools, Configs, Custom Voices, and Prompts are versioned. This versioning system supports iterative development, allowing you to progressively refine tools and revert to previous versions if needed.
129
+ *
130
+ * Version numbers are integer values representing different iterations of the Tool. Each update to the Tool increments its version number.
99
131
  * @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
100
132
  *
101
133
  * @throws {@link Hume.empathicVoice.BadRequestError}
@@ -106,8 +138,16 @@ export declare class ToolsClient {
106
138
  getToolVersion(id: string, version: number, requestOptions?: ToolsClient.RequestOptions): core.HttpResponsePromise<Hume.empathicVoice.ReturnUserDefinedTool | undefined>;
107
139
  private __getToolVersion;
108
140
  /**
109
- * @param {string} id - Identifier for a tool. Formatted as a UUID.
110
- * @param {number} version - Version number for a tool. Version numbers should be integers.
141
+ * Deletes a specified version of a **Tool**.
142
+ *
143
+ * Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
144
+ *
145
+ * @param {string} id - Identifier for a Tool. Formatted as a UUID.
146
+ * @param {number} version - Version number for a Tool.
147
+ *
148
+ * Tools, Configs, Custom Voices, and Prompts are versioned. This versioning system supports iterative development, allowing you to progressively refine tools and revert to previous versions if needed.
149
+ *
150
+ * Version numbers are integer values representing different iterations of the Tool. Each update to the Tool increments its version number.
111
151
  * @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
112
152
  *
113
153
  * @throws {@link Hume.empathicVoice.BadRequestError}
@@ -118,8 +158,16 @@ export declare class ToolsClient {
118
158
  deleteToolVersion(id: string, version: number, requestOptions?: ToolsClient.RequestOptions): core.HttpResponsePromise<void>;
119
159
  private __deleteToolVersion;
120
160
  /**
121
- * @param {string} id - Identifier for a tool. Formatted as a UUID.
122
- * @param {number} version - Version number for a tool. Version numbers should be integers.
161
+ * Updates the description of a specified **Tool** version.
162
+ *
163
+ * Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
164
+ *
165
+ * @param {string} id - Identifier for a Tool. Formatted as a UUID.
166
+ * @param {number} version - Version number for a Tool.
167
+ *
168
+ * Tools, Configs, Custom Voices, and Prompts are versioned. This versioning system supports iterative development, allowing you to progressively refine tools and revert to previous versions if needed.
169
+ *
170
+ * Version numbers are integer values representing different iterations of the Tool. Each update to the Tool increments its version number.
123
171
  * @param {Hume.empathicVoice.PostedUserDefinedToolVersionDescription} request
124
172
  * @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
125
173
  *
@@ -57,6 +57,10 @@ class ToolsClient {
57
57
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
58
58
  }
59
59
  /**
60
+ * Fetches a paginated list of **Tools**.
61
+ *
62
+ * Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
63
+ *
60
64
  * @param {Hume.empathicVoice.ToolsListToolsRequest} request
61
65
  * @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
62
66
  *
@@ -140,6 +144,10 @@ class ToolsClient {
140
144
  });
141
145
  }
142
146
  /**
147
+ * Creates a **Tool** that can be added to an [EVI configuration](/reference/speech-to-speech-evi/configs/create-config).
148
+ *
149
+ * Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
150
+ *
143
151
  * @param {Hume.empathicVoice.PostedUserDefinedTool} request
144
152
  * @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
145
153
  *
@@ -213,6 +221,10 @@ class ToolsClient {
213
221
  });
214
222
  }
215
223
  /**
224
+ * Fetches a list of a **Tool's** versions.
225
+ *
226
+ * Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
227
+ *
216
228
  * @param {string} id
217
229
  * @param {Hume.empathicVoice.ToolsListToolVersionsRequest} request
218
230
  * @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -293,7 +305,11 @@ class ToolsClient {
293
305
  });
294
306
  }
295
307
  /**
296
- * @param {string} id - Identifier for a tool. Formatted as a UUID.
308
+ * Updates a **Tool** by creating a new version of the **Tool**.
309
+ *
310
+ * Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
311
+ *
312
+ * @param {string} id - Identifier for a Tool. Formatted as a UUID.
297
313
  * @param {Hume.empathicVoice.PostedUserDefinedToolVersion} request
298
314
  * @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
299
315
  *
@@ -366,7 +382,11 @@ class ToolsClient {
366
382
  });
367
383
  }
368
384
  /**
369
- * @param {string} id - Identifier for a tool. Formatted as a UUID.
385
+ * Deletes a **Tool** and its versions.
386
+ *
387
+ * Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
388
+ *
389
+ * @param {string} id - Identifier for a Tool. Formatted as a UUID.
370
390
  * @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
371
391
  *
372
392
  * @throws {@link Hume.empathicVoice.BadRequestError}
@@ -418,7 +438,11 @@ class ToolsClient {
418
438
  });
419
439
  }
420
440
  /**
421
- * @param {string} id - Identifier for a tool. Formatted as a UUID.
441
+ * Updates the name of a **Tool**.
442
+ *
443
+ * Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
444
+ *
445
+ * @param {string} id - Identifier for a Tool. Formatted as a UUID.
422
446
  * @param {Hume.empathicVoice.PostedUserDefinedToolName} request
423
447
  * @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
424
448
  *
@@ -480,8 +504,16 @@ class ToolsClient {
480
504
  });
481
505
  }
482
506
  /**
483
- * @param {string} id - Identifier for a tool. Formatted as a UUID.
484
- * @param {number} version - Version number for a tool. Version numbers should be integers.
507
+ * Fetches a specified version of a **Tool**.
508
+ *
509
+ * Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
510
+ *
511
+ * @param {string} id - Identifier for a Tool. Formatted as a UUID.
512
+ * @param {number} version - Version number for a Tool.
513
+ *
514
+ * Tools, Configs, Custom Voices, and Prompts are versioned. This versioning system supports iterative development, allowing you to progressively refine tools and revert to previous versions if needed.
515
+ *
516
+ * Version numbers are integer values representing different iterations of the Tool. Each update to the Tool increments its version number.
485
517
  * @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
486
518
  *
487
519
  * @throws {@link Hume.empathicVoice.BadRequestError}
@@ -542,8 +574,16 @@ class ToolsClient {
542
574
  });
543
575
  }
544
576
  /**
545
- * @param {string} id - Identifier for a tool. Formatted as a UUID.
546
- * @param {number} version - Version number for a tool. Version numbers should be integers.
577
+ * Deletes a specified version of a **Tool**.
578
+ *
579
+ * Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
580
+ *
581
+ * @param {string} id - Identifier for a Tool. Formatted as a UUID.
582
+ * @param {number} version - Version number for a Tool.
583
+ *
584
+ * Tools, Configs, Custom Voices, and Prompts are versioned. This versioning system supports iterative development, allowing you to progressively refine tools and revert to previous versions if needed.
585
+ *
586
+ * Version numbers are integer values representing different iterations of the Tool. Each update to the Tool increments its version number.
547
587
  * @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
548
588
  *
549
589
  * @throws {@link Hume.empathicVoice.BadRequestError}
@@ -595,8 +635,16 @@ class ToolsClient {
595
635
  });
596
636
  }
597
637
  /**
598
- * @param {string} id - Identifier for a tool. Formatted as a UUID.
599
- * @param {number} version - Version number for a tool. Version numbers should be integers.
638
+ * Updates the description of a specified **Tool** version.
639
+ *
640
+ * Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
641
+ *
642
+ * @param {string} id - Identifier for a Tool. Formatted as a UUID.
643
+ * @param {number} version - Version number for a Tool.
644
+ *
645
+ * Tools, Configs, Custom Voices, and Prompts are versioned. This versioning system supports iterative development, allowing you to progressively refine tools and revert to previous versions if needed.
646
+ *
647
+ * Version numbers are integer values representing different iterations of the Tool. Each update to the Tool increments its version number.
600
648
  * @param {Hume.empathicVoice.PostedUserDefinedToolVersionDescription} request
601
649
  * @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
602
650
  *
@@ -9,14 +9,25 @@
9
9
  * }
10
10
  */
11
11
  export interface PostedUserDefinedTool {
12
- /** Text describing what the tool does. */
12
+ /** An optional description of what the Tool does, used by the supplemental LLM to choose when and how to call the function. */
13
13
  description?: string;
14
- /** Text to use if the tool fails to generate content. */
14
+ /** 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. */
15
15
  fallbackContent?: string;
16
- /** Name applied to all versions of a particular Tool. */
16
+ /**
17
+ * Name of the built-in tool to use. Hume supports the following built-in tools:
18
+ *
19
+ * - **web_search:** enables EVI to search the web for up-to-date information when applicable.
20
+ * - **hang_up:** closes the WebSocket connection when appropriate (e.g., after detecting a farewell in the conversation).
21
+ *
22
+ * For more information, see our guide on [using built-in tools](/docs/speech-to-speech-evi/features/tool-use#using-built-in-tools).
23
+ */
17
24
  name: string;
18
- /** Stringified JSON defining the parameters used by this version of the Tool. */
25
+ /**
26
+ * Stringified JSON defining the parameters used by this version of the Tool.
27
+ *
28
+ * 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.
29
+ */
19
30
  parameters: string;
20
- /** Description that is appended to a specific version of a Tool. */
31
+ /** An optional description of the Tool version. */
21
32
  versionDescription?: string;
22
33
  }
@@ -5,6 +5,13 @@
5
5
  * }
6
6
  */
7
7
  export interface PostedUserDefinedToolName {
8
- /** Name applied to all versions of a particular Tool. */
8
+ /**
9
+ * Name of the built-in tool to use. Hume supports the following built-in tools:
10
+ *
11
+ * - **web_search:** enables EVI to search the web for up-to-date information when applicable.
12
+ * - **hang_up:** closes the WebSocket connection when appropriate (e.g., after detecting a farewell in the conversation).
13
+ *
14
+ * For more information, see our guide on [using built-in tools](/docs/speech-to-speech-evi/features/tool-use#using-built-in-tools).
15
+ */
9
16
  name: string;
10
17
  }
@@ -8,12 +8,16 @@
8
8
  * }
9
9
  */
10
10
  export interface PostedUserDefinedToolVersion {
11
- /** Text describing what the tool does. */
11
+ /** An optional description of what the Tool does, used by the supplemental LLM to choose when and how to call the function. */
12
12
  description?: string;
13
- /** Text to use if the tool fails to generate content. */
13
+ /** 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. */
14
14
  fallbackContent?: string;
15
- /** Stringified JSON defining the parameters used by this version of the Tool. */
15
+ /**
16
+ * Stringified JSON defining the parameters used by this version of the Tool.
17
+ *
18
+ * 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.
19
+ */
16
20
  parameters: string;
17
- /** Description that is appended to a specific version of a Tool. */
21
+ /** An optional description of the Tool version. */
18
22
  versionDescription?: string;
19
23
  }