hume 0.8.4 → 0.8.5

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 (316) hide show
  1. package/.mock/definition/empathic-voice/__package__.yml +820 -182
  2. package/.mock/definition/empathic-voice/chatGroups.yml +54 -17
  3. package/.mock/definition/empathic-voice/chats.yml +51 -19
  4. package/.mock/definition/empathic-voice/configs.yml +198 -61
  5. package/.mock/definition/empathic-voice/prompts.yml +126 -27
  6. package/.mock/definition/empathic-voice/tools.yml +116 -23
  7. package/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +1 -1
  8. package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +3 -3
  9. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.ts +7 -3
  10. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +10 -4
  11. package/api/resources/empathicVoice/resources/chats/client/Client.d.ts +1 -1
  12. package/api/resources/empathicVoice/resources/chats/client/Client.js +3 -3
  13. package/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.ts +7 -3
  14. package/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +7 -3
  15. package/api/resources/empathicVoice/resources/configs/client/Client.d.ts +22 -10
  16. package/api/resources/empathicVoice/resources/configs/client/Client.js +31 -19
  17. package/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigVersionsRequest.d.ts +7 -3
  18. package/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigsRequest.d.ts +7 -3
  19. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +14 -3
  20. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +14 -3
  21. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersionDescription.d.ts +1 -1
  22. package/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +22 -10
  23. package/api/resources/empathicVoice/resources/prompts/client/Client.js +31 -19
  24. package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +8 -2
  25. package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +8 -2
  26. package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersionDescription.d.ts +1 -1
  27. package/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptVersionsRequest.d.ts +7 -3
  28. package/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptsRequest.d.ts +7 -3
  29. package/api/resources/empathicVoice/resources/tools/client/Client.d.ts +22 -10
  30. package/api/resources/empathicVoice/resources/tools/client/Client.js +31 -19
  31. package/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.ts +8 -4
  32. package/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.ts +8 -4
  33. package/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersionDescription.d.ts +1 -1
  34. package/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolVersionsRequest.d.ts +7 -3
  35. package/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolsRequest.d.ts +7 -3
  36. package/api/resources/empathicVoice/types/Inference.d.ts +1 -1
  37. package/api/resources/empathicVoice/types/PostedBuiltinTool.d.ts +1 -1
  38. package/api/resources/empathicVoice/types/PostedEllmModel.d.ts +5 -1
  39. package/api/resources/empathicVoice/types/PostedEventMessageSpec.d.ts +6 -2
  40. package/api/resources/empathicVoice/types/PostedEventMessageSpecs.d.ts +16 -2
  41. package/api/resources/empathicVoice/types/PostedLanguageModel.d.ts +7 -3
  42. package/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +1 -1
  43. package/api/resources/empathicVoice/types/PostedPromptSpec.d.ts +8 -2
  44. package/api/resources/empathicVoice/types/PostedTimeoutSpecs.d.ts +3 -1
  45. package/api/resources/empathicVoice/types/PostedTimeoutSpecsInactivity.d.ts +1 -1
  46. package/api/resources/empathicVoice/types/PostedTimeoutSpecsMaxDuration.d.ts +1 -1
  47. package/api/resources/empathicVoice/types/PostedUserDefinedToolSpec.d.ts +7 -1
  48. package/api/resources/empathicVoice/types/PostedVoice.d.ts +1 -1
  49. package/api/resources/empathicVoice/types/ProsodyInference.d.ts +3 -1
  50. package/api/resources/empathicVoice/types/ReturnBuiltinTool.d.ts +4 -3
  51. package/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.d.ts +11 -0
  52. package/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.js +10 -0
  53. package/api/resources/empathicVoice/types/ReturnChat.d.ts +20 -8
  54. package/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +38 -9
  55. package/api/resources/empathicVoice/types/ReturnChatEventRole.d.ts +21 -0
  56. package/api/resources/empathicVoice/types/ReturnChatEventRole.js +12 -0
  57. package/api/resources/empathicVoice/types/ReturnChatEventType.d.ts +27 -0
  58. package/api/resources/empathicVoice/types/ReturnChatEventType.js +14 -0
  59. package/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +5 -5
  60. package/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +19 -7
  61. package/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.d.ts +13 -0
  62. package/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.js +10 -0
  63. package/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +38 -14
  64. package/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.d.ts +13 -0
  65. package/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.js +10 -0
  66. package/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.d.ts +27 -0
  67. package/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.js +14 -0
  68. package/api/resources/empathicVoice/types/ReturnChatStatus.d.ts +27 -0
  69. package/api/resources/empathicVoice/types/ReturnChatStatus.js +14 -0
  70. package/api/resources/empathicVoice/types/ReturnConfig.d.ts +23 -6
  71. package/api/resources/empathicVoice/types/ReturnConfigSpec.d.ts +8 -2
  72. package/api/resources/empathicVoice/types/ReturnEllmModel.d.ts +5 -1
  73. package/api/resources/empathicVoice/types/ReturnEventMessageSpec.d.ts +6 -2
  74. package/api/resources/empathicVoice/types/ReturnEventMessageSpecs.d.ts +16 -2
  75. package/api/resources/empathicVoice/types/ReturnLanguageModel.d.ts +9 -4
  76. package/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +15 -0
  77. package/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +14 -0
  78. package/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +18 -6
  79. package/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.d.ts +13 -0
  80. package/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.js +10 -0
  81. package/api/resources/empathicVoice/types/ReturnPagedChats.d.ts +18 -6
  82. package/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.d.ts +13 -0
  83. package/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.js +10 -0
  84. package/api/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +12 -4
  85. package/api/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +12 -4
  86. package/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +12 -4
  87. package/api/resources/empathicVoice/types/ReturnPrompt.d.ts +21 -8
  88. package/api/resources/empathicVoice/types/ReturnPromptVersionType.d.ts +11 -0
  89. package/api/resources/empathicVoice/types/ReturnPromptVersionType.js +10 -0
  90. package/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +6 -2
  91. package/api/resources/empathicVoice/types/ReturnTimeoutSpecs.d.ts +13 -1
  92. package/api/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +22 -11
  93. package/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.d.ts +11 -0
  94. package/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.js +10 -0
  95. package/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.d.ts +11 -0
  96. package/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.js +10 -0
  97. package/api/resources/empathicVoice/types/ReturnVoice.d.ts +4 -3
  98. package/api/resources/empathicVoice/types/ReturnVoiceName.d.ts +12 -0
  99. package/api/resources/empathicVoice/types/ReturnVoiceName.js +11 -0
  100. package/api/resources/empathicVoice/types/index.d.ts +14 -0
  101. package/api/resources/empathicVoice/types/index.js +14 -0
  102. package/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  103. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +1 -1
  104. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +3 -3
  105. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.ts +7 -3
  106. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +10 -4
  107. package/dist/api/resources/empathicVoice/resources/chats/client/Client.d.ts +1 -1
  108. package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +3 -3
  109. package/dist/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.ts +7 -3
  110. package/dist/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +7 -3
  111. package/dist/api/resources/empathicVoice/resources/configs/client/Client.d.ts +22 -10
  112. package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +31 -19
  113. package/dist/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigVersionsRequest.d.ts +7 -3
  114. package/dist/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigsRequest.d.ts +7 -3
  115. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +14 -3
  116. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +14 -3
  117. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersionDescription.d.ts +1 -1
  118. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +22 -10
  119. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +31 -19
  120. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +8 -2
  121. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +8 -2
  122. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersionDescription.d.ts +1 -1
  123. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptVersionsRequest.d.ts +7 -3
  124. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptsRequest.d.ts +7 -3
  125. package/dist/api/resources/empathicVoice/resources/tools/client/Client.d.ts +22 -10
  126. package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +31 -19
  127. package/dist/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.ts +8 -4
  128. package/dist/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.ts +8 -4
  129. package/dist/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersionDescription.d.ts +1 -1
  130. package/dist/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolVersionsRequest.d.ts +7 -3
  131. package/dist/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolsRequest.d.ts +7 -3
  132. package/dist/api/resources/empathicVoice/types/Inference.d.ts +1 -1
  133. package/dist/api/resources/empathicVoice/types/PostedBuiltinTool.d.ts +1 -1
  134. package/dist/api/resources/empathicVoice/types/PostedEllmModel.d.ts +5 -1
  135. package/dist/api/resources/empathicVoice/types/PostedEventMessageSpec.d.ts +6 -2
  136. package/dist/api/resources/empathicVoice/types/PostedEventMessageSpecs.d.ts +16 -2
  137. package/dist/api/resources/empathicVoice/types/PostedLanguageModel.d.ts +7 -3
  138. package/dist/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +1 -1
  139. package/dist/api/resources/empathicVoice/types/PostedPromptSpec.d.ts +8 -2
  140. package/dist/api/resources/empathicVoice/types/PostedTimeoutSpecs.d.ts +3 -1
  141. package/dist/api/resources/empathicVoice/types/PostedTimeoutSpecsInactivity.d.ts +1 -1
  142. package/dist/api/resources/empathicVoice/types/PostedTimeoutSpecsMaxDuration.d.ts +1 -1
  143. package/dist/api/resources/empathicVoice/types/PostedUserDefinedToolSpec.d.ts +7 -1
  144. package/dist/api/resources/empathicVoice/types/PostedVoice.d.ts +1 -1
  145. package/dist/api/resources/empathicVoice/types/ProsodyInference.d.ts +3 -1
  146. package/dist/api/resources/empathicVoice/types/ReturnBuiltinTool.d.ts +4 -3
  147. package/dist/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.d.ts +11 -0
  148. package/dist/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.js +10 -0
  149. package/dist/api/resources/empathicVoice/types/ReturnChat.d.ts +20 -8
  150. package/dist/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +38 -9
  151. package/dist/api/resources/empathicVoice/types/ReturnChatEventRole.d.ts +21 -0
  152. package/dist/api/resources/empathicVoice/types/ReturnChatEventRole.js +12 -0
  153. package/dist/api/resources/empathicVoice/types/ReturnChatEventType.d.ts +27 -0
  154. package/dist/api/resources/empathicVoice/types/ReturnChatEventType.js +14 -0
  155. package/dist/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +5 -5
  156. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +19 -7
  157. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.d.ts +13 -0
  158. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.js +10 -0
  159. package/dist/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +38 -14
  160. package/dist/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.d.ts +13 -0
  161. package/dist/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.js +10 -0
  162. package/dist/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.d.ts +27 -0
  163. package/dist/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.js +14 -0
  164. package/dist/api/resources/empathicVoice/types/ReturnChatStatus.d.ts +27 -0
  165. package/dist/api/resources/empathicVoice/types/ReturnChatStatus.js +14 -0
  166. package/dist/api/resources/empathicVoice/types/ReturnConfig.d.ts +23 -6
  167. package/dist/api/resources/empathicVoice/types/ReturnConfigSpec.d.ts +8 -2
  168. package/dist/api/resources/empathicVoice/types/ReturnEllmModel.d.ts +5 -1
  169. package/dist/api/resources/empathicVoice/types/ReturnEventMessageSpec.d.ts +6 -2
  170. package/dist/api/resources/empathicVoice/types/ReturnEventMessageSpecs.d.ts +16 -2
  171. package/dist/api/resources/empathicVoice/types/ReturnLanguageModel.d.ts +9 -4
  172. package/dist/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +15 -0
  173. package/dist/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +14 -0
  174. package/dist/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +18 -6
  175. package/dist/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.d.ts +13 -0
  176. package/dist/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.js +10 -0
  177. package/dist/api/resources/empathicVoice/types/ReturnPagedChats.d.ts +18 -6
  178. package/dist/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.d.ts +13 -0
  179. package/dist/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.js +10 -0
  180. package/dist/api/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +12 -4
  181. package/dist/api/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +12 -4
  182. package/dist/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +12 -4
  183. package/dist/api/resources/empathicVoice/types/ReturnPrompt.d.ts +21 -8
  184. package/dist/api/resources/empathicVoice/types/ReturnPromptVersionType.d.ts +11 -0
  185. package/dist/api/resources/empathicVoice/types/ReturnPromptVersionType.js +10 -0
  186. package/dist/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +6 -2
  187. package/dist/api/resources/empathicVoice/types/ReturnTimeoutSpecs.d.ts +13 -1
  188. package/dist/api/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +22 -11
  189. package/dist/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.d.ts +11 -0
  190. package/dist/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.js +10 -0
  191. package/dist/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.d.ts +11 -0
  192. package/dist/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.js +10 -0
  193. package/dist/api/resources/empathicVoice/types/ReturnVoice.d.ts +4 -3
  194. package/dist/api/resources/empathicVoice/types/ReturnVoiceName.d.ts +12 -0
  195. package/dist/api/resources/empathicVoice/types/ReturnVoiceName.js +11 -0
  196. package/dist/api/resources/empathicVoice/types/index.d.ts +14 -0
  197. package/dist/api/resources/empathicVoice/types/index.js +14 -0
  198. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  199. package/dist/errors/HumeError.js +1 -1
  200. package/dist/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.d.ts +2 -0
  201. package/dist/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.js +2 -0
  202. package/dist/serialization/resources/empathicVoice/types/ReturnBuiltinTool.d.ts +2 -1
  203. package/dist/serialization/resources/empathicVoice/types/ReturnBuiltinTool.js +2 -1
  204. package/dist/serialization/resources/empathicVoice/types/ReturnBuiltinToolToolType.d.ts +10 -0
  205. package/dist/serialization/resources/empathicVoice/types/ReturnBuiltinToolToolType.js +31 -0
  206. package/dist/serialization/resources/empathicVoice/types/ReturnChat.d.ts +2 -2
  207. package/dist/serialization/resources/empathicVoice/types/ReturnChat.js +2 -2
  208. package/dist/serialization/resources/empathicVoice/types/ReturnChatEvent.d.ts +4 -2
  209. package/dist/serialization/resources/empathicVoice/types/ReturnChatEvent.js +4 -2
  210. package/dist/serialization/resources/empathicVoice/types/ReturnChatEventRole.d.ts +10 -0
  211. package/dist/serialization/resources/empathicVoice/types/ReturnChatEventRole.js +31 -0
  212. package/dist/serialization/resources/empathicVoice/types/ReturnChatEventType.d.ts +10 -0
  213. package/dist/serialization/resources/empathicVoice/types/ReturnChatEventType.js +38 -0
  214. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +2 -1
  215. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +2 -1
  216. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.d.ts +10 -0
  217. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.js +31 -0
  218. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +4 -3
  219. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +4 -3
  220. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.d.ts +10 -0
  221. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.js +31 -0
  222. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEventsStatus.d.ts +10 -0
  223. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEventsStatus.js +38 -0
  224. package/dist/serialization/resources/empathicVoice/types/ReturnChatStatus.d.ts +10 -0
  225. package/dist/serialization/resources/empathicVoice/types/ReturnChatStatus.js +38 -0
  226. package/dist/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.d.ts +2 -0
  227. package/dist/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.js +2 -0
  228. package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModel.d.ts +2 -1
  229. package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModel.js +2 -1
  230. package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +10 -0
  231. package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +38 -0
  232. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +2 -1
  233. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +2 -1
  234. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.d.ts +10 -0
  235. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.js +31 -0
  236. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChats.d.ts +2 -1
  237. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChats.js +2 -1
  238. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.d.ts +10 -0
  239. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.js +31 -0
  240. package/dist/serialization/resources/empathicVoice/types/ReturnPrompt.d.ts +2 -1
  241. package/dist/serialization/resources/empathicVoice/types/ReturnPrompt.js +2 -1
  242. package/dist/serialization/resources/empathicVoice/types/ReturnPromptVersionType.d.ts +10 -0
  243. package/dist/serialization/resources/empathicVoice/types/ReturnPromptVersionType.js +31 -0
  244. package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +4 -2
  245. package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.js +4 -2
  246. package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedToolToolType.d.ts +10 -0
  247. package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedToolToolType.js +31 -0
  248. package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.d.ts +10 -0
  249. package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.js +31 -0
  250. package/dist/serialization/resources/empathicVoice/types/ReturnVoice.d.ts +3 -2
  251. package/dist/serialization/resources/empathicVoice/types/ReturnVoice.js +3 -2
  252. package/dist/serialization/resources/empathicVoice/types/ReturnVoiceName.d.ts +10 -0
  253. package/dist/serialization/resources/empathicVoice/types/ReturnVoiceName.js +31 -0
  254. package/dist/serialization/resources/empathicVoice/types/index.d.ts +14 -0
  255. package/dist/serialization/resources/empathicVoice/types/index.js +14 -0
  256. package/errors/HumeError.js +1 -1
  257. package/eslint.config.mjs +1 -1
  258. package/{jest.config.mjs → jest.config.js} +1 -3
  259. package/package.json +2 -2
  260. package/reference.md +86 -32
  261. package/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.d.ts +2 -0
  262. package/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.js +2 -0
  263. package/serialization/resources/empathicVoice/types/ReturnBuiltinTool.d.ts +2 -1
  264. package/serialization/resources/empathicVoice/types/ReturnBuiltinTool.js +2 -1
  265. package/serialization/resources/empathicVoice/types/ReturnBuiltinToolToolType.d.ts +10 -0
  266. package/serialization/resources/empathicVoice/types/ReturnBuiltinToolToolType.js +31 -0
  267. package/serialization/resources/empathicVoice/types/ReturnChat.d.ts +2 -2
  268. package/serialization/resources/empathicVoice/types/ReturnChat.js +2 -2
  269. package/serialization/resources/empathicVoice/types/ReturnChatEvent.d.ts +4 -2
  270. package/serialization/resources/empathicVoice/types/ReturnChatEvent.js +4 -2
  271. package/serialization/resources/empathicVoice/types/ReturnChatEventRole.d.ts +10 -0
  272. package/serialization/resources/empathicVoice/types/ReturnChatEventRole.js +31 -0
  273. package/serialization/resources/empathicVoice/types/ReturnChatEventType.d.ts +10 -0
  274. package/serialization/resources/empathicVoice/types/ReturnChatEventType.js +38 -0
  275. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +2 -1
  276. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +2 -1
  277. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.d.ts +10 -0
  278. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.js +31 -0
  279. package/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +4 -3
  280. package/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +4 -3
  281. package/serialization/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.d.ts +10 -0
  282. package/serialization/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.js +31 -0
  283. package/serialization/resources/empathicVoice/types/ReturnChatPagedEventsStatus.d.ts +10 -0
  284. package/serialization/resources/empathicVoice/types/ReturnChatPagedEventsStatus.js +38 -0
  285. package/serialization/resources/empathicVoice/types/ReturnChatStatus.d.ts +10 -0
  286. package/serialization/resources/empathicVoice/types/ReturnChatStatus.js +38 -0
  287. package/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.d.ts +2 -0
  288. package/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.js +2 -0
  289. package/serialization/resources/empathicVoice/types/ReturnLanguageModel.d.ts +2 -1
  290. package/serialization/resources/empathicVoice/types/ReturnLanguageModel.js +2 -1
  291. package/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +10 -0
  292. package/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +38 -0
  293. package/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +2 -1
  294. package/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +2 -1
  295. package/serialization/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.d.ts +10 -0
  296. package/serialization/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.js +31 -0
  297. package/serialization/resources/empathicVoice/types/ReturnPagedChats.d.ts +2 -1
  298. package/serialization/resources/empathicVoice/types/ReturnPagedChats.js +2 -1
  299. package/serialization/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.d.ts +10 -0
  300. package/serialization/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.js +31 -0
  301. package/serialization/resources/empathicVoice/types/ReturnPrompt.d.ts +2 -1
  302. package/serialization/resources/empathicVoice/types/ReturnPrompt.js +2 -1
  303. package/serialization/resources/empathicVoice/types/ReturnPromptVersionType.d.ts +10 -0
  304. package/serialization/resources/empathicVoice/types/ReturnPromptVersionType.js +31 -0
  305. package/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +4 -2
  306. package/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.js +4 -2
  307. package/serialization/resources/empathicVoice/types/ReturnUserDefinedToolToolType.d.ts +10 -0
  308. package/serialization/resources/empathicVoice/types/ReturnUserDefinedToolToolType.js +31 -0
  309. package/serialization/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.d.ts +10 -0
  310. package/serialization/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.js +31 -0
  311. package/serialization/resources/empathicVoice/types/ReturnVoice.d.ts +3 -2
  312. package/serialization/resources/empathicVoice/types/ReturnVoice.js +3 -2
  313. package/serialization/resources/empathicVoice/types/ReturnVoiceName.d.ts +10 -0
  314. package/serialization/resources/empathicVoice/types/ReturnVoiceName.js +31 -0
  315. package/serialization/resources/empathicVoice/types/index.d.ts +14 -0
  316. package/serialization/resources/empathicVoice/types/index.js +14 -0
@@ -75,7 +75,7 @@ class Prompts {
75
75
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
76
76
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, 'v0/evi/prompts'),
77
77
  method: 'GET',
78
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
78
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
79
79
  contentType: 'application/json',
80
80
  queryParameters: _queryParams,
81
81
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
@@ -129,7 +129,7 @@ class Prompts {
129
129
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
130
130
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, 'v0/evi/prompts'),
131
131
  method: 'POST',
132
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
132
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
133
133
  contentType: 'application/json',
134
134
  body: serializers.empathicVoice.PostedPrompt.jsonOrThrow(request, {
135
135
  unrecognizedObjectKeys: 'strip',
@@ -170,7 +170,7 @@ class Prompts {
170
170
  });
171
171
  }
172
172
  /**
173
- * @param {string} id - Identifier for a tool. Formatted as a UUID.
173
+ * @param {string} id - Identifier for a Prompt. Formatted as a UUID.
174
174
  * @param {Hume.empathicVoice.PromptsListPromptVersionsRequest} request
175
175
  * @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
176
176
  *
@@ -194,7 +194,7 @@ class Prompts {
194
194
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
195
195
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}`),
196
196
  method: 'GET',
197
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
197
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
198
198
  contentType: 'application/json',
199
199
  queryParameters: _queryParams,
200
200
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
@@ -233,7 +233,7 @@ class Prompts {
233
233
  });
234
234
  }
235
235
  /**
236
- * @param {string} id - Identifier for a prompt. Formatted as a UUID.
236
+ * @param {string} id - Identifier for a Prompt. Formatted as a UUID.
237
237
  * @param {Hume.empathicVoice.PostedPromptVersion} request
238
238
  * @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
239
239
  *
@@ -248,7 +248,7 @@ class Prompts {
248
248
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
249
249
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}`),
250
250
  method: 'POST',
251
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
251
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
252
252
  contentType: 'application/json',
253
253
  body: serializers.empathicVoice.PostedPromptVersion.jsonOrThrow(request, {
254
254
  unrecognizedObjectKeys: 'strip',
@@ -289,7 +289,7 @@ class Prompts {
289
289
  });
290
290
  }
291
291
  /**
292
- * @param {string} id - Identifier for a prompt. Formatted as a UUID.
292
+ * @param {string} id - Identifier for a Prompt. Formatted as a UUID.
293
293
  * @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
294
294
  *
295
295
  * @example
@@ -301,7 +301,7 @@ class Prompts {
301
301
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
302
302
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}`),
303
303
  method: 'DELETE',
304
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
304
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
305
305
  contentType: 'application/json',
306
306
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
307
307
  ? requestOptions.timeoutInSeconds * 1000
@@ -334,7 +334,7 @@ class Prompts {
334
334
  });
335
335
  }
336
336
  /**
337
- * @param {string} id - Identifier for a prompt. Formatted as a UUID.
337
+ * @param {string} id - Identifier for a Prompt. Formatted as a UUID.
338
338
  * @param {Hume.empathicVoice.PostedPromptName} request
339
339
  * @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
340
340
  *
@@ -349,7 +349,7 @@ class Prompts {
349
349
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
350
350
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}`),
351
351
  method: 'PATCH',
352
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
352
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
353
353
  contentType: 'application/json',
354
354
  body: serializers.empathicVoice.PostedPromptName.jsonOrThrow(request, {
355
355
  unrecognizedObjectKeys: 'strip',
@@ -386,8 +386,12 @@ class Prompts {
386
386
  });
387
387
  }
388
388
  /**
389
- * @param {string} id - Identifier for a prompt. Formatted as a UUID.
390
- * @param {number} version - Version number for a prompt. Version numbers should be integers.
389
+ * @param {string} id - Identifier for a Prompt. Formatted as a UUID.
390
+ * @param {number} version - Version number for a Prompt.
391
+ *
392
+ * Prompts, as well as Configs and Tools, are versioned. This versioning system supports iterative development, allowing you to progressively refine prompts and revert to previous versions if needed.
393
+ *
394
+ * Version numbers are integer values representing different iterations of the Prompt. Each update to the Prompt increments its version number.
391
395
  * @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
392
396
  *
393
397
  * @example
@@ -399,7 +403,7 @@ class Prompts {
399
403
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
400
404
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
401
405
  method: 'GET',
402
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
406
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
403
407
  contentType: 'application/json',
404
408
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
405
409
  ? requestOptions.timeoutInSeconds * 1000
@@ -437,8 +441,12 @@ class Prompts {
437
441
  });
438
442
  }
439
443
  /**
440
- * @param {string} id - Identifier for a prompt. Formatted as a UUID.
441
- * @param {number} version - Version number for a prompt. Version numbers should be integers.
444
+ * @param {string} id - Identifier for a Prompt. Formatted as a UUID.
445
+ * @param {number} version - Version number for a Prompt.
446
+ *
447
+ * Prompts, as well as Configs and Tools, are versioned. This versioning system supports iterative development, allowing you to progressively refine prompts and revert to previous versions if needed.
448
+ *
449
+ * Version numbers are integer values representing different iterations of the Prompt. Each update to the Prompt increments its version number.
442
450
  * @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
443
451
  *
444
452
  * @example
@@ -450,7 +458,7 @@ class Prompts {
450
458
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
451
459
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
452
460
  method: 'DELETE',
453
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
461
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
454
462
  contentType: 'application/json',
455
463
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
456
464
  ? requestOptions.timeoutInSeconds * 1000
@@ -483,8 +491,12 @@ class Prompts {
483
491
  });
484
492
  }
485
493
  /**
486
- * @param {string} id - Identifier for a prompt. Formatted as a UUID.
487
- * @param {number} version - Version number for a prompt. Version numbers should be integers.
494
+ * @param {string} id - Identifier for a Prompt. Formatted as a UUID.
495
+ * @param {number} version - Version number for a Prompt.
496
+ *
497
+ * Prompts, as well as Configs 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.
488
500
  * @param {Hume.empathicVoice.PostedPromptVersionDescription} request
489
501
  * @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
490
502
  *
@@ -497,7 +509,7 @@ class Prompts {
497
509
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
498
510
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
499
511
  method: 'PATCH',
500
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
512
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
501
513
  contentType: 'application/json',
502
514
  body: serializers.empathicVoice.PostedPromptVersionDescription.jsonOrThrow(request, {
503
515
  unrecognizedObjectKeys: 'strip',
@@ -11,8 +11,14 @@
11
11
  export interface PostedPrompt {
12
12
  /** Name applied to all versions of a particular Prompt. */
13
13
  name: string;
14
- /** Description that is appended to a specific version of a Prompt. */
14
+ /** An optional description of the Prompt version. */
15
15
  versionDescription?: string;
16
- /** Text used for this version of the Prompt. */
16
+ /**
17
+ * Instructions used to shape EVI’s behavior, responses, and style.
18
+ *
19
+ * 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.
20
+ *
21
+ * For help writing a system prompt, see our [Prompting Guide](/docs/empathic-voice-interface-evi/prompting).
22
+ */
17
23
  text: string;
18
24
  }
@@ -8,8 +8,14 @@
8
8
  * }
9
9
  */
10
10
  export interface PostedPromptVersion {
11
- /** Description that is appended to a specific version of a Prompt. */
11
+ /** An optional description of the Prompt version. */
12
12
  versionDescription?: string;
13
- /** Text used for this version of the Prompt. */
13
+ /**
14
+ * Instructions used to shape EVI’s behavior, responses, and style for this version of the Prompt.
15
+ *
16
+ * 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.
17
+ *
18
+ * For help writing a system prompt, see our [Prompting Guide](/docs/empathic-voice-interface-evi/prompting).
19
+ */
14
20
  text: string;
15
21
  }
@@ -6,6 +6,6 @@
6
6
  * {}
7
7
  */
8
8
  export interface PostedPromptVersionDescription {
9
- /** Description that is appended to a specific version of a Prompt. */
9
+ /** An optional description of the Prompt version. */
10
10
  versionDescription?: string;
11
11
  }
@@ -7,15 +7,19 @@
7
7
  */
8
8
  export interface PromptsListPromptVersionsRequest {
9
9
  /**
10
- * The page number of the results to return.
10
+ * Specifies the page number to retrieve, enabling pagination.
11
+ *
12
+ * This parameter uses zero-based indexing. For example, setting `page_number` to 0 retrieves the first page of results (items 0-9 if `page_size` is 10), setting `page_number` to 1 retrieves the second page (items 10-19), and so on. Defaults to 0, which retrieves the first page.
11
13
  */
12
14
  pageNumber?: number;
13
15
  /**
14
- * The maximum number of results to include per page.
16
+ * Specifies the maximum number of results to include per page, enabling pagination.
17
+ *
18
+ * The value must be greater than or equal to 1. For example, if `page_size` is set to 10, each page will include up to 10 items. Defaults to 10.
15
19
  */
16
20
  pageSize?: number;
17
21
  /**
18
- * Only include the most recent version of each prompt in the list.
22
+ * 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
23
  */
20
24
  restrictToMostRecent?: boolean;
21
25
  }
@@ -7,15 +7,19 @@
7
7
  */
8
8
  export interface PromptsListPromptsRequest {
9
9
  /**
10
- * The page number of the results to return.
10
+ * Specifies the page number to retrieve, enabling pagination.
11
+ *
12
+ * This parameter uses zero-based indexing. For example, setting `page_number` to 0 retrieves the first page of results (items 0-9 if `page_size` is 10), setting `page_number` to 1 retrieves the second page (items 10-19), and so on. Defaults to 0, which retrieves the first page.
11
13
  */
12
14
  pageNumber?: number;
13
15
  /**
14
- * The maximum number of results to include per page.
16
+ * Specifies the maximum number of results to include per page, enabling pagination.
17
+ *
18
+ * The value must be greater than or equal to 1. For example, if `page_size` is set to 10, each page will include up to 10 items. Defaults to 10.
15
19
  */
16
20
  pageSize?: number;
17
21
  /**
18
- * Only include the most recent version of each prompt in the list.
22
+ * 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
23
  */
20
24
  restrictToMostRecent?: boolean;
21
25
  /**
@@ -48,7 +48,7 @@ export declare class Tools {
48
48
  */
49
49
  createTool(request: Hume.empathicVoice.PostedUserDefinedTool, requestOptions?: Tools.RequestOptions): Promise<Hume.empathicVoice.ReturnUserDefinedTool | undefined>;
50
50
  /**
51
- * @param {string} id - Identifier for a tool. Formatted as a UUID.
51
+ * @param {string} id - Identifier for a Tool. Formatted as a UUID.
52
52
  * @param {Hume.empathicVoice.ToolsListToolVersionsRequest} request
53
53
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
54
54
  *
@@ -57,7 +57,7 @@ export declare class Tools {
57
57
  */
58
58
  listToolVersions(id: string, request?: Hume.empathicVoice.ToolsListToolVersionsRequest, requestOptions?: Tools.RequestOptions): Promise<Hume.empathicVoice.ReturnPagedUserDefinedTools>;
59
59
  /**
60
- * @param {string} id - Identifier for a tool. Formatted as a UUID.
60
+ * @param {string} id - Identifier for a Tool. Formatted as a UUID.
61
61
  * @param {Hume.empathicVoice.PostedUserDefinedToolVersion} request
62
62
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
63
63
  *
@@ -71,7 +71,7 @@ export declare class Tools {
71
71
  */
72
72
  createToolVersion(id: string, request: Hume.empathicVoice.PostedUserDefinedToolVersion, requestOptions?: Tools.RequestOptions): Promise<Hume.empathicVoice.ReturnUserDefinedTool | undefined>;
73
73
  /**
74
- * @param {string} id - Identifier for a tool. Formatted as a UUID.
74
+ * @param {string} id - Identifier for a Tool. Formatted as a UUID.
75
75
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
76
76
  *
77
77
  * @example
@@ -79,7 +79,7 @@ export declare class Tools {
79
79
  */
80
80
  deleteTool(id: string, requestOptions?: Tools.RequestOptions): Promise<void>;
81
81
  /**
82
- * @param {string} id - Identifier for a tool. Formatted as a UUID.
82
+ * @param {string} id - Identifier for a Tool. Formatted as a UUID.
83
83
  * @param {Hume.empathicVoice.PostedUserDefinedToolName} request
84
84
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
85
85
  *
@@ -90,8 +90,12 @@ export declare class Tools {
90
90
  */
91
91
  updateToolName(id: string, request: Hume.empathicVoice.PostedUserDefinedToolName, requestOptions?: Tools.RequestOptions): Promise<string>;
92
92
  /**
93
- * @param {string} id - Identifier for a tool. Formatted as a UUID.
94
- * @param {number} version - Version number for a tool. Version numbers should be integers.
93
+ * @param {string} id - Identifier for a Tool. Formatted as a UUID.
94
+ * @param {number} version - Version number for a Tool.
95
+ *
96
+ * Tools, as well as Configs and Prompts, are versioned. This versioning system supports iterative development, allowing you to progressively refine tools and revert to previous versions if needed.
97
+ *
98
+ * Version numbers are integer values representing different iterations of the Tool. Each update to the Tool increments its version number.
95
99
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
96
100
  *
97
101
  * @example
@@ -99,8 +103,12 @@ export declare class Tools {
99
103
  */
100
104
  getToolVersion(id: string, version: number, requestOptions?: Tools.RequestOptions): Promise<Hume.empathicVoice.ReturnUserDefinedTool | undefined>;
101
105
  /**
102
- * @param {string} id - Identifier for a tool. Formatted as a UUID.
103
- * @param {number} version - Version number for a tool. Version numbers should be integers.
106
+ * @param {string} id - Identifier for a Tool. Formatted as a UUID.
107
+ * @param {number} version - Version number for a Tool.
108
+ *
109
+ * Tools, as well as Configs and Prompts, are versioned. This versioning system supports iterative development, allowing you to progressively refine tools and revert to previous versions if needed.
110
+ *
111
+ * Version numbers are integer values representing different iterations of the Tool. Each update to the Tool increments its version number.
104
112
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
105
113
  *
106
114
  * @example
@@ -108,8 +116,12 @@ export declare class Tools {
108
116
  */
109
117
  deleteToolVersion(id: string, version: number, requestOptions?: Tools.RequestOptions): Promise<void>;
110
118
  /**
111
- * @param {string} id - Identifier for a tool. Formatted as a UUID.
112
- * @param {number} version - Version number for a tool. Version numbers should be integers.
119
+ * @param {string} id - Identifier for a Tool. Formatted as a UUID.
120
+ * @param {number} version - Version number for a Tool.
121
+ *
122
+ * Tools, as well as Configs and Prompts, are versioned. This versioning system supports iterative development, allowing you to progressively refine tools and revert to previous versions if needed.
123
+ *
124
+ * Version numbers are integer values representing different iterations of the Tool. Each update to the Tool increments its version number.
113
125
  * @param {Hume.empathicVoice.PostedUserDefinedToolVersionDescription} request
114
126
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
115
127
  *
@@ -78,7 +78,7 @@ class Tools {
78
78
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
79
79
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, 'v0/evi/tools'),
80
80
  method: 'GET',
81
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
81
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
82
82
  contentType: 'application/json',
83
83
  queryParameters: _queryParams,
84
84
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
@@ -135,7 +135,7 @@ class Tools {
135
135
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
136
136
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, 'v0/evi/tools'),
137
137
  method: 'POST',
138
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
138
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
139
139
  contentType: 'application/json',
140
140
  body: serializers.empathicVoice.PostedUserDefinedTool.jsonOrThrow(request, {
141
141
  unrecognizedObjectKeys: 'strip',
@@ -176,7 +176,7 @@ class Tools {
176
176
  });
177
177
  }
178
178
  /**
179
- * @param {string} id - Identifier for a tool. Formatted as a UUID.
179
+ * @param {string} id - Identifier for a Tool. Formatted as a UUID.
180
180
  * @param {Hume.empathicVoice.ToolsListToolVersionsRequest} request
181
181
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
182
182
  *
@@ -200,7 +200,7 @@ class Tools {
200
200
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
201
201
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}`),
202
202
  method: 'GET',
203
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
203
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
204
204
  contentType: 'application/json',
205
205
  queryParameters: _queryParams,
206
206
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
@@ -239,7 +239,7 @@ class Tools {
239
239
  });
240
240
  }
241
241
  /**
242
- * @param {string} id - Identifier for a tool. Formatted as a UUID.
242
+ * @param {string} id - Identifier for a Tool. Formatted as a UUID.
243
243
  * @param {Hume.empathicVoice.PostedUserDefinedToolVersion} request
244
244
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
245
245
  *
@@ -257,7 +257,7 @@ class Tools {
257
257
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
258
258
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}`),
259
259
  method: 'POST',
260
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
260
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
261
261
  contentType: 'application/json',
262
262
  body: serializers.empathicVoice.PostedUserDefinedToolVersion.jsonOrThrow(request, {
263
263
  unrecognizedObjectKeys: 'strip',
@@ -298,7 +298,7 @@ class Tools {
298
298
  });
299
299
  }
300
300
  /**
301
- * @param {string} id - Identifier for a tool. Formatted as a UUID.
301
+ * @param {string} id - Identifier for a Tool. Formatted as a UUID.
302
302
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
303
303
  *
304
304
  * @example
@@ -310,7 +310,7 @@ class Tools {
310
310
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
311
311
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}`),
312
312
  method: 'DELETE',
313
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
313
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
314
314
  contentType: 'application/json',
315
315
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
316
316
  ? requestOptions.timeoutInSeconds * 1000
@@ -343,7 +343,7 @@ class Tools {
343
343
  });
344
344
  }
345
345
  /**
346
- * @param {string} id - Identifier for a tool. Formatted as a UUID.
346
+ * @param {string} id - Identifier for a Tool. Formatted as a UUID.
347
347
  * @param {Hume.empathicVoice.PostedUserDefinedToolName} request
348
348
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
349
349
  *
@@ -358,7 +358,7 @@ class Tools {
358
358
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
359
359
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}`),
360
360
  method: 'PATCH',
361
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
361
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
362
362
  contentType: 'application/json',
363
363
  body: serializers.empathicVoice.PostedUserDefinedToolName.jsonOrThrow(request, {
364
364
  unrecognizedObjectKeys: 'strip',
@@ -395,8 +395,12 @@ class Tools {
395
395
  });
396
396
  }
397
397
  /**
398
- * @param {string} id - Identifier for a tool. Formatted as a UUID.
399
- * @param {number} version - Version number for a tool. Version numbers should be integers.
398
+ * @param {string} id - Identifier for a Tool. Formatted as a UUID.
399
+ * @param {number} version - Version number for a Tool.
400
+ *
401
+ * Tools, as well as Configs and Prompts, are versioned. This versioning system supports iterative development, allowing you to progressively refine tools and revert to previous versions if needed.
402
+ *
403
+ * Version numbers are integer values representing different iterations of the Tool. Each update to the Tool increments its version number.
400
404
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
401
405
  *
402
406
  * @example
@@ -408,7 +412,7 @@ class Tools {
408
412
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
409
413
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
410
414
  method: 'GET',
411
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
415
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
412
416
  contentType: 'application/json',
413
417
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
414
418
  ? requestOptions.timeoutInSeconds * 1000
@@ -446,8 +450,12 @@ class Tools {
446
450
  });
447
451
  }
448
452
  /**
449
- * @param {string} id - Identifier for a tool. Formatted as a UUID.
450
- * @param {number} version - Version number for a tool. Version numbers should be integers.
453
+ * @param {string} id - Identifier for a Tool. Formatted as a UUID.
454
+ * @param {number} version - Version number for a Tool.
455
+ *
456
+ * Tools, as well as Configs and Prompts, are versioned. This versioning system supports iterative development, allowing you to progressively refine tools and revert to previous versions if needed.
457
+ *
458
+ * Version numbers are integer values representing different iterations of the Tool. Each update to the Tool increments its version number.
451
459
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
452
460
  *
453
461
  * @example
@@ -459,7 +467,7 @@ class Tools {
459
467
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
460
468
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
461
469
  method: 'DELETE',
462
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
470
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
463
471
  contentType: 'application/json',
464
472
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
465
473
  ? requestOptions.timeoutInSeconds * 1000
@@ -492,8 +500,12 @@ class Tools {
492
500
  });
493
501
  }
494
502
  /**
495
- * @param {string} id - Identifier for a tool. Formatted as a UUID.
496
- * @param {number} version - Version number for a tool. Version numbers should be integers.
503
+ * @param {string} id - Identifier for a Tool. Formatted as a UUID.
504
+ * @param {number} version - Version number for a Tool.
505
+ *
506
+ * Tools, as well as Configs and Prompts, are versioned. This versioning system supports iterative development, allowing you to progressively refine tools and revert to previous versions if needed.
507
+ *
508
+ * Version numbers are integer values representing different iterations of the Tool. Each update to the Tool increments its version number.
497
509
  * @param {Hume.empathicVoice.PostedUserDefinedToolVersionDescription} request
498
510
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
499
511
  *
@@ -508,7 +520,7 @@ class Tools {
508
520
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
509
521
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
510
522
  method: 'PATCH',
511
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
523
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
512
524
  contentType: 'application/json',
513
525
  body: serializers.empathicVoice.PostedUserDefinedToolVersionDescription.jsonOrThrow(request, {
514
526
  unrecognizedObjectKeys: 'strip',
@@ -14,12 +14,16 @@
14
14
  export interface PostedUserDefinedTool {
15
15
  /** Name applied to all versions of a particular Tool. */
16
16
  name: string;
17
- /** Description that is appended to a specific version of a Tool. */
17
+ /** An optional description of the Tool version. */
18
18
  versionDescription?: string;
19
- /** Text describing what the tool does. */
19
+ /** An optional description of what the Tool does, used by the supplemental LLM to choose when and how to call the function. */
20
20
  description?: string;
21
- /** Stringified JSON defining the parameters used by this version of the Tool. */
21
+ /**
22
+ * Stringified JSON defining the parameters used by this version of the Tool.
23
+ *
24
+ * 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.
25
+ */
22
26
  parameters: string;
23
- /** Text to use if the tool fails to generate content. */
27
+ /** 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. */
24
28
  fallbackContent?: string;
25
29
  }
@@ -11,12 +11,16 @@
11
11
  * }
12
12
  */
13
13
  export interface PostedUserDefinedToolVersion {
14
- /** Description that is appended to a specific version of a Tool. */
14
+ /** An optional description of the Tool version. */
15
15
  versionDescription?: string;
16
- /** Text describing what the tool does. */
16
+ /** An optional description of what the Tool does, used by the supplemental LLM to choose when and how to call the function. */
17
17
  description?: string;
18
- /** Stringified JSON defining the parameters used by this version of the Tool. */
18
+ /**
19
+ * Stringified JSON defining the parameters used by this version of the Tool.
20
+ *
21
+ * 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.
22
+ */
19
23
  parameters: string;
20
- /** Text to use if the tool fails to generate content. */
24
+ /** 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. */
21
25
  fallbackContent?: string;
22
26
  }
@@ -8,6 +8,6 @@
8
8
  * }
9
9
  */
10
10
  export interface PostedUserDefinedToolVersionDescription {
11
- /** Description that is appended to a specific version of a Tool. */
11
+ /** An optional description of the Tool version. */
12
12
  versionDescription?: string;
13
13
  }
@@ -7,15 +7,19 @@
7
7
  */
8
8
  export interface ToolsListToolVersionsRequest {
9
9
  /**
10
- * The page number of the results to return.
10
+ * Specifies the page number to retrieve, enabling pagination.
11
+ *
12
+ * This parameter uses zero-based indexing. For example, setting `page_number` to 0 retrieves the first page of results (items 0-9 if `page_size` is 10), setting `page_number` to 1 retrieves the second page (items 10-19), and so on. Defaults to 0, which retrieves the first page.
11
13
  */
12
14
  pageNumber?: number;
13
15
  /**
14
- * The maximum number of results to include per page.
16
+ * Specifies the maximum number of results to include per page, enabling pagination.
17
+ *
18
+ * The value must be greater than or equal to 1. For example, if `page_size` is set to 10, each page will include up to 10 items. Defaults to 10.
15
19
  */
16
20
  pageSize?: number;
17
21
  /**
18
- * Only include the most recent version of each tool in the list.
22
+ * By default, `restrict_to_most_recent` is set to true, returning only the latest version of each tool. To include all versions of each tool in the list, set `restrict_to_most_recent` to false.
19
23
  */
20
24
  restrictToMostRecent?: boolean;
21
25
  }
@@ -10,15 +10,19 @@
10
10
  */
11
11
  export interface ToolsListToolsRequest {
12
12
  /**
13
- * The page number of the results to return.
13
+ * Specifies the page number to retrieve, enabling pagination.
14
+ *
15
+ * This parameter uses zero-based indexing. For example, setting `page_number` to 0 retrieves the first page of results (items 0-9 if `page_size` is 10), setting `page_number` to 1 retrieves the second page (items 10-19), and so on. Defaults to 0, which retrieves the first page.
14
16
  */
15
17
  pageNumber?: number;
16
18
  /**
17
- * The maximum number of results to include per page.
19
+ * Specifies the maximum number of results to include per page, enabling pagination.
20
+ *
21
+ * The value must be greater than or equal to 1. For example, if `page_size` is set to 10, each page will include up to 10 items. Defaults to 10.
18
22
  */
19
23
  pageSize?: number;
20
24
  /**
21
- * Only include the most recent version of each tool in the list.
25
+ * By default, `restrict_to_most_recent` is set to true, returning only the latest version of each tool. To include all versions of each tool in the list, set `restrict_to_most_recent` to false.
22
26
  */
23
27
  restrictToMostRecent?: boolean;
24
28
  /**
@@ -6,7 +6,7 @@ export interface Inference {
6
6
  /**
7
7
  * Prosody model inference results.
8
8
  *
9
- * EVI uses the prosody model to measure 48 expressions related to speech and vocal characteristics. These results contain a detailed emotional and tonal analysis of the audio.
9
+ * EVI uses the prosody model to measure 48 emotions related to speech and vocal characteristics within a given expression.
10
10
  */
11
11
  prosody?: Hume.empathicVoice.ProsodyInference;
12
12
  }