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
|
@@ -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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
23
|
+
/** Time at which the Config was created. Measured in seconds since the Unix epoch. */
|
|
18
24
|
createdOn?: number;
|
|
19
|
-
/**
|
|
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
|
|
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
|
|
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
|
-
*
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
|
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
|
-
/**
|
|
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
|
}
|
|
@@ -1,14 +1,19 @@
|
|
|
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 LanguageModel
|
|
6
7
|
*/
|
|
7
8
|
export interface ReturnLanguageModel {
|
|
8
|
-
/** The provider of
|
|
9
|
-
modelProvider?:
|
|
10
|
-
/** String that specifies the model to use with
|
|
9
|
+
/** The provider of the supplemental language model. */
|
|
10
|
+
modelProvider?: Hume.empathicVoice.ReturnLanguageModelModelProvider;
|
|
11
|
+
/** String that specifies the language model to use with `model_provider`. */
|
|
11
12
|
modelResource?: string;
|
|
12
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* The model temperature, with values between 0 to 1 (inclusive).
|
|
15
|
+
*
|
|
16
|
+
* Controls the randomness of the LLM’s output, with values closer to 0 yielding focused, deterministic responses and values closer to 1 producing more creative, diverse responses.
|
|
17
|
+
*/
|
|
13
18
|
temperature?: number;
|
|
14
19
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* The provider of the supplemental language model.
|
|
6
|
+
*/
|
|
7
|
+
export declare type ReturnLanguageModelModelProvider = 'OPEN_AI' | 'CUSTOM_LANGUAGE_MODEL' | 'ANTHROPIC' | 'FIREWORKS' | 'GROQ' | 'GOOGLE';
|
|
8
|
+
export declare const ReturnLanguageModelModelProvider: {
|
|
9
|
+
readonly OpenAi: "OPEN_AI";
|
|
10
|
+
readonly CustomLanguageModel: "CUSTOM_LANGUAGE_MODEL";
|
|
11
|
+
readonly Anthropic: "ANTHROPIC";
|
|
12
|
+
readonly Fireworks: "FIREWORKS";
|
|
13
|
+
readonly Groq: "GROQ";
|
|
14
|
+
readonly Google: "GOOGLE";
|
|
15
|
+
};
|
|
@@ -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.ReturnLanguageModelModelProvider = void 0;
|
|
7
|
+
exports.ReturnLanguageModelModelProvider = {
|
|
8
|
+
OpenAi: 'OPEN_AI',
|
|
9
|
+
CustomLanguageModel: 'CUSTOM_LANGUAGE_MODEL',
|
|
10
|
+
Anthropic: 'ANTHROPIC',
|
|
11
|
+
Fireworks: 'FIREWORKS',
|
|
12
|
+
Groq: 'GROQ',
|
|
13
|
+
Google: 'GOOGLE',
|
|
14
|
+
};
|
|
@@ -6,14 +6,26 @@ import * as Hume from '../../../index';
|
|
|
6
6
|
* A paginated list of chat_groups returned from the server
|
|
7
7
|
*/
|
|
8
8
|
export interface ReturnPagedChatGroups {
|
|
9
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* The page number of the returned list.
|
|
11
|
+
*
|
|
12
|
+
* This value corresponds to the `page_number` parameter specified in the request. Pagination uses zero-based indexing.
|
|
13
|
+
*/
|
|
10
14
|
pageNumber: number;
|
|
11
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* The maximum number of items returned per page.
|
|
17
|
+
*
|
|
18
|
+
* This value corresponds to the `page_size` parameter specified in the request.
|
|
19
|
+
*/
|
|
12
20
|
pageSize: number;
|
|
13
|
-
/** The total number of pages in the collection */
|
|
21
|
+
/** The total number of pages in the collection. */
|
|
14
22
|
totalPages: number;
|
|
15
|
-
/**
|
|
16
|
-
|
|
17
|
-
|
|
23
|
+
/**
|
|
24
|
+
* Indicates the order in which the paginated results are presented, based on their creation date.
|
|
25
|
+
*
|
|
26
|
+
* 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.
|
|
27
|
+
*/
|
|
28
|
+
paginationDirection: Hume.empathicVoice.ReturnPagedChatGroupsPaginationDirection;
|
|
29
|
+
/** List of Chat Groups and their metadata returned for the specified `page_number` and `page_size`. */
|
|
18
30
|
chatGroupsPage: Hume.empathicVoice.ReturnChatGroup[];
|
|
19
31
|
}
|
|
@@ -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 ReturnPagedChatGroupsPaginationDirection = 'ASC' | 'DESC';
|
|
10
|
+
export declare const ReturnPagedChatGroupsPaginationDirection: {
|
|
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.ReturnPagedChatGroupsPaginationDirection = void 0;
|
|
7
|
+
exports.ReturnPagedChatGroupsPaginationDirection = {
|
|
8
|
+
Asc: 'ASC',
|
|
9
|
+
Desc: 'DESC',
|
|
10
|
+
};
|
|
@@ -6,14 +6,26 @@ import * as Hume from '../../../index';
|
|
|
6
6
|
* A paginated list of chats returned from the server
|
|
7
7
|
*/
|
|
8
8
|
export interface ReturnPagedChats {
|
|
9
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* The page number of the returned list.
|
|
11
|
+
*
|
|
12
|
+
* This value corresponds to the `page_number` parameter specified in the request. Pagination uses zero-based indexing.
|
|
13
|
+
*/
|
|
10
14
|
pageNumber: number;
|
|
11
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* The maximum number of items returned per page.
|
|
17
|
+
*
|
|
18
|
+
* This value corresponds to the `page_size` parameter specified in the request.
|
|
19
|
+
*/
|
|
12
20
|
pageSize: number;
|
|
13
|
-
/** The total number of pages in the collection */
|
|
21
|
+
/** The total number of pages in the collection. */
|
|
14
22
|
totalPages: number;
|
|
15
|
-
/**
|
|
16
|
-
|
|
17
|
-
|
|
23
|
+
/**
|
|
24
|
+
* Indicates the order in which the paginated results are presented, based on their creation date.
|
|
25
|
+
*
|
|
26
|
+
* 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.
|
|
27
|
+
*/
|
|
28
|
+
paginationDirection: Hume.empathicVoice.ReturnPagedChatsPaginationDirection;
|
|
29
|
+
/** List of Chats and their metadata returned for the specified `page_number` and `page_size`. */
|
|
18
30
|
chatsPage: Hume.empathicVoice.ReturnChat[];
|
|
19
31
|
}
|
|
@@ -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 ReturnPagedChatsPaginationDirection = 'ASC' | 'DESC';
|
|
10
|
+
export declare const ReturnPagedChatsPaginationDirection: {
|
|
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.ReturnPagedChatsPaginationDirection = void 0;
|
|
7
|
+
exports.ReturnPagedChatsPaginationDirection = {
|
|
8
|
+
Asc: 'ASC',
|
|
9
|
+
Desc: 'DESC',
|
|
10
|
+
};
|
|
@@ -6,12 +6,20 @@ import * as Hume from '../../../index';
|
|
|
6
6
|
* A paginated list of config versions returned from the server
|
|
7
7
|
*/
|
|
8
8
|
export interface ReturnPagedConfigs {
|
|
9
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* The page number of the returned list.
|
|
11
|
+
*
|
|
12
|
+
* This value corresponds to the `page_number` parameter specified in the request. Pagination uses zero-based indexing.
|
|
13
|
+
*/
|
|
10
14
|
pageNumber?: number;
|
|
11
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* The maximum number of items returned per page.
|
|
17
|
+
*
|
|
18
|
+
* This value corresponds to the `page_size` parameter specified in the request.
|
|
19
|
+
*/
|
|
12
20
|
pageSize?: number;
|
|
13
|
-
/** The total number of pages in the collection */
|
|
21
|
+
/** The total number of pages in the collection. */
|
|
14
22
|
totalPages: number;
|
|
15
|
-
/** List of
|
|
23
|
+
/** List of configs returned for the specified `page_number` and `page_size`. */
|
|
16
24
|
configsPage?: Hume.empathicVoice.ReturnConfig[];
|
|
17
25
|
}
|
|
@@ -6,12 +6,20 @@ import * as Hume from '../../../index';
|
|
|
6
6
|
* A paginated list of prompt versions returned from the server
|
|
7
7
|
*/
|
|
8
8
|
export interface ReturnPagedPrompts {
|
|
9
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* The page number of the returned list.
|
|
11
|
+
*
|
|
12
|
+
* This value corresponds to the `page_number` parameter specified in the request. Pagination uses zero-based indexing.
|
|
13
|
+
*/
|
|
10
14
|
pageNumber: number;
|
|
11
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* The maximum number of items returned per page.
|
|
17
|
+
*
|
|
18
|
+
* This value corresponds to the `page_size` parameter specified in the request.
|
|
19
|
+
*/
|
|
12
20
|
pageSize: number;
|
|
13
|
-
/** The total number of pages in the collection */
|
|
21
|
+
/** The total number of pages in the collection. */
|
|
14
22
|
totalPages: number;
|
|
15
|
-
/** List of prompts returned for the specified
|
|
23
|
+
/** List of prompts returned for the specified `page_number` and `page_size`. */
|
|
16
24
|
promptsPage: (Hume.empathicVoice.ReturnPrompt | undefined)[];
|
|
17
25
|
}
|
|
@@ -6,12 +6,20 @@ import * as Hume from '../../../index';
|
|
|
6
6
|
* A paginated list of user defined tool versions returned from the server
|
|
7
7
|
*/
|
|
8
8
|
export interface ReturnPagedUserDefinedTools {
|
|
9
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* The page number of the returned list.
|
|
11
|
+
*
|
|
12
|
+
* This value corresponds to the `page_number` parameter specified in the request. Pagination uses zero-based indexing.
|
|
13
|
+
*/
|
|
10
14
|
pageNumber: number;
|
|
11
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* The maximum number of items returned per page.
|
|
17
|
+
*
|
|
18
|
+
* This value corresponds to the `page_size` parameter specified in the request.
|
|
19
|
+
*/
|
|
12
20
|
pageSize: number;
|
|
13
|
-
/** The total number of pages in the collection */
|
|
21
|
+
/** The total number of pages in the collection. */
|
|
14
22
|
totalPages: number;
|
|
15
|
-
/** List of tools returned for the specified
|
|
23
|
+
/** List of tools returned for the specified `page_number` and `page_size`. */
|
|
16
24
|
toolsPage: (Hume.empathicVoice.ReturnUserDefinedTool | undefined)[];
|
|
17
25
|
}
|
|
@@ -1,24 +1,37 @@
|
|
|
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
|
-
* A
|
|
6
|
+
* A Prompt associated with this Config.
|
|
6
7
|
*/
|
|
7
8
|
export interface ReturnPrompt {
|
|
8
9
|
/** Identifier for a Prompt. Formatted as a UUID. */
|
|
9
10
|
id: string;
|
|
10
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Version number for a Prompt.
|
|
13
|
+
*
|
|
14
|
+
* 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.
|
|
15
|
+
*
|
|
16
|
+
* Version numbers are integer values representing different iterations of the Prompt. Each update to the Prompt increments its version number.
|
|
17
|
+
*/
|
|
11
18
|
version: number;
|
|
12
|
-
/**
|
|
13
|
-
versionType:
|
|
14
|
-
/**
|
|
19
|
+
/** Versioning method for a Prompt. Either `FIXED` for using a fixed version number or `LATEST` for auto-updating to the latest version. */
|
|
20
|
+
versionType: Hume.empathicVoice.ReturnPromptVersionType;
|
|
21
|
+
/** An optional description of the Prompt version. */
|
|
15
22
|
versionDescription?: string;
|
|
16
23
|
/** Name applied to all versions of a particular Prompt. */
|
|
17
24
|
name: string;
|
|
18
|
-
/**
|
|
25
|
+
/** Time at which the Prompt was created. Measured in seconds since the Unix epoch. */
|
|
19
26
|
createdOn: number;
|
|
20
|
-
/**
|
|
27
|
+
/** Time at which the Prompt was last modified. Measured in seconds since the Unix epoch. */
|
|
21
28
|
modifiedOn: number;
|
|
22
|
-
/**
|
|
29
|
+
/**
|
|
30
|
+
* Instructions used to shape EVI’s behavior, responses, and style.
|
|
31
|
+
*
|
|
32
|
+
* You can use the Prompt to define a specific goal or role for EVI, specifying how it should act or what it should focus on during the conversation. For example, EVI can be instructed to act as a customer support representative, a fitness coach, or a travel advisor, each with its own set of behaviors and response styles.
|
|
33
|
+
*
|
|
34
|
+
* For help writing a system prompt, see our [Prompting Guide](/docs/empathic-voice-interface-evi/prompting).
|
|
35
|
+
*/
|
|
23
36
|
text: string;
|
|
24
37
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Versioning method for a Prompt. Either `FIXED` for using a fixed version number or `LATEST` for auto-updating to the latest version.
|
|
6
|
+
*/
|
|
7
|
+
export declare type ReturnPromptVersionType = 'FIXED' | 'LATEST';
|
|
8
|
+
export declare const ReturnPromptVersionType: {
|
|
9
|
+
readonly Fixed: "FIXED";
|
|
10
|
+
readonly Latest: "LATEST";
|
|
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.ReturnPromptVersionType = void 0;
|
|
7
|
+
exports.ReturnPromptVersionType = {
|
|
8
|
+
Fixed: 'FIXED',
|
|
9
|
+
Latest: 'LATEST',
|
|
10
|
+
};
|
|
@@ -5,8 +5,12 @@
|
|
|
5
5
|
* A specific timeout configuration to be returned from the server
|
|
6
6
|
*/
|
|
7
7
|
export interface ReturnTimeoutSpec {
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* Boolean indicating if this timeout is enabled.
|
|
10
|
+
*
|
|
11
|
+
* If set to false, EVI will not timeout due to a specified duration being reached. However, the conversation will eventually disconnect after 1,800 seconds (30 minutes), which is the maximum WebSocket duration limit for EVI.
|
|
12
|
+
*/
|
|
9
13
|
enabled: boolean;
|
|
10
|
-
/** Duration in seconds for the timeout. */
|
|
14
|
+
/** Duration in seconds for the timeout (e.g. 600 seconds represents 10 minutes). */
|
|
11
15
|
durationSecs?: number;
|
|
12
16
|
}
|
|
@@ -3,9 +3,21 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Hume from '../../../index';
|
|
5
5
|
/**
|
|
6
|
-
* Collection of timeout
|
|
6
|
+
* Collection of timeout specifications returned by the server.
|
|
7
|
+
*
|
|
8
|
+
* Timeouts are sent by the server when specific time-based events occur during a chat session. These specifications set the inactivity timeout and the maximum duration an EVI WebSocket connection can stay open before it is automatically disconnected.
|
|
7
9
|
*/
|
|
8
10
|
export interface ReturnTimeoutSpecs {
|
|
11
|
+
/**
|
|
12
|
+
* Specifies the duration of user inactivity (in seconds) after which the EVI WebSocket connection will be automatically disconnected. Default is 600 seconds (10 minutes).
|
|
13
|
+
*
|
|
14
|
+
* Accepts a minimum value of 1 second and a maximum value of 1,800 seconds.
|
|
15
|
+
*/
|
|
9
16
|
inactivity: Hume.empathicVoice.ReturnTimeoutSpec;
|
|
17
|
+
/**
|
|
18
|
+
* Specifies the maximum allowed duration (in seconds) for an EVI WebSocket connection before it is automatically disconnected. Default is 1,800 seconds (30 minutes).
|
|
19
|
+
*
|
|
20
|
+
* Accepts a minimum value of 1 second and a maximum value of 1,800 seconds.
|
|
21
|
+
*/
|
|
10
22
|
maxDuration: Hume.empathicVoice.ReturnTimeoutSpec;
|
|
11
23
|
}
|
|
@@ -1,30 +1,41 @@
|
|
|
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 tool version returned from the server
|
|
6
7
|
*/
|
|
7
8
|
export interface ReturnUserDefinedTool {
|
|
8
|
-
/** Type of Tool.
|
|
9
|
-
toolType:
|
|
9
|
+
/** Type of Tool. Either `BUILTIN` for natively implemented tools, like web search, or `FUNCTION` for user-defined tools. */
|
|
10
|
+
toolType: Hume.empathicVoice.ReturnUserDefinedToolToolType;
|
|
10
11
|
/** Identifier for a Tool. Formatted as a UUID. */
|
|
11
12
|
id: string;
|
|
12
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* Version number for a Tool.
|
|
15
|
+
*
|
|
16
|
+
* Tools, as well as Configs and Prompts, are versioned. This versioning system supports iterative development, allowing you to progressively refine tools and revert to previous versions if needed.
|
|
17
|
+
*
|
|
18
|
+
* Version numbers are integer values representing different iterations of the Tool. Each update to the Tool increments its version number.
|
|
19
|
+
*/
|
|
13
20
|
version: number;
|
|
14
|
-
/**
|
|
15
|
-
versionType:
|
|
16
|
-
/**
|
|
21
|
+
/** Versioning method for a Tool. Either `FIXED` for using a fixed version number or `LATEST` for auto-updating to the latest version. */
|
|
22
|
+
versionType: Hume.empathicVoice.ReturnUserDefinedToolVersionType;
|
|
23
|
+
/** An optional description of the Tool version. */
|
|
17
24
|
versionDescription?: string;
|
|
18
25
|
/** Name applied to all versions of a particular Tool. */
|
|
19
26
|
name: string;
|
|
20
|
-
/**
|
|
27
|
+
/** Time at which the Tool was created. Measured in seconds since the Unix epoch. */
|
|
21
28
|
createdOn: number;
|
|
22
|
-
/**
|
|
29
|
+
/** Time at which the Tool was last modified. Measured in seconds since the Unix epoch. */
|
|
23
30
|
modifiedOn: number;
|
|
24
|
-
/**
|
|
31
|
+
/** 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. */
|
|
25
32
|
fallbackContent?: string;
|
|
26
|
-
/**
|
|
33
|
+
/** An optional description of what the Tool does, used by the supplemental LLM to choose when and how to call the function. */
|
|
27
34
|
description?: string;
|
|
28
|
-
/**
|
|
35
|
+
/**
|
|
36
|
+
* Stringified JSON defining the parameters used by this version of the Tool.
|
|
37
|
+
*
|
|
38
|
+
* These parameters define the inputs needed for the Tool’s execution, including the expected data type and description for each input field. Structured as a stringified JSON schema, this format ensures the tool receives data in the expected format.
|
|
39
|
+
*/
|
|
29
40
|
parameters: string;
|
|
30
41
|
}
|
|
@@ -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 ReturnUserDefinedToolToolType = 'BUILTIN' | 'FUNCTION';
|
|
8
|
+
export declare const ReturnUserDefinedToolToolType: {
|
|
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.ReturnUserDefinedToolToolType = void 0;
|
|
7
|
+
exports.ReturnUserDefinedToolToolType = {
|
|
8
|
+
Builtin: 'BUILTIN',
|
|
9
|
+
Function: 'FUNCTION',
|
|
10
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Versioning method for a Tool. Either `FIXED` for using a fixed version number or `LATEST` for auto-updating to the latest version.
|
|
6
|
+
*/
|
|
7
|
+
export declare type ReturnUserDefinedToolVersionType = 'FIXED' | 'LATEST';
|
|
8
|
+
export declare const ReturnUserDefinedToolVersionType: {
|
|
9
|
+
readonly Fixed: "FIXED";
|
|
10
|
+
readonly Latest: "LATEST";
|
|
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.ReturnUserDefinedToolVersionType = void 0;
|
|
7
|
+
exports.ReturnUserDefinedToolVersionType = {
|
|
8
|
+
Fixed: 'FIXED',
|
|
9
|
+
Latest: 'LATEST',
|
|
10
|
+
};
|
|
@@ -1,12 +1,13 @@
|
|
|
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 voice specification
|
|
6
7
|
*/
|
|
7
8
|
export interface ReturnVoice {
|
|
8
|
-
/** The provider of the voice to use.
|
|
9
|
-
provider:
|
|
9
|
+
/** The provider of the voice to use. Currently, only `HUME_AI` is supported as the voice provider. */
|
|
10
|
+
provider: 'HUME_AI';
|
|
10
11
|
/** String with the name of the voice to use. Maximum length of 75 characters. Will be converted to all-uppercase. */
|
|
11
|
-
name?:
|
|
12
|
+
name?: Hume.empathicVoice.ReturnVoiceName;
|
|
12
13
|
}
|