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.
- package/.mock/definition/empathic-voice/__package__.yml +855 -216
- package/.mock/definition/empathic-voice/chatGroups.yml +383 -35
- package/.mock/definition/empathic-voice/chats.yml +393 -44
- package/.mock/definition/empathic-voice/configs.yml +437 -228
- package/.mock/definition/empathic-voice/prompts.yml +258 -83
- package/.mock/definition/empathic-voice/tools.yml +119 -23
- package/.mock/definition/expression-measurement/__package__.yml +203 -59
- package/.mock/definition/expression-measurement/batch.yml +64 -35
- package/.mock/fern.config.json +1 -1
- package/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +12 -3
- package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +14 -5
- package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.ts +12 -4
- package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +16 -5
- package/api/resources/empathicVoice/resources/chats/client/Client.d.ts +13 -5
- package/api/resources/empathicVoice/resources/chats/client/Client.js +129 -97
- package/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.ts +12 -4
- package/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +12 -4
- package/api/resources/empathicVoice/resources/configs/client/Client.d.ts +96 -20
- package/api/resources/empathicVoice/resources/configs/client/Client.js +105 -29
- package/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigVersionsRequest.d.ts +7 -3
- package/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigsRequest.d.ts +11 -4
- package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +42 -4
- package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigName.d.ts +1 -1
- package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +47 -4
- package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersionDescription.d.ts +4 -2
- package/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +41 -23
- package/api/resources/empathicVoice/resources/prompts/client/Client.js +111 -80
- package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +10 -4
- package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptName.d.ts +1 -1
- package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +10 -3
- package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersionDescription.d.ts +4 -2
- package/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptVersionsRequest.d.ts +7 -3
- package/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptsRequest.d.ts +11 -4
- package/api/resources/empathicVoice/resources/tools/client/Client.d.ts +23 -11
- package/api/resources/empathicVoice/resources/tools/client/Client.js +93 -68
- package/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.ts +8 -4
- package/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.ts +8 -4
- package/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersionDescription.d.ts +1 -1
- package/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolVersionsRequest.d.ts +7 -3
- package/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolsRequest.d.ts +7 -3
- package/api/resources/empathicVoice/types/AudioInput.d.ts +4 -2
- package/api/resources/empathicVoice/types/Inference.d.ts +1 -1
- package/api/resources/empathicVoice/types/JsonMessage.d.ts +1 -1
- package/api/resources/empathicVoice/types/PostedBuiltinTool.d.ts +1 -1
- package/api/resources/empathicVoice/types/PostedEllmModel.d.ts +5 -1
- package/api/resources/empathicVoice/types/PostedEventMessageSpec.d.ts +6 -2
- package/api/resources/empathicVoice/types/PostedEventMessageSpecs.d.ts +16 -2
- package/api/resources/empathicVoice/types/PostedLanguageModel.d.ts +7 -3
- package/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +1 -1
- package/api/resources/empathicVoice/types/PostedPromptSpec.d.ts +8 -2
- package/api/resources/empathicVoice/types/PostedTimeoutSpecs.d.ts +3 -1
- package/api/resources/empathicVoice/types/PostedTimeoutSpecsInactivity.d.ts +1 -1
- package/api/resources/empathicVoice/types/PostedTimeoutSpecsMaxDuration.d.ts +1 -1
- package/api/resources/empathicVoice/types/PostedUserDefinedToolSpec.d.ts +7 -1
- package/api/resources/empathicVoice/types/PostedVoice.d.ts +1 -1
- package/api/resources/empathicVoice/types/ProsodyInference.d.ts +3 -1
- package/api/resources/empathicVoice/types/ReturnBuiltinTool.d.ts +4 -3
- package/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.d.ts +11 -0
- package/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.js +10 -0
- package/api/resources/empathicVoice/types/ReturnChat.d.ts +20 -8
- package/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +38 -9
- package/api/resources/empathicVoice/types/ReturnChatEventRole.d.ts +21 -0
- package/api/resources/empathicVoice/types/ReturnChatEventRole.js +12 -0
- package/api/resources/empathicVoice/types/ReturnChatEventType.d.ts +27 -0
- package/api/resources/empathicVoice/types/ReturnChatEventType.js +14 -0
- package/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +5 -5
- package/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +19 -7
- package/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.d.ts +13 -0
- package/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.js +10 -0
- package/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +38 -14
- package/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.d.ts +13 -0
- package/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.js +10 -0
- package/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.d.ts +27 -0
- package/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.js +14 -0
- package/api/resources/empathicVoice/types/ReturnChatStatus.d.ts +27 -0
- package/api/resources/empathicVoice/types/ReturnChatStatus.js +14 -0
- package/api/resources/empathicVoice/types/ReturnConfig.d.ts +23 -6
- package/api/resources/empathicVoice/types/ReturnConfigSpec.d.ts +8 -2
- package/api/resources/empathicVoice/types/ReturnEllmModel.d.ts +5 -1
- package/api/resources/empathicVoice/types/ReturnEventMessageSpec.d.ts +6 -2
- package/api/resources/empathicVoice/types/ReturnEventMessageSpecs.d.ts +16 -2
- package/api/resources/empathicVoice/types/ReturnLanguageModel.d.ts +9 -4
- package/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +15 -0
- package/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +14 -0
- package/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +18 -6
- package/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.d.ts +13 -0
- package/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.js +10 -0
- package/api/resources/empathicVoice/types/ReturnPagedChats.d.ts +18 -6
- package/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.d.ts +13 -0
- package/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.js +10 -0
- package/api/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +12 -4
- package/api/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +12 -4
- package/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +12 -4
- package/api/resources/empathicVoice/types/ReturnPrompt.d.ts +21 -8
- package/api/resources/empathicVoice/types/ReturnPromptVersionType.d.ts +11 -0
- package/api/resources/empathicVoice/types/ReturnPromptVersionType.js +10 -0
- package/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +6 -2
- package/api/resources/empathicVoice/types/ReturnTimeoutSpecs.d.ts +13 -1
- package/api/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +22 -11
- package/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.d.ts +11 -0
- package/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.js +10 -0
- package/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.d.ts +11 -0
- package/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.js +10 -0
- package/api/resources/empathicVoice/types/ReturnVoice.d.ts +4 -3
- package/api/resources/empathicVoice/types/ReturnVoiceName.d.ts +12 -0
- package/api/resources/empathicVoice/types/ReturnVoiceName.js +11 -0
- package/api/resources/empathicVoice/types/index.d.ts +14 -0
- package/api/resources/empathicVoice/types/index.js +14 -0
- package/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +4 -4
- package/api/resources/expressionMeasurement/resources/batch/client/Client.js +11 -19
- package/api/resources/expressionMeasurement/resources/batch/client/requests/BatchListJobsRequest.d.ts +25 -9
- package/api/resources/expressionMeasurement/resources/batch/client/requests/BatchStartInferenceJobFromLocalFileRequest.d.ts +1 -0
- package/api/resources/expressionMeasurement/types/{UnionJobJobInference.d.ts → CustomModelsInferenceJob.d.ts} +2 -1
- package/api/resources/expressionMeasurement/types/{UnionJobJobEmbeddingGeneration.d.ts → CustomModelsTrainingJob.d.ts} +2 -1
- package/api/resources/expressionMeasurement/types/EmbeddingGenerationJob.d.ts +7 -0
- package/api/resources/expressionMeasurement/types/Face.d.ts +5 -0
- package/api/resources/expressionMeasurement/types/File_.d.ts +3 -0
- package/api/resources/expressionMeasurement/types/Granularity.d.ts +9 -1
- package/api/resources/expressionMeasurement/types/InferenceBaseRequest.d.ts +6 -1
- package/api/resources/expressionMeasurement/types/InferenceJob.d.ts +12 -0
- package/api/resources/expressionMeasurement/types/JobInference.d.ts +3 -0
- package/api/resources/expressionMeasurement/types/Language.d.ts +5 -0
- package/api/resources/expressionMeasurement/types/Models.d.ts +3 -0
- package/api/resources/expressionMeasurement/types/Ner.d.ts +5 -0
- package/api/resources/expressionMeasurement/types/Prosody.d.ts +5 -0
- package/api/resources/expressionMeasurement/types/Transcription.d.ts +40 -0
- package/api/resources/expressionMeasurement/types/UnionJob.d.ts +1 -15
- package/api/resources/expressionMeasurement/types/UnionPredictResult.d.ts +1 -1
- package/api/resources/expressionMeasurement/types/Window.d.ts +5 -0
- package/api/resources/expressionMeasurement/types/index.d.ts +4 -4
- package/api/resources/expressionMeasurement/types/index.js +4 -4
- package/api/resources/index.d.ts +1 -1
- package/api/resources/index.js +2 -2
- package/core/index.d.ts +1 -0
- package/core/index.js +1 -0
- package/core/pagination/Page.d.ts +29 -0
- package/core/pagination/Page.js +94 -0
- package/core/pagination/Pageable.d.ts +12 -0
- package/core/pagination/Pageable.js +10 -0
- package/core/pagination/index.d.ts +2 -0
- package/core/pagination/index.js +7 -0
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +12 -3
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +14 -5
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.ts +12 -4
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +16 -5
- package/dist/api/resources/empathicVoice/resources/chats/client/Client.d.ts +13 -5
- package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +129 -97
- package/dist/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.ts +12 -4
- package/dist/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +12 -4
- package/dist/api/resources/empathicVoice/resources/configs/client/Client.d.ts +96 -20
- package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +105 -29
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigVersionsRequest.d.ts +7 -3
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigsRequest.d.ts +11 -4
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +42 -4
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigName.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +47 -4
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersionDescription.d.ts +4 -2
- package/dist/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +41 -23
- package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +111 -80
- package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +10 -4
- package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptName.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +10 -3
- package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersionDescription.d.ts +4 -2
- package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptVersionsRequest.d.ts +7 -3
- package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptsRequest.d.ts +11 -4
- package/dist/api/resources/empathicVoice/resources/tools/client/Client.d.ts +23 -11
- package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +93 -68
- package/dist/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.ts +8 -4
- package/dist/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.ts +8 -4
- package/dist/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersionDescription.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolVersionsRequest.d.ts +7 -3
- package/dist/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolsRequest.d.ts +7 -3
- package/dist/api/resources/empathicVoice/types/AudioInput.d.ts +4 -2
- package/dist/api/resources/empathicVoice/types/Inference.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/JsonMessage.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/PostedBuiltinTool.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/PostedEllmModel.d.ts +5 -1
- package/dist/api/resources/empathicVoice/types/PostedEventMessageSpec.d.ts +6 -2
- package/dist/api/resources/empathicVoice/types/PostedEventMessageSpecs.d.ts +16 -2
- package/dist/api/resources/empathicVoice/types/PostedLanguageModel.d.ts +7 -3
- package/dist/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/PostedPromptSpec.d.ts +8 -2
- package/dist/api/resources/empathicVoice/types/PostedTimeoutSpecs.d.ts +3 -1
- package/dist/api/resources/empathicVoice/types/PostedTimeoutSpecsInactivity.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/PostedTimeoutSpecsMaxDuration.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/PostedUserDefinedToolSpec.d.ts +7 -1
- package/dist/api/resources/empathicVoice/types/PostedVoice.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/ProsodyInference.d.ts +3 -1
- package/dist/api/resources/empathicVoice/types/ReturnBuiltinTool.d.ts +4 -3
- package/dist/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.d.ts +11 -0
- package/dist/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.js +10 -0
- package/dist/api/resources/empathicVoice/types/ReturnChat.d.ts +20 -8
- package/dist/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +38 -9
- package/dist/api/resources/empathicVoice/types/ReturnChatEventRole.d.ts +21 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatEventRole.js +12 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatEventType.d.ts +27 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatEventType.js +14 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +5 -5
- package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +19 -7
- package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.d.ts +13 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.js +10 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +38 -14
- package/dist/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.d.ts +13 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.js +10 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.d.ts +27 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.js +14 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatStatus.d.ts +27 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatStatus.js +14 -0
- package/dist/api/resources/empathicVoice/types/ReturnConfig.d.ts +23 -6
- package/dist/api/resources/empathicVoice/types/ReturnConfigSpec.d.ts +8 -2
- package/dist/api/resources/empathicVoice/types/ReturnEllmModel.d.ts +5 -1
- package/dist/api/resources/empathicVoice/types/ReturnEventMessageSpec.d.ts +6 -2
- package/dist/api/resources/empathicVoice/types/ReturnEventMessageSpecs.d.ts +16 -2
- package/dist/api/resources/empathicVoice/types/ReturnLanguageModel.d.ts +9 -4
- package/dist/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +15 -0
- package/dist/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +14 -0
- package/dist/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +18 -6
- package/dist/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.d.ts +13 -0
- package/dist/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.js +10 -0
- package/dist/api/resources/empathicVoice/types/ReturnPagedChats.d.ts +18 -6
- package/dist/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.d.ts +13 -0
- package/dist/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.js +10 -0
- package/dist/api/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +12 -4
- package/dist/api/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +12 -4
- package/dist/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +12 -4
- package/dist/api/resources/empathicVoice/types/ReturnPrompt.d.ts +21 -8
- package/dist/api/resources/empathicVoice/types/ReturnPromptVersionType.d.ts +11 -0
- package/dist/api/resources/empathicVoice/types/ReturnPromptVersionType.js +10 -0
- package/dist/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +6 -2
- package/dist/api/resources/empathicVoice/types/ReturnTimeoutSpecs.d.ts +13 -1
- package/dist/api/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +22 -11
- package/dist/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.d.ts +11 -0
- package/dist/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.js +10 -0
- package/dist/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.d.ts +11 -0
- package/dist/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.js +10 -0
- package/dist/api/resources/empathicVoice/types/ReturnVoice.d.ts +4 -3
- package/dist/api/resources/empathicVoice/types/ReturnVoiceName.d.ts +12 -0
- package/dist/api/resources/empathicVoice/types/ReturnVoiceName.js +11 -0
- package/dist/api/resources/empathicVoice/types/index.d.ts +14 -0
- package/dist/api/resources/empathicVoice/types/index.js +14 -0
- package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +4 -4
- package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +11 -19
- package/dist/api/resources/expressionMeasurement/resources/batch/client/requests/BatchListJobsRequest.d.ts +25 -9
- package/dist/api/resources/expressionMeasurement/resources/batch/client/requests/BatchStartInferenceJobFromLocalFileRequest.d.ts +1 -0
- package/{api/resources/expressionMeasurement/types/UnionJobJobTraining.d.ts → dist/api/resources/expressionMeasurement/types/CustomModelsInferenceJob.d.ts} +2 -1
- package/{api/resources/expressionMeasurement/types/UnionJobJobTlInference.d.ts → dist/api/resources/expressionMeasurement/types/CustomModelsTrainingJob.d.ts} +2 -1
- package/dist/api/resources/expressionMeasurement/types/EmbeddingGenerationJob.d.ts +7 -0
- package/dist/api/resources/expressionMeasurement/types/Face.d.ts +5 -0
- package/dist/api/resources/expressionMeasurement/types/File_.d.ts +3 -0
- package/dist/api/resources/expressionMeasurement/types/Granularity.d.ts +9 -1
- package/dist/api/resources/expressionMeasurement/types/InferenceBaseRequest.d.ts +6 -1
- package/dist/api/resources/expressionMeasurement/types/InferenceJob.d.ts +12 -0
- package/dist/api/resources/expressionMeasurement/types/JobInference.d.ts +3 -0
- package/dist/api/resources/expressionMeasurement/types/Language.d.ts +5 -0
- package/dist/api/resources/expressionMeasurement/types/Models.d.ts +3 -0
- package/dist/api/resources/expressionMeasurement/types/Ner.d.ts +5 -0
- package/dist/api/resources/expressionMeasurement/types/Prosody.d.ts +5 -0
- package/dist/api/resources/expressionMeasurement/types/Transcription.d.ts +40 -0
- package/dist/api/resources/expressionMeasurement/types/UnionJob.d.ts +1 -15
- package/dist/api/resources/expressionMeasurement/types/UnionPredictResult.d.ts +1 -1
- package/dist/api/resources/expressionMeasurement/types/Window.d.ts +5 -0
- package/dist/api/resources/expressionMeasurement/types/index.d.ts +4 -4
- package/dist/api/resources/expressionMeasurement/types/index.js +4 -4
- package/dist/api/resources/index.d.ts +1 -1
- package/dist/api/resources/index.js +2 -2
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.js +1 -0
- package/dist/core/pagination/Page.d.ts +29 -0
- package/dist/core/pagination/Page.js +94 -0
- package/dist/core/pagination/Pageable.d.ts +12 -0
- package/dist/core/pagination/Pageable.js +10 -0
- package/dist/core/pagination/index.d.ts +2 -0
- package/dist/core/pagination/index.js +7 -0
- package/dist/errors/HumeError.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/JsonMessage.d.ts +2 -1
- package/dist/serialization/resources/empathicVoice/types/JsonMessage.js +2 -0
- package/dist/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.d.ts +2 -0
- package/dist/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.js +2 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnBuiltinTool.d.ts +2 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnBuiltinTool.js +2 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnBuiltinToolToolType.d.ts +10 -0
- package/{serialization/resources/expressionMeasurement/types/UnionJobJobTraining.js → dist/serialization/resources/empathicVoice/types/ReturnBuiltinToolToolType.js} +2 -3
- package/dist/serialization/resources/empathicVoice/types/ReturnChat.d.ts +2 -2
- package/dist/serialization/resources/empathicVoice/types/ReturnChat.js +2 -2
- package/dist/serialization/resources/empathicVoice/types/ReturnChatEvent.d.ts +4 -2
- package/dist/serialization/resources/empathicVoice/types/ReturnChatEvent.js +4 -2
- package/dist/serialization/resources/empathicVoice/types/ReturnChatEventRole.d.ts +10 -0
- package/dist/serialization/resources/{expressionMeasurement/types/UnionJobJobTraining.js → empathicVoice/types/ReturnChatEventRole.js} +2 -3
- package/dist/serialization/resources/empathicVoice/types/ReturnChatEventType.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatEventType.js +38 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +2 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +2 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.js +31 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +4 -3
- package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +4 -3
- package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.js +31 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEventsStatus.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEventsStatus.js +38 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatStatus.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatStatus.js +38 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.d.ts +2 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.js +2 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModel.d.ts +2 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModel.js +2 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +38 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +2 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +2 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.js +31 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedChats.d.ts +2 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedChats.js +2 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.js +31 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnPrompt.d.ts +2 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnPrompt.js +2 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnPromptVersionType.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnPromptVersionType.js +31 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +4 -2
- package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.js +4 -2
- package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedToolToolType.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedToolToolType.js +31 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.js +31 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnVoice.d.ts +3 -2
- package/dist/serialization/resources/empathicVoice/types/ReturnVoice.js +3 -2
- package/dist/serialization/resources/empathicVoice/types/ReturnVoiceName.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnVoiceName.js +31 -0
- package/dist/serialization/resources/empathicVoice/types/index.d.ts +14 -0
- package/dist/serialization/resources/empathicVoice/types/index.js +14 -0
- package/{serialization/resources/expressionMeasurement/types/UnionJobJobTlInference.d.ts → dist/serialization/resources/expressionMeasurement/types/CustomModelsInferenceJob.d.ts} +3 -2
- package/{serialization/resources/expressionMeasurement/types/UnionJobJobTlInference.js → dist/serialization/resources/expressionMeasurement/types/CustomModelsInferenceJob.js} +6 -2
- package/{serialization/resources/expressionMeasurement/types/UnionJobJobTraining.d.ts → dist/serialization/resources/expressionMeasurement/types/CustomModelsTrainingJob.d.ts} +3 -2
- package/dist/serialization/resources/expressionMeasurement/types/CustomModelsTrainingJob.js +36 -0
- package/dist/serialization/resources/expressionMeasurement/types/{UnionJobJobEmbeddingGeneration.d.ts → EmbeddingGenerationJob.d.ts} +3 -2
- package/dist/serialization/resources/expressionMeasurement/types/{UnionJobJobEmbeddingGeneration.js → EmbeddingGenerationJob.js} +6 -2
- package/{serialization/resources/expressionMeasurement/types/UnionJobJobInference.d.ts → dist/serialization/resources/expressionMeasurement/types/InferenceJob.d.ts} +3 -2
- package/{serialization/resources/expressionMeasurement/types/UnionJobJobInference.js → dist/serialization/resources/expressionMeasurement/types/InferenceJob.js} +6 -2
- package/dist/serialization/resources/expressionMeasurement/types/UnionJob.d.ts +3 -18
- package/dist/serialization/resources/expressionMeasurement/types/UnionJob.js +2 -39
- package/dist/serialization/resources/expressionMeasurement/types/UnionPredictResult.d.ts +2 -3
- package/dist/serialization/resources/expressionMeasurement/types/UnionPredictResult.js +1 -29
- package/dist/serialization/resources/expressionMeasurement/types/index.d.ts +4 -4
- package/dist/serialization/resources/expressionMeasurement/types/index.js +4 -4
- package/dist/serialization/resources/index.d.ts +1 -1
- package/dist/serialization/resources/index.js +2 -2
- package/errors/HumeError.js +1 -1
- package/eslint.config.mjs +1 -1
- package/{jest.config.mjs → jest.config.js} +1 -3
- package/package.json +2 -2
- package/reference.md +608 -502
- package/serialization/resources/empathicVoice/types/JsonMessage.d.ts +2 -1
- package/serialization/resources/empathicVoice/types/JsonMessage.js +2 -0
- package/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.d.ts +2 -0
- package/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.js +2 -0
- package/serialization/resources/empathicVoice/types/ReturnBuiltinTool.d.ts +2 -1
- package/serialization/resources/empathicVoice/types/ReturnBuiltinTool.js +2 -1
- package/serialization/resources/empathicVoice/types/ReturnBuiltinToolToolType.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnBuiltinToolToolType.js +31 -0
- package/serialization/resources/empathicVoice/types/ReturnChat.d.ts +2 -2
- package/serialization/resources/empathicVoice/types/ReturnChat.js +2 -2
- package/serialization/resources/empathicVoice/types/ReturnChatEvent.d.ts +4 -2
- package/serialization/resources/empathicVoice/types/ReturnChatEvent.js +4 -2
- package/serialization/resources/empathicVoice/types/ReturnChatEventRole.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnChatEventRole.js +31 -0
- package/serialization/resources/empathicVoice/types/ReturnChatEventType.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnChatEventType.js +38 -0
- package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +2 -1
- package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +2 -1
- package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.js +31 -0
- package/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +4 -3
- package/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +4 -3
- package/serialization/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.js +31 -0
- package/serialization/resources/empathicVoice/types/ReturnChatPagedEventsStatus.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnChatPagedEventsStatus.js +38 -0
- package/serialization/resources/empathicVoice/types/ReturnChatStatus.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnChatStatus.js +38 -0
- package/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.d.ts +2 -0
- package/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.js +2 -0
- package/serialization/resources/empathicVoice/types/ReturnLanguageModel.d.ts +2 -1
- package/serialization/resources/empathicVoice/types/ReturnLanguageModel.js +2 -1
- package/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +38 -0
- package/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +2 -1
- package/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +2 -1
- package/serialization/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.js +31 -0
- package/serialization/resources/empathicVoice/types/ReturnPagedChats.d.ts +2 -1
- package/serialization/resources/empathicVoice/types/ReturnPagedChats.js +2 -1
- package/serialization/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.js +31 -0
- package/serialization/resources/empathicVoice/types/ReturnPrompt.d.ts +2 -1
- package/serialization/resources/empathicVoice/types/ReturnPrompt.js +2 -1
- package/serialization/resources/empathicVoice/types/ReturnPromptVersionType.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnPromptVersionType.js +31 -0
- package/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +4 -2
- package/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.js +4 -2
- package/serialization/resources/empathicVoice/types/ReturnUserDefinedToolToolType.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnUserDefinedToolToolType.js +31 -0
- package/serialization/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.js +31 -0
- package/serialization/resources/empathicVoice/types/ReturnVoice.d.ts +3 -2
- package/serialization/resources/empathicVoice/types/ReturnVoice.js +3 -2
- package/serialization/resources/empathicVoice/types/ReturnVoiceName.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnVoiceName.js +31 -0
- package/serialization/resources/empathicVoice/types/index.d.ts +14 -0
- package/serialization/resources/empathicVoice/types/index.js +14 -0
- package/{dist/serialization/resources/expressionMeasurement/types/UnionJobJobTlInference.d.ts → serialization/resources/expressionMeasurement/types/CustomModelsInferenceJob.d.ts} +3 -2
- package/{dist/serialization/resources/expressionMeasurement/types/UnionJobJobTlInference.js → serialization/resources/expressionMeasurement/types/CustomModelsInferenceJob.js} +6 -2
- package/{dist/serialization/resources/expressionMeasurement/types/UnionJobJobTraining.d.ts → serialization/resources/expressionMeasurement/types/CustomModelsTrainingJob.d.ts} +3 -2
- package/serialization/resources/expressionMeasurement/types/CustomModelsTrainingJob.js +36 -0
- package/serialization/resources/expressionMeasurement/types/{UnionJobJobEmbeddingGeneration.d.ts → EmbeddingGenerationJob.d.ts} +3 -2
- package/serialization/resources/expressionMeasurement/types/{UnionJobJobEmbeddingGeneration.js → EmbeddingGenerationJob.js} +6 -2
- package/{dist/serialization/resources/expressionMeasurement/types/UnionJobJobInference.d.ts → serialization/resources/expressionMeasurement/types/InferenceJob.d.ts} +3 -2
- package/{dist/serialization/resources/expressionMeasurement/types/UnionJobJobInference.js → serialization/resources/expressionMeasurement/types/InferenceJob.js} +6 -2
- package/serialization/resources/expressionMeasurement/types/UnionJob.d.ts +3 -18
- package/serialization/resources/expressionMeasurement/types/UnionJob.js +2 -39
- package/serialization/resources/expressionMeasurement/types/UnionPredictResult.d.ts +2 -3
- package/serialization/resources/expressionMeasurement/types/UnionPredictResult.js +1 -29
- package/serialization/resources/expressionMeasurement/types/index.d.ts +4 -4
- package/serialization/resources/expressionMeasurement/types/index.js +4 -4
- package/serialization/resources/index.d.ts +1 -1
- package/serialization/resources/index.js +2 -2
- package/dist/api/resources/expressionMeasurement/types/UnionJobJobEmbeddingGeneration.d.ts +0 -6
- package/dist/api/resources/expressionMeasurement/types/UnionJobJobInference.d.ts +0 -6
- package/dist/api/resources/expressionMeasurement/types/UnionJobJobTlInference.d.ts +0 -6
- package/dist/api/resources/expressionMeasurement/types/UnionJobJobTraining.d.ts +0 -6
- /package/api/resources/expressionMeasurement/types/{UnionJobJobEmbeddingGeneration.js → CustomModelsInferenceJob.js} +0 -0
- /package/api/resources/expressionMeasurement/types/{UnionJobJobInference.js → CustomModelsTrainingJob.js} +0 -0
- /package/api/resources/expressionMeasurement/types/{UnionJobJobTlInference.js → EmbeddingGenerationJob.js} +0 -0
- /package/api/resources/expressionMeasurement/types/{UnionJobJobTraining.js → InferenceJob.js} +0 -0
- /package/dist/api/resources/expressionMeasurement/types/{UnionJobJobEmbeddingGeneration.js → CustomModelsInferenceJob.js} +0 -0
- /package/dist/api/resources/expressionMeasurement/types/{UnionJobJobInference.js → CustomModelsTrainingJob.js} +0 -0
- /package/dist/api/resources/expressionMeasurement/types/{UnionJobJobTlInference.js → EmbeddingGenerationJob.js} +0 -0
- /package/dist/api/resources/expressionMeasurement/types/{UnionJobJobTraining.js → InferenceJob.js} +0 -0
|
@@ -53,7 +53,10 @@ class Configs {
|
|
|
53
53
|
* @param {Configs.RequestOptions} requestOptions - Request-specific configuration.
|
|
54
54
|
*
|
|
55
55
|
* @example
|
|
56
|
-
* await client.empathicVoice.configs.listConfigs(
|
|
56
|
+
* await client.empathicVoice.configs.listConfigs({
|
|
57
|
+
* pageNumber: 0,
|
|
58
|
+
* pageSize: 1
|
|
59
|
+
* })
|
|
57
60
|
*/
|
|
58
61
|
listConfigs(request = {}, requestOptions) {
|
|
59
62
|
var _a, _b;
|
|
@@ -75,7 +78,7 @@ class Configs {
|
|
|
75
78
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
76
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/configs'),
|
|
77
80
|
method: 'GET',
|
|
78
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.
|
|
81
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.6', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
79
82
|
contentType: 'application/json',
|
|
80
83
|
queryParameters: _queryParams,
|
|
81
84
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
|
|
@@ -119,7 +122,34 @@ class Configs {
|
|
|
119
122
|
*
|
|
120
123
|
* @example
|
|
121
124
|
* await client.empathicVoice.configs.createConfig({
|
|
122
|
-
* name: "
|
|
125
|
+
* name: "Weather Assistant Config",
|
|
126
|
+
* prompt: {
|
|
127
|
+
* id: "af699d45-2985-42cc-91b9-af9e5da3bac5",
|
|
128
|
+
* version: 0
|
|
129
|
+
* },
|
|
130
|
+
* voice: {
|
|
131
|
+
* provider: "HUME_AI",
|
|
132
|
+
* name: Hume.empathicVoice.PostedVoiceName.Kora
|
|
133
|
+
* },
|
|
134
|
+
* languageModel: {
|
|
135
|
+
* modelProvider: Hume.empathicVoice.PostedLanguageModelModelProvider.Anthropic,
|
|
136
|
+
* modelResource: "claude-3-5-sonnet-20240620",
|
|
137
|
+
* temperature: 1
|
|
138
|
+
* },
|
|
139
|
+
* eventMessages: {
|
|
140
|
+
* onNewChat: {
|
|
141
|
+
* enabled: false,
|
|
142
|
+
* text: ""
|
|
143
|
+
* },
|
|
144
|
+
* onInactivityTimeout: {
|
|
145
|
+
* enabled: false,
|
|
146
|
+
* text: ""
|
|
147
|
+
* },
|
|
148
|
+
* onMaxDurationTimeout: {
|
|
149
|
+
* enabled: false,
|
|
150
|
+
* text: ""
|
|
151
|
+
* }
|
|
152
|
+
* }
|
|
123
153
|
* })
|
|
124
154
|
*/
|
|
125
155
|
createConfig(request, requestOptions) {
|
|
@@ -128,7 +158,7 @@ class Configs {
|
|
|
128
158
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
129
159
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, 'v0/evi/configs'),
|
|
130
160
|
method: 'POST',
|
|
131
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.
|
|
161
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.6', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
132
162
|
contentType: 'application/json',
|
|
133
163
|
body: serializers.empathicVoice.PostedConfig.jsonOrThrow(request, {
|
|
134
164
|
unrecognizedObjectKeys: 'strip',
|
|
@@ -169,12 +199,12 @@ class Configs {
|
|
|
169
199
|
});
|
|
170
200
|
}
|
|
171
201
|
/**
|
|
172
|
-
* @param {string} id - Identifier for a
|
|
202
|
+
* @param {string} id - Identifier for a Config. Formatted as a UUID.
|
|
173
203
|
* @param {Hume.empathicVoice.ConfigsListConfigVersionsRequest} request
|
|
174
204
|
* @param {Configs.RequestOptions} requestOptions - Request-specific configuration.
|
|
175
205
|
*
|
|
176
206
|
* @example
|
|
177
|
-
* await client.empathicVoice.configs.listConfigVersions("
|
|
207
|
+
* await client.empathicVoice.configs.listConfigVersions("1b60e1a0-cc59-424a-8d2c-189d354db3f3")
|
|
178
208
|
*/
|
|
179
209
|
listConfigVersions(id, request = {}, requestOptions) {
|
|
180
210
|
var _a, _b;
|
|
@@ -193,7 +223,7 @@ class Configs {
|
|
|
193
223
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
194
224
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}`),
|
|
195
225
|
method: 'GET',
|
|
196
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.
|
|
226
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.6', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
197
227
|
contentType: 'application/json',
|
|
198
228
|
queryParameters: _queryParams,
|
|
199
229
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
|
|
@@ -232,12 +262,44 @@ class Configs {
|
|
|
232
262
|
});
|
|
233
263
|
}
|
|
234
264
|
/**
|
|
235
|
-
* @param {string} id - Identifier for a
|
|
265
|
+
* @param {string} id - Identifier for a Config. Formatted as a UUID.
|
|
236
266
|
* @param {Hume.empathicVoice.PostedConfigVersion} request
|
|
237
267
|
* @param {Configs.RequestOptions} requestOptions - Request-specific configuration.
|
|
238
268
|
*
|
|
239
269
|
* @example
|
|
240
|
-
* await client.empathicVoice.configs.createConfigVersion("
|
|
270
|
+
* await client.empathicVoice.configs.createConfigVersion("1b60e1a0-cc59-424a-8d2c-189d354db3f3", {
|
|
271
|
+
* versionDescription: "This is an updated version of the Weather Assistant Config.",
|
|
272
|
+
* prompt: {
|
|
273
|
+
* id: "af699d45-2985-42cc-91b9-af9e5da3bac5",
|
|
274
|
+
* version: 0
|
|
275
|
+
* },
|
|
276
|
+
* voice: {
|
|
277
|
+
* provider: "HUME_AI",
|
|
278
|
+
* name: Hume.empathicVoice.PostedVoiceName.Ito
|
|
279
|
+
* },
|
|
280
|
+
* languageModel: {
|
|
281
|
+
* modelProvider: Hume.empathicVoice.PostedLanguageModelModelProvider.Anthropic,
|
|
282
|
+
* modelResource: "claude-3-5-sonnet-20240620",
|
|
283
|
+
* temperature: 1
|
|
284
|
+
* },
|
|
285
|
+
* ellmModel: {
|
|
286
|
+
* allowShortResponses: true
|
|
287
|
+
* },
|
|
288
|
+
* eventMessages: {
|
|
289
|
+
* onNewChat: {
|
|
290
|
+
* enabled: false,
|
|
291
|
+
* text: ""
|
|
292
|
+
* },
|
|
293
|
+
* onInactivityTimeout: {
|
|
294
|
+
* enabled: false,
|
|
295
|
+
* text: ""
|
|
296
|
+
* },
|
|
297
|
+
* onMaxDurationTimeout: {
|
|
298
|
+
* enabled: false,
|
|
299
|
+
* text: ""
|
|
300
|
+
* }
|
|
301
|
+
* }
|
|
302
|
+
* })
|
|
241
303
|
*/
|
|
242
304
|
createConfigVersion(id, request = {}, requestOptions) {
|
|
243
305
|
var _a, _b;
|
|
@@ -245,7 +307,7 @@ class Configs {
|
|
|
245
307
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
246
308
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}`),
|
|
247
309
|
method: 'POST',
|
|
248
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.
|
|
310
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.6', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
249
311
|
contentType: 'application/json',
|
|
250
312
|
body: serializers.empathicVoice.PostedConfigVersion.jsonOrThrow(request, {
|
|
251
313
|
unrecognizedObjectKeys: 'strip',
|
|
@@ -286,11 +348,11 @@ class Configs {
|
|
|
286
348
|
});
|
|
287
349
|
}
|
|
288
350
|
/**
|
|
289
|
-
* @param {string} id - Identifier for a
|
|
351
|
+
* @param {string} id - Identifier for a Config. Formatted as a UUID.
|
|
290
352
|
* @param {Configs.RequestOptions} requestOptions - Request-specific configuration.
|
|
291
353
|
*
|
|
292
354
|
* @example
|
|
293
|
-
* await client.empathicVoice.configs.deleteConfig("
|
|
355
|
+
* await client.empathicVoice.configs.deleteConfig("1b60e1a0-cc59-424a-8d2c-189d354db3f3")
|
|
294
356
|
*/
|
|
295
357
|
deleteConfig(id, requestOptions) {
|
|
296
358
|
var _a, _b;
|
|
@@ -298,7 +360,7 @@ class Configs {
|
|
|
298
360
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
299
361
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}`),
|
|
300
362
|
method: 'DELETE',
|
|
301
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.
|
|
363
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.6', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
302
364
|
contentType: 'application/json',
|
|
303
365
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
|
|
304
366
|
? requestOptions.timeoutInSeconds * 1000
|
|
@@ -331,13 +393,13 @@ class Configs {
|
|
|
331
393
|
});
|
|
332
394
|
}
|
|
333
395
|
/**
|
|
334
|
-
* @param {string} id - Identifier for a
|
|
396
|
+
* @param {string} id - Identifier for a Config. Formatted as a UUID.
|
|
335
397
|
* @param {Hume.empathicVoice.PostedConfigName} request
|
|
336
398
|
* @param {Configs.RequestOptions} requestOptions - Request-specific configuration.
|
|
337
399
|
*
|
|
338
400
|
* @example
|
|
339
|
-
* await client.empathicVoice.configs.updateConfigName("
|
|
340
|
-
* name: "
|
|
401
|
+
* await client.empathicVoice.configs.updateConfigName("1b60e1a0-cc59-424a-8d2c-189d354db3f3", {
|
|
402
|
+
* name: "Updated Weather Assistant Config Name"
|
|
341
403
|
* })
|
|
342
404
|
*/
|
|
343
405
|
updateConfigName(id, request, requestOptions) {
|
|
@@ -346,7 +408,7 @@ class Configs {
|
|
|
346
408
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
347
409
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}`),
|
|
348
410
|
method: 'PATCH',
|
|
349
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.
|
|
411
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.6', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
350
412
|
contentType: 'application/json',
|
|
351
413
|
body: serializers.empathicVoice.PostedConfigName.jsonOrThrow(request, {
|
|
352
414
|
unrecognizedObjectKeys: 'strip',
|
|
@@ -383,12 +445,16 @@ class Configs {
|
|
|
383
445
|
});
|
|
384
446
|
}
|
|
385
447
|
/**
|
|
386
|
-
* @param {string} id - Identifier for a
|
|
387
|
-
* @param {number} version - Version number for a
|
|
448
|
+
* @param {string} id - Identifier for a Config. Formatted as a UUID.
|
|
449
|
+
* @param {number} version - Version number for a Config.
|
|
450
|
+
*
|
|
451
|
+
* 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.
|
|
452
|
+
*
|
|
453
|
+
* Version numbers are integer values representing different iterations of the Config. Each update to the Config increments its version number.
|
|
388
454
|
* @param {Configs.RequestOptions} requestOptions - Request-specific configuration.
|
|
389
455
|
*
|
|
390
456
|
* @example
|
|
391
|
-
* await client.empathicVoice.configs.getConfigVersion("
|
|
457
|
+
* await client.empathicVoice.configs.getConfigVersion("1b60e1a0-cc59-424a-8d2c-189d354db3f3", 1)
|
|
392
458
|
*/
|
|
393
459
|
getConfigVersion(id, version, requestOptions) {
|
|
394
460
|
var _a, _b;
|
|
@@ -396,7 +462,7 @@ class Configs {
|
|
|
396
462
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
397
463
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
398
464
|
method: 'GET',
|
|
399
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.
|
|
465
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.6', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
400
466
|
contentType: 'application/json',
|
|
401
467
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
|
|
402
468
|
? requestOptions.timeoutInSeconds * 1000
|
|
@@ -434,12 +500,16 @@ class Configs {
|
|
|
434
500
|
});
|
|
435
501
|
}
|
|
436
502
|
/**
|
|
437
|
-
* @param {string} id - Identifier for a
|
|
438
|
-
* @param {number} version - Version number for a
|
|
503
|
+
* @param {string} id - Identifier for a Config. Formatted as a UUID.
|
|
504
|
+
* @param {number} version - Version number for a Config.
|
|
505
|
+
*
|
|
506
|
+
* 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.
|
|
507
|
+
*
|
|
508
|
+
* Version numbers are integer values representing different iterations of the Config. Each update to the Config increments its version number.
|
|
439
509
|
* @param {Configs.RequestOptions} requestOptions - Request-specific configuration.
|
|
440
510
|
*
|
|
441
511
|
* @example
|
|
442
|
-
* await client.empathicVoice.configs.deleteConfigVersion("
|
|
512
|
+
* await client.empathicVoice.configs.deleteConfigVersion("1b60e1a0-cc59-424a-8d2c-189d354db3f3", 1)
|
|
443
513
|
*/
|
|
444
514
|
deleteConfigVersion(id, version, requestOptions) {
|
|
445
515
|
var _a, _b;
|
|
@@ -447,7 +517,7 @@ class Configs {
|
|
|
447
517
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
448
518
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
449
519
|
method: 'DELETE',
|
|
450
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.
|
|
520
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.6', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
451
521
|
contentType: 'application/json',
|
|
452
522
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
|
|
453
523
|
? requestOptions.timeoutInSeconds * 1000
|
|
@@ -480,13 +550,19 @@ class Configs {
|
|
|
480
550
|
});
|
|
481
551
|
}
|
|
482
552
|
/**
|
|
483
|
-
* @param {string} id - Identifier for a
|
|
484
|
-
* @param {number} version - Version number for a
|
|
553
|
+
* @param {string} id - Identifier for a Config. Formatted as a UUID.
|
|
554
|
+
* @param {number} version - Version number for a Config.
|
|
555
|
+
*
|
|
556
|
+
* 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.
|
|
557
|
+
*
|
|
558
|
+
* Version numbers are integer values representing different iterations of the Config. Each update to the Config increments its version number.
|
|
485
559
|
* @param {Hume.empathicVoice.PostedConfigVersionDescription} request
|
|
486
560
|
* @param {Configs.RequestOptions} requestOptions - Request-specific configuration.
|
|
487
561
|
*
|
|
488
562
|
* @example
|
|
489
|
-
* await client.empathicVoice.configs.updateConfigDescription("
|
|
563
|
+
* await client.empathicVoice.configs.updateConfigDescription("1b60e1a0-cc59-424a-8d2c-189d354db3f3", 1, {
|
|
564
|
+
* versionDescription: "This is an updated version_description."
|
|
565
|
+
* })
|
|
490
566
|
*/
|
|
491
567
|
updateConfigDescription(id, version, request = {}, requestOptions) {
|
|
492
568
|
var _a, _b;
|
|
@@ -494,7 +570,7 @@ class Configs {
|
|
|
494
570
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
495
571
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
496
572
|
method: 'PATCH',
|
|
497
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.
|
|
573
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.6', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
498
574
|
contentType: 'application/json',
|
|
499
575
|
body: serializers.empathicVoice.PostedConfigVersionDescription.jsonOrThrow(request, {
|
|
500
576
|
unrecognizedObjectKeys: 'strip',
|
|
@@ -7,15 +7,19 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export interface ConfigsListConfigVersionsRequest {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
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
|
-
*
|
|
16
|
+
* Specifies the maximum number of results to include per page, enabling pagination. The value must be between 1 and 100, inclusive.
|
|
17
|
+
*
|
|
18
|
+
* 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
|
-
*
|
|
22
|
+
* By default, `restrict_to_most_recent` is set to true, returning only the latest version of each config. To include all versions of each config in the list, set `restrict_to_most_recent` to false.
|
|
19
23
|
*/
|
|
20
24
|
restrictToMostRecent?: boolean;
|
|
21
25
|
}
|
package/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigsRequest.d.ts
CHANGED
|
@@ -3,19 +3,26 @@
|
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* @example
|
|
6
|
-
* {
|
|
6
|
+
* {
|
|
7
|
+
* pageNumber: 0,
|
|
8
|
+
* pageSize: 1
|
|
9
|
+
* }
|
|
7
10
|
*/
|
|
8
11
|
export interface ConfigsListConfigsRequest {
|
|
9
12
|
/**
|
|
10
|
-
*
|
|
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.
|
|
11
16
|
*/
|
|
12
17
|
pageNumber?: number;
|
|
13
18
|
/**
|
|
14
|
-
*
|
|
19
|
+
* Specifies the maximum number of results to include per page, enabling pagination. The value must be between 1 and 100, inclusive.
|
|
20
|
+
*
|
|
21
|
+
* For example, if `page_size` is set to 10, each page will include up to 10 items. Defaults to 10.
|
|
15
22
|
*/
|
|
16
23
|
pageSize?: number;
|
|
17
24
|
/**
|
|
18
|
-
*
|
|
25
|
+
* By default, `restrict_to_most_recent` is set to true, returning only the latest version of each config. To include all versions of each config in the list, set `restrict_to_most_recent` to false.
|
|
19
26
|
*/
|
|
20
27
|
restrictToMostRecent?: boolean;
|
|
21
28
|
/**
|
|
@@ -5,21 +5,59 @@ import * as Hume from '../../../../../../index';
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
* name: "
|
|
8
|
+
* name: "Weather Assistant Config",
|
|
9
|
+
* prompt: {
|
|
10
|
+
* id: "af699d45-2985-42cc-91b9-af9e5da3bac5",
|
|
11
|
+
* version: 0
|
|
12
|
+
* },
|
|
13
|
+
* voice: {
|
|
14
|
+
* provider: "HUME_AI",
|
|
15
|
+
* name: Hume.empathicVoice.PostedVoiceName.Kora
|
|
16
|
+
* },
|
|
17
|
+
* languageModel: {
|
|
18
|
+
* modelProvider: Hume.empathicVoice.PostedLanguageModelModelProvider.Anthropic,
|
|
19
|
+
* modelResource: "claude-3-5-sonnet-20240620",
|
|
20
|
+
* temperature: 1
|
|
21
|
+
* },
|
|
22
|
+
* eventMessages: {
|
|
23
|
+
* onNewChat: {
|
|
24
|
+
* enabled: false,
|
|
25
|
+
* text: ""
|
|
26
|
+
* },
|
|
27
|
+
* onInactivityTimeout: {
|
|
28
|
+
* enabled: false,
|
|
29
|
+
* text: ""
|
|
30
|
+
* },
|
|
31
|
+
* onMaxDurationTimeout: {
|
|
32
|
+
* enabled: false,
|
|
33
|
+
* text: ""
|
|
34
|
+
* }
|
|
35
|
+
* }
|
|
9
36
|
* }
|
|
10
37
|
*/
|
|
11
38
|
export interface PostedConfig {
|
|
12
39
|
/** Name applied to all versions of a particular Config. */
|
|
13
40
|
name: string;
|
|
14
|
-
/**
|
|
41
|
+
/** An optional description of the Config version. */
|
|
15
42
|
versionDescription?: string;
|
|
16
43
|
prompt?: Hume.empathicVoice.PostedPromptSpec;
|
|
44
|
+
/** A voice specification associated with this Config. */
|
|
17
45
|
voice?: Hume.empathicVoice.PostedVoice;
|
|
46
|
+
/**
|
|
47
|
+
* The supplemental language model associated with this Config.
|
|
48
|
+
*
|
|
49
|
+
* 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.
|
|
50
|
+
*/
|
|
18
51
|
languageModel?: Hume.empathicVoice.PostedLanguageModel;
|
|
52
|
+
/**
|
|
53
|
+
* The eLLM setup associated with this Config.
|
|
54
|
+
*
|
|
55
|
+
* 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.
|
|
56
|
+
*/
|
|
19
57
|
ellmModel?: Hume.empathicVoice.PostedEllmModel;
|
|
20
|
-
/**
|
|
58
|
+
/** List of user-defined tools associated with this Config. */
|
|
21
59
|
tools?: (Hume.empathicVoice.PostedUserDefinedToolSpec | undefined)[];
|
|
22
|
-
/**
|
|
60
|
+
/** List of built-in tools associated with this Config. */
|
|
23
61
|
builtinTools?: (Hume.empathicVoice.PostedBuiltinTool | undefined)[];
|
|
24
62
|
eventMessages?: Hume.empathicVoice.PostedEventMessageSpecs;
|
|
25
63
|
timeouts?: Hume.empathicVoice.PostedTimeoutSpecs;
|
package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts
CHANGED
|
@@ -4,18 +4,61 @@
|
|
|
4
4
|
import * as Hume from '../../../../../../index';
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
|
-
* {
|
|
7
|
+
* {
|
|
8
|
+
* versionDescription: "This is an updated version of the Weather Assistant Config.",
|
|
9
|
+
* prompt: {
|
|
10
|
+
* id: "af699d45-2985-42cc-91b9-af9e5da3bac5",
|
|
11
|
+
* version: 0
|
|
12
|
+
* },
|
|
13
|
+
* voice: {
|
|
14
|
+
* provider: "HUME_AI",
|
|
15
|
+
* name: Hume.empathicVoice.PostedVoiceName.Ito
|
|
16
|
+
* },
|
|
17
|
+
* languageModel: {
|
|
18
|
+
* modelProvider: Hume.empathicVoice.PostedLanguageModelModelProvider.Anthropic,
|
|
19
|
+
* modelResource: "claude-3-5-sonnet-20240620",
|
|
20
|
+
* temperature: 1
|
|
21
|
+
* },
|
|
22
|
+
* ellmModel: {
|
|
23
|
+
* allowShortResponses: true
|
|
24
|
+
* },
|
|
25
|
+
* eventMessages: {
|
|
26
|
+
* onNewChat: {
|
|
27
|
+
* enabled: false,
|
|
28
|
+
* text: ""
|
|
29
|
+
* },
|
|
30
|
+
* onInactivityTimeout: {
|
|
31
|
+
* enabled: false,
|
|
32
|
+
* text: ""
|
|
33
|
+
* },
|
|
34
|
+
* onMaxDurationTimeout: {
|
|
35
|
+
* enabled: false,
|
|
36
|
+
* text: ""
|
|
37
|
+
* }
|
|
38
|
+
* }
|
|
39
|
+
* }
|
|
8
40
|
*/
|
|
9
41
|
export interface PostedConfigVersion {
|
|
10
|
-
/**
|
|
42
|
+
/** An optional description of the Config version. */
|
|
11
43
|
versionDescription?: string;
|
|
12
44
|
prompt?: Hume.empathicVoice.PostedPromptSpec;
|
|
45
|
+
/** A voice specification associated with this Config version. */
|
|
13
46
|
voice?: Hume.empathicVoice.PostedVoice;
|
|
47
|
+
/**
|
|
48
|
+
* The supplemental language model associated with this Config version.
|
|
49
|
+
*
|
|
50
|
+
* 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.
|
|
51
|
+
*/
|
|
14
52
|
languageModel?: Hume.empathicVoice.PostedLanguageModel;
|
|
53
|
+
/**
|
|
54
|
+
* The eLLM setup associated with this Config version.
|
|
55
|
+
*
|
|
56
|
+
* 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.
|
|
57
|
+
*/
|
|
15
58
|
ellmModel?: Hume.empathicVoice.PostedEllmModel;
|
|
16
|
-
/**
|
|
59
|
+
/** List of user-defined tools associated with this Config version. */
|
|
17
60
|
tools?: (Hume.empathicVoice.PostedUserDefinedToolSpec | undefined)[];
|
|
18
|
-
/**
|
|
61
|
+
/** List of built-in tools associated with this Config version. */
|
|
19
62
|
builtinTools?: (Hume.empathicVoice.PostedBuiltinTool | undefined)[];
|
|
20
63
|
eventMessages?: Hume.empathicVoice.PostedEventMessageSpecs;
|
|
21
64
|
timeouts?: Hume.empathicVoice.PostedTimeoutSpecs;
|
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* @example
|
|
6
|
-
* {
|
|
6
|
+
* {
|
|
7
|
+
* versionDescription: "This is an updated version_description."
|
|
8
|
+
* }
|
|
7
9
|
*/
|
|
8
10
|
export interface PostedConfigVersionDescription {
|
|
9
|
-
/**
|
|
11
|
+
/** An optional description of the Config version. */
|
|
10
12
|
versionDescription?: string;
|
|
11
13
|
}
|
|
@@ -27,85 +27,103 @@ export declare class Prompts {
|
|
|
27
27
|
* @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
|
|
28
28
|
*
|
|
29
29
|
* @example
|
|
30
|
-
* await client.empathicVoice.prompts.listPrompts(
|
|
30
|
+
* await client.empathicVoice.prompts.listPrompts({
|
|
31
|
+
* pageNumber: 0,
|
|
32
|
+
* pageSize: 2
|
|
33
|
+
* })
|
|
31
34
|
*/
|
|
32
|
-
listPrompts(request?: Hume.empathicVoice.PromptsListPromptsRequest, requestOptions?: Prompts.RequestOptions): Promise<Hume.empathicVoice.
|
|
35
|
+
listPrompts(request?: Hume.empathicVoice.PromptsListPromptsRequest, requestOptions?: Prompts.RequestOptions): Promise<core.Page<Hume.empathicVoice.ReturnPrompt | undefined>>;
|
|
33
36
|
/**
|
|
34
37
|
* @param {Hume.empathicVoice.PostedPrompt} request
|
|
35
38
|
* @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
39
|
*
|
|
37
40
|
* @example
|
|
38
41
|
* await client.empathicVoice.prompts.createPrompt({
|
|
39
|
-
* name: "
|
|
40
|
-
* text: "
|
|
42
|
+
* name: "Weather Assistant Prompt",
|
|
43
|
+
* text: "<role>You are an AI weather assistant providing users with accurate and up-to-date weather information. Respond to user queries concisely and clearly. Use simple language and avoid technical jargon. Provide temperature, precipitation, wind conditions, and any weather alerts. Include helpful tips if severe weather is expected.</role>"
|
|
41
44
|
* })
|
|
42
45
|
*/
|
|
43
46
|
createPrompt(request: Hume.empathicVoice.PostedPrompt, requestOptions?: Prompts.RequestOptions): Promise<Hume.empathicVoice.ReturnPrompt | undefined>;
|
|
44
47
|
/**
|
|
45
|
-
* @param {string} id - Identifier for a
|
|
48
|
+
* @param {string} id - Identifier for a Prompt. Formatted as a UUID.
|
|
46
49
|
* @param {Hume.empathicVoice.PromptsListPromptVersionsRequest} request
|
|
47
50
|
* @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
|
|
48
51
|
*
|
|
49
52
|
* @example
|
|
50
|
-
* await client.empathicVoice.prompts.listPromptVersions("
|
|
53
|
+
* await client.empathicVoice.prompts.listPromptVersions("af699d45-2985-42cc-91b9-af9e5da3bac5")
|
|
51
54
|
*/
|
|
52
55
|
listPromptVersions(id: string, request?: Hume.empathicVoice.PromptsListPromptVersionsRequest, requestOptions?: Prompts.RequestOptions): Promise<Hume.empathicVoice.ReturnPagedPrompts>;
|
|
53
56
|
/**
|
|
54
|
-
* @param {string} id - Identifier for a
|
|
57
|
+
* @param {string} id - Identifier for a Prompt. Formatted as a UUID.
|
|
55
58
|
* @param {Hume.empathicVoice.PostedPromptVersion} request
|
|
56
59
|
* @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
|
|
57
60
|
*
|
|
58
61
|
* @example
|
|
59
|
-
* await client.empathicVoice.prompts.createPromptVerison("
|
|
60
|
-
* text: "
|
|
62
|
+
* await client.empathicVoice.prompts.createPromptVerison("af699d45-2985-42cc-91b9-af9e5da3bac5", {
|
|
63
|
+
* text: "<role>You are an updated version of an AI weather assistant providing users with accurate and up-to-date weather information. Respond to user queries concisely and clearly. Use simple language and avoid technical jargon. Provide temperature, precipitation, wind conditions, and any weather alerts. Include helpful tips if severe weather is expected.</role>",
|
|
64
|
+
* versionDescription: "This is an updated version of the Weather Assistant Prompt."
|
|
61
65
|
* })
|
|
62
66
|
*/
|
|
63
67
|
createPromptVerison(id: string, request: Hume.empathicVoice.PostedPromptVersion, requestOptions?: Prompts.RequestOptions): Promise<Hume.empathicVoice.ReturnPrompt | undefined>;
|
|
64
68
|
/**
|
|
65
|
-
* @param {string} id - Identifier for a
|
|
69
|
+
* @param {string} id - Identifier for a Prompt. Formatted as a UUID.
|
|
66
70
|
* @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
|
|
67
71
|
*
|
|
68
72
|
* @example
|
|
69
|
-
* await client.empathicVoice.prompts.deletePrompt("
|
|
73
|
+
* await client.empathicVoice.prompts.deletePrompt("af699d45-2985-42cc-91b9-af9e5da3bac5")
|
|
70
74
|
*/
|
|
71
75
|
deletePrompt(id: string, requestOptions?: Prompts.RequestOptions): Promise<void>;
|
|
72
76
|
/**
|
|
73
|
-
* @param {string} id - Identifier for a
|
|
77
|
+
* @param {string} id - Identifier for a Prompt. Formatted as a UUID.
|
|
74
78
|
* @param {Hume.empathicVoice.PostedPromptName} request
|
|
75
79
|
* @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
|
|
76
80
|
*
|
|
77
81
|
* @example
|
|
78
|
-
* await client.empathicVoice.prompts.updatePromptName("
|
|
79
|
-
* name: "
|
|
82
|
+
* await client.empathicVoice.prompts.updatePromptName("af699d45-2985-42cc-91b9-af9e5da3bac5", {
|
|
83
|
+
* name: "Updated Weather Assistant Prompt Name"
|
|
80
84
|
* })
|
|
81
85
|
*/
|
|
82
86
|
updatePromptName(id: string, request: Hume.empathicVoice.PostedPromptName, requestOptions?: Prompts.RequestOptions): Promise<string>;
|
|
83
87
|
/**
|
|
84
|
-
* @param {string} id - Identifier for a
|
|
85
|
-
* @param {number} version - Version number for a
|
|
88
|
+
* @param {string} id - Identifier for a Prompt. Formatted as a UUID.
|
|
89
|
+
* @param {number} version - Version number for a Prompt.
|
|
90
|
+
*
|
|
91
|
+
* 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.
|
|
92
|
+
*
|
|
93
|
+
* Version numbers are integer values representing different iterations of the Prompt. Each update to the Prompt increments its version number.
|
|
86
94
|
* @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
|
|
87
95
|
*
|
|
88
96
|
* @example
|
|
89
|
-
* await client.empathicVoice.prompts.getPromptVersion("
|
|
97
|
+
* await client.empathicVoice.prompts.getPromptVersion("af699d45-2985-42cc-91b9-af9e5da3bac5", 0)
|
|
90
98
|
*/
|
|
91
99
|
getPromptVersion(id: string, version: number, requestOptions?: Prompts.RequestOptions): Promise<Hume.empathicVoice.ReturnPrompt | undefined>;
|
|
92
100
|
/**
|
|
93
|
-
* @param {string} id - Identifier for a
|
|
94
|
-
* @param {number} version - Version number for a
|
|
101
|
+
* @param {string} id - Identifier for a Prompt. Formatted as a UUID.
|
|
102
|
+
* @param {number} version - Version number for a Prompt.
|
|
103
|
+
*
|
|
104
|
+
* 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.
|
|
105
|
+
*
|
|
106
|
+
* Version numbers are integer values representing different iterations of the Prompt. Each update to the Prompt increments its version number.
|
|
95
107
|
* @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
|
|
96
108
|
*
|
|
97
109
|
* @example
|
|
98
|
-
* await client.empathicVoice.prompts.deletePromptVersion("
|
|
110
|
+
* await client.empathicVoice.prompts.deletePromptVersion("af699d45-2985-42cc-91b9-af9e5da3bac5", 1)
|
|
99
111
|
*/
|
|
100
112
|
deletePromptVersion(id: string, version: number, requestOptions?: Prompts.RequestOptions): Promise<void>;
|
|
101
113
|
/**
|
|
102
|
-
* @param {string} id - Identifier for a
|
|
103
|
-
* @param {number} version - Version number for a
|
|
114
|
+
* @param {string} id - Identifier for a Prompt. Formatted as a UUID.
|
|
115
|
+
* @param {number} version - Version number for a Prompt.
|
|
116
|
+
*
|
|
117
|
+
* 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.
|
|
118
|
+
*
|
|
119
|
+
* Version numbers are integer values representing different iterations of the Prompt. Each update to the Prompt increments its version number.
|
|
104
120
|
* @param {Hume.empathicVoice.PostedPromptVersionDescription} request
|
|
105
121
|
* @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
|
|
106
122
|
*
|
|
107
123
|
* @example
|
|
108
|
-
* await client.empathicVoice.prompts.updatePromptDescription("
|
|
124
|
+
* await client.empathicVoice.prompts.updatePromptDescription("af699d45-2985-42cc-91b9-af9e5da3bac5", 1, {
|
|
125
|
+
* versionDescription: "This is an updated version_description."
|
|
126
|
+
* })
|
|
109
127
|
*/
|
|
110
128
|
updatePromptDescription(id: string, version: number, request?: Hume.empathicVoice.PostedPromptVersionDescription, requestOptions?: Prompts.RequestOptions): Promise<Hume.empathicVoice.ReturnPrompt | undefined>;
|
|
111
129
|
protected _getCustomAuthorizationHeaders(): Promise<{
|