hume 0.8.4 → 0.8.6

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 (439) hide show
  1. package/.mock/definition/empathic-voice/__package__.yml +855 -216
  2. package/.mock/definition/empathic-voice/chatGroups.yml +383 -35
  3. package/.mock/definition/empathic-voice/chats.yml +393 -44
  4. package/.mock/definition/empathic-voice/configs.yml +437 -228
  5. package/.mock/definition/empathic-voice/prompts.yml +258 -83
  6. package/.mock/definition/empathic-voice/tools.yml +119 -23
  7. package/.mock/definition/expression-measurement/__package__.yml +203 -59
  8. package/.mock/definition/expression-measurement/batch.yml +64 -35
  9. package/.mock/fern.config.json +1 -1
  10. package/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +12 -3
  11. package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +14 -5
  12. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.ts +12 -4
  13. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +16 -5
  14. package/api/resources/empathicVoice/resources/chats/client/Client.d.ts +13 -5
  15. package/api/resources/empathicVoice/resources/chats/client/Client.js +129 -97
  16. package/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.ts +12 -4
  17. package/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +12 -4
  18. package/api/resources/empathicVoice/resources/configs/client/Client.d.ts +96 -20
  19. package/api/resources/empathicVoice/resources/configs/client/Client.js +105 -29
  20. package/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigVersionsRequest.d.ts +7 -3
  21. package/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigsRequest.d.ts +11 -4
  22. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +42 -4
  23. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigName.d.ts +1 -1
  24. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +47 -4
  25. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersionDescription.d.ts +4 -2
  26. package/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +41 -23
  27. package/api/resources/empathicVoice/resources/prompts/client/Client.js +111 -80
  28. package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +10 -4
  29. package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptName.d.ts +1 -1
  30. package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +10 -3
  31. package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersionDescription.d.ts +4 -2
  32. package/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptVersionsRequest.d.ts +7 -3
  33. package/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptsRequest.d.ts +11 -4
  34. package/api/resources/empathicVoice/resources/tools/client/Client.d.ts +23 -11
  35. package/api/resources/empathicVoice/resources/tools/client/Client.js +93 -68
  36. package/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.ts +8 -4
  37. package/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.ts +8 -4
  38. package/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersionDescription.d.ts +1 -1
  39. package/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolVersionsRequest.d.ts +7 -3
  40. package/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolsRequest.d.ts +7 -3
  41. package/api/resources/empathicVoice/types/AudioInput.d.ts +4 -2
  42. package/api/resources/empathicVoice/types/Inference.d.ts +1 -1
  43. package/api/resources/empathicVoice/types/JsonMessage.d.ts +1 -1
  44. package/api/resources/empathicVoice/types/PostedBuiltinTool.d.ts +1 -1
  45. package/api/resources/empathicVoice/types/PostedEllmModel.d.ts +5 -1
  46. package/api/resources/empathicVoice/types/PostedEventMessageSpec.d.ts +6 -2
  47. package/api/resources/empathicVoice/types/PostedEventMessageSpecs.d.ts +16 -2
  48. package/api/resources/empathicVoice/types/PostedLanguageModel.d.ts +7 -3
  49. package/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +1 -1
  50. package/api/resources/empathicVoice/types/PostedPromptSpec.d.ts +8 -2
  51. package/api/resources/empathicVoice/types/PostedTimeoutSpecs.d.ts +3 -1
  52. package/api/resources/empathicVoice/types/PostedTimeoutSpecsInactivity.d.ts +1 -1
  53. package/api/resources/empathicVoice/types/PostedTimeoutSpecsMaxDuration.d.ts +1 -1
  54. package/api/resources/empathicVoice/types/PostedUserDefinedToolSpec.d.ts +7 -1
  55. package/api/resources/empathicVoice/types/PostedVoice.d.ts +1 -1
  56. package/api/resources/empathicVoice/types/ProsodyInference.d.ts +3 -1
  57. package/api/resources/empathicVoice/types/ReturnBuiltinTool.d.ts +4 -3
  58. package/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.d.ts +11 -0
  59. package/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.js +10 -0
  60. package/api/resources/empathicVoice/types/ReturnChat.d.ts +20 -8
  61. package/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +38 -9
  62. package/api/resources/empathicVoice/types/ReturnChatEventRole.d.ts +21 -0
  63. package/api/resources/empathicVoice/types/ReturnChatEventRole.js +12 -0
  64. package/api/resources/empathicVoice/types/ReturnChatEventType.d.ts +27 -0
  65. package/api/resources/empathicVoice/types/ReturnChatEventType.js +14 -0
  66. package/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +5 -5
  67. package/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +19 -7
  68. package/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.d.ts +13 -0
  69. package/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.js +10 -0
  70. package/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +38 -14
  71. package/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.d.ts +13 -0
  72. package/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.js +10 -0
  73. package/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.d.ts +27 -0
  74. package/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.js +14 -0
  75. package/api/resources/empathicVoice/types/ReturnChatStatus.d.ts +27 -0
  76. package/api/resources/empathicVoice/types/ReturnChatStatus.js +14 -0
  77. package/api/resources/empathicVoice/types/ReturnConfig.d.ts +23 -6
  78. package/api/resources/empathicVoice/types/ReturnConfigSpec.d.ts +8 -2
  79. package/api/resources/empathicVoice/types/ReturnEllmModel.d.ts +5 -1
  80. package/api/resources/empathicVoice/types/ReturnEventMessageSpec.d.ts +6 -2
  81. package/api/resources/empathicVoice/types/ReturnEventMessageSpecs.d.ts +16 -2
  82. package/api/resources/empathicVoice/types/ReturnLanguageModel.d.ts +9 -4
  83. package/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +15 -0
  84. package/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +14 -0
  85. package/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +18 -6
  86. package/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.d.ts +13 -0
  87. package/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.js +10 -0
  88. package/api/resources/empathicVoice/types/ReturnPagedChats.d.ts +18 -6
  89. package/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.d.ts +13 -0
  90. package/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.js +10 -0
  91. package/api/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +12 -4
  92. package/api/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +12 -4
  93. package/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +12 -4
  94. package/api/resources/empathicVoice/types/ReturnPrompt.d.ts +21 -8
  95. package/api/resources/empathicVoice/types/ReturnPromptVersionType.d.ts +11 -0
  96. package/api/resources/empathicVoice/types/ReturnPromptVersionType.js +10 -0
  97. package/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +6 -2
  98. package/api/resources/empathicVoice/types/ReturnTimeoutSpecs.d.ts +13 -1
  99. package/api/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +22 -11
  100. package/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.d.ts +11 -0
  101. package/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.js +10 -0
  102. package/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.d.ts +11 -0
  103. package/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.js +10 -0
  104. package/api/resources/empathicVoice/types/ReturnVoice.d.ts +4 -3
  105. package/api/resources/empathicVoice/types/ReturnVoiceName.d.ts +12 -0
  106. package/api/resources/empathicVoice/types/ReturnVoiceName.js +11 -0
  107. package/api/resources/empathicVoice/types/index.d.ts +14 -0
  108. package/api/resources/empathicVoice/types/index.js +14 -0
  109. package/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +4 -4
  110. package/api/resources/expressionMeasurement/resources/batch/client/Client.js +11 -19
  111. package/api/resources/expressionMeasurement/resources/batch/client/requests/BatchListJobsRequest.d.ts +25 -9
  112. package/api/resources/expressionMeasurement/resources/batch/client/requests/BatchStartInferenceJobFromLocalFileRequest.d.ts +1 -0
  113. package/api/resources/expressionMeasurement/types/{UnionJobJobInference.d.ts → CustomModelsInferenceJob.d.ts} +2 -1
  114. package/api/resources/expressionMeasurement/types/{UnionJobJobEmbeddingGeneration.d.ts → CustomModelsTrainingJob.d.ts} +2 -1
  115. package/api/resources/expressionMeasurement/types/EmbeddingGenerationJob.d.ts +7 -0
  116. package/api/resources/expressionMeasurement/types/Face.d.ts +5 -0
  117. package/api/resources/expressionMeasurement/types/File_.d.ts +3 -0
  118. package/api/resources/expressionMeasurement/types/Granularity.d.ts +9 -1
  119. package/api/resources/expressionMeasurement/types/InferenceBaseRequest.d.ts +6 -1
  120. package/api/resources/expressionMeasurement/types/InferenceJob.d.ts +12 -0
  121. package/api/resources/expressionMeasurement/types/JobInference.d.ts +3 -0
  122. package/api/resources/expressionMeasurement/types/Language.d.ts +5 -0
  123. package/api/resources/expressionMeasurement/types/Models.d.ts +3 -0
  124. package/api/resources/expressionMeasurement/types/Ner.d.ts +5 -0
  125. package/api/resources/expressionMeasurement/types/Prosody.d.ts +5 -0
  126. package/api/resources/expressionMeasurement/types/Transcription.d.ts +40 -0
  127. package/api/resources/expressionMeasurement/types/UnionJob.d.ts +1 -15
  128. package/api/resources/expressionMeasurement/types/UnionPredictResult.d.ts +1 -1
  129. package/api/resources/expressionMeasurement/types/Window.d.ts +5 -0
  130. package/api/resources/expressionMeasurement/types/index.d.ts +4 -4
  131. package/api/resources/expressionMeasurement/types/index.js +4 -4
  132. package/api/resources/index.d.ts +1 -1
  133. package/api/resources/index.js +2 -2
  134. package/core/index.d.ts +1 -0
  135. package/core/index.js +1 -0
  136. package/core/pagination/Page.d.ts +29 -0
  137. package/core/pagination/Page.js +94 -0
  138. package/core/pagination/Pageable.d.ts +12 -0
  139. package/core/pagination/Pageable.js +10 -0
  140. package/core/pagination/index.d.ts +2 -0
  141. package/core/pagination/index.js +7 -0
  142. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +12 -3
  143. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +14 -5
  144. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.ts +12 -4
  145. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +16 -5
  146. package/dist/api/resources/empathicVoice/resources/chats/client/Client.d.ts +13 -5
  147. package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +129 -97
  148. package/dist/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.ts +12 -4
  149. package/dist/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +12 -4
  150. package/dist/api/resources/empathicVoice/resources/configs/client/Client.d.ts +96 -20
  151. package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +105 -29
  152. package/dist/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigVersionsRequest.d.ts +7 -3
  153. package/dist/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigsRequest.d.ts +11 -4
  154. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +42 -4
  155. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigName.d.ts +1 -1
  156. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +47 -4
  157. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersionDescription.d.ts +4 -2
  158. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +41 -23
  159. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +111 -80
  160. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +10 -4
  161. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptName.d.ts +1 -1
  162. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +10 -3
  163. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersionDescription.d.ts +4 -2
  164. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptVersionsRequest.d.ts +7 -3
  165. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptsRequest.d.ts +11 -4
  166. package/dist/api/resources/empathicVoice/resources/tools/client/Client.d.ts +23 -11
  167. package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +93 -68
  168. package/dist/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.ts +8 -4
  169. package/dist/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.ts +8 -4
  170. package/dist/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersionDescription.d.ts +1 -1
  171. package/dist/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolVersionsRequest.d.ts +7 -3
  172. package/dist/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolsRequest.d.ts +7 -3
  173. package/dist/api/resources/empathicVoice/types/AudioInput.d.ts +4 -2
  174. package/dist/api/resources/empathicVoice/types/Inference.d.ts +1 -1
  175. package/dist/api/resources/empathicVoice/types/JsonMessage.d.ts +1 -1
  176. package/dist/api/resources/empathicVoice/types/PostedBuiltinTool.d.ts +1 -1
  177. package/dist/api/resources/empathicVoice/types/PostedEllmModel.d.ts +5 -1
  178. package/dist/api/resources/empathicVoice/types/PostedEventMessageSpec.d.ts +6 -2
  179. package/dist/api/resources/empathicVoice/types/PostedEventMessageSpecs.d.ts +16 -2
  180. package/dist/api/resources/empathicVoice/types/PostedLanguageModel.d.ts +7 -3
  181. package/dist/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +1 -1
  182. package/dist/api/resources/empathicVoice/types/PostedPromptSpec.d.ts +8 -2
  183. package/dist/api/resources/empathicVoice/types/PostedTimeoutSpecs.d.ts +3 -1
  184. package/dist/api/resources/empathicVoice/types/PostedTimeoutSpecsInactivity.d.ts +1 -1
  185. package/dist/api/resources/empathicVoice/types/PostedTimeoutSpecsMaxDuration.d.ts +1 -1
  186. package/dist/api/resources/empathicVoice/types/PostedUserDefinedToolSpec.d.ts +7 -1
  187. package/dist/api/resources/empathicVoice/types/PostedVoice.d.ts +1 -1
  188. package/dist/api/resources/empathicVoice/types/ProsodyInference.d.ts +3 -1
  189. package/dist/api/resources/empathicVoice/types/ReturnBuiltinTool.d.ts +4 -3
  190. package/dist/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.d.ts +11 -0
  191. package/dist/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.js +10 -0
  192. package/dist/api/resources/empathicVoice/types/ReturnChat.d.ts +20 -8
  193. package/dist/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +38 -9
  194. package/dist/api/resources/empathicVoice/types/ReturnChatEventRole.d.ts +21 -0
  195. package/dist/api/resources/empathicVoice/types/ReturnChatEventRole.js +12 -0
  196. package/dist/api/resources/empathicVoice/types/ReturnChatEventType.d.ts +27 -0
  197. package/dist/api/resources/empathicVoice/types/ReturnChatEventType.js +14 -0
  198. package/dist/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +5 -5
  199. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +19 -7
  200. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.d.ts +13 -0
  201. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.js +10 -0
  202. package/dist/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +38 -14
  203. package/dist/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.d.ts +13 -0
  204. package/dist/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.js +10 -0
  205. package/dist/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.d.ts +27 -0
  206. package/dist/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.js +14 -0
  207. package/dist/api/resources/empathicVoice/types/ReturnChatStatus.d.ts +27 -0
  208. package/dist/api/resources/empathicVoice/types/ReturnChatStatus.js +14 -0
  209. package/dist/api/resources/empathicVoice/types/ReturnConfig.d.ts +23 -6
  210. package/dist/api/resources/empathicVoice/types/ReturnConfigSpec.d.ts +8 -2
  211. package/dist/api/resources/empathicVoice/types/ReturnEllmModel.d.ts +5 -1
  212. package/dist/api/resources/empathicVoice/types/ReturnEventMessageSpec.d.ts +6 -2
  213. package/dist/api/resources/empathicVoice/types/ReturnEventMessageSpecs.d.ts +16 -2
  214. package/dist/api/resources/empathicVoice/types/ReturnLanguageModel.d.ts +9 -4
  215. package/dist/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +15 -0
  216. package/dist/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +14 -0
  217. package/dist/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +18 -6
  218. package/dist/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.d.ts +13 -0
  219. package/dist/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.js +10 -0
  220. package/dist/api/resources/empathicVoice/types/ReturnPagedChats.d.ts +18 -6
  221. package/dist/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.d.ts +13 -0
  222. package/dist/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.js +10 -0
  223. package/dist/api/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +12 -4
  224. package/dist/api/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +12 -4
  225. package/dist/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +12 -4
  226. package/dist/api/resources/empathicVoice/types/ReturnPrompt.d.ts +21 -8
  227. package/dist/api/resources/empathicVoice/types/ReturnPromptVersionType.d.ts +11 -0
  228. package/dist/api/resources/empathicVoice/types/ReturnPromptVersionType.js +10 -0
  229. package/dist/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +6 -2
  230. package/dist/api/resources/empathicVoice/types/ReturnTimeoutSpecs.d.ts +13 -1
  231. package/dist/api/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +22 -11
  232. package/dist/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.d.ts +11 -0
  233. package/dist/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.js +10 -0
  234. package/dist/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.d.ts +11 -0
  235. package/dist/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.js +10 -0
  236. package/dist/api/resources/empathicVoice/types/ReturnVoice.d.ts +4 -3
  237. package/dist/api/resources/empathicVoice/types/ReturnVoiceName.d.ts +12 -0
  238. package/dist/api/resources/empathicVoice/types/ReturnVoiceName.js +11 -0
  239. package/dist/api/resources/empathicVoice/types/index.d.ts +14 -0
  240. package/dist/api/resources/empathicVoice/types/index.js +14 -0
  241. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +4 -4
  242. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +11 -19
  243. package/dist/api/resources/expressionMeasurement/resources/batch/client/requests/BatchListJobsRequest.d.ts +25 -9
  244. package/dist/api/resources/expressionMeasurement/resources/batch/client/requests/BatchStartInferenceJobFromLocalFileRequest.d.ts +1 -0
  245. package/{api/resources/expressionMeasurement/types/UnionJobJobTraining.d.ts → dist/api/resources/expressionMeasurement/types/CustomModelsInferenceJob.d.ts} +2 -1
  246. package/{api/resources/expressionMeasurement/types/UnionJobJobTlInference.d.ts → dist/api/resources/expressionMeasurement/types/CustomModelsTrainingJob.d.ts} +2 -1
  247. package/dist/api/resources/expressionMeasurement/types/EmbeddingGenerationJob.d.ts +7 -0
  248. package/dist/api/resources/expressionMeasurement/types/Face.d.ts +5 -0
  249. package/dist/api/resources/expressionMeasurement/types/File_.d.ts +3 -0
  250. package/dist/api/resources/expressionMeasurement/types/Granularity.d.ts +9 -1
  251. package/dist/api/resources/expressionMeasurement/types/InferenceBaseRequest.d.ts +6 -1
  252. package/dist/api/resources/expressionMeasurement/types/InferenceJob.d.ts +12 -0
  253. package/dist/api/resources/expressionMeasurement/types/JobInference.d.ts +3 -0
  254. package/dist/api/resources/expressionMeasurement/types/Language.d.ts +5 -0
  255. package/dist/api/resources/expressionMeasurement/types/Models.d.ts +3 -0
  256. package/dist/api/resources/expressionMeasurement/types/Ner.d.ts +5 -0
  257. package/dist/api/resources/expressionMeasurement/types/Prosody.d.ts +5 -0
  258. package/dist/api/resources/expressionMeasurement/types/Transcription.d.ts +40 -0
  259. package/dist/api/resources/expressionMeasurement/types/UnionJob.d.ts +1 -15
  260. package/dist/api/resources/expressionMeasurement/types/UnionPredictResult.d.ts +1 -1
  261. package/dist/api/resources/expressionMeasurement/types/Window.d.ts +5 -0
  262. package/dist/api/resources/expressionMeasurement/types/index.d.ts +4 -4
  263. package/dist/api/resources/expressionMeasurement/types/index.js +4 -4
  264. package/dist/api/resources/index.d.ts +1 -1
  265. package/dist/api/resources/index.js +2 -2
  266. package/dist/core/index.d.ts +1 -0
  267. package/dist/core/index.js +1 -0
  268. package/dist/core/pagination/Page.d.ts +29 -0
  269. package/dist/core/pagination/Page.js +94 -0
  270. package/dist/core/pagination/Pageable.d.ts +12 -0
  271. package/dist/core/pagination/Pageable.js +10 -0
  272. package/dist/core/pagination/index.d.ts +2 -0
  273. package/dist/core/pagination/index.js +7 -0
  274. package/dist/errors/HumeError.js +1 -1
  275. package/dist/serialization/resources/empathicVoice/types/JsonMessage.d.ts +2 -1
  276. package/dist/serialization/resources/empathicVoice/types/JsonMessage.js +2 -0
  277. package/dist/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.d.ts +2 -0
  278. package/dist/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.js +2 -0
  279. package/dist/serialization/resources/empathicVoice/types/ReturnBuiltinTool.d.ts +2 -1
  280. package/dist/serialization/resources/empathicVoice/types/ReturnBuiltinTool.js +2 -1
  281. package/dist/serialization/resources/empathicVoice/types/ReturnBuiltinToolToolType.d.ts +10 -0
  282. package/{serialization/resources/expressionMeasurement/types/UnionJobJobTraining.js → dist/serialization/resources/empathicVoice/types/ReturnBuiltinToolToolType.js} +2 -3
  283. package/dist/serialization/resources/empathicVoice/types/ReturnChat.d.ts +2 -2
  284. package/dist/serialization/resources/empathicVoice/types/ReturnChat.js +2 -2
  285. package/dist/serialization/resources/empathicVoice/types/ReturnChatEvent.d.ts +4 -2
  286. package/dist/serialization/resources/empathicVoice/types/ReturnChatEvent.js +4 -2
  287. package/dist/serialization/resources/empathicVoice/types/ReturnChatEventRole.d.ts +10 -0
  288. package/dist/serialization/resources/{expressionMeasurement/types/UnionJobJobTraining.js → empathicVoice/types/ReturnChatEventRole.js} +2 -3
  289. package/dist/serialization/resources/empathicVoice/types/ReturnChatEventType.d.ts +10 -0
  290. package/dist/serialization/resources/empathicVoice/types/ReturnChatEventType.js +38 -0
  291. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +2 -1
  292. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +2 -1
  293. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.d.ts +10 -0
  294. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.js +31 -0
  295. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +4 -3
  296. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +4 -3
  297. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.d.ts +10 -0
  298. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.js +31 -0
  299. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEventsStatus.d.ts +10 -0
  300. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEventsStatus.js +38 -0
  301. package/dist/serialization/resources/empathicVoice/types/ReturnChatStatus.d.ts +10 -0
  302. package/dist/serialization/resources/empathicVoice/types/ReturnChatStatus.js +38 -0
  303. package/dist/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.d.ts +2 -0
  304. package/dist/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.js +2 -0
  305. package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModel.d.ts +2 -1
  306. package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModel.js +2 -1
  307. package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +10 -0
  308. package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +38 -0
  309. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +2 -1
  310. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +2 -1
  311. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.d.ts +10 -0
  312. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.js +31 -0
  313. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChats.d.ts +2 -1
  314. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChats.js +2 -1
  315. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.d.ts +10 -0
  316. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.js +31 -0
  317. package/dist/serialization/resources/empathicVoice/types/ReturnPrompt.d.ts +2 -1
  318. package/dist/serialization/resources/empathicVoice/types/ReturnPrompt.js +2 -1
  319. package/dist/serialization/resources/empathicVoice/types/ReturnPromptVersionType.d.ts +10 -0
  320. package/dist/serialization/resources/empathicVoice/types/ReturnPromptVersionType.js +31 -0
  321. package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +4 -2
  322. package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.js +4 -2
  323. package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedToolToolType.d.ts +10 -0
  324. package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedToolToolType.js +31 -0
  325. package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.d.ts +10 -0
  326. package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.js +31 -0
  327. package/dist/serialization/resources/empathicVoice/types/ReturnVoice.d.ts +3 -2
  328. package/dist/serialization/resources/empathicVoice/types/ReturnVoice.js +3 -2
  329. package/dist/serialization/resources/empathicVoice/types/ReturnVoiceName.d.ts +10 -0
  330. package/dist/serialization/resources/empathicVoice/types/ReturnVoiceName.js +31 -0
  331. package/dist/serialization/resources/empathicVoice/types/index.d.ts +14 -0
  332. package/dist/serialization/resources/empathicVoice/types/index.js +14 -0
  333. package/{serialization/resources/expressionMeasurement/types/UnionJobJobTlInference.d.ts → dist/serialization/resources/expressionMeasurement/types/CustomModelsInferenceJob.d.ts} +3 -2
  334. package/{serialization/resources/expressionMeasurement/types/UnionJobJobTlInference.js → dist/serialization/resources/expressionMeasurement/types/CustomModelsInferenceJob.js} +6 -2
  335. package/{serialization/resources/expressionMeasurement/types/UnionJobJobTraining.d.ts → dist/serialization/resources/expressionMeasurement/types/CustomModelsTrainingJob.d.ts} +3 -2
  336. package/dist/serialization/resources/expressionMeasurement/types/CustomModelsTrainingJob.js +36 -0
  337. package/dist/serialization/resources/expressionMeasurement/types/{UnionJobJobEmbeddingGeneration.d.ts → EmbeddingGenerationJob.d.ts} +3 -2
  338. package/dist/serialization/resources/expressionMeasurement/types/{UnionJobJobEmbeddingGeneration.js → EmbeddingGenerationJob.js} +6 -2
  339. package/{serialization/resources/expressionMeasurement/types/UnionJobJobInference.d.ts → dist/serialization/resources/expressionMeasurement/types/InferenceJob.d.ts} +3 -2
  340. package/{serialization/resources/expressionMeasurement/types/UnionJobJobInference.js → dist/serialization/resources/expressionMeasurement/types/InferenceJob.js} +6 -2
  341. package/dist/serialization/resources/expressionMeasurement/types/UnionJob.d.ts +3 -18
  342. package/dist/serialization/resources/expressionMeasurement/types/UnionJob.js +2 -39
  343. package/dist/serialization/resources/expressionMeasurement/types/UnionPredictResult.d.ts +2 -3
  344. package/dist/serialization/resources/expressionMeasurement/types/UnionPredictResult.js +1 -29
  345. package/dist/serialization/resources/expressionMeasurement/types/index.d.ts +4 -4
  346. package/dist/serialization/resources/expressionMeasurement/types/index.js +4 -4
  347. package/dist/serialization/resources/index.d.ts +1 -1
  348. package/dist/serialization/resources/index.js +2 -2
  349. package/errors/HumeError.js +1 -1
  350. package/eslint.config.mjs +1 -1
  351. package/{jest.config.mjs → jest.config.js} +1 -3
  352. package/package.json +2 -2
  353. package/reference.md +608 -502
  354. package/serialization/resources/empathicVoice/types/JsonMessage.d.ts +2 -1
  355. package/serialization/resources/empathicVoice/types/JsonMessage.js +2 -0
  356. package/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.d.ts +2 -0
  357. package/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.js +2 -0
  358. package/serialization/resources/empathicVoice/types/ReturnBuiltinTool.d.ts +2 -1
  359. package/serialization/resources/empathicVoice/types/ReturnBuiltinTool.js +2 -1
  360. package/serialization/resources/empathicVoice/types/ReturnBuiltinToolToolType.d.ts +10 -0
  361. package/serialization/resources/empathicVoice/types/ReturnBuiltinToolToolType.js +31 -0
  362. package/serialization/resources/empathicVoice/types/ReturnChat.d.ts +2 -2
  363. package/serialization/resources/empathicVoice/types/ReturnChat.js +2 -2
  364. package/serialization/resources/empathicVoice/types/ReturnChatEvent.d.ts +4 -2
  365. package/serialization/resources/empathicVoice/types/ReturnChatEvent.js +4 -2
  366. package/serialization/resources/empathicVoice/types/ReturnChatEventRole.d.ts +10 -0
  367. package/serialization/resources/empathicVoice/types/ReturnChatEventRole.js +31 -0
  368. package/serialization/resources/empathicVoice/types/ReturnChatEventType.d.ts +10 -0
  369. package/serialization/resources/empathicVoice/types/ReturnChatEventType.js +38 -0
  370. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +2 -1
  371. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +2 -1
  372. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.d.ts +10 -0
  373. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.js +31 -0
  374. package/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +4 -3
  375. package/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +4 -3
  376. package/serialization/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.d.ts +10 -0
  377. package/serialization/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.js +31 -0
  378. package/serialization/resources/empathicVoice/types/ReturnChatPagedEventsStatus.d.ts +10 -0
  379. package/serialization/resources/empathicVoice/types/ReturnChatPagedEventsStatus.js +38 -0
  380. package/serialization/resources/empathicVoice/types/ReturnChatStatus.d.ts +10 -0
  381. package/serialization/resources/empathicVoice/types/ReturnChatStatus.js +38 -0
  382. package/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.d.ts +2 -0
  383. package/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.js +2 -0
  384. package/serialization/resources/empathicVoice/types/ReturnLanguageModel.d.ts +2 -1
  385. package/serialization/resources/empathicVoice/types/ReturnLanguageModel.js +2 -1
  386. package/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +10 -0
  387. package/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +38 -0
  388. package/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +2 -1
  389. package/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +2 -1
  390. package/serialization/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.d.ts +10 -0
  391. package/serialization/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.js +31 -0
  392. package/serialization/resources/empathicVoice/types/ReturnPagedChats.d.ts +2 -1
  393. package/serialization/resources/empathicVoice/types/ReturnPagedChats.js +2 -1
  394. package/serialization/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.d.ts +10 -0
  395. package/serialization/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.js +31 -0
  396. package/serialization/resources/empathicVoice/types/ReturnPrompt.d.ts +2 -1
  397. package/serialization/resources/empathicVoice/types/ReturnPrompt.js +2 -1
  398. package/serialization/resources/empathicVoice/types/ReturnPromptVersionType.d.ts +10 -0
  399. package/serialization/resources/empathicVoice/types/ReturnPromptVersionType.js +31 -0
  400. package/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +4 -2
  401. package/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.js +4 -2
  402. package/serialization/resources/empathicVoice/types/ReturnUserDefinedToolToolType.d.ts +10 -0
  403. package/serialization/resources/empathicVoice/types/ReturnUserDefinedToolToolType.js +31 -0
  404. package/serialization/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.d.ts +10 -0
  405. package/serialization/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.js +31 -0
  406. package/serialization/resources/empathicVoice/types/ReturnVoice.d.ts +3 -2
  407. package/serialization/resources/empathicVoice/types/ReturnVoice.js +3 -2
  408. package/serialization/resources/empathicVoice/types/ReturnVoiceName.d.ts +10 -0
  409. package/serialization/resources/empathicVoice/types/ReturnVoiceName.js +31 -0
  410. package/serialization/resources/empathicVoice/types/index.d.ts +14 -0
  411. package/serialization/resources/empathicVoice/types/index.js +14 -0
  412. package/{dist/serialization/resources/expressionMeasurement/types/UnionJobJobTlInference.d.ts → serialization/resources/expressionMeasurement/types/CustomModelsInferenceJob.d.ts} +3 -2
  413. package/{dist/serialization/resources/expressionMeasurement/types/UnionJobJobTlInference.js → serialization/resources/expressionMeasurement/types/CustomModelsInferenceJob.js} +6 -2
  414. package/{dist/serialization/resources/expressionMeasurement/types/UnionJobJobTraining.d.ts → serialization/resources/expressionMeasurement/types/CustomModelsTrainingJob.d.ts} +3 -2
  415. package/serialization/resources/expressionMeasurement/types/CustomModelsTrainingJob.js +36 -0
  416. package/serialization/resources/expressionMeasurement/types/{UnionJobJobEmbeddingGeneration.d.ts → EmbeddingGenerationJob.d.ts} +3 -2
  417. package/serialization/resources/expressionMeasurement/types/{UnionJobJobEmbeddingGeneration.js → EmbeddingGenerationJob.js} +6 -2
  418. package/{dist/serialization/resources/expressionMeasurement/types/UnionJobJobInference.d.ts → serialization/resources/expressionMeasurement/types/InferenceJob.d.ts} +3 -2
  419. package/{dist/serialization/resources/expressionMeasurement/types/UnionJobJobInference.js → serialization/resources/expressionMeasurement/types/InferenceJob.js} +6 -2
  420. package/serialization/resources/expressionMeasurement/types/UnionJob.d.ts +3 -18
  421. package/serialization/resources/expressionMeasurement/types/UnionJob.js +2 -39
  422. package/serialization/resources/expressionMeasurement/types/UnionPredictResult.d.ts +2 -3
  423. package/serialization/resources/expressionMeasurement/types/UnionPredictResult.js +1 -29
  424. package/serialization/resources/expressionMeasurement/types/index.d.ts +4 -4
  425. package/serialization/resources/expressionMeasurement/types/index.js +4 -4
  426. package/serialization/resources/index.d.ts +1 -1
  427. package/serialization/resources/index.js +2 -2
  428. package/dist/api/resources/expressionMeasurement/types/UnionJobJobEmbeddingGeneration.d.ts +0 -6
  429. package/dist/api/resources/expressionMeasurement/types/UnionJobJobInference.d.ts +0 -6
  430. package/dist/api/resources/expressionMeasurement/types/UnionJobJobTlInference.d.ts +0 -6
  431. package/dist/api/resources/expressionMeasurement/types/UnionJobJobTraining.d.ts +0 -6
  432. /package/api/resources/expressionMeasurement/types/{UnionJobJobEmbeddingGeneration.js → CustomModelsInferenceJob.js} +0 -0
  433. /package/api/resources/expressionMeasurement/types/{UnionJobJobInference.js → CustomModelsTrainingJob.js} +0 -0
  434. /package/api/resources/expressionMeasurement/types/{UnionJobJobTlInference.js → EmbeddingGenerationJob.js} +0 -0
  435. /package/api/resources/expressionMeasurement/types/{UnionJobJobTraining.js → InferenceJob.js} +0 -0
  436. /package/dist/api/resources/expressionMeasurement/types/{UnionJobJobEmbeddingGeneration.js → CustomModelsInferenceJob.js} +0 -0
  437. /package/dist/api/resources/expressionMeasurement/types/{UnionJobJobInference.js → CustomModelsTrainingJob.js} +0 -0
  438. /package/dist/api/resources/expressionMeasurement/types/{UnionJobJobTlInference.js → EmbeddingGenerationJob.js} +0 -0
  439. /package/dist/api/resources/expressionMeasurement/types/{UnionJobJobTraining.js → InferenceJob.js} +0 -0
@@ -1,14 +1,15 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Hume from '../../../index';
4
5
  /**
5
6
  * A specific builtin tool version returned from the server
6
7
  */
7
8
  export interface ReturnBuiltinTool {
8
- /** Type of Tool. Values from the ToolType enum. */
9
- toolType: string;
9
+ /** Type of Tool. Either `BUILTIN` for natively implemented tools, like web search, or `FUNCTION` for user-defined tools. */
10
+ toolType: Hume.empathicVoice.ReturnBuiltinToolToolType;
10
11
  /** Name applied to all versions of a particular Tool. */
11
12
  name: string;
12
- /** 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. */
13
14
  fallbackContent?: string;
14
15
  }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Type of Tool. Either `BUILTIN` for natively implemented tools, like web search, or `FUNCTION` for user-defined tools.
6
+ */
7
+ export declare type ReturnBuiltinToolToolType = 'BUILTIN' | 'FUNCTION';
8
+ export declare const ReturnBuiltinToolToolType: {
9
+ readonly Builtin: "BUILTIN";
10
+ readonly Function: "FUNCTION";
11
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ReturnBuiltinToolToolType = void 0;
7
+ exports.ReturnBuiltinToolToolType = {
8
+ Builtin: 'BUILTIN',
9
+ Function: 'FUNCTION',
10
+ };
@@ -6,17 +6,29 @@ import * as Hume from '../../../index';
6
6
  * A description of chat and its status
7
7
  */
8
8
  export interface ReturnChat {
9
- /** Identifier for a chat. Formatted as a UUID. */
9
+ /** Identifier for a Chat. Formatted as a UUID. */
10
10
  id: string;
11
- /** Identifier for the chat group. Any chat resumed from this chat will have the same chat_group_id. Formatted as a UUID. */
11
+ /** Identifier for the Chat Group. Any chat resumed from this Chat will have the same `chat_group_id`. Formatted as a UUID. */
12
12
  chatGroupId: string;
13
- /** Optional tag applied to this chat used to group chats by user, application, etc. */
14
- tag?: string;
15
- /** The status of the chat. Values from the ChatStatus enum. */
16
- status: string;
17
- /** The timestamp when the chat started, formatted as a Unix epoch milliseconds. */
13
+ /**
14
+ * Indicates the current state of the chat. There are six possible statuses:
15
+ *
16
+ * - `ACTIVE`: The chat is currently active and ongoing.
17
+ *
18
+ * - `USER_ENDED`: The chat was manually ended by the user.
19
+ *
20
+ * - `USER_TIMEOUT`: The chat ended due to a user-defined timeout.
21
+ *
22
+ * - `MAX_DURATION_TIMEOUT`: The chat ended because it reached the maximum allowed duration.
23
+ *
24
+ * - `INACTIVITY_TIMEOUT`: The chat ended due to an inactivity timeout.
25
+ *
26
+ * - `ERROR`: The chat ended unexpectedly due to an error.
27
+ */
28
+ status: Hume.empathicVoice.ReturnChatStatus;
29
+ /** Time at which the Chat started. Measured in seconds since the Unix epoch. */
18
30
  startTimestamp: number;
19
- /** The timestamp when the chat ended, formatted as a Unix epoch milliseconds. */
31
+ /** Time at which the Chat ended. Measured in seconds since the Unix epoch. */
20
32
  endTimestamp?: number;
21
33
  /** The total number of events currently in this chat. */
22
34
  eventCount?: number;
@@ -1,23 +1,52 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Hume from '../../../index';
4
5
  /**
5
6
  * A description of a single event in a chat returned from the server
6
7
  */
7
8
  export interface ReturnChatEvent {
8
- /** Identifier for a chat event. Formatted as a UUID. */
9
+ /** Identifier for a Chat Event. Formatted as a UUID. */
9
10
  id: string;
10
- /** Identifier for the chat this event occurred in. Formatted as a UUID. */
11
+ /** Identifier for the Chat this event occurred in. Formatted as a UUID. */
11
12
  chatId: string;
12
- /** The timestamp when the chat event occurred, formatted as a Unix epoch milliseconds. */
13
+ /** Time at which the Chat Event occurred. Measured in seconds since the Unix epoch. */
13
14
  timestamp: number;
14
- /** The role of the user who generated the chat event. Values from the Role enum. */
15
- role: string;
16
- /** The type of chat event. Values from the ChatEventType enum. */
17
- type: string;
18
- /** The text of the chat message, either transcribed from speaker audio or generated by the agent. */
15
+ /**
16
+ * The role of the entity which generated the Chat Event. There are four possible values:
17
+ *
18
+ * - `USER`: The user, capable of sending user messages and interruptions.
19
+ *
20
+ * - `AGENT`: The assistant, capable of sending agent messages.
21
+ *
22
+ * - `SYSTEM`: The backend server, capable of transmitting errors.
23
+ *
24
+ * - `TOOL`: The function calling mechanism.
25
+ */
26
+ role: Hume.empathicVoice.ReturnChatEventRole;
27
+ /**
28
+ * Type of Chat Event. There are six possible values:
29
+ *
30
+ * - `SYSTEM_PROMPT`: Contains the system prompt for use in the session.
31
+ *
32
+ * - `USER_MESSAGE`: Contains the message sent by the user.
33
+ *
34
+ * - `USER_INTERRUPTION`: Contains an interruption made by the user while the agent is speaking.
35
+ *
36
+ * - `AGENT_MESSAGE`: Contains the assistant’s message, generated by Hume’s eLLM and supplemental LLM.
37
+ *
38
+ * - `FUNCTION_CALL`: Contains the invocation of a tool.
39
+ *
40
+ * - `FUNCTION_CALL_RESPONSE`: Contains the tool response.
41
+ */
42
+ type: Hume.empathicVoice.ReturnChatEventType;
43
+ /** The text of the Chat Event. This field contains the message content for each event type listed in the `type` field. */
19
44
  messageText?: string;
20
- /** Stringified JSON with data about emotional content/prosody of the event. */
45
+ /**
46
+ * Stringified JSON containing the prosody model inference results.
47
+ *
48
+ * 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. Scores typically range from 0 to 1, with higher values indicating a stronger confidence level in the measured attribute.
49
+ */
21
50
  emotionFeatures?: string;
22
51
  /** Stringified JSON with additional metadata about the chat event. */
23
52
  metadata?: string;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * The role of the entity which generated the Chat Event. There are four possible values:
6
+ *
7
+ * - `USER`: The user, capable of sending user messages and interruptions.
8
+ *
9
+ * - `AGENT`: The assistant, capable of sending agent messages.
10
+ *
11
+ * - `SYSTEM`: The backend server, capable of transmitting errors.
12
+ *
13
+ * - `TOOL`: The function calling mechanism.
14
+ */
15
+ export declare type ReturnChatEventRole = 'USER' | 'AGENT' | 'SYSTEM' | 'TOOL';
16
+ export declare const ReturnChatEventRole: {
17
+ readonly User: "USER";
18
+ readonly Agent: "AGENT";
19
+ readonly System: "SYSTEM";
20
+ readonly Tool: "TOOL";
21
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ReturnChatEventRole = void 0;
7
+ exports.ReturnChatEventRole = {
8
+ User: 'USER',
9
+ Agent: 'AGENT',
10
+ System: 'SYSTEM',
11
+ Tool: 'TOOL',
12
+ };
@@ -0,0 +1,27 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Type of Chat Event. There are six possible values:
6
+ *
7
+ * - `SYSTEM_PROMPT`: Contains the system prompt for use in the session.
8
+ *
9
+ * - `USER_MESSAGE`: Contains the message sent by the user.
10
+ *
11
+ * - `USER_INTERRUPTION`: Contains an interruption made by the user while the agent is speaking.
12
+ *
13
+ * - `AGENT_MESSAGE`: Contains the assistant’s message, generated by Hume’s eLLM and supplemental LLM.
14
+ *
15
+ * - `FUNCTION_CALL`: Contains the invocation of a tool.
16
+ *
17
+ * - `FUNCTION_CALL_RESPONSE`: Contains the tool response.
18
+ */
19
+ export declare type ReturnChatEventType = 'SYSTEM_PROMPT' | 'USER_MESSAGE' | 'USER_INTERRUPTION' | 'AGENT_MESSAGE' | 'FUNCTION_CALL' | 'FUNCTION_CALL_RESPONSE';
20
+ export declare const ReturnChatEventType: {
21
+ readonly SystemPrompt: "SYSTEM_PROMPT";
22
+ readonly UserMessage: "USER_MESSAGE";
23
+ readonly UserInterruption: "USER_INTERRUPTION";
24
+ readonly AgentMessage: "AGENT_MESSAGE";
25
+ readonly FunctionCall: "FUNCTION_CALL";
26
+ readonly FunctionCallResponse: "FUNCTION_CALL_RESPONSE";
27
+ };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ReturnChatEventType = void 0;
7
+ exports.ReturnChatEventType = {
8
+ SystemPrompt: 'SYSTEM_PROMPT',
9
+ UserMessage: 'USER_MESSAGE',
10
+ UserInterruption: 'USER_INTERRUPTION',
11
+ AgentMessage: 'AGENT_MESSAGE',
12
+ FunctionCall: 'FUNCTION_CALL',
13
+ FunctionCallResponse: 'FUNCTION_CALL_RESPONSE',
14
+ };
@@ -5,15 +5,15 @@
5
5
  * A description of chat_group and its status
6
6
  */
7
7
  export interface ReturnChatGroup {
8
- /** Identifier for the chat group. Any chat resumed from this chat will have the same chat_group_id. Formatted as a UUID. */
8
+ /** Identifier for the Chat Group. Any Chat resumed from this Chat Group will have the same `chat_group_id`. Formatted as a UUID. */
9
9
  id: string;
10
- /** The timestamp when the first chat in this chat group started, formatted as a Unix epoch milliseconds. */
10
+ /** Time at which the first Chat in this Chat Group was created. Measured in seconds since the Unix epoch. */
11
11
  firstStartTimestamp: number;
12
- /** The timestamp when the most recent chat in this chat group started, formatted as a Unix epoch milliseconds. */
12
+ /** Time at which the most recent Chat in this Chat Group was created. Measured in seconds since the Unix epoch. */
13
13
  mostRecentStartTimestamp: number;
14
- /** The chat_id of the most recent chat in this chat group. Formatted as a UUID. */
14
+ /** The `chat_id` of the most recent Chat in this Chat Group. Formatted as a UUID. */
15
15
  mostRecentChatId?: string;
16
- /** The total number of chats in this chat group. */
16
+ /** The total number of Chats in this Chat Group. */
17
17
  numChats: number;
18
18
  active?: boolean;
19
19
  }
@@ -6,16 +6,28 @@ import * as Hume from '../../../index';
6
6
  * A paginated list of chat events that occurred across chats in this chat_group from the server
7
7
  */
8
8
  export interface ReturnChatGroupPagedEvents {
9
- /** Identifier for the chat group. Any chat resumed from this chat will have the same chat_group_id. Formatted as a UUID. */
9
+ /** Identifier for the Chat Group. Any Chat resumed from this Chat Group will have the same `chat_group_id`. Formatted as a UUID. */
10
10
  id: string;
11
- /** The page number of the returned results. */
11
+ /**
12
+ * The page number of the returned list.
13
+ *
14
+ * This value corresponds to the `page_number` parameter specified in the request. Pagination uses zero-based indexing.
15
+ */
12
16
  pageNumber: number;
13
- /** The number of results returned per page. */
17
+ /**
18
+ * The maximum number of items returned per page.
19
+ *
20
+ * This value corresponds to the `page_size` parameter specified in the request.
21
+ */
14
22
  pageSize: number;
15
- /** The total number of pages in the collection */
23
+ /** The total number of pages in the collection. */
16
24
  totalPages: number;
17
- /** The direction of the pagination (ASC or DESC). */
18
- paginationDirection: string;
19
- /** List of chat_events returned for the specified page number and page size. */
25
+ /**
26
+ * Indicates the order in which the paginated results are presented, based on their creation date.
27
+ *
28
+ * It shows `ASC` for ascending order (chronological, with the oldest records first) or `DESC` for descending order (reverse-chronological, with the newest records first). This value corresponds to the `ascending_order` query parameter used in the request.
29
+ */
30
+ paginationDirection: Hume.empathicVoice.ReturnChatGroupPagedEventsPaginationDirection;
31
+ /** List of Chat Events for the specified `page_number` and `page_size`. */
20
32
  eventsPage: Hume.empathicVoice.ReturnChatEvent[];
21
33
  }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Indicates the order in which the paginated results are presented, based on their creation date.
6
+ *
7
+ * It shows `ASC` for ascending order (chronological, with the oldest records first) or `DESC` for descending order (reverse-chronological, with the newest records first). This value corresponds to the `ascending_order` query parameter used in the request.
8
+ */
9
+ export declare type ReturnChatGroupPagedEventsPaginationDirection = 'ASC' | 'DESC';
10
+ export declare const ReturnChatGroupPagedEventsPaginationDirection: {
11
+ readonly Asc: "ASC";
12
+ readonly Desc: "DESC";
13
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ReturnChatGroupPagedEventsPaginationDirection = void 0;
7
+ exports.ReturnChatGroupPagedEventsPaginationDirection = {
8
+ Asc: 'ASC',
9
+ Desc: 'DESC',
10
+ };
@@ -6,29 +6,53 @@ import * as Hume from '../../../index';
6
6
  * A description of chat status with a paginated list of chat events returned from the server
7
7
  */
8
8
  export interface ReturnChatPagedEvents {
9
- /** Identifier for a chat. Formatted as a UUID. */
9
+ /** Identifier for a Chat. Formatted as a UUID. */
10
10
  id: string;
11
- /** Identifier for the chat group. Any chat resumed from this chat will have the same chat_group_id. Formatted as a UUID. */
11
+ /** Identifier for the Chat Group. Any chat resumed from this Chat will have the same `chat_group_id`. Formatted as a UUID. */
12
12
  chatGroupId: string;
13
- /** Optional tag applied to this chat used to group chats by user, application, etc. */
14
- tag?: string;
15
- /** The status of the chat. Values from the ChatStatus enum. */
16
- status: string;
17
- /** The timestamp when the chat started, formatted as a Unix epoch milliseconds. */
13
+ /**
14
+ * Indicates the current state of the chat. There are six possible statuses:
15
+ *
16
+ * - `ACTIVE`: The chat is currently active and ongoing.
17
+ *
18
+ * - `USER_ENDED`: The chat was manually ended by the user.
19
+ *
20
+ * - `USER_TIMEOUT`: The chat ended due to a user-defined timeout.
21
+ *
22
+ * - `MAX_DURATION_TIMEOUT`: The chat ended because it reached the maximum allowed duration.
23
+ *
24
+ * - `INACTIVITY_TIMEOUT`: The chat ended due to an inactivity timeout.
25
+ *
26
+ * - `ERROR`: The chat ended unexpectedly due to an error.
27
+ */
28
+ status: Hume.empathicVoice.ReturnChatPagedEventsStatus;
29
+ /** Time at which the Chat started. Measured in seconds since the Unix epoch. */
18
30
  startTimestamp: number;
19
- /** The timestamp when the chat ended, formatted as a Unix epoch milliseconds. */
31
+ /** Time at which the Chat ended. Measured in seconds since the Unix epoch. */
20
32
  endTimestamp?: number;
21
- /** The direction of the pagination (ASC or DESC). */
22
- paginationDirection: string;
23
- /** List of chat events with the specified page number and page size. */
33
+ /**
34
+ * Indicates the order in which the paginated results are presented, based on their creation date.
35
+ *
36
+ * It shows `ASC` for ascending order (chronological, with the oldest records first) or `DESC` for descending order (reverse-chronological, with the newest records first). This value corresponds to the `ascending_order` query parameter used in the request.
37
+ */
38
+ paginationDirection: Hume.empathicVoice.ReturnChatPagedEventsPaginationDirection;
39
+ /** List of Chat Events for the specified `page_number` and `page_size`. */
24
40
  eventsPage: Hume.empathicVoice.ReturnChatEvent[];
25
41
  /** Stringified JSON with additional metadata about the chat. */
26
42
  metadata?: string;
27
- /** The page number of the returned results. */
43
+ /**
44
+ * The page number of the returned list.
45
+ *
46
+ * This value corresponds to the `page_number` parameter specified in the request. Pagination uses zero-based indexing.
47
+ */
28
48
  pageNumber: number;
29
- /** The number of results returned per page. */
49
+ /**
50
+ * The maximum number of items returned per page.
51
+ *
52
+ * This value corresponds to the `page_size` parameter specified in the request.
53
+ */
30
54
  pageSize: number;
31
- /** The total number of pages in the collection */
55
+ /** The total number of pages in the collection. */
32
56
  totalPages: number;
33
57
  config?: Hume.empathicVoice.ReturnConfigSpec;
34
58
  }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Indicates the order in which the paginated results are presented, based on their creation date.
6
+ *
7
+ * It shows `ASC` for ascending order (chronological, with the oldest records first) or `DESC` for descending order (reverse-chronological, with the newest records first). This value corresponds to the `ascending_order` query parameter used in the request.
8
+ */
9
+ export declare type ReturnChatPagedEventsPaginationDirection = 'ASC' | 'DESC';
10
+ export declare const ReturnChatPagedEventsPaginationDirection: {
11
+ readonly Asc: "ASC";
12
+ readonly Desc: "DESC";
13
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ReturnChatPagedEventsPaginationDirection = void 0;
7
+ exports.ReturnChatPagedEventsPaginationDirection = {
8
+ Asc: 'ASC',
9
+ Desc: 'DESC',
10
+ };
@@ -0,0 +1,27 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Indicates the current state of the chat. There are six possible statuses:
6
+ *
7
+ * - `ACTIVE`: The chat is currently active and ongoing.
8
+ *
9
+ * - `USER_ENDED`: The chat was manually ended by the user.
10
+ *
11
+ * - `USER_TIMEOUT`: The chat ended due to a user-defined timeout.
12
+ *
13
+ * - `MAX_DURATION_TIMEOUT`: The chat ended because it reached the maximum allowed duration.
14
+ *
15
+ * - `INACTIVITY_TIMEOUT`: The chat ended due to an inactivity timeout.
16
+ *
17
+ * - `ERROR`: The chat ended unexpectedly due to an error.
18
+ */
19
+ export declare type ReturnChatPagedEventsStatus = 'ACTIVE' | 'USER_ENDED' | 'USER_TIMEOUT' | 'MAX_DURATION_TIMEOUT' | 'INACTIVITY_TIMEOUT' | 'ERROR';
20
+ export declare const ReturnChatPagedEventsStatus: {
21
+ readonly Active: "ACTIVE";
22
+ readonly UserEnded: "USER_ENDED";
23
+ readonly UserTimeout: "USER_TIMEOUT";
24
+ readonly MaxDurationTimeout: "MAX_DURATION_TIMEOUT";
25
+ readonly InactivityTimeout: "INACTIVITY_TIMEOUT";
26
+ readonly Error: "ERROR";
27
+ };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ReturnChatPagedEventsStatus = void 0;
7
+ exports.ReturnChatPagedEventsStatus = {
8
+ Active: 'ACTIVE',
9
+ UserEnded: 'USER_ENDED',
10
+ UserTimeout: 'USER_TIMEOUT',
11
+ MaxDurationTimeout: 'MAX_DURATION_TIMEOUT',
12
+ InactivityTimeout: 'INACTIVITY_TIMEOUT',
13
+ Error: 'ERROR',
14
+ };
@@ -0,0 +1,27 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Indicates the current state of the chat. There are six possible statuses:
6
+ *
7
+ * - `ACTIVE`: The chat is currently active and ongoing.
8
+ *
9
+ * - `USER_ENDED`: The chat was manually ended by the user.
10
+ *
11
+ * - `USER_TIMEOUT`: The chat ended due to a user-defined timeout.
12
+ *
13
+ * - `MAX_DURATION_TIMEOUT`: The chat ended because it reached the maximum allowed duration.
14
+ *
15
+ * - `INACTIVITY_TIMEOUT`: The chat ended due to an inactivity timeout.
16
+ *
17
+ * - `ERROR`: The chat ended unexpectedly due to an error.
18
+ */
19
+ export declare type ReturnChatStatus = 'ACTIVE' | 'USER_ENDED' | 'USER_TIMEOUT' | 'MAX_DURATION_TIMEOUT' | 'INACTIVITY_TIMEOUT' | 'ERROR';
20
+ export declare const ReturnChatStatus: {
21
+ readonly Active: "ACTIVE";
22
+ readonly UserEnded: "USER_ENDED";
23
+ readonly UserTimeout: "USER_TIMEOUT";
24
+ readonly MaxDurationTimeout: "MAX_DURATION_TIMEOUT";
25
+ readonly InactivityTimeout: "INACTIVITY_TIMEOUT";
26
+ readonly Error: "ERROR";
27
+ };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ReturnChatStatus = void 0;
7
+ exports.ReturnChatStatus = {
8
+ Active: 'ACTIVE',
9
+ UserEnded: 'USER_ENDED',
10
+ UserTimeout: 'USER_TIMEOUT',
11
+ MaxDurationTimeout: 'MAX_DURATION_TIMEOUT',
12
+ InactivityTimeout: 'INACTIVITY_TIMEOUT',
13
+ Error: 'ERROR',
14
+ };
@@ -8,23 +8,40 @@ import * as Hume from '../../../index';
8
8
  export interface ReturnConfig {
9
9
  /** Identifier for a Config. Formatted as a UUID. */
10
10
  id?: string;
11
- /** Version number for a Config. Version numbers should be integers. The combination of configId and version number is unique. */
11
+ /**
12
+ * Version number for a Config.
13
+ *
14
+ * Configs, as well as Prompts and Tools, are versioned. This versioning system supports iterative development, allowing you to progressively refine configurations and revert to previous versions if needed.
15
+ *
16
+ * Version numbers are integer values representing different iterations of the Config. Each update to the Config increments its version number.
17
+ */
12
18
  version?: number;
13
- /** Description that is appended to a specific version of a Config. */
19
+ /** An optional description of the Config version. */
14
20
  versionDescription?: string;
15
21
  /** Name applied to all versions of a particular Config. */
16
22
  name?: string;
17
- /** The timestamp when the first version of this config was created. */
23
+ /** Time at which the Config was created. Measured in seconds since the Unix epoch. */
18
24
  createdOn?: number;
19
- /** The timestamp when this version of the config was created. */
25
+ /** Time at which the Config was last modified. Measured in seconds since the Unix epoch. */
20
26
  modifiedOn?: number;
21
27
  prompt?: Hume.empathicVoice.ReturnPrompt;
28
+ /** A voice specification associated with this Config. */
22
29
  voice?: Hume.empathicVoice.ReturnVoice;
30
+ /**
31
+ * The supplemental language model associated with this Config.
32
+ *
33
+ * This model is used to generate longer, more detailed responses from EVI. Choosing an appropriate supplemental language model for your use case is crucial for generating fast, high-quality responses from EVI.
34
+ */
23
35
  languageModel?: Hume.empathicVoice.ReturnLanguageModel;
36
+ /**
37
+ * The eLLM setup associated with this Config.
38
+ *
39
+ * Hume's eLLM (empathic Large Language Model) is a multimodal language model that takes into account both expression measures and language. The eLLM generates short, empathic language responses and guides text-to-speech (TTS) prosody.
40
+ */
24
41
  ellmModel?: Hume.empathicVoice.ReturnEllmModel;
25
- /** List of user-defined tools associated with this config. */
42
+ /** List of user-defined tools associated with this Config. */
26
43
  tools?: (Hume.empathicVoice.ReturnUserDefinedTool | undefined)[];
27
- /** List of built-in tools associated with this config */
44
+ /** List of built-in tools associated with this Config. */
28
45
  builtinTools?: (Hume.empathicVoice.ReturnBuiltinTool | undefined)[];
29
46
  eventMessages?: Hume.empathicVoice.ReturnEventMessageSpecs;
30
47
  timeouts?: Hume.empathicVoice.ReturnTimeoutSpecs;
@@ -2,11 +2,17 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  /**
5
- * An id/version number for a specific config version
5
+ * The Config associated with this Chat.
6
6
  */
7
7
  export interface ReturnConfigSpec {
8
8
  /** Identifier for a Config. Formatted as a UUID. */
9
9
  id: string;
10
- /** Version number for a Config. Version numbers should be integers. The combination of configId and version number is unique. */
10
+ /**
11
+ * Version number for a Config.
12
+ *
13
+ * Configs, as well as Prompts and Tools, are versioned. This versioning system supports iterative development, allowing you to progressively refine configurations and revert to previous versions if needed.
14
+ *
15
+ * Version numbers are integer values representing different iterations of the Config. Each update to the Config increments its version number.
16
+ */
11
17
  version?: number;
12
18
  }
@@ -5,6 +5,10 @@
5
5
  * A specific eLLM Model configuration
6
6
  */
7
7
  export interface ReturnEllmModel {
8
- /** Boolean indicating if the model is allowed to generate short responses. */
8
+ /**
9
+ * Boolean indicating if the eLLM is allowed to generate short responses.
10
+ *
11
+ * If omitted, short responses from the eLLM are enabled by default.
12
+ */
9
13
  allowShortResponses: boolean;
10
14
  }
@@ -5,8 +5,12 @@
5
5
  * A specific event message configuration to be returned from the server
6
6
  */
7
7
  export interface ReturnEventMessageSpec {
8
- /** Boolean indicating if this event message is enabled. */
8
+ /**
9
+ * Boolean indicating if this event message is enabled.
10
+ *
11
+ * If set to `true`, a message will be sent when the circumstances for the specific event are met.
12
+ */
9
13
  enabled: boolean;
10
- /** Optional text that will be used as a verbatim event message. If the text is null and the event message is enabled, the system will generate a message based using the language model. */
14
+ /** Text to use as the event message when the corresponding event occurs. If no text is specified, EVI will generate an appropriate message based on its current context and the system prompt. */
11
15
  text?: string;
12
16
  }
@@ -3,9 +3,23 @@
3
3
  */
4
4
  import * as Hume from '../../../index';
5
5
  /**
6
- * Collection of event_message specs to be returned from the server
6
+ * Collection of event messages returned by the server.
7
+ *
8
+ * Event messages are sent by the server when specific events occur during a chat session. These messages are used to configure behaviors for EVI, such as controlling how EVI starts a new conversation.
7
9
  */
8
10
  export interface ReturnEventMessageSpecs {
9
- /** `enabled` causes the LLM to generate an initial message using the system prompt. `text` is the string to use verbatim as the initial message. */
11
+ /** Specifies the initial message EVI provides when a new chat is started, such as a greeting or welcome message. */
10
12
  onNewChat?: Hume.empathicVoice.ReturnEventMessageSpec;
13
+ /**
14
+ * Specifies the message EVI provides when the chat is about to be disconnected due to a user inactivity timeout, such as a message mentioning a lack of user input for a period of time.
15
+ *
16
+ * Enabling an inactivity message allows developers to use this message event for "checking in" with the user if they are not responding to see if they are still active.
17
+ *
18
+ * If the user does not respond in the number of seconds specified in the `inactivity_timeout` field, then EVI will say the message and the user has 15 seconds to respond. If they respond in time, the conversation will continue; if not, the conversation will end.
19
+ *
20
+ * However, if the inactivity message is not enabled, then reaching the inactivity timeout will immediately end the connection.
21
+ */
22
+ onInactivityTimeout?: Hume.empathicVoice.ReturnEventMessageSpec;
23
+ /** Specifies the message EVI provides when the chat is disconnected due to reaching the maximum chat duration, such as a message mentioning the time limit for the chat has been reached. */
24
+ onMaxDurationTimeout?: Hume.empathicVoice.ReturnEventMessageSpec;
11
25
  }