vellum-ai 0.3.25 → 0.4.1
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/Client.d.ts +0 -3
- package/Client.js +17 -22
- package/api/errors/index.d.ts +0 -1
- package/api/errors/index.js +0 -1
- package/api/resources/deployments/client/Client.js +3 -3
- package/api/resources/documentIndexes/client/Client.js +6 -6
- package/api/resources/documents/client/Client.d.ts +7 -0
- package/api/resources/documents/client/Client.js +51 -4
- package/api/resources/folderEntities/client/Client.js +1 -1
- package/api/resources/index.d.ts +0 -2
- package/api/resources/index.js +1 -3
- package/api/resources/modelVersions/client/Client.js +1 -1
- package/api/resources/sandboxes/client/Client.d.ts +1 -9
- package/api/resources/sandboxes/client/Client.js +3 -11
- package/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +2 -10
- package/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/api/resources/testSuites/client/Client.js +3 -3
- package/api/resources/workflowDeployments/client/Client.js +2 -2
- package/api/types/ChatHistoryPromptTemplateBlock.d.ts +12 -0
- package/api/types/ChatMessageEnum.d.ts +4 -0
- package/api/types/ChatMessagePromptTemplateBlock.d.ts +12 -0
- package/api/types/ChatMessagePromptTemplateBlockProperties.d.ts +13 -0
- package/api/types/FulfilledFunctionCallRequest.d.ts +13 -0
- package/api/types/FunctionDefinitionEnum.d.ts +4 -0
- package/api/types/FunctionDefinitionPromptTemplateBlock.d.ts +12 -0
- package/api/types/FunctionDefinitionPromptTemplateBlockProperties.d.ts +13 -0
- package/api/types/JinjaEnum.d.ts +4 -0
- package/api/types/JinjaPromptTemplateBlock.d.ts +12 -0
- package/api/types/JinjaPromptTemplateBlockProperties.d.ts +8 -0
- package/api/types/NamedScenarioInputChatHistoryVariableValueRequest.d.ts +11 -0
- package/api/types/NamedScenarioInputRequest.d.ts +13 -0
- package/api/types/NamedScenarioInputStringVariableValueRequest.d.ts +10 -0
- package/api/types/NamedTestCaseFunctionCallVariableValue.d.ts +11 -0
- package/api/types/NamedTestCaseFunctionCallVariableValueRequest.d.ts +11 -0
- package/api/types/NamedTestCaseVariableValue.d.ts +4 -1
- package/api/types/NamedTestCaseVariableValueRequest.d.ts +4 -1
- package/api/types/PromptTemplateBlock.d.ts +14 -5
- package/api/types/PromptTemplateBlockData.d.ts +1 -1
- package/api/types/ScenarioInput.d.ts +8 -5
- package/api/types/ScenarioInputChatHistoryVariableValue.d.ts +11 -0
- package/api/types/ScenarioInputStringVariableValue.d.ts +10 -0
- package/api/types/TestCaseFunctionCallVariableValue.d.ts +12 -0
- package/api/types/TestCaseVariableValue.d.ts +4 -1
- package/api/types/TestSuiteRunExecutionFunctionCallOutput.d.ts +12 -0
- package/api/types/TestSuiteRunExecutionOutput.d.ts +4 -1
- package/api/types/VellumVariableType.d.ts +3 -1
- package/api/types/VellumVariableType.js +1 -0
- package/api/types/index.d.ts +20 -17
- package/api/types/index.js +20 -17
- package/dist/Client.d.ts +0 -3
- package/dist/Client.js +17 -22
- package/dist/api/errors/index.d.ts +0 -1
- package/dist/api/errors/index.js +0 -1
- package/dist/api/resources/deployments/client/Client.js +3 -3
- package/dist/api/resources/documentIndexes/client/Client.js +6 -6
- package/dist/api/resources/documents/client/Client.d.ts +7 -0
- package/dist/api/resources/documents/client/Client.js +51 -4
- package/dist/api/resources/folderEntities/client/Client.js +1 -1
- package/dist/api/resources/index.d.ts +0 -2
- package/dist/api/resources/index.js +1 -3
- package/dist/api/resources/modelVersions/client/Client.js +1 -1
- package/dist/api/resources/sandboxes/client/Client.d.ts +1 -9
- package/dist/api/resources/sandboxes/client/Client.js +3 -11
- package/dist/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +2 -10
- package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/dist/api/resources/testSuites/client/Client.js +3 -3
- package/dist/api/resources/workflowDeployments/client/Client.js +2 -2
- package/dist/api/types/ChatHistoryPromptTemplateBlock.d.ts +12 -0
- package/dist/api/types/ChatMessageEnum.d.ts +4 -0
- package/dist/api/types/ChatMessagePromptTemplateBlock.d.ts +12 -0
- package/dist/api/types/ChatMessagePromptTemplateBlockProperties.d.ts +13 -0
- package/dist/api/types/FulfilledFunctionCallRequest.d.ts +13 -0
- package/dist/api/types/FunctionDefinitionEnum.d.ts +4 -0
- package/dist/api/types/FunctionDefinitionPromptTemplateBlock.d.ts +12 -0
- package/dist/api/types/FunctionDefinitionPromptTemplateBlockProperties.d.ts +13 -0
- package/dist/api/types/JinjaEnum.d.ts +4 -0
- package/dist/api/types/JinjaPromptTemplateBlock.d.ts +12 -0
- package/dist/api/types/JinjaPromptTemplateBlockProperties.d.ts +8 -0
- package/dist/api/types/NamedScenarioInputChatHistoryVariableValueRequest.d.ts +11 -0
- package/dist/api/types/NamedScenarioInputRequest.d.ts +13 -0
- package/dist/api/types/NamedScenarioInputRequest.js +5 -0
- package/dist/api/types/NamedScenarioInputStringVariableValueRequest.d.ts +10 -0
- package/dist/api/types/NamedScenarioInputStringVariableValueRequest.js +5 -0
- package/dist/api/types/NamedTestCaseFunctionCallVariableValue.d.ts +11 -0
- package/dist/api/types/NamedTestCaseFunctionCallVariableValue.js +5 -0
- package/dist/api/types/NamedTestCaseFunctionCallVariableValueRequest.d.ts +11 -0
- package/dist/api/types/NamedTestCaseFunctionCallVariableValueRequest.js +5 -0
- package/dist/api/types/NamedTestCaseVariableValue.d.ts +4 -1
- package/dist/api/types/NamedTestCaseVariableValueRequest.d.ts +4 -1
- package/dist/api/types/PromptTemplateBlock.d.ts +14 -5
- package/dist/api/types/PromptTemplateBlockData.d.ts +1 -1
- package/dist/api/types/ScenarioInput.d.ts +8 -5
- package/dist/api/types/ScenarioInputChatHistoryVariableValue.d.ts +11 -0
- package/dist/api/types/ScenarioInputChatHistoryVariableValue.js +5 -0
- package/dist/api/types/ScenarioInputStringVariableValue.d.ts +10 -0
- package/dist/api/types/ScenarioInputStringVariableValue.js +5 -0
- package/dist/api/types/TestCaseFunctionCallVariableValue.d.ts +12 -0
- package/dist/api/types/TestCaseFunctionCallVariableValue.js +5 -0
- package/dist/api/types/TestCaseVariableValue.d.ts +4 -1
- package/dist/api/types/TestSuiteRunExecutionFunctionCallOutput.d.ts +12 -0
- package/dist/api/types/TestSuiteRunExecutionFunctionCallOutput.js +5 -0
- package/dist/api/types/TestSuiteRunExecutionOutput.d.ts +4 -1
- package/dist/api/types/VellumVariableType.d.ts +3 -1
- package/dist/api/types/VellumVariableType.js +1 -0
- package/dist/api/types/index.d.ts +20 -17
- package/dist/api/types/index.js +20 -17
- package/dist/serialization/resources/index.d.ts +0 -2
- package/dist/serialization/resources/index.js +1 -3
- package/dist/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +2 -2
- package/dist/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.js +2 -2
- package/dist/serialization/types/ChatHistoryPromptTemplateBlock.d.ts +15 -0
- package/dist/serialization/types/{RegisteredPromptSandbox.js → ChatHistoryPromptTemplateBlock.js} +5 -3
- package/dist/serialization/types/ChatMessageEnum.d.ts +10 -0
- package/{serialization/types/ScenarioInputTypeEnum.js → dist/serialization/types/ChatMessageEnum.js} +2 -2
- package/dist/serialization/types/ChatMessagePromptTemplateBlock.d.ts +15 -0
- package/dist/serialization/types/{PromptTemplateBlockRequest.js → ChatMessagePromptTemplateBlock.js} +3 -5
- package/dist/serialization/types/ChatMessagePromptTemplateBlockProperties.d.ts +16 -0
- package/{serialization/types/PromptTemplateBlockDataRequest.js → dist/serialization/types/ChatMessagePromptTemplateBlockProperties.js} +7 -4
- package/dist/serialization/types/FulfilledFunctionCallRequest.d.ts +16 -0
- package/dist/serialization/types/FulfilledFunctionCallRequest.js +37 -0
- package/dist/serialization/types/FunctionDefinitionEnum.d.ts +10 -0
- package/dist/serialization/types/{BlockTypeEnum.js → FunctionDefinitionEnum.js} +2 -2
- package/dist/serialization/types/FunctionDefinitionPromptTemplateBlock.d.ts +16 -0
- package/dist/serialization/types/FunctionDefinitionPromptTemplateBlock.js +37 -0
- package/dist/serialization/types/FunctionDefinitionPromptTemplateBlockProperties.d.ts +15 -0
- package/dist/serialization/types/{RegisterPromptPromptInfoRequest.js → FunctionDefinitionPromptTemplateBlockProperties.js} +6 -6
- package/dist/serialization/types/JinjaEnum.d.ts +10 -0
- package/dist/serialization/types/{ScenarioInputTypeEnum.js → JinjaEnum.js} +2 -2
- package/dist/serialization/types/JinjaPromptTemplateBlock.d.ts +16 -0
- package/dist/serialization/types/JinjaPromptTemplateBlock.js +37 -0
- package/dist/serialization/types/JinjaPromptTemplateBlockProperties.d.ts +14 -0
- package/{serialization/types/RegisteredPromptInputVariableRequest.js → dist/serialization/types/JinjaPromptTemplateBlockProperties.js} +4 -5
- package/dist/serialization/types/NamedScenarioInputChatHistoryVariableValueRequest.d.ts +14 -0
- package/dist/serialization/types/NamedScenarioInputChatHistoryVariableValueRequest.js +35 -0
- package/dist/serialization/types/NamedScenarioInputRequest.d.ts +18 -0
- package/dist/serialization/types/NamedScenarioInputRequest.js +41 -0
- package/dist/serialization/types/NamedScenarioInputStringVariableValueRequest.d.ts +13 -0
- package/{serialization/types/RegisteredPromptDeployment.js → dist/serialization/types/NamedScenarioInputStringVariableValueRequest.js} +3 -4
- package/dist/serialization/types/NamedTestCaseFunctionCallVariableValue.d.ts +14 -0
- package/dist/serialization/types/{RegisteredPromptModelVersion.js → NamedTestCaseFunctionCallVariableValue.js} +5 -4
- package/dist/serialization/types/NamedTestCaseFunctionCallVariableValueRequest.d.ts +14 -0
- package/dist/serialization/types/NamedTestCaseFunctionCallVariableValueRequest.js +35 -0
- package/dist/serialization/types/NamedTestCaseVariableValue.d.ts +5 -1
- package/dist/serialization/types/NamedTestCaseVariableValue.js +2 -0
- package/dist/serialization/types/NamedTestCaseVariableValueRequest.d.ts +5 -1
- package/dist/serialization/types/NamedTestCaseVariableValueRequest.js +2 -0
- package/dist/serialization/types/PromptTemplateBlock.d.ts +16 -8
- package/dist/serialization/types/PromptTemplateBlock.js +13 -7
- package/dist/serialization/types/PromptTemplateBlockData.d.ts +1 -1
- package/dist/serialization/types/PromptTemplateBlockData.js +1 -1
- package/dist/serialization/types/ScenarioInput.d.ts +9 -8
- package/dist/serialization/types/ScenarioInput.js +10 -7
- package/dist/serialization/types/ScenarioInputChatHistoryVariableValue.d.ts +14 -0
- package/dist/serialization/types/ScenarioInputChatHistoryVariableValue.js +35 -0
- package/dist/serialization/types/ScenarioInputStringVariableValue.d.ts +13 -0
- package/dist/serialization/types/{RegisterPromptErrorResponse.js → ScenarioInputStringVariableValue.js} +4 -3
- package/dist/serialization/types/TestCaseFunctionCallVariableValue.d.ts +15 -0
- package/dist/serialization/types/TestCaseFunctionCallVariableValue.js +36 -0
- package/dist/serialization/types/TestCaseVariableValue.d.ts +5 -1
- package/dist/serialization/types/TestCaseVariableValue.js +2 -0
- package/dist/serialization/types/TestSuiteRunExecutionFunctionCallOutput.d.ts +15 -0
- package/dist/serialization/types/TestSuiteRunExecutionFunctionCallOutput.js +36 -0
- package/dist/serialization/types/TestSuiteRunExecutionOutput.d.ts +5 -1
- package/dist/serialization/types/TestSuiteRunExecutionOutput.js +2 -0
- package/dist/serialization/types/VellumVariableType.d.ts +1 -1
- package/dist/serialization/types/VellumVariableType.js +1 -0
- package/dist/serialization/types/index.d.ts +20 -17
- package/dist/serialization/types/index.js +20 -17
- package/package.json +1 -1
- package/serialization/resources/index.d.ts +0 -2
- package/serialization/resources/index.js +1 -3
- package/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +2 -2
- package/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.js +2 -2
- package/serialization/types/ChatHistoryPromptTemplateBlock.d.ts +15 -0
- package/serialization/types/ChatHistoryPromptTemplateBlock.js +36 -0
- package/serialization/types/ChatMessageEnum.d.ts +10 -0
- package/serialization/types/{BlockTypeEnum.js → ChatMessageEnum.js} +2 -2
- package/serialization/types/ChatMessagePromptTemplateBlock.d.ts +15 -0
- package/serialization/types/{PromptTemplateBlockRequest.js → ChatMessagePromptTemplateBlock.js} +3 -5
- package/serialization/types/ChatMessagePromptTemplateBlockProperties.d.ts +16 -0
- package/{dist/serialization/types/PromptTemplateBlockDataRequest.js → serialization/types/ChatMessagePromptTemplateBlockProperties.js} +7 -4
- package/serialization/types/FulfilledFunctionCallRequest.d.ts +16 -0
- package/serialization/types/FulfilledFunctionCallRequest.js +37 -0
- package/serialization/types/FunctionDefinitionEnum.d.ts +10 -0
- package/serialization/types/FunctionDefinitionEnum.js +31 -0
- package/serialization/types/FunctionDefinitionPromptTemplateBlock.d.ts +16 -0
- package/serialization/types/FunctionDefinitionPromptTemplateBlock.js +37 -0
- package/serialization/types/FunctionDefinitionPromptTemplateBlockProperties.d.ts +15 -0
- package/serialization/types/FunctionDefinitionPromptTemplateBlockProperties.js +36 -0
- package/serialization/types/JinjaEnum.d.ts +10 -0
- package/serialization/types/JinjaEnum.js +31 -0
- package/serialization/types/JinjaPromptTemplateBlock.d.ts +16 -0
- package/serialization/types/JinjaPromptTemplateBlock.js +37 -0
- package/serialization/types/JinjaPromptTemplateBlockProperties.d.ts +14 -0
- package/{dist/serialization/types/RegisteredPromptInputVariableRequest.js → serialization/types/JinjaPromptTemplateBlockProperties.js} +4 -5
- package/serialization/types/NamedScenarioInputChatHistoryVariableValueRequest.d.ts +14 -0
- package/serialization/types/NamedScenarioInputChatHistoryVariableValueRequest.js +35 -0
- package/serialization/types/NamedScenarioInputRequest.d.ts +18 -0
- package/serialization/types/NamedScenarioInputRequest.js +41 -0
- package/serialization/types/NamedScenarioInputStringVariableValueRequest.d.ts +13 -0
- package/{dist/serialization/types/RegisteredPromptDeployment.js → serialization/types/NamedScenarioInputStringVariableValueRequest.js} +3 -4
- package/serialization/types/NamedTestCaseFunctionCallVariableValue.d.ts +14 -0
- package/serialization/types/NamedTestCaseFunctionCallVariableValue.js +35 -0
- package/serialization/types/NamedTestCaseFunctionCallVariableValueRequest.d.ts +14 -0
- package/serialization/types/NamedTestCaseFunctionCallVariableValueRequest.js +35 -0
- package/serialization/types/NamedTestCaseVariableValue.d.ts +5 -1
- package/serialization/types/NamedTestCaseVariableValue.js +2 -0
- package/serialization/types/NamedTestCaseVariableValueRequest.d.ts +5 -1
- package/serialization/types/NamedTestCaseVariableValueRequest.js +2 -0
- package/serialization/types/PromptTemplateBlock.d.ts +16 -8
- package/serialization/types/PromptTemplateBlock.js +13 -7
- package/serialization/types/PromptTemplateBlockData.d.ts +1 -1
- package/serialization/types/PromptTemplateBlockData.js +1 -1
- package/serialization/types/ScenarioInput.d.ts +9 -8
- package/serialization/types/ScenarioInput.js +10 -7
- package/serialization/types/ScenarioInputChatHistoryVariableValue.d.ts +14 -0
- package/serialization/types/ScenarioInputChatHistoryVariableValue.js +35 -0
- package/serialization/types/ScenarioInputStringVariableValue.d.ts +13 -0
- package/{dist/serialization/types/RegisterPromptPrompt.js → serialization/types/ScenarioInputStringVariableValue.js} +4 -4
- package/serialization/types/TestCaseFunctionCallVariableValue.d.ts +15 -0
- package/serialization/types/TestCaseFunctionCallVariableValue.js +36 -0
- package/serialization/types/TestCaseVariableValue.d.ts +5 -1
- package/serialization/types/TestCaseVariableValue.js +2 -0
- package/serialization/types/TestSuiteRunExecutionFunctionCallOutput.d.ts +15 -0
- package/serialization/types/TestSuiteRunExecutionFunctionCallOutput.js +36 -0
- package/serialization/types/TestSuiteRunExecutionOutput.d.ts +5 -1
- package/serialization/types/TestSuiteRunExecutionOutput.js +2 -0
- package/serialization/types/VellumVariableType.d.ts +1 -1
- package/serialization/types/VellumVariableType.js +1 -0
- package/serialization/types/index.d.ts +20 -17
- package/serialization/types/index.js +20 -17
- package/api/errors/ConflictError.d.ts +0 -8
- package/api/errors/ConflictError.js +0 -41
- package/api/resources/registeredPrompts/client/Client.d.ts +0 -60
- package/api/resources/registeredPrompts/client/Client.js +0 -153
- package/api/resources/registeredPrompts/client/index.d.ts +0 -1
- package/api/resources/registeredPrompts/client/index.js +0 -17
- package/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +0 -64
- package/api/resources/registeredPrompts/client/requests/index.d.ts +0 -1
- package/api/resources/registeredPrompts/client/requests/index.js +0 -2
- package/api/resources/registeredPrompts/index.d.ts +0 -1
- package/api/resources/registeredPrompts/index.js +0 -17
- package/api/types/BlockTypeEnum.d.ts +0 -16
- package/api/types/BlockTypeEnum.js +0 -12
- package/api/types/PromptTemplateBlockDataRequest.d.ts +0 -8
- package/api/types/PromptTemplateBlockProperties.d.ts +0 -16
- package/api/types/PromptTemplateBlockPropertiesRequest.d.ts +0 -16
- package/api/types/PromptTemplateBlockRequest.d.ts +0 -10
- package/api/types/RegisterPromptErrorResponse.d.ts +0 -7
- package/api/types/RegisterPromptModelParametersRequest.d.ts +0 -14
- package/api/types/RegisterPromptPrompt.d.ts +0 -9
- package/api/types/RegisterPromptPromptInfoRequest.d.ts +0 -9
- package/api/types/RegisterPromptResponse.d.ts +0 -18
- package/api/types/RegisteredPromptDeployment.d.ts +0 -11
- package/api/types/RegisteredPromptInputVariableRequest.d.ts +0 -9
- package/api/types/RegisteredPromptModelVersion.d.ts +0 -9
- package/api/types/RegisteredPromptSandbox.d.ts +0 -9
- package/api/types/RegisteredPromptSandboxSnapshot.d.ts +0 -7
- package/api/types/ScenarioInputRequest.d.ts +0 -10
- package/api/types/ScenarioInputTypeEnum.d.ts +0 -12
- package/api/types/ScenarioInputTypeEnum.js +0 -10
- package/dist/api/errors/ConflictError.d.ts +0 -8
- package/dist/api/errors/ConflictError.js +0 -41
- package/dist/api/resources/registeredPrompts/client/Client.d.ts +0 -60
- package/dist/api/resources/registeredPrompts/client/Client.js +0 -153
- package/dist/api/resources/registeredPrompts/client/index.d.ts +0 -1
- package/dist/api/resources/registeredPrompts/client/index.js +0 -17
- package/dist/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +0 -64
- package/dist/api/resources/registeredPrompts/client/requests/index.d.ts +0 -1
- package/dist/api/resources/registeredPrompts/client/requests/index.js +0 -2
- package/dist/api/resources/registeredPrompts/index.d.ts +0 -1
- package/dist/api/resources/registeredPrompts/index.js +0 -17
- package/dist/api/types/BlockTypeEnum.d.ts +0 -16
- package/dist/api/types/BlockTypeEnum.js +0 -12
- package/dist/api/types/PromptTemplateBlockDataRequest.d.ts +0 -8
- package/dist/api/types/PromptTemplateBlockProperties.d.ts +0 -16
- package/dist/api/types/PromptTemplateBlockPropertiesRequest.d.ts +0 -16
- package/dist/api/types/PromptTemplateBlockRequest.d.ts +0 -10
- package/dist/api/types/RegisterPromptErrorResponse.d.ts +0 -7
- package/dist/api/types/RegisterPromptModelParametersRequest.d.ts +0 -14
- package/dist/api/types/RegisterPromptPrompt.d.ts +0 -9
- package/dist/api/types/RegisterPromptPromptInfoRequest.d.ts +0 -9
- package/dist/api/types/RegisterPromptResponse.d.ts +0 -18
- package/dist/api/types/RegisteredPromptDeployment.d.ts +0 -11
- package/dist/api/types/RegisteredPromptInputVariableRequest.d.ts +0 -9
- package/dist/api/types/RegisteredPromptModelVersion.d.ts +0 -9
- package/dist/api/types/RegisteredPromptSandbox.d.ts +0 -9
- package/dist/api/types/RegisteredPromptSandboxSnapshot.d.ts +0 -7
- package/dist/api/types/ScenarioInputRequest.d.ts +0 -10
- package/dist/api/types/ScenarioInputTypeEnum.d.ts +0 -12
- package/dist/api/types/ScenarioInputTypeEnum.js +0 -10
- package/dist/serialization/resources/registeredPrompts/client/index.d.ts +0 -1
- package/dist/serialization/resources/registeredPrompts/client/index.js +0 -17
- package/dist/serialization/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +0 -21
- package/dist/serialization/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.js +0 -42
- package/dist/serialization/resources/registeredPrompts/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/registeredPrompts/client/requests/index.js +0 -5
- package/dist/serialization/resources/registeredPrompts/index.d.ts +0 -1
- package/dist/serialization/resources/registeredPrompts/index.js +0 -17
- package/dist/serialization/types/BlockTypeEnum.d.ts +0 -10
- package/dist/serialization/types/PromptTemplateBlockDataRequest.d.ts +0 -13
- package/dist/serialization/types/PromptTemplateBlockProperties.d.ts +0 -23
- package/dist/serialization/types/PromptTemplateBlockProperties.js +0 -55
- package/dist/serialization/types/PromptTemplateBlockPropertiesRequest.d.ts +0 -23
- package/dist/serialization/types/PromptTemplateBlockPropertiesRequest.js +0 -55
- package/dist/serialization/types/PromptTemplateBlockRequest.d.ts +0 -17
- package/dist/serialization/types/RegisterPromptErrorResponse.d.ts +0 -12
- package/dist/serialization/types/RegisterPromptModelParametersRequest.d.ts +0 -20
- package/dist/serialization/types/RegisterPromptModelParametersRequest.js +0 -41
- package/dist/serialization/types/RegisterPromptPrompt.d.ts +0 -13
- package/dist/serialization/types/RegisterPromptPromptInfoRequest.d.ts +0 -15
- package/dist/serialization/types/RegisterPromptResponse.d.ts +0 -22
- package/dist/serialization/types/RegisterPromptResponse.js +0 -43
- package/dist/serialization/types/RegisteredPromptDeployment.d.ts +0 -14
- package/dist/serialization/types/RegisteredPromptInputVariableRequest.d.ts +0 -15
- package/dist/serialization/types/RegisteredPromptModelVersion.d.ts +0 -13
- package/dist/serialization/types/RegisteredPromptSandbox.d.ts +0 -13
- package/dist/serialization/types/RegisteredPromptSandboxSnapshot.d.ts +0 -12
- package/dist/serialization/types/RegisteredPromptSandboxSnapshot.js +0 -33
- package/dist/serialization/types/ScenarioInputRequest.d.ts +0 -17
- package/dist/serialization/types/ScenarioInputRequest.js +0 -38
- package/dist/serialization/types/ScenarioInputTypeEnum.d.ts +0 -10
- package/serialization/resources/registeredPrompts/client/index.d.ts +0 -1
- package/serialization/resources/registeredPrompts/client/index.js +0 -17
- package/serialization/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +0 -21
- package/serialization/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.js +0 -42
- package/serialization/resources/registeredPrompts/client/requests/index.d.ts +0 -1
- package/serialization/resources/registeredPrompts/client/requests/index.js +0 -5
- package/serialization/resources/registeredPrompts/index.d.ts +0 -1
- package/serialization/resources/registeredPrompts/index.js +0 -17
- package/serialization/types/BlockTypeEnum.d.ts +0 -10
- package/serialization/types/PromptTemplateBlockDataRequest.d.ts +0 -13
- package/serialization/types/PromptTemplateBlockProperties.d.ts +0 -23
- package/serialization/types/PromptTemplateBlockProperties.js +0 -55
- package/serialization/types/PromptTemplateBlockPropertiesRequest.d.ts +0 -23
- package/serialization/types/PromptTemplateBlockPropertiesRequest.js +0 -55
- package/serialization/types/PromptTemplateBlockRequest.d.ts +0 -17
- package/serialization/types/RegisterPromptErrorResponse.d.ts +0 -12
- package/serialization/types/RegisterPromptErrorResponse.js +0 -33
- package/serialization/types/RegisterPromptModelParametersRequest.d.ts +0 -20
- package/serialization/types/RegisterPromptModelParametersRequest.js +0 -41
- package/serialization/types/RegisterPromptPrompt.d.ts +0 -13
- package/serialization/types/RegisterPromptPrompt.js +0 -34
- package/serialization/types/RegisterPromptPromptInfoRequest.d.ts +0 -15
- package/serialization/types/RegisterPromptPromptInfoRequest.js +0 -36
- package/serialization/types/RegisterPromptResponse.d.ts +0 -22
- package/serialization/types/RegisterPromptResponse.js +0 -43
- package/serialization/types/RegisteredPromptDeployment.d.ts +0 -14
- package/serialization/types/RegisteredPromptInputVariableRequest.d.ts +0 -15
- package/serialization/types/RegisteredPromptModelVersion.d.ts +0 -13
- package/serialization/types/RegisteredPromptModelVersion.js +0 -34
- package/serialization/types/RegisteredPromptSandbox.d.ts +0 -13
- package/serialization/types/RegisteredPromptSandbox.js +0 -34
- package/serialization/types/RegisteredPromptSandboxSnapshot.d.ts +0 -12
- package/serialization/types/RegisteredPromptSandboxSnapshot.js +0 -33
- package/serialization/types/ScenarioInputRequest.d.ts +0 -17
- package/serialization/types/ScenarioInputRequest.js +0 -38
- package/serialization/types/ScenarioInputTypeEnum.d.ts +0 -10
- /package/api/{resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.js → types/ChatHistoryPromptTemplateBlock.js} +0 -0
- /package/api/types/{PromptTemplateBlockDataRequest.js → ChatMessageEnum.js} +0 -0
- /package/api/types/{PromptTemplateBlockProperties.js → ChatMessagePromptTemplateBlock.js} +0 -0
- /package/api/types/{PromptTemplateBlockPropertiesRequest.js → ChatMessagePromptTemplateBlockProperties.js} +0 -0
- /package/api/types/{PromptTemplateBlockRequest.js → FulfilledFunctionCallRequest.js} +0 -0
- /package/api/types/{RegisterPromptErrorResponse.js → FunctionDefinitionEnum.js} +0 -0
- /package/api/types/{RegisterPromptModelParametersRequest.js → FunctionDefinitionPromptTemplateBlock.js} +0 -0
- /package/api/types/{RegisterPromptPrompt.js → FunctionDefinitionPromptTemplateBlockProperties.js} +0 -0
- /package/api/types/{RegisterPromptPromptInfoRequest.js → JinjaEnum.js} +0 -0
- /package/api/types/{RegisterPromptResponse.js → JinjaPromptTemplateBlock.js} +0 -0
- /package/api/types/{RegisteredPromptDeployment.js → JinjaPromptTemplateBlockProperties.js} +0 -0
- /package/api/types/{RegisteredPromptInputVariableRequest.js → NamedScenarioInputChatHistoryVariableValueRequest.js} +0 -0
- /package/api/types/{RegisteredPromptModelVersion.js → NamedScenarioInputRequest.js} +0 -0
- /package/api/types/{RegisteredPromptSandbox.js → NamedScenarioInputStringVariableValueRequest.js} +0 -0
- /package/api/types/{RegisteredPromptSandboxSnapshot.js → NamedTestCaseFunctionCallVariableValue.js} +0 -0
- /package/api/types/{ScenarioInputRequest.js → NamedTestCaseFunctionCallVariableValueRequest.js} +0 -0
- /package/{dist/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.js → api/types/ScenarioInputChatHistoryVariableValue.js} +0 -0
- /package/{dist/api/types/PromptTemplateBlockDataRequest.js → api/types/ScenarioInputStringVariableValue.js} +0 -0
- /package/{dist/api/types/PromptTemplateBlockProperties.js → api/types/TestCaseFunctionCallVariableValue.js} +0 -0
- /package/{dist/api/types/PromptTemplateBlockPropertiesRequest.js → api/types/TestSuiteRunExecutionFunctionCallOutput.js} +0 -0
- /package/dist/api/types/{PromptTemplateBlockRequest.js → ChatHistoryPromptTemplateBlock.js} +0 -0
- /package/dist/api/types/{RegisterPromptErrorResponse.js → ChatMessageEnum.js} +0 -0
- /package/dist/api/types/{RegisterPromptModelParametersRequest.js → ChatMessagePromptTemplateBlock.js} +0 -0
- /package/dist/api/types/{RegisterPromptPrompt.js → ChatMessagePromptTemplateBlockProperties.js} +0 -0
- /package/dist/api/types/{RegisterPromptPromptInfoRequest.js → FulfilledFunctionCallRequest.js} +0 -0
- /package/dist/api/types/{RegisterPromptResponse.js → FunctionDefinitionEnum.js} +0 -0
- /package/dist/api/types/{RegisteredPromptDeployment.js → FunctionDefinitionPromptTemplateBlock.js} +0 -0
- /package/dist/api/types/{RegisteredPromptInputVariableRequest.js → FunctionDefinitionPromptTemplateBlockProperties.js} +0 -0
- /package/dist/api/types/{RegisteredPromptModelVersion.js → JinjaEnum.js} +0 -0
- /package/dist/api/types/{RegisteredPromptSandbox.js → JinjaPromptTemplateBlock.js} +0 -0
- /package/dist/api/types/{RegisteredPromptSandboxSnapshot.js → JinjaPromptTemplateBlockProperties.js} +0 -0
- /package/dist/api/types/{ScenarioInputRequest.js → NamedScenarioInputChatHistoryVariableValueRequest.js} +0 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ScenarioInputChatHistoryVariableValue = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
const ChatMessage_1 = require("./ChatMessage");
|
|
32
|
+
exports.ScenarioInputChatHistoryVariableValue = core.serialization.object({
|
|
33
|
+
value: core.serialization.list(ChatMessage_1.ChatMessage).optional(),
|
|
34
|
+
inputVariableId: core.serialization.property("input_variable_id", core.serialization.string()),
|
|
35
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const ScenarioInputStringVariableValue: core.serialization.ObjectSchema<serializers.ScenarioInputStringVariableValue.Raw, Vellum.ScenarioInputStringVariableValue>;
|
|
8
|
+
export declare namespace ScenarioInputStringVariableValue {
|
|
9
|
+
interface Raw {
|
|
10
|
+
value?: string | null;
|
|
11
|
+
input_variable_id: string;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -26,9 +26,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.ScenarioInputStringVariableValue = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
exports.ScenarioInputStringVariableValue = core.serialization.object({
|
|
32
|
+
value: core.serialization.string().optional(),
|
|
33
|
+
inputVariableId: core.serialization.property("input_variable_id", core.serialization.string()),
|
|
34
34
|
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { FulfilledFunctionCall } from "./FulfilledFunctionCall";
|
|
8
|
+
export declare const TestCaseFunctionCallVariableValue: core.serialization.ObjectSchema<serializers.TestCaseFunctionCallVariableValue.Raw, Vellum.TestCaseFunctionCallVariableValue>;
|
|
9
|
+
export declare namespace TestCaseFunctionCallVariableValue {
|
|
10
|
+
interface Raw {
|
|
11
|
+
variable_id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
value?: FulfilledFunctionCall.Raw | null;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.TestCaseFunctionCallVariableValue = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
const FulfilledFunctionCall_1 = require("./FulfilledFunctionCall");
|
|
32
|
+
exports.TestCaseFunctionCallVariableValue = core.serialization.object({
|
|
33
|
+
variableId: core.serialization.property("variable_id", core.serialization.string()),
|
|
34
|
+
name: core.serialization.string(),
|
|
35
|
+
value: FulfilledFunctionCall_1.FulfilledFunctionCall.optional(),
|
|
36
|
+
});
|
|
@@ -10,9 +10,10 @@ import { TestCaseJsonVariableValue } from "./TestCaseJsonVariableValue";
|
|
|
10
10
|
import { TestCaseChatHistoryVariableValue } from "./TestCaseChatHistoryVariableValue";
|
|
11
11
|
import { TestCaseSearchResultsVariableValue } from "./TestCaseSearchResultsVariableValue";
|
|
12
12
|
import { TestCaseErrorVariableValue } from "./TestCaseErrorVariableValue";
|
|
13
|
+
import { TestCaseFunctionCallVariableValue } from "./TestCaseFunctionCallVariableValue";
|
|
13
14
|
export declare const TestCaseVariableValue: core.serialization.Schema<serializers.TestCaseVariableValue.Raw, Vellum.TestCaseVariableValue>;
|
|
14
15
|
export declare namespace TestCaseVariableValue {
|
|
15
|
-
type Raw = TestCaseVariableValue.String | TestCaseVariableValue.Number | TestCaseVariableValue.Json | TestCaseVariableValue.ChatHistory | TestCaseVariableValue.SearchResults | TestCaseVariableValue.Error;
|
|
16
|
+
type Raw = TestCaseVariableValue.String | TestCaseVariableValue.Number | TestCaseVariableValue.Json | TestCaseVariableValue.ChatHistory | TestCaseVariableValue.SearchResults | TestCaseVariableValue.Error | TestCaseVariableValue.FunctionCall;
|
|
16
17
|
interface String extends TestCaseStringVariableValue.Raw {
|
|
17
18
|
type: "STRING";
|
|
18
19
|
}
|
|
@@ -31,4 +32,7 @@ export declare namespace TestCaseVariableValue {
|
|
|
31
32
|
interface Error extends TestCaseErrorVariableValue.Raw {
|
|
32
33
|
type: "ERROR";
|
|
33
34
|
}
|
|
35
|
+
interface FunctionCall extends TestCaseFunctionCallVariableValue.Raw {
|
|
36
|
+
type: "FUNCTION_CALL";
|
|
37
|
+
}
|
|
34
38
|
}
|
|
@@ -34,6 +34,7 @@ const TestCaseJsonVariableValue_1 = require("./TestCaseJsonVariableValue");
|
|
|
34
34
|
const TestCaseChatHistoryVariableValue_1 = require("./TestCaseChatHistoryVariableValue");
|
|
35
35
|
const TestCaseSearchResultsVariableValue_1 = require("./TestCaseSearchResultsVariableValue");
|
|
36
36
|
const TestCaseErrorVariableValue_1 = require("./TestCaseErrorVariableValue");
|
|
37
|
+
const TestCaseFunctionCallVariableValue_1 = require("./TestCaseFunctionCallVariableValue");
|
|
37
38
|
exports.TestCaseVariableValue = core.serialization
|
|
38
39
|
.union("type", {
|
|
39
40
|
STRING: TestCaseStringVariableValue_1.TestCaseStringVariableValue,
|
|
@@ -42,6 +43,7 @@ exports.TestCaseVariableValue = core.serialization
|
|
|
42
43
|
CHAT_HISTORY: TestCaseChatHistoryVariableValue_1.TestCaseChatHistoryVariableValue,
|
|
43
44
|
SEARCH_RESULTS: TestCaseSearchResultsVariableValue_1.TestCaseSearchResultsVariableValue,
|
|
44
45
|
ERROR: TestCaseErrorVariableValue_1.TestCaseErrorVariableValue,
|
|
46
|
+
FUNCTION_CALL: TestCaseFunctionCallVariableValue_1.TestCaseFunctionCallVariableValue,
|
|
45
47
|
})
|
|
46
48
|
.transform({
|
|
47
49
|
transform: (value) => value,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { FulfilledFunctionCall } from "./FulfilledFunctionCall";
|
|
8
|
+
export declare const TestSuiteRunExecutionFunctionCallOutput: core.serialization.ObjectSchema<serializers.TestSuiteRunExecutionFunctionCallOutput.Raw, Vellum.TestSuiteRunExecutionFunctionCallOutput>;
|
|
9
|
+
export declare namespace TestSuiteRunExecutionFunctionCallOutput {
|
|
10
|
+
interface Raw {
|
|
11
|
+
name: string;
|
|
12
|
+
value?: FulfilledFunctionCall.Raw | null;
|
|
13
|
+
output_variable_id: string;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.TestSuiteRunExecutionFunctionCallOutput = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
const FulfilledFunctionCall_1 = require("./FulfilledFunctionCall");
|
|
32
|
+
exports.TestSuiteRunExecutionFunctionCallOutput = core.serialization.object({
|
|
33
|
+
name: core.serialization.string(),
|
|
34
|
+
value: FulfilledFunctionCall_1.FulfilledFunctionCall.optional(),
|
|
35
|
+
outputVariableId: core.serialization.property("output_variable_id", core.serialization.string()),
|
|
36
|
+
});
|
|
@@ -10,9 +10,10 @@ import { TestSuiteRunExecutionJsonOutput } from "./TestSuiteRunExecutionJsonOutp
|
|
|
10
10
|
import { TestSuiteRunExecutionChatHistoryOutput } from "./TestSuiteRunExecutionChatHistoryOutput";
|
|
11
11
|
import { TestSuiteRunExecutionSearchResultsOutput } from "./TestSuiteRunExecutionSearchResultsOutput";
|
|
12
12
|
import { TestSuiteRunExecutionErrorOutput } from "./TestSuiteRunExecutionErrorOutput";
|
|
13
|
+
import { TestSuiteRunExecutionFunctionCallOutput } from "./TestSuiteRunExecutionFunctionCallOutput";
|
|
13
14
|
export declare const TestSuiteRunExecutionOutput: core.serialization.Schema<serializers.TestSuiteRunExecutionOutput.Raw, Vellum.TestSuiteRunExecutionOutput>;
|
|
14
15
|
export declare namespace TestSuiteRunExecutionOutput {
|
|
15
|
-
type Raw = TestSuiteRunExecutionOutput.String | TestSuiteRunExecutionOutput.Number | TestSuiteRunExecutionOutput.Json | TestSuiteRunExecutionOutput.ChatHistory | TestSuiteRunExecutionOutput.SearchResults | TestSuiteRunExecutionOutput.Error;
|
|
16
|
+
type Raw = TestSuiteRunExecutionOutput.String | TestSuiteRunExecutionOutput.Number | TestSuiteRunExecutionOutput.Json | TestSuiteRunExecutionOutput.ChatHistory | TestSuiteRunExecutionOutput.SearchResults | TestSuiteRunExecutionOutput.Error | TestSuiteRunExecutionOutput.FunctionCall;
|
|
16
17
|
interface String extends TestSuiteRunExecutionStringOutput.Raw {
|
|
17
18
|
type: "STRING";
|
|
18
19
|
}
|
|
@@ -31,4 +32,7 @@ export declare namespace TestSuiteRunExecutionOutput {
|
|
|
31
32
|
interface Error extends TestSuiteRunExecutionErrorOutput.Raw {
|
|
32
33
|
type: "ERROR";
|
|
33
34
|
}
|
|
35
|
+
interface FunctionCall extends TestSuiteRunExecutionFunctionCallOutput.Raw {
|
|
36
|
+
type: "FUNCTION_CALL";
|
|
37
|
+
}
|
|
34
38
|
}
|
|
@@ -34,6 +34,7 @@ const TestSuiteRunExecutionJsonOutput_1 = require("./TestSuiteRunExecutionJsonOu
|
|
|
34
34
|
const TestSuiteRunExecutionChatHistoryOutput_1 = require("./TestSuiteRunExecutionChatHistoryOutput");
|
|
35
35
|
const TestSuiteRunExecutionSearchResultsOutput_1 = require("./TestSuiteRunExecutionSearchResultsOutput");
|
|
36
36
|
const TestSuiteRunExecutionErrorOutput_1 = require("./TestSuiteRunExecutionErrorOutput");
|
|
37
|
+
const TestSuiteRunExecutionFunctionCallOutput_1 = require("./TestSuiteRunExecutionFunctionCallOutput");
|
|
37
38
|
exports.TestSuiteRunExecutionOutput = core.serialization
|
|
38
39
|
.union("type", {
|
|
39
40
|
STRING: TestSuiteRunExecutionStringOutput_1.TestSuiteRunExecutionStringOutput,
|
|
@@ -42,6 +43,7 @@ exports.TestSuiteRunExecutionOutput = core.serialization
|
|
|
42
43
|
CHAT_HISTORY: TestSuiteRunExecutionChatHistoryOutput_1.TestSuiteRunExecutionChatHistoryOutput,
|
|
43
44
|
SEARCH_RESULTS: TestSuiteRunExecutionSearchResultsOutput_1.TestSuiteRunExecutionSearchResultsOutput,
|
|
44
45
|
ERROR: TestSuiteRunExecutionErrorOutput_1.TestSuiteRunExecutionErrorOutput,
|
|
46
|
+
FUNCTION_CALL: TestSuiteRunExecutionFunctionCallOutput_1.TestSuiteRunExecutionFunctionCallOutput,
|
|
45
47
|
})
|
|
46
48
|
.transform({
|
|
47
49
|
transform: (value) => value,
|
|
@@ -6,5 +6,5 @@ import * as Vellum from "../../api";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const VellumVariableType: core.serialization.Schema<serializers.VellumVariableType.Raw, Vellum.VellumVariableType>;
|
|
8
8
|
export declare namespace VellumVariableType {
|
|
9
|
-
type Raw = "STRING" | "NUMBER" | "JSON" | "CHAT_HISTORY" | "SEARCH_RESULTS" | "ERROR" | "ARRAY" | "FUNCTION_CALL" | "IMAGE";
|
|
9
|
+
type Raw = "STRING" | "NUMBER" | "JSON" | "CHAT_HISTORY" | "SEARCH_RESULTS" | "ERROR" | "ARRAY" | "FUNCTION_CALL" | "IMAGE" | "NULL";
|
|
10
10
|
}
|
|
@@ -6,13 +6,16 @@ export * from "./ArrayChatMessageContentItemRequest";
|
|
|
6
6
|
export * from "./ArrayChatMessageContentRequest";
|
|
7
7
|
export * from "./ArrayEnum";
|
|
8
8
|
export * from "./ArrayVariableValueItem";
|
|
9
|
-
export * from "./BlockTypeEnum";
|
|
10
9
|
export * from "./ChatHistoryEnum";
|
|
11
10
|
export * from "./ChatHistoryInputRequest";
|
|
11
|
+
export * from "./ChatHistoryPromptTemplateBlock";
|
|
12
12
|
export * from "./ChatHistoryVariableValue";
|
|
13
13
|
export * from "./ChatMessage";
|
|
14
14
|
export * from "./ChatMessageContent";
|
|
15
15
|
export * from "./ChatMessageContentRequest";
|
|
16
|
+
export * from "./ChatMessageEnum";
|
|
17
|
+
export * from "./ChatMessagePromptTemplateBlock";
|
|
18
|
+
export * from "./ChatMessagePromptTemplateBlockProperties";
|
|
16
19
|
export * from "./ChatMessageRequest";
|
|
17
20
|
export * from "./ChatMessageRole";
|
|
18
21
|
export * from "./CodeExecutionNodeArrayResult";
|
|
@@ -63,6 +66,7 @@ export * from "./FulfilledExecutePromptEvent";
|
|
|
63
66
|
export * from "./FulfilledExecutePromptResponse";
|
|
64
67
|
export * from "./FulfilledExecuteWorkflowWorkflowResultEvent";
|
|
65
68
|
export * from "./FulfilledFunctionCall";
|
|
69
|
+
export * from "./FulfilledFunctionCallRequest";
|
|
66
70
|
export * from "./FulfilledPromptExecutionMeta";
|
|
67
71
|
export * from "./FulfilledWorkflowNodeResultEvent";
|
|
68
72
|
export * from "./FunctionCall";
|
|
@@ -72,6 +76,9 @@ export * from "./FunctionCallChatMessageContentValue";
|
|
|
72
76
|
export * from "./FunctionCallChatMessageContentValueRequest";
|
|
73
77
|
export * from "./FunctionCallEnum";
|
|
74
78
|
export * from "./FunctionCallVariableValue";
|
|
79
|
+
export * from "./FunctionDefinitionEnum";
|
|
80
|
+
export * from "./FunctionDefinitionPromptTemplateBlock";
|
|
81
|
+
export * from "./FunctionDefinitionPromptTemplateBlockProperties";
|
|
75
82
|
export * from "./GenerateErrorResponse";
|
|
76
83
|
export * from "./GenerateOptionsRequest";
|
|
77
84
|
export * from "./GenerateRequest";
|
|
@@ -92,6 +99,9 @@ export * from "./InitiatedExecutePromptEvent";
|
|
|
92
99
|
export * from "./InitiatedPromptExecutionMeta";
|
|
93
100
|
export * from "./InitiatedWorkflowNodeResultEvent";
|
|
94
101
|
export * from "./JsonInputRequest";
|
|
102
|
+
export * from "./JinjaEnum";
|
|
103
|
+
export * from "./JinjaPromptTemplateBlock";
|
|
104
|
+
export * from "./JinjaPromptTemplateBlockProperties";
|
|
95
105
|
export * from "./JsonEnum";
|
|
96
106
|
export * from "./JsonVariableValue";
|
|
97
107
|
export * from "./LogicalOperator";
|
|
@@ -106,10 +116,15 @@ export * from "./ModelVersionExecConfigParameters";
|
|
|
106
116
|
export * from "./ModelVersionRead";
|
|
107
117
|
export * from "./ModelVersionReadStatusEnum";
|
|
108
118
|
export * from "./ModelVersionSandboxSnapshot";
|
|
119
|
+
export * from "./NamedScenarioInputChatHistoryVariableValueRequest";
|
|
120
|
+
export * from "./NamedScenarioInputRequest";
|
|
121
|
+
export * from "./NamedScenarioInputStringVariableValueRequest";
|
|
109
122
|
export * from "./NamedTestCaseChatHistoryVariableValue";
|
|
110
123
|
export * from "./NamedTestCaseChatHistoryVariableValueRequest";
|
|
111
124
|
export * from "./NamedTestCaseErrorVariableValue";
|
|
112
125
|
export * from "./NamedTestCaseErrorVariableValueRequest";
|
|
126
|
+
export * from "./NamedTestCaseFunctionCallVariableValue";
|
|
127
|
+
export * from "./NamedTestCaseFunctionCallVariableValueRequest";
|
|
113
128
|
export * from "./NamedTestCaseJsonVariableValue";
|
|
114
129
|
export * from "./NamedTestCaseJsonVariableValueRequest";
|
|
115
130
|
export * from "./NamedTestCaseNumberVariableValue";
|
|
@@ -158,23 +173,9 @@ export * from "./PromptNodeResultData";
|
|
|
158
173
|
export * from "./PromptOutput";
|
|
159
174
|
export * from "./PromptTemplateBlock";
|
|
160
175
|
export * from "./PromptTemplateBlockData";
|
|
161
|
-
export * from "./PromptTemplateBlockDataRequest";
|
|
162
|
-
export * from "./PromptTemplateBlockProperties";
|
|
163
|
-
export * from "./PromptTemplateBlockPropertiesRequest";
|
|
164
|
-
export * from "./PromptTemplateBlockRequest";
|
|
165
176
|
export * from "./PromptTemplateBlockState";
|
|
166
177
|
export * from "./ProviderEnum";
|
|
167
178
|
export * from "./RawPromptExecutionOverridesRequest";
|
|
168
|
-
export * from "./RegisterPromptErrorResponse";
|
|
169
|
-
export * from "./RegisterPromptModelParametersRequest";
|
|
170
|
-
export * from "./RegisterPromptPrompt";
|
|
171
|
-
export * from "./RegisterPromptPromptInfoRequest";
|
|
172
|
-
export * from "./RegisterPromptResponse";
|
|
173
|
-
export * from "./RegisteredPromptDeployment";
|
|
174
|
-
export * from "./RegisteredPromptInputVariableRequest";
|
|
175
|
-
export * from "./RegisteredPromptModelVersion";
|
|
176
|
-
export * from "./RegisteredPromptSandbox";
|
|
177
|
-
export * from "./RegisteredPromptSandboxSnapshot";
|
|
178
179
|
export * from "./RejectedEnum";
|
|
179
180
|
export * from "./RejectedExecutePromptEvent";
|
|
180
181
|
export * from "./RejectedExecutePromptResponse";
|
|
@@ -184,8 +185,8 @@ export * from "./RejectedPromptExecutionMeta";
|
|
|
184
185
|
export * from "./RejectedWorkflowNodeResultEvent";
|
|
185
186
|
export * from "./SandboxScenario";
|
|
186
187
|
export * from "./ScenarioInput";
|
|
187
|
-
export * from "./
|
|
188
|
-
export * from "./
|
|
188
|
+
export * from "./ScenarioInputChatHistoryVariableValue";
|
|
189
|
+
export * from "./ScenarioInputStringVariableValue";
|
|
189
190
|
export * from "./SearchErrorResponse";
|
|
190
191
|
export * from "./SearchFiltersRequest";
|
|
191
192
|
export * from "./SearchNodeResult";
|
|
@@ -241,6 +242,7 @@ export * from "./TerminalNodeSearchResultsResult";
|
|
|
241
242
|
export * from "./TerminalNodeStringResult";
|
|
242
243
|
export * from "./TestCaseChatHistoryVariableValue";
|
|
243
244
|
export * from "./TestCaseErrorVariableValue";
|
|
245
|
+
export * from "./TestCaseFunctionCallVariableValue";
|
|
244
246
|
export * from "./TestCaseJsonVariableValue";
|
|
245
247
|
export * from "./TestCaseNumberVariableValue";
|
|
246
248
|
export * from "./TestCaseSearchResultsVariableValue";
|
|
@@ -256,6 +258,7 @@ export * from "./TestSuiteRunExecConfigRequest";
|
|
|
256
258
|
export * from "./TestSuiteRunExecution";
|
|
257
259
|
export * from "./TestSuiteRunExecutionChatHistoryOutput";
|
|
258
260
|
export * from "./TestSuiteRunExecutionErrorOutput";
|
|
261
|
+
export * from "./TestSuiteRunExecutionFunctionCallOutput";
|
|
259
262
|
export * from "./TestSuiteRunExecutionJsonOutput";
|
|
260
263
|
export * from "./TestSuiteRunExecutionMetricDefinition";
|
|
261
264
|
export * from "./TestSuiteRunExecutionMetricResult";
|
|
@@ -22,13 +22,16 @@ __exportStar(require("./ArrayChatMessageContentItemRequest"), exports);
|
|
|
22
22
|
__exportStar(require("./ArrayChatMessageContentRequest"), exports);
|
|
23
23
|
__exportStar(require("./ArrayEnum"), exports);
|
|
24
24
|
__exportStar(require("./ArrayVariableValueItem"), exports);
|
|
25
|
-
__exportStar(require("./BlockTypeEnum"), exports);
|
|
26
25
|
__exportStar(require("./ChatHistoryEnum"), exports);
|
|
27
26
|
__exportStar(require("./ChatHistoryInputRequest"), exports);
|
|
27
|
+
__exportStar(require("./ChatHistoryPromptTemplateBlock"), exports);
|
|
28
28
|
__exportStar(require("./ChatHistoryVariableValue"), exports);
|
|
29
29
|
__exportStar(require("./ChatMessage"), exports);
|
|
30
30
|
__exportStar(require("./ChatMessageContent"), exports);
|
|
31
31
|
__exportStar(require("./ChatMessageContentRequest"), exports);
|
|
32
|
+
__exportStar(require("./ChatMessageEnum"), exports);
|
|
33
|
+
__exportStar(require("./ChatMessagePromptTemplateBlock"), exports);
|
|
34
|
+
__exportStar(require("./ChatMessagePromptTemplateBlockProperties"), exports);
|
|
32
35
|
__exportStar(require("./ChatMessageRequest"), exports);
|
|
33
36
|
__exportStar(require("./ChatMessageRole"), exports);
|
|
34
37
|
__exportStar(require("./CodeExecutionNodeArrayResult"), exports);
|
|
@@ -79,6 +82,7 @@ __exportStar(require("./FulfilledExecutePromptEvent"), exports);
|
|
|
79
82
|
__exportStar(require("./FulfilledExecutePromptResponse"), exports);
|
|
80
83
|
__exportStar(require("./FulfilledExecuteWorkflowWorkflowResultEvent"), exports);
|
|
81
84
|
__exportStar(require("./FulfilledFunctionCall"), exports);
|
|
85
|
+
__exportStar(require("./FulfilledFunctionCallRequest"), exports);
|
|
82
86
|
__exportStar(require("./FulfilledPromptExecutionMeta"), exports);
|
|
83
87
|
__exportStar(require("./FulfilledWorkflowNodeResultEvent"), exports);
|
|
84
88
|
__exportStar(require("./FunctionCall"), exports);
|
|
@@ -88,6 +92,9 @@ __exportStar(require("./FunctionCallChatMessageContentValue"), exports);
|
|
|
88
92
|
__exportStar(require("./FunctionCallChatMessageContentValueRequest"), exports);
|
|
89
93
|
__exportStar(require("./FunctionCallEnum"), exports);
|
|
90
94
|
__exportStar(require("./FunctionCallVariableValue"), exports);
|
|
95
|
+
__exportStar(require("./FunctionDefinitionEnum"), exports);
|
|
96
|
+
__exportStar(require("./FunctionDefinitionPromptTemplateBlock"), exports);
|
|
97
|
+
__exportStar(require("./FunctionDefinitionPromptTemplateBlockProperties"), exports);
|
|
91
98
|
__exportStar(require("./GenerateErrorResponse"), exports);
|
|
92
99
|
__exportStar(require("./GenerateOptionsRequest"), exports);
|
|
93
100
|
__exportStar(require("./GenerateRequest"), exports);
|
|
@@ -108,6 +115,9 @@ __exportStar(require("./InitiatedExecutePromptEvent"), exports);
|
|
|
108
115
|
__exportStar(require("./InitiatedPromptExecutionMeta"), exports);
|
|
109
116
|
__exportStar(require("./InitiatedWorkflowNodeResultEvent"), exports);
|
|
110
117
|
__exportStar(require("./JsonInputRequest"), exports);
|
|
118
|
+
__exportStar(require("./JinjaEnum"), exports);
|
|
119
|
+
__exportStar(require("./JinjaPromptTemplateBlock"), exports);
|
|
120
|
+
__exportStar(require("./JinjaPromptTemplateBlockProperties"), exports);
|
|
111
121
|
__exportStar(require("./JsonEnum"), exports);
|
|
112
122
|
__exportStar(require("./JsonVariableValue"), exports);
|
|
113
123
|
__exportStar(require("./LogicalOperator"), exports);
|
|
@@ -122,10 +132,15 @@ __exportStar(require("./ModelVersionExecConfigParameters"), exports);
|
|
|
122
132
|
__exportStar(require("./ModelVersionRead"), exports);
|
|
123
133
|
__exportStar(require("./ModelVersionReadStatusEnum"), exports);
|
|
124
134
|
__exportStar(require("./ModelVersionSandboxSnapshot"), exports);
|
|
135
|
+
__exportStar(require("./NamedScenarioInputChatHistoryVariableValueRequest"), exports);
|
|
136
|
+
__exportStar(require("./NamedScenarioInputRequest"), exports);
|
|
137
|
+
__exportStar(require("./NamedScenarioInputStringVariableValueRequest"), exports);
|
|
125
138
|
__exportStar(require("./NamedTestCaseChatHistoryVariableValue"), exports);
|
|
126
139
|
__exportStar(require("./NamedTestCaseChatHistoryVariableValueRequest"), exports);
|
|
127
140
|
__exportStar(require("./NamedTestCaseErrorVariableValue"), exports);
|
|
128
141
|
__exportStar(require("./NamedTestCaseErrorVariableValueRequest"), exports);
|
|
142
|
+
__exportStar(require("./NamedTestCaseFunctionCallVariableValue"), exports);
|
|
143
|
+
__exportStar(require("./NamedTestCaseFunctionCallVariableValueRequest"), exports);
|
|
129
144
|
__exportStar(require("./NamedTestCaseJsonVariableValue"), exports);
|
|
130
145
|
__exportStar(require("./NamedTestCaseJsonVariableValueRequest"), exports);
|
|
131
146
|
__exportStar(require("./NamedTestCaseNumberVariableValue"), exports);
|
|
@@ -174,23 +189,9 @@ __exportStar(require("./PromptNodeResultData"), exports);
|
|
|
174
189
|
__exportStar(require("./PromptOutput"), exports);
|
|
175
190
|
__exportStar(require("./PromptTemplateBlock"), exports);
|
|
176
191
|
__exportStar(require("./PromptTemplateBlockData"), exports);
|
|
177
|
-
__exportStar(require("./PromptTemplateBlockDataRequest"), exports);
|
|
178
|
-
__exportStar(require("./PromptTemplateBlockProperties"), exports);
|
|
179
|
-
__exportStar(require("./PromptTemplateBlockPropertiesRequest"), exports);
|
|
180
|
-
__exportStar(require("./PromptTemplateBlockRequest"), exports);
|
|
181
192
|
__exportStar(require("./PromptTemplateBlockState"), exports);
|
|
182
193
|
__exportStar(require("./ProviderEnum"), exports);
|
|
183
194
|
__exportStar(require("./RawPromptExecutionOverridesRequest"), exports);
|
|
184
|
-
__exportStar(require("./RegisterPromptErrorResponse"), exports);
|
|
185
|
-
__exportStar(require("./RegisterPromptModelParametersRequest"), exports);
|
|
186
|
-
__exportStar(require("./RegisterPromptPrompt"), exports);
|
|
187
|
-
__exportStar(require("./RegisterPromptPromptInfoRequest"), exports);
|
|
188
|
-
__exportStar(require("./RegisterPromptResponse"), exports);
|
|
189
|
-
__exportStar(require("./RegisteredPromptDeployment"), exports);
|
|
190
|
-
__exportStar(require("./RegisteredPromptInputVariableRequest"), exports);
|
|
191
|
-
__exportStar(require("./RegisteredPromptModelVersion"), exports);
|
|
192
|
-
__exportStar(require("./RegisteredPromptSandbox"), exports);
|
|
193
|
-
__exportStar(require("./RegisteredPromptSandboxSnapshot"), exports);
|
|
194
195
|
__exportStar(require("./RejectedEnum"), exports);
|
|
195
196
|
__exportStar(require("./RejectedExecutePromptEvent"), exports);
|
|
196
197
|
__exportStar(require("./RejectedExecutePromptResponse"), exports);
|
|
@@ -200,8 +201,8 @@ __exportStar(require("./RejectedPromptExecutionMeta"), exports);
|
|
|
200
201
|
__exportStar(require("./RejectedWorkflowNodeResultEvent"), exports);
|
|
201
202
|
__exportStar(require("./SandboxScenario"), exports);
|
|
202
203
|
__exportStar(require("./ScenarioInput"), exports);
|
|
203
|
-
__exportStar(require("./
|
|
204
|
-
__exportStar(require("./
|
|
204
|
+
__exportStar(require("./ScenarioInputChatHistoryVariableValue"), exports);
|
|
205
|
+
__exportStar(require("./ScenarioInputStringVariableValue"), exports);
|
|
205
206
|
__exportStar(require("./SearchErrorResponse"), exports);
|
|
206
207
|
__exportStar(require("./SearchFiltersRequest"), exports);
|
|
207
208
|
__exportStar(require("./SearchNodeResult"), exports);
|
|
@@ -257,6 +258,7 @@ __exportStar(require("./TerminalNodeSearchResultsResult"), exports);
|
|
|
257
258
|
__exportStar(require("./TerminalNodeStringResult"), exports);
|
|
258
259
|
__exportStar(require("./TestCaseChatHistoryVariableValue"), exports);
|
|
259
260
|
__exportStar(require("./TestCaseErrorVariableValue"), exports);
|
|
261
|
+
__exportStar(require("./TestCaseFunctionCallVariableValue"), exports);
|
|
260
262
|
__exportStar(require("./TestCaseJsonVariableValue"), exports);
|
|
261
263
|
__exportStar(require("./TestCaseNumberVariableValue"), exports);
|
|
262
264
|
__exportStar(require("./TestCaseSearchResultsVariableValue"), exports);
|
|
@@ -272,6 +274,7 @@ __exportStar(require("./TestSuiteRunExecConfigRequest"), exports);
|
|
|
272
274
|
__exportStar(require("./TestSuiteRunExecution"), exports);
|
|
273
275
|
__exportStar(require("./TestSuiteRunExecutionChatHistoryOutput"), exports);
|
|
274
276
|
__exportStar(require("./TestSuiteRunExecutionErrorOutput"), exports);
|
|
277
|
+
__exportStar(require("./TestSuiteRunExecutionFunctionCallOutput"), exports);
|
|
275
278
|
__exportStar(require("./TestSuiteRunExecutionJsonOutput"), exports);
|
|
276
279
|
__exportStar(require("./TestSuiteRunExecutionMetricDefinition"), exports);
|
|
277
280
|
__exportStar(require("./TestSuiteRunExecutionMetricResult"), exports);
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as errors from "../../errors";
|
|
5
|
-
import * as Vellum from "..";
|
|
6
|
-
export declare class ConflictError extends errors.VellumError {
|
|
7
|
-
constructor(body: Vellum.RegisterPromptErrorResponse);
|
|
8
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.ConflictError = void 0;
|
|
30
|
-
const errors = __importStar(require("../../errors"));
|
|
31
|
-
class ConflictError extends errors.VellumError {
|
|
32
|
-
constructor(body) {
|
|
33
|
-
super({
|
|
34
|
-
message: "ConflictError",
|
|
35
|
-
statusCode: 409,
|
|
36
|
-
body: body,
|
|
37
|
-
});
|
|
38
|
-
Object.setPrototypeOf(this, ConflictError.prototype);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
exports.ConflictError = ConflictError;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as environments from "../../../../environments";
|
|
5
|
-
import * as core from "../../../../core";
|
|
6
|
-
import * as Vellum from "../../..";
|
|
7
|
-
export declare namespace RegisteredPrompts {
|
|
8
|
-
interface Options {
|
|
9
|
-
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
10
|
-
apiKey: core.Supplier<string>;
|
|
11
|
-
}
|
|
12
|
-
interface RequestOptions {
|
|
13
|
-
timeoutInSeconds?: number;
|
|
14
|
-
maxRetries?: number;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
export declare class RegisteredPrompts {
|
|
18
|
-
protected readonly _options: RegisteredPrompts.Options;
|
|
19
|
-
constructor(_options: RegisteredPrompts.Options);
|
|
20
|
-
/**
|
|
21
|
-
* Registers a prompt within Vellum and creates associated Vellum entities. Intended to be used by integration
|
|
22
|
-
* partners, not directly by Vellum users.
|
|
23
|
-
*
|
|
24
|
-
* Under the hood, this endpoint creates a new sandbox, a new model version, and a new deployment.
|
|
25
|
-
* @throws {@link Vellum.BadRequestError}
|
|
26
|
-
* @throws {@link Vellum.NotFoundError}
|
|
27
|
-
* @throws {@link Vellum.ConflictError}
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* await vellum.registeredPrompts.registerPrompt({
|
|
31
|
-
* label: "label",
|
|
32
|
-
* name: "name",
|
|
33
|
-
* prompt: {
|
|
34
|
-
* promptBlockData: {
|
|
35
|
-
* version: 1,
|
|
36
|
-
* blocks: [{
|
|
37
|
-
* id: "id",
|
|
38
|
-
* blockType: Vellum.BlockTypeEnum.ChatMessage,
|
|
39
|
-
* properties: {}
|
|
40
|
-
* }]
|
|
41
|
-
* },
|
|
42
|
-
* inputVariables: [{
|
|
43
|
-
* key: "key"
|
|
44
|
-
* }]
|
|
45
|
-
* },
|
|
46
|
-
* model: "model",
|
|
47
|
-
* parameters: {
|
|
48
|
-
* temperature: 1.1,
|
|
49
|
-
* maxTokens: 1,
|
|
50
|
-
* topP: 1.1,
|
|
51
|
-
* frequencyPenalty: 1.1,
|
|
52
|
-
* presencePenalty: 1.1
|
|
53
|
-
* }
|
|
54
|
-
* })
|
|
55
|
-
*/
|
|
56
|
-
registerPrompt(request: Vellum.RegisterPromptRequestRequest, requestOptions?: RegisteredPrompts.RequestOptions): Promise<Vellum.RegisterPromptResponse>;
|
|
57
|
-
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
58
|
-
X_API_KEY: string;
|
|
59
|
-
}>;
|
|
60
|
-
}
|