hume 0.8.4 → 0.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.mock/definition/empathic-voice/__package__.yml +820 -182
- package/.mock/definition/empathic-voice/chatGroups.yml +54 -17
- package/.mock/definition/empathic-voice/chats.yml +51 -19
- package/.mock/definition/empathic-voice/configs.yml +198 -61
- package/.mock/definition/empathic-voice/prompts.yml +126 -27
- package/.mock/definition/empathic-voice/tools.yml +116 -23
- package/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +1 -1
- package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +3 -3
- package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.ts +7 -3
- package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +10 -4
- package/api/resources/empathicVoice/resources/chats/client/Client.d.ts +1 -1
- package/api/resources/empathicVoice/resources/chats/client/Client.js +3 -3
- package/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.ts +7 -3
- package/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +7 -3
- package/api/resources/empathicVoice/resources/configs/client/Client.d.ts +22 -10
- package/api/resources/empathicVoice/resources/configs/client/Client.js +31 -19
- package/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigVersionsRequest.d.ts +7 -3
- package/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigsRequest.d.ts +7 -3
- package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +14 -3
- package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +14 -3
- package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersionDescription.d.ts +1 -1
- package/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +22 -10
- package/api/resources/empathicVoice/resources/prompts/client/Client.js +31 -19
- package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +8 -2
- package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +8 -2
- package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersionDescription.d.ts +1 -1
- package/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptVersionsRequest.d.ts +7 -3
- package/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptsRequest.d.ts +7 -3
- package/api/resources/empathicVoice/resources/tools/client/Client.d.ts +22 -10
- package/api/resources/empathicVoice/resources/tools/client/Client.js +31 -19
- 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/Inference.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.js +6 -6
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +3 -3
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.ts +7 -3
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +10 -4
- package/dist/api/resources/empathicVoice/resources/chats/client/Client.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +3 -3
- package/dist/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.ts +7 -3
- package/dist/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +7 -3
- package/dist/api/resources/empathicVoice/resources/configs/client/Client.d.ts +22 -10
- package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +31 -19
- 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 +7 -3
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +14 -3
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +14 -3
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersionDescription.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +22 -10
- package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +31 -19
- package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +8 -2
- package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +8 -2
- package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersionDescription.d.ts +1 -1
- 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 +7 -3
- package/dist/api/resources/empathicVoice/resources/tools/client/Client.d.ts +22 -10
- package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +31 -19
- 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/Inference.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.js +6 -6
- package/dist/errors/HumeError.js +1 -1
- 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/dist/serialization/resources/empathicVoice/types/ReturnBuiltinToolToolType.js +31 -0
- 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/empathicVoice/types/ReturnChatEventRole.js +31 -0
- 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/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 +86 -32
- 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
|
@@ -75,7 +75,7 @@ class Prompts {
|
|
|
75
75
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
76
76
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, 'v0/evi/prompts'),
|
|
77
77
|
method: 'GET',
|
|
78
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.
|
|
78
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
79
79
|
contentType: 'application/json',
|
|
80
80
|
queryParameters: _queryParams,
|
|
81
81
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
|
|
@@ -129,7 +129,7 @@ class Prompts {
|
|
|
129
129
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
130
130
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, 'v0/evi/prompts'),
|
|
131
131
|
method: 'POST',
|
|
132
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.
|
|
132
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
133
133
|
contentType: 'application/json',
|
|
134
134
|
body: serializers.empathicVoice.PostedPrompt.jsonOrThrow(request, {
|
|
135
135
|
unrecognizedObjectKeys: 'strip',
|
|
@@ -170,7 +170,7 @@ class Prompts {
|
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
172
|
/**
|
|
173
|
-
* @param {string} id - Identifier for a
|
|
173
|
+
* @param {string} id - Identifier for a Prompt. Formatted as a UUID.
|
|
174
174
|
* @param {Hume.empathicVoice.PromptsListPromptVersionsRequest} request
|
|
175
175
|
* @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
|
|
176
176
|
*
|
|
@@ -194,7 +194,7 @@ class Prompts {
|
|
|
194
194
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
195
195
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}`),
|
|
196
196
|
method: 'GET',
|
|
197
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.
|
|
197
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
198
198
|
contentType: 'application/json',
|
|
199
199
|
queryParameters: _queryParams,
|
|
200
200
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
|
|
@@ -233,7 +233,7 @@ class Prompts {
|
|
|
233
233
|
});
|
|
234
234
|
}
|
|
235
235
|
/**
|
|
236
|
-
* @param {string} id - Identifier for a
|
|
236
|
+
* @param {string} id - Identifier for a Prompt. Formatted as a UUID.
|
|
237
237
|
* @param {Hume.empathicVoice.PostedPromptVersion} request
|
|
238
238
|
* @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
|
|
239
239
|
*
|
|
@@ -248,7 +248,7 @@ class Prompts {
|
|
|
248
248
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
249
249
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}`),
|
|
250
250
|
method: 'POST',
|
|
251
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.
|
|
251
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
252
252
|
contentType: 'application/json',
|
|
253
253
|
body: serializers.empathicVoice.PostedPromptVersion.jsonOrThrow(request, {
|
|
254
254
|
unrecognizedObjectKeys: 'strip',
|
|
@@ -289,7 +289,7 @@ class Prompts {
|
|
|
289
289
|
});
|
|
290
290
|
}
|
|
291
291
|
/**
|
|
292
|
-
* @param {string} id - Identifier for a
|
|
292
|
+
* @param {string} id - Identifier for a Prompt. Formatted as a UUID.
|
|
293
293
|
* @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
|
|
294
294
|
*
|
|
295
295
|
* @example
|
|
@@ -301,7 +301,7 @@ class Prompts {
|
|
|
301
301
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
302
302
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}`),
|
|
303
303
|
method: 'DELETE',
|
|
304
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.
|
|
304
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
305
305
|
contentType: 'application/json',
|
|
306
306
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
|
|
307
307
|
? requestOptions.timeoutInSeconds * 1000
|
|
@@ -334,7 +334,7 @@ class Prompts {
|
|
|
334
334
|
});
|
|
335
335
|
}
|
|
336
336
|
/**
|
|
337
|
-
* @param {string} id - Identifier for a
|
|
337
|
+
* @param {string} id - Identifier for a Prompt. Formatted as a UUID.
|
|
338
338
|
* @param {Hume.empathicVoice.PostedPromptName} request
|
|
339
339
|
* @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
|
|
340
340
|
*
|
|
@@ -349,7 +349,7 @@ class Prompts {
|
|
|
349
349
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
350
350
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}`),
|
|
351
351
|
method: 'PATCH',
|
|
352
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.
|
|
352
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
353
353
|
contentType: 'application/json',
|
|
354
354
|
body: serializers.empathicVoice.PostedPromptName.jsonOrThrow(request, {
|
|
355
355
|
unrecognizedObjectKeys: 'strip',
|
|
@@ -386,8 +386,12 @@ class Prompts {
|
|
|
386
386
|
});
|
|
387
387
|
}
|
|
388
388
|
/**
|
|
389
|
-
* @param {string} id - Identifier for a
|
|
390
|
-
* @param {number} version - Version number for a
|
|
389
|
+
* @param {string} id - Identifier for a Prompt. Formatted as a UUID.
|
|
390
|
+
* @param {number} version - Version number for a Prompt.
|
|
391
|
+
*
|
|
392
|
+
* Prompts, as well as Configs and Tools, are versioned. This versioning system supports iterative development, allowing you to progressively refine prompts and revert to previous versions if needed.
|
|
393
|
+
*
|
|
394
|
+
* Version numbers are integer values representing different iterations of the Prompt. Each update to the Prompt increments its version number.
|
|
391
395
|
* @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
|
|
392
396
|
*
|
|
393
397
|
* @example
|
|
@@ -399,7 +403,7 @@ class Prompts {
|
|
|
399
403
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
400
404
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
401
405
|
method: 'GET',
|
|
402
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.
|
|
406
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
403
407
|
contentType: 'application/json',
|
|
404
408
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
|
|
405
409
|
? requestOptions.timeoutInSeconds * 1000
|
|
@@ -437,8 +441,12 @@ class Prompts {
|
|
|
437
441
|
});
|
|
438
442
|
}
|
|
439
443
|
/**
|
|
440
|
-
* @param {string} id - Identifier for a
|
|
441
|
-
* @param {number} version - Version number for a
|
|
444
|
+
* @param {string} id - Identifier for a Prompt. Formatted as a UUID.
|
|
445
|
+
* @param {number} version - Version number for a Prompt.
|
|
446
|
+
*
|
|
447
|
+
* Prompts, as well as Configs and Tools, are versioned. This versioning system supports iterative development, allowing you to progressively refine prompts and revert to previous versions if needed.
|
|
448
|
+
*
|
|
449
|
+
* Version numbers are integer values representing different iterations of the Prompt. Each update to the Prompt increments its version number.
|
|
442
450
|
* @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
|
|
443
451
|
*
|
|
444
452
|
* @example
|
|
@@ -450,7 +458,7 @@ class Prompts {
|
|
|
450
458
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
451
459
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
452
460
|
method: 'DELETE',
|
|
453
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.
|
|
461
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
454
462
|
contentType: 'application/json',
|
|
455
463
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
|
|
456
464
|
? requestOptions.timeoutInSeconds * 1000
|
|
@@ -483,8 +491,12 @@ class Prompts {
|
|
|
483
491
|
});
|
|
484
492
|
}
|
|
485
493
|
/**
|
|
486
|
-
* @param {string} id - Identifier for a
|
|
487
|
-
* @param {number} version - Version number for a
|
|
494
|
+
* @param {string} id - Identifier for a Prompt. Formatted as a UUID.
|
|
495
|
+
* @param {number} version - Version number for a Prompt.
|
|
496
|
+
*
|
|
497
|
+
* Prompts, as well as Configs and Tools, are versioned. This versioning system supports iterative development, allowing you to progressively refine prompts and revert to previous versions if needed.
|
|
498
|
+
*
|
|
499
|
+
* Version numbers are integer values representing different iterations of the Prompt. Each update to the Prompt increments its version number.
|
|
488
500
|
* @param {Hume.empathicVoice.PostedPromptVersionDescription} request
|
|
489
501
|
* @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
|
|
490
502
|
*
|
|
@@ -497,7 +509,7 @@ class Prompts {
|
|
|
497
509
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
498
510
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
499
511
|
method: 'PATCH',
|
|
500
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.
|
|
512
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
501
513
|
contentType: 'application/json',
|
|
502
514
|
body: serializers.empathicVoice.PostedPromptVersionDescription.jsonOrThrow(request, {
|
|
503
515
|
unrecognizedObjectKeys: 'strip',
|
|
@@ -11,8 +11,14 @@
|
|
|
11
11
|
export interface PostedPrompt {
|
|
12
12
|
/** Name applied to all versions of a particular Prompt. */
|
|
13
13
|
name: string;
|
|
14
|
-
/**
|
|
14
|
+
/** An optional description of the Prompt version. */
|
|
15
15
|
versionDescription?: string;
|
|
16
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* Instructions used to shape EVI’s behavior, responses, and style.
|
|
18
|
+
*
|
|
19
|
+
* You can use the Prompt to define a specific goal or role for EVI, specifying how it should act or what it should focus on during the conversation. For example, EVI can be instructed to act as a customer support representative, a fitness coach, or a travel advisor, each with its own set of behaviors and response styles.
|
|
20
|
+
*
|
|
21
|
+
* For help writing a system prompt, see our [Prompting Guide](/docs/empathic-voice-interface-evi/prompting).
|
|
22
|
+
*/
|
|
17
23
|
text: string;
|
|
18
24
|
}
|
package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts
CHANGED
|
@@ -8,8 +8,14 @@
|
|
|
8
8
|
* }
|
|
9
9
|
*/
|
|
10
10
|
export interface PostedPromptVersion {
|
|
11
|
-
/**
|
|
11
|
+
/** An optional description of the Prompt version. */
|
|
12
12
|
versionDescription?: string;
|
|
13
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* Instructions used to shape EVI’s behavior, responses, and style for this version of the Prompt.
|
|
15
|
+
*
|
|
16
|
+
* You can use the Prompt to define a specific goal or role for EVI, specifying how it should act or what it should focus on during the conversation. For example, EVI can be instructed to act as a customer support representative, a fitness coach, or a travel advisor, each with its own set of behaviors and response styles.
|
|
17
|
+
*
|
|
18
|
+
* For help writing a system prompt, see our [Prompting Guide](/docs/empathic-voice-interface-evi/prompting).
|
|
19
|
+
*/
|
|
14
20
|
text: string;
|
|
15
21
|
}
|
|
@@ -7,15 +7,19 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export interface PromptsListPromptVersionsRequest {
|
|
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.
|
|
17
|
+
*
|
|
18
|
+
* The value must be greater than or equal to 1. For example, if `page_size` is set to 10, each page will include up to 10 items. Defaults to 10.
|
|
15
19
|
*/
|
|
16
20
|
pageSize?: number;
|
|
17
21
|
/**
|
|
18
|
-
*
|
|
22
|
+
* By default, `restrict_to_most_recent` is set to true, returning only the latest version of each prompt. To include all versions of each prompt in the list, set `restrict_to_most_recent` to false.
|
|
19
23
|
*/
|
|
20
24
|
restrictToMostRecent?: boolean;
|
|
21
25
|
}
|
package/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptsRequest.d.ts
CHANGED
|
@@ -7,15 +7,19 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export interface PromptsListPromptsRequest {
|
|
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.
|
|
17
|
+
*
|
|
18
|
+
* The value must be greater than or equal to 1. For example, if `page_size` is set to 10, each page will include up to 10 items. Defaults to 10.
|
|
15
19
|
*/
|
|
16
20
|
pageSize?: number;
|
|
17
21
|
/**
|
|
18
|
-
*
|
|
22
|
+
* By default, `restrict_to_most_recent` is set to true, returning only the latest version of each prompt. To include all versions of each prompt in the list, set `restrict_to_most_recent` to false.
|
|
19
23
|
*/
|
|
20
24
|
restrictToMostRecent?: boolean;
|
|
21
25
|
/**
|
|
@@ -48,7 +48,7 @@ export declare class Tools {
|
|
|
48
48
|
*/
|
|
49
49
|
createTool(request: Hume.empathicVoice.PostedUserDefinedTool, requestOptions?: Tools.RequestOptions): Promise<Hume.empathicVoice.ReturnUserDefinedTool | undefined>;
|
|
50
50
|
/**
|
|
51
|
-
* @param {string} id - Identifier for a
|
|
51
|
+
* @param {string} id - Identifier for a Tool. Formatted as a UUID.
|
|
52
52
|
* @param {Hume.empathicVoice.ToolsListToolVersionsRequest} request
|
|
53
53
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
54
54
|
*
|
|
@@ -57,7 +57,7 @@ export declare class Tools {
|
|
|
57
57
|
*/
|
|
58
58
|
listToolVersions(id: string, request?: Hume.empathicVoice.ToolsListToolVersionsRequest, requestOptions?: Tools.RequestOptions): Promise<Hume.empathicVoice.ReturnPagedUserDefinedTools>;
|
|
59
59
|
/**
|
|
60
|
-
* @param {string} id - Identifier for a
|
|
60
|
+
* @param {string} id - Identifier for a Tool. Formatted as a UUID.
|
|
61
61
|
* @param {Hume.empathicVoice.PostedUserDefinedToolVersion} request
|
|
62
62
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
63
|
*
|
|
@@ -71,7 +71,7 @@ export declare class Tools {
|
|
|
71
71
|
*/
|
|
72
72
|
createToolVersion(id: string, request: Hume.empathicVoice.PostedUserDefinedToolVersion, requestOptions?: Tools.RequestOptions): Promise<Hume.empathicVoice.ReturnUserDefinedTool | undefined>;
|
|
73
73
|
/**
|
|
74
|
-
* @param {string} id - Identifier for a
|
|
74
|
+
* @param {string} id - Identifier for a Tool. Formatted as a UUID.
|
|
75
75
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
76
76
|
*
|
|
77
77
|
* @example
|
|
@@ -79,7 +79,7 @@ export declare class Tools {
|
|
|
79
79
|
*/
|
|
80
80
|
deleteTool(id: string, requestOptions?: Tools.RequestOptions): Promise<void>;
|
|
81
81
|
/**
|
|
82
|
-
* @param {string} id - Identifier for a
|
|
82
|
+
* @param {string} id - Identifier for a Tool. Formatted as a UUID.
|
|
83
83
|
* @param {Hume.empathicVoice.PostedUserDefinedToolName} request
|
|
84
84
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
85
85
|
*
|
|
@@ -90,8 +90,12 @@ export declare class Tools {
|
|
|
90
90
|
*/
|
|
91
91
|
updateToolName(id: string, request: Hume.empathicVoice.PostedUserDefinedToolName, requestOptions?: Tools.RequestOptions): Promise<string>;
|
|
92
92
|
/**
|
|
93
|
-
* @param {string} id - Identifier for a
|
|
94
|
-
* @param {number} version - Version number for a
|
|
93
|
+
* @param {string} id - Identifier for a Tool. Formatted as a UUID.
|
|
94
|
+
* @param {number} version - Version number for a Tool.
|
|
95
|
+
*
|
|
96
|
+
* Tools, as well as Configs and Prompts, are versioned. This versioning system supports iterative development, allowing you to progressively refine tools and revert to previous versions if needed.
|
|
97
|
+
*
|
|
98
|
+
* Version numbers are integer values representing different iterations of the Tool. Each update to the Tool increments its version number.
|
|
95
99
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
96
100
|
*
|
|
97
101
|
* @example
|
|
@@ -99,8 +103,12 @@ export declare class Tools {
|
|
|
99
103
|
*/
|
|
100
104
|
getToolVersion(id: string, version: number, requestOptions?: Tools.RequestOptions): Promise<Hume.empathicVoice.ReturnUserDefinedTool | undefined>;
|
|
101
105
|
/**
|
|
102
|
-
* @param {string} id - Identifier for a
|
|
103
|
-
* @param {number} version - Version number for a
|
|
106
|
+
* @param {string} id - Identifier for a Tool. Formatted as a UUID.
|
|
107
|
+
* @param {number} version - Version number for a Tool.
|
|
108
|
+
*
|
|
109
|
+
* Tools, as well as Configs and Prompts, are versioned. This versioning system supports iterative development, allowing you to progressively refine tools and revert to previous versions if needed.
|
|
110
|
+
*
|
|
111
|
+
* Version numbers are integer values representing different iterations of the Tool. Each update to the Tool increments its version number.
|
|
104
112
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
105
113
|
*
|
|
106
114
|
* @example
|
|
@@ -108,8 +116,12 @@ export declare class Tools {
|
|
|
108
116
|
*/
|
|
109
117
|
deleteToolVersion(id: string, version: number, requestOptions?: Tools.RequestOptions): Promise<void>;
|
|
110
118
|
/**
|
|
111
|
-
* @param {string} id - Identifier for a
|
|
112
|
-
* @param {number} version - Version number for a
|
|
119
|
+
* @param {string} id - Identifier for a Tool. Formatted as a UUID.
|
|
120
|
+
* @param {number} version - Version number for a Tool.
|
|
121
|
+
*
|
|
122
|
+
* Tools, as well as Configs and Prompts, are versioned. This versioning system supports iterative development, allowing you to progressively refine tools and revert to previous versions if needed.
|
|
123
|
+
*
|
|
124
|
+
* Version numbers are integer values representing different iterations of the Tool. Each update to the Tool increments its version number.
|
|
113
125
|
* @param {Hume.empathicVoice.PostedUserDefinedToolVersionDescription} request
|
|
114
126
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
115
127
|
*
|
|
@@ -78,7 +78,7 @@ class Tools {
|
|
|
78
78
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
79
79
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, 'v0/evi/tools'),
|
|
80
80
|
method: 'GET',
|
|
81
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.
|
|
81
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
82
82
|
contentType: 'application/json',
|
|
83
83
|
queryParameters: _queryParams,
|
|
84
84
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
|
|
@@ -135,7 +135,7 @@ class Tools {
|
|
|
135
135
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
136
136
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, 'v0/evi/tools'),
|
|
137
137
|
method: 'POST',
|
|
138
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.
|
|
138
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
139
139
|
contentType: 'application/json',
|
|
140
140
|
body: serializers.empathicVoice.PostedUserDefinedTool.jsonOrThrow(request, {
|
|
141
141
|
unrecognizedObjectKeys: 'strip',
|
|
@@ -176,7 +176,7 @@ class Tools {
|
|
|
176
176
|
});
|
|
177
177
|
}
|
|
178
178
|
/**
|
|
179
|
-
* @param {string} id - Identifier for a
|
|
179
|
+
* @param {string} id - Identifier for a Tool. Formatted as a UUID.
|
|
180
180
|
* @param {Hume.empathicVoice.ToolsListToolVersionsRequest} request
|
|
181
181
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
182
182
|
*
|
|
@@ -200,7 +200,7 @@ class Tools {
|
|
|
200
200
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
201
201
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}`),
|
|
202
202
|
method: 'GET',
|
|
203
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.
|
|
203
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
204
204
|
contentType: 'application/json',
|
|
205
205
|
queryParameters: _queryParams,
|
|
206
206
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
|
|
@@ -239,7 +239,7 @@ class Tools {
|
|
|
239
239
|
});
|
|
240
240
|
}
|
|
241
241
|
/**
|
|
242
|
-
* @param {string} id - Identifier for a
|
|
242
|
+
* @param {string} id - Identifier for a Tool. Formatted as a UUID.
|
|
243
243
|
* @param {Hume.empathicVoice.PostedUserDefinedToolVersion} request
|
|
244
244
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
245
245
|
*
|
|
@@ -257,7 +257,7 @@ class Tools {
|
|
|
257
257
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
258
258
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}`),
|
|
259
259
|
method: 'POST',
|
|
260
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.
|
|
260
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
261
261
|
contentType: 'application/json',
|
|
262
262
|
body: serializers.empathicVoice.PostedUserDefinedToolVersion.jsonOrThrow(request, {
|
|
263
263
|
unrecognizedObjectKeys: 'strip',
|
|
@@ -298,7 +298,7 @@ class Tools {
|
|
|
298
298
|
});
|
|
299
299
|
}
|
|
300
300
|
/**
|
|
301
|
-
* @param {string} id - Identifier for a
|
|
301
|
+
* @param {string} id - Identifier for a Tool. Formatted as a UUID.
|
|
302
302
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
303
303
|
*
|
|
304
304
|
* @example
|
|
@@ -310,7 +310,7 @@ class Tools {
|
|
|
310
310
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
311
311
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}`),
|
|
312
312
|
method: 'DELETE',
|
|
313
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.
|
|
313
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
314
314
|
contentType: 'application/json',
|
|
315
315
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
|
|
316
316
|
? requestOptions.timeoutInSeconds * 1000
|
|
@@ -343,7 +343,7 @@ class Tools {
|
|
|
343
343
|
});
|
|
344
344
|
}
|
|
345
345
|
/**
|
|
346
|
-
* @param {string} id - Identifier for a
|
|
346
|
+
* @param {string} id - Identifier for a Tool. Formatted as a UUID.
|
|
347
347
|
* @param {Hume.empathicVoice.PostedUserDefinedToolName} request
|
|
348
348
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
349
349
|
*
|
|
@@ -358,7 +358,7 @@ class Tools {
|
|
|
358
358
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
359
359
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}`),
|
|
360
360
|
method: 'PATCH',
|
|
361
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.
|
|
361
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
362
362
|
contentType: 'application/json',
|
|
363
363
|
body: serializers.empathicVoice.PostedUserDefinedToolName.jsonOrThrow(request, {
|
|
364
364
|
unrecognizedObjectKeys: 'strip',
|
|
@@ -395,8 +395,12 @@ class Tools {
|
|
|
395
395
|
});
|
|
396
396
|
}
|
|
397
397
|
/**
|
|
398
|
-
* @param {string} id - Identifier for a
|
|
399
|
-
* @param {number} version - Version number for a
|
|
398
|
+
* @param {string} id - Identifier for a Tool. Formatted as a UUID.
|
|
399
|
+
* @param {number} version - Version number for a Tool.
|
|
400
|
+
*
|
|
401
|
+
* Tools, as well as Configs and Prompts, are versioned. This versioning system supports iterative development, allowing you to progressively refine tools and revert to previous versions if needed.
|
|
402
|
+
*
|
|
403
|
+
* Version numbers are integer values representing different iterations of the Tool. Each update to the Tool increments its version number.
|
|
400
404
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
401
405
|
*
|
|
402
406
|
* @example
|
|
@@ -408,7 +412,7 @@ class Tools {
|
|
|
408
412
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
409
413
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
410
414
|
method: 'GET',
|
|
411
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.
|
|
415
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
412
416
|
contentType: 'application/json',
|
|
413
417
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
|
|
414
418
|
? requestOptions.timeoutInSeconds * 1000
|
|
@@ -446,8 +450,12 @@ class Tools {
|
|
|
446
450
|
});
|
|
447
451
|
}
|
|
448
452
|
/**
|
|
449
|
-
* @param {string} id - Identifier for a
|
|
450
|
-
* @param {number} version - Version number for a
|
|
453
|
+
* @param {string} id - Identifier for a Tool. Formatted as a UUID.
|
|
454
|
+
* @param {number} version - Version number for a Tool.
|
|
455
|
+
*
|
|
456
|
+
* Tools, as well as Configs and Prompts, are versioned. This versioning system supports iterative development, allowing you to progressively refine tools and revert to previous versions if needed.
|
|
457
|
+
*
|
|
458
|
+
* Version numbers are integer values representing different iterations of the Tool. Each update to the Tool increments its version number.
|
|
451
459
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
452
460
|
*
|
|
453
461
|
* @example
|
|
@@ -459,7 +467,7 @@ class Tools {
|
|
|
459
467
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
460
468
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
461
469
|
method: 'DELETE',
|
|
462
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.
|
|
470
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
463
471
|
contentType: 'application/json',
|
|
464
472
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
|
|
465
473
|
? requestOptions.timeoutInSeconds * 1000
|
|
@@ -492,8 +500,12 @@ class Tools {
|
|
|
492
500
|
});
|
|
493
501
|
}
|
|
494
502
|
/**
|
|
495
|
-
* @param {string} id - Identifier for a
|
|
496
|
-
* @param {number} version - Version number for a
|
|
503
|
+
* @param {string} id - Identifier for a Tool. Formatted as a UUID.
|
|
504
|
+
* @param {number} version - Version number for a Tool.
|
|
505
|
+
*
|
|
506
|
+
* Tools, as well as Configs and Prompts, are versioned. This versioning system supports iterative development, allowing you to progressively refine tools and revert to previous versions if needed.
|
|
507
|
+
*
|
|
508
|
+
* Version numbers are integer values representing different iterations of the Tool. Each update to the Tool increments its version number.
|
|
497
509
|
* @param {Hume.empathicVoice.PostedUserDefinedToolVersionDescription} request
|
|
498
510
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
499
511
|
*
|
|
@@ -508,7 +520,7 @@ class Tools {
|
|
|
508
520
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
509
521
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
510
522
|
method: 'PATCH',
|
|
511
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.
|
|
523
|
+
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
512
524
|
contentType: 'application/json',
|
|
513
525
|
body: serializers.empathicVoice.PostedUserDefinedToolVersionDescription.jsonOrThrow(request, {
|
|
514
526
|
unrecognizedObjectKeys: 'strip',
|
package/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.ts
CHANGED
|
@@ -14,12 +14,16 @@
|
|
|
14
14
|
export interface PostedUserDefinedTool {
|
|
15
15
|
/** Name applied to all versions of a particular Tool. */
|
|
16
16
|
name: string;
|
|
17
|
-
/**
|
|
17
|
+
/** An optional description of the Tool version. */
|
|
18
18
|
versionDescription?: string;
|
|
19
|
-
/**
|
|
19
|
+
/** An optional description of what the Tool does, used by the supplemental LLM to choose when and how to call the function. */
|
|
20
20
|
description?: string;
|
|
21
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* Stringified JSON defining the parameters used by this version of the Tool.
|
|
23
|
+
*
|
|
24
|
+
* These parameters define the inputs needed for the Tool’s execution, including the expected data type and description for each input field. Structured as a stringified JSON schema, this format ensures the Tool receives data in the expected format.
|
|
25
|
+
*/
|
|
22
26
|
parameters: string;
|
|
23
|
-
/**
|
|
27
|
+
/** Optional text passed to the supplemental LLM in place of the tool call result. The LLM then uses this text to generate a response back to the user, ensuring continuity in the conversation if the Tool errors. */
|
|
24
28
|
fallbackContent?: string;
|
|
25
29
|
}
|
|
@@ -11,12 +11,16 @@
|
|
|
11
11
|
* }
|
|
12
12
|
*/
|
|
13
13
|
export interface PostedUserDefinedToolVersion {
|
|
14
|
-
/**
|
|
14
|
+
/** An optional description of the Tool version. */
|
|
15
15
|
versionDescription?: string;
|
|
16
|
-
/**
|
|
16
|
+
/** An optional description of what the Tool does, used by the supplemental LLM to choose when and how to call the function. */
|
|
17
17
|
description?: string;
|
|
18
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* Stringified JSON defining the parameters used by this version of the Tool.
|
|
20
|
+
*
|
|
21
|
+
* These parameters define the inputs needed for the Tool’s execution, including the expected data type and description for each input field. Structured as a stringified JSON schema, this format ensures the Tool receives data in the expected format.
|
|
22
|
+
*/
|
|
19
23
|
parameters: string;
|
|
20
|
-
/**
|
|
24
|
+
/** Optional text passed to the supplemental LLM in place of the tool call result. The LLM then uses this text to generate a response back to the user, ensuring continuity in the conversation if the Tool errors. */
|
|
21
25
|
fallbackContent?: string;
|
|
22
26
|
}
|
|
@@ -7,15 +7,19 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export interface ToolsListToolVersionsRequest {
|
|
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.
|
|
17
|
+
*
|
|
18
|
+
* The value must be greater than or equal to 1. For example, if `page_size` is set to 10, each page will include up to 10 items. Defaults to 10.
|
|
15
19
|
*/
|
|
16
20
|
pageSize?: number;
|
|
17
21
|
/**
|
|
18
|
-
*
|
|
22
|
+
* By default, `restrict_to_most_recent` is set to true, returning only the latest version of each tool. To include all versions of each tool in the list, set `restrict_to_most_recent` to false.
|
|
19
23
|
*/
|
|
20
24
|
restrictToMostRecent?: boolean;
|
|
21
25
|
}
|
package/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolsRequest.d.ts
CHANGED
|
@@ -10,15 +10,19 @@
|
|
|
10
10
|
*/
|
|
11
11
|
export interface ToolsListToolsRequest {
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Specifies the page number to retrieve, enabling pagination.
|
|
14
|
+
*
|
|
15
|
+
* This parameter uses zero-based indexing. For example, setting `page_number` to 0 retrieves the first page of results (items 0-9 if `page_size` is 10), setting `page_number` to 1 retrieves the second page (items 10-19), and so on. Defaults to 0, which retrieves the first page.
|
|
14
16
|
*/
|
|
15
17
|
pageNumber?: number;
|
|
16
18
|
/**
|
|
17
|
-
*
|
|
19
|
+
* Specifies the maximum number of results to include per page, enabling pagination.
|
|
20
|
+
*
|
|
21
|
+
* The value must be greater than or equal to 1. For example, if `page_size` is set to 10, each page will include up to 10 items. Defaults to 10.
|
|
18
22
|
*/
|
|
19
23
|
pageSize?: number;
|
|
20
24
|
/**
|
|
21
|
-
*
|
|
25
|
+
* By default, `restrict_to_most_recent` is set to true, returning only the latest version of each tool. To include all versions of each tool in the list, set `restrict_to_most_recent` to false.
|
|
22
26
|
*/
|
|
23
27
|
restrictToMostRecent?: boolean;
|
|
24
28
|
/**
|
|
@@ -6,7 +6,7 @@ export interface Inference {
|
|
|
6
6
|
/**
|
|
7
7
|
* Prosody model inference results.
|
|
8
8
|
*
|
|
9
|
-
* EVI uses the prosody model to measure 48
|
|
9
|
+
* EVI uses the prosody model to measure 48 emotions related to speech and vocal characteristics within a given expression.
|
|
10
10
|
*/
|
|
11
11
|
prosody?: Hume.empathicVoice.ProsodyInference;
|
|
12
12
|
}
|