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
  *
@@ -21,6 +21,10 @@ export class PromptsClient {
21
21
  this._options = normalizeClientOptionsWithAuth(options);
22
22
  }
23
23
  /**
24
+ * Fetches a paginated list of **Prompts**.
25
+ *
26
+ * See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt.
27
+ *
24
28
  * @param {Hume.empathicVoice.PromptsListPromptsRequest} request
25
29
  * @param {PromptsClient.RequestOptions} requestOptions - Request-specific configuration.
26
30
  *
@@ -104,6 +108,10 @@ export class PromptsClient {
104
108
  });
105
109
  }
106
110
  /**
111
+ * Creates a **Prompt** that can be added to an [EVI configuration](/reference/speech-to-speech-evi/configs/create-config).
112
+ *
113
+ * See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt.
114
+ *
107
115
  * @param {Hume.empathicVoice.PostedPrompt} request
108
116
  * @param {PromptsClient.RequestOptions} requestOptions - Request-specific configuration.
109
117
  *
@@ -174,6 +182,10 @@ export class PromptsClient {
174
182
  });
175
183
  }
176
184
  /**
185
+ * Fetches a list of a **Prompt's** versions.
186
+ *
187
+ * See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt.
188
+ *
177
189
  * @param {string} id
178
190
  * @param {Hume.empathicVoice.PromptsListPromptVersionsRequest} request
179
191
  * @param {PromptsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -242,7 +254,11 @@ export class PromptsClient {
242
254
  });
243
255
  }
244
256
  /**
245
- * @param {string} id - Identifier for a prompt. Formatted as a UUID.
257
+ * Updates a **Prompt** by creating a new version of the **Prompt**.
258
+ *
259
+ * See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt.
260
+ *
261
+ * @param {string} id - Identifier for a Prompt. Formatted as a UUID.
246
262
  * @param {Hume.empathicVoice.PostedPromptVersion} request
247
263
  * @param {PromptsClient.RequestOptions} requestOptions - Request-specific configuration.
248
264
  *
@@ -313,7 +329,11 @@ export class PromptsClient {
313
329
  });
314
330
  }
315
331
  /**
316
- * @param {string} id - Identifier for a prompt. Formatted as a UUID.
332
+ * Deletes a **Prompt** and its versions.
333
+ *
334
+ * See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt.
335
+ *
336
+ * @param {string} id - Identifier for a Prompt. Formatted as a UUID.
317
337
  * @param {PromptsClient.RequestOptions} requestOptions - Request-specific configuration.
318
338
  *
319
339
  * @throws {@link Hume.empathicVoice.BadRequestError}
@@ -365,7 +385,11 @@ export class PromptsClient {
365
385
  });
366
386
  }
367
387
  /**
368
- * @param {string} id - Identifier for a prompt. Formatted as a UUID.
388
+ * Updates the name of a **Prompt**.
389
+ *
390
+ * See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt.
391
+ *
392
+ * @param {string} id - Identifier for a Prompt. Formatted as a UUID.
369
393
  * @param {Hume.empathicVoice.PostedPromptName} request
370
394
  * @param {PromptsClient.RequestOptions} requestOptions - Request-specific configuration.
371
395
  *
@@ -427,8 +451,16 @@ export class PromptsClient {
427
451
  });
428
452
  }
429
453
  /**
430
- * @param {string} id - Identifier for a prompt. Formatted as a UUID.
431
- * @param {number} version - Version number for a prompt. Version numbers should be integers.
454
+ * Fetches a specified version of a **Prompt**.
455
+ *
456
+ * See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt.
457
+ *
458
+ * @param {string} id - Identifier for a Prompt. Formatted as a UUID.
459
+ * @param {number} version - Version number for a Prompt.
460
+ *
461
+ * 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.
462
+ *
463
+ * Version numbers are integer values representing different iterations of the Prompt. Each update to the Prompt increments its version number.
432
464
  * @param {PromptsClient.RequestOptions} requestOptions - Request-specific configuration.
433
465
  *
434
466
  * @throws {@link Hume.empathicVoice.BadRequestError}
@@ -489,8 +521,16 @@ export class PromptsClient {
489
521
  });
490
522
  }
491
523
  /**
492
- * @param {string} id - Identifier for a prompt. Formatted as a UUID.
493
- * @param {number} version - Version number for a prompt. Version numbers should be integers.
524
+ * Deletes a specified version of a **Prompt**.
525
+ *
526
+ * See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt.
527
+ *
528
+ * @param {string} id - Identifier for a Prompt. Formatted as a UUID.
529
+ * @param {number} version - Version number for a Prompt.
530
+ *
531
+ * 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.
532
+ *
533
+ * Version numbers are integer values representing different iterations of the Prompt. Each update to the Prompt increments its version number.
494
534
  * @param {PromptsClient.RequestOptions} requestOptions - Request-specific configuration.
495
535
  *
496
536
  * @throws {@link Hume.empathicVoice.BadRequestError}
@@ -542,8 +582,16 @@ export class PromptsClient {
542
582
  });
543
583
  }
544
584
  /**
545
- * @param {string} id - Identifier for a prompt. Formatted as a UUID.
546
- * @param {number} version - Version number for a prompt. Version numbers should be integers.
585
+ * Updates the description of a **Prompt**.
586
+ *
587
+ * See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt.
588
+ *
589
+ * @param {string} id - Identifier for a Prompt. Formatted as a UUID.
590
+ * @param {number} version - Version number for a Prompt.
591
+ *
592
+ * 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.
593
+ *
594
+ * Version numbers are integer values representing different iterations of the Prompt. Each update to the Prompt increments its version number.
547
595
  * @param {Hume.empathicVoice.PostedPromptVersionDescription} request
548
596
  * @param {PromptsClient.RequestOptions} requestOptions - Request-specific configuration.
549
597
  *
@@ -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
  *
@@ -21,6 +21,10 @@ export class ToolsClient {
21
21
  this._options = normalizeClientOptionsWithAuth(options);
22
22
  }
23
23
  /**
24
+ * Fetches a paginated list of **Tools**.
25
+ *
26
+ * 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.
27
+ *
24
28
  * @param {Hume.empathicVoice.ToolsListToolsRequest} request
25
29
  * @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
26
30
  *
@@ -104,6 +108,10 @@ export class ToolsClient {
104
108
  });
105
109
  }
106
110
  /**
111
+ * Creates a **Tool** that can be added to an [EVI configuration](/reference/speech-to-speech-evi/configs/create-config).
112
+ *
113
+ * 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.
114
+ *
107
115
  * @param {Hume.empathicVoice.PostedUserDefinedTool} request
108
116
  * @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
109
117
  *
@@ -177,6 +185,10 @@ export class ToolsClient {
177
185
  });
178
186
  }
179
187
  /**
188
+ * Fetches a list of a **Tool's** versions.
189
+ *
190
+ * 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.
191
+ *
180
192
  * @param {string} id
181
193
  * @param {Hume.empathicVoice.ToolsListToolVersionsRequest} request
182
194
  * @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -257,7 +269,11 @@ export class ToolsClient {
257
269
  });
258
270
  }
259
271
  /**
260
- * @param {string} id - Identifier for a tool. Formatted as a UUID.
272
+ * Updates a **Tool** by creating a new version of the **Tool**.
273
+ *
274
+ * 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.
275
+ *
276
+ * @param {string} id - Identifier for a Tool. Formatted as a UUID.
261
277
  * @param {Hume.empathicVoice.PostedUserDefinedToolVersion} request
262
278
  * @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
263
279
  *
@@ -330,7 +346,11 @@ export class ToolsClient {
330
346
  });
331
347
  }
332
348
  /**
333
- * @param {string} id - Identifier for a tool. Formatted as a UUID.
349
+ * Deletes a **Tool** and its versions.
350
+ *
351
+ * 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.
352
+ *
353
+ * @param {string} id - Identifier for a Tool. Formatted as a UUID.
334
354
  * @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
335
355
  *
336
356
  * @throws {@link Hume.empathicVoice.BadRequestError}
@@ -382,7 +402,11 @@ export class ToolsClient {
382
402
  });
383
403
  }
384
404
  /**
385
- * @param {string} id - Identifier for a tool. Formatted as a UUID.
405
+ * Updates the name of a **Tool**.
406
+ *
407
+ * 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.
408
+ *
409
+ * @param {string} id - Identifier for a Tool. Formatted as a UUID.
386
410
  * @param {Hume.empathicVoice.PostedUserDefinedToolName} request
387
411
  * @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
388
412
  *
@@ -444,8 +468,16 @@ export class ToolsClient {
444
468
  });
445
469
  }
446
470
  /**
447
- * @param {string} id - Identifier for a tool. Formatted as a UUID.
448
- * @param {number} version - Version number for a tool. Version numbers should be integers.
471
+ * Fetches a specified version of a **Tool**.
472
+ *
473
+ * 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.
474
+ *
475
+ * @param {string} id - Identifier for a Tool. Formatted as a UUID.
476
+ * @param {number} version - Version number for a Tool.
477
+ *
478
+ * 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.
479
+ *
480
+ * Version numbers are integer values representing different iterations of the Tool. Each update to the Tool increments its version number.
449
481
  * @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
450
482
  *
451
483
  * @throws {@link Hume.empathicVoice.BadRequestError}
@@ -506,8 +538,16 @@ export class ToolsClient {
506
538
  });
507
539
  }
508
540
  /**
509
- * @param {string} id - Identifier for a tool. Formatted as a UUID.
510
- * @param {number} version - Version number for a tool. Version numbers should be integers.
541
+ * Deletes a specified version of a **Tool**.
542
+ *
543
+ * 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.
544
+ *
545
+ * @param {string} id - Identifier for a Tool. Formatted as a UUID.
546
+ * @param {number} version - Version number for a Tool.
547
+ *
548
+ * 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.
549
+ *
550
+ * Version numbers are integer values representing different iterations of the Tool. Each update to the Tool increments its version number.
511
551
  * @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
512
552
  *
513
553
  * @throws {@link Hume.empathicVoice.BadRequestError}
@@ -559,8 +599,16 @@ export class ToolsClient {
559
599
  });
560
600
  }
561
601
  /**
562
- * @param {string} id - Identifier for a tool. Formatted as a UUID.
563
- * @param {number} version - Version number for a tool. Version numbers should be integers.
602
+ * Updates the description of a specified **Tool** version.
603
+ *
604
+ * 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.
605
+ *
606
+ * @param {string} id - Identifier for a Tool. Formatted as a UUID.
607
+ * @param {number} version - Version number for a Tool.
608
+ *
609
+ * 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.
610
+ *
611
+ * Version numbers are integer values representing different iterations of the Tool. Each update to the Tool increments its version number.
564
612
  * @param {Hume.empathicVoice.PostedUserDefinedToolVersionDescription} request
565
613
  * @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
566
614
  *
@@ -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
  }