vellum-ai 0.3.24 → 0.4.0
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.js +9 -9
- 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/modelVersions/client/Client.js +1 -1
- package/api/resources/registeredPrompts/client/Client.d.ts +2 -6
- package/api/resources/registeredPrompts/client/Client.js +3 -7
- package/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +2 -6
- 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/ChatHistoryPromptTemplateBlockRequest.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/ChatMessagePromptTemplateBlockPropertiesRequest.d.ts +13 -0
- package/api/types/ChatMessagePromptTemplateBlockRequest.d.ts +12 -0
- package/api/types/ChatMessagePromptTemplateBlockRequest.js +5 -0
- package/api/types/FulfilledFunctionCallRequest.d.ts +13 -0
- package/api/types/FulfilledFunctionCallRequest.js +5 -0
- package/api/types/FunctionDefinitionEnum.d.ts +4 -0
- package/api/types/FunctionDefinitionEnum.js +5 -0
- package/api/types/FunctionDefinitionPromptTemplateBlock.d.ts +12 -0
- package/api/types/FunctionDefinitionPromptTemplateBlock.js +5 -0
- package/api/types/FunctionDefinitionPromptTemplateBlockProperties.d.ts +13 -0
- package/api/types/FunctionDefinitionPromptTemplateBlockProperties.js +5 -0
- package/api/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.d.ts +13 -0
- package/api/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.js +5 -0
- package/api/types/FunctionDefinitionPromptTemplateBlockRequest.d.ts +12 -0
- package/api/types/FunctionDefinitionPromptTemplateBlockRequest.js +5 -0
- package/api/types/JinjaEnum.d.ts +4 -0
- package/api/types/JinjaEnum.js +5 -0
- package/api/types/JinjaPromptTemplateBlock.d.ts +12 -0
- package/api/types/JinjaPromptTemplateBlock.js +5 -0
- package/api/types/JinjaPromptTemplateBlockProperties.d.ts +8 -0
- package/api/types/JinjaPromptTemplateBlockProperties.js +5 -0
- package/api/types/JinjaPromptTemplateBlockPropertiesRequest.d.ts +8 -0
- package/api/types/JinjaPromptTemplateBlockPropertiesRequest.js +5 -0
- package/api/types/JinjaPromptTemplateBlockRequest.d.ts +12 -0
- package/api/types/JinjaPromptTemplateBlockRequest.js +5 -0
- package/api/types/NamedScenarioInputChatHistoryVariableValueRequest.d.ts +11 -0
- package/api/types/NamedScenarioInputChatHistoryVariableValueRequest.js +5 -0
- package/api/types/NamedScenarioInputRequest.d.ts +13 -0
- package/api/types/NamedScenarioInputRequest.js +5 -0
- package/api/types/NamedScenarioInputStringVariableValueRequest.d.ts +10 -0
- package/api/types/NamedScenarioInputStringVariableValueRequest.js +5 -0
- package/api/types/NamedTestCaseFunctionCallVariableValue.d.ts +11 -0
- package/api/types/NamedTestCaseFunctionCallVariableValue.js +5 -0
- package/api/types/NamedTestCaseFunctionCallVariableValueRequest.d.ts +11 -0
- package/api/types/NamedTestCaseFunctionCallVariableValueRequest.js +5 -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/PromptTemplateBlockDataRequest.d.ts +1 -1
- package/api/types/PromptTemplateBlockRequest.d.ts +14 -5
- package/api/types/ScenarioInput.d.ts +8 -5
- package/api/types/ScenarioInputChatHistoryVariableValue.d.ts +11 -0
- package/api/types/ScenarioInputChatHistoryVariableValue.js +5 -0
- package/api/types/ScenarioInputStringVariableValue.d.ts +10 -0
- package/api/types/ScenarioInputStringVariableValue.js +5 -0
- package/api/types/TestCaseFunctionCallVariableValue.d.ts +12 -0
- package/api/types/TestCaseFunctionCallVariableValue.js +5 -0
- package/api/types/TestCaseVariableValue.d.ts +4 -1
- package/api/types/TestSuiteRunExecutionFunctionCallOutput.d.ts +12 -0
- package/api/types/TestSuiteRunExecutionFunctionCallOutput.js +5 -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 +27 -5
- package/api/types/index.js +27 -5
- package/dist/Client.js +9 -9
- 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/modelVersions/client/Client.js +1 -1
- package/dist/api/resources/registeredPrompts/client/Client.d.ts +2 -6
- package/dist/api/resources/registeredPrompts/client/Client.js +3 -7
- package/dist/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +2 -6
- 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/ChatHistoryPromptTemplateBlock.js +5 -0
- package/dist/api/types/ChatHistoryPromptTemplateBlockRequest.d.ts +12 -0
- package/dist/api/types/ChatHistoryPromptTemplateBlockRequest.js +5 -0
- package/dist/api/types/ChatMessageEnum.d.ts +4 -0
- package/dist/api/types/ChatMessageEnum.js +5 -0
- package/dist/api/types/ChatMessagePromptTemplateBlock.d.ts +12 -0
- package/dist/api/types/ChatMessagePromptTemplateBlock.js +5 -0
- package/dist/api/types/ChatMessagePromptTemplateBlockProperties.d.ts +13 -0
- package/dist/api/types/ChatMessagePromptTemplateBlockProperties.js +5 -0
- package/dist/api/types/ChatMessagePromptTemplateBlockPropertiesRequest.d.ts +13 -0
- package/dist/api/types/ChatMessagePromptTemplateBlockPropertiesRequest.js +5 -0
- package/dist/api/types/ChatMessagePromptTemplateBlockRequest.d.ts +12 -0
- package/dist/api/types/ChatMessagePromptTemplateBlockRequest.js +5 -0
- package/dist/api/types/FulfilledFunctionCallRequest.d.ts +13 -0
- package/dist/api/types/FulfilledFunctionCallRequest.js +5 -0
- package/dist/api/types/FunctionDefinitionEnum.d.ts +4 -0
- package/dist/api/types/FunctionDefinitionEnum.js +5 -0
- package/dist/api/types/FunctionDefinitionPromptTemplateBlock.d.ts +12 -0
- package/dist/api/types/FunctionDefinitionPromptTemplateBlock.js +5 -0
- package/dist/api/types/FunctionDefinitionPromptTemplateBlockProperties.d.ts +13 -0
- package/dist/api/types/FunctionDefinitionPromptTemplateBlockProperties.js +5 -0
- package/dist/api/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.d.ts +13 -0
- package/dist/api/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.js +5 -0
- package/dist/api/types/FunctionDefinitionPromptTemplateBlockRequest.d.ts +12 -0
- package/dist/api/types/FunctionDefinitionPromptTemplateBlockRequest.js +5 -0
- package/dist/api/types/JinjaEnum.d.ts +4 -0
- package/dist/api/types/JinjaEnum.js +5 -0
- package/dist/api/types/JinjaPromptTemplateBlock.d.ts +12 -0
- package/dist/api/types/JinjaPromptTemplateBlock.js +5 -0
- package/dist/api/types/JinjaPromptTemplateBlockProperties.d.ts +8 -0
- package/dist/api/types/JinjaPromptTemplateBlockProperties.js +5 -0
- package/dist/api/types/JinjaPromptTemplateBlockPropertiesRequest.d.ts +8 -0
- package/dist/api/types/JinjaPromptTemplateBlockPropertiesRequest.js +5 -0
- package/dist/api/types/JinjaPromptTemplateBlockRequest.d.ts +12 -0
- package/dist/api/types/JinjaPromptTemplateBlockRequest.js +5 -0
- package/dist/api/types/NamedScenarioInputChatHistoryVariableValueRequest.d.ts +11 -0
- package/dist/api/types/NamedScenarioInputChatHistoryVariableValueRequest.js +5 -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/PromptTemplateBlockDataRequest.d.ts +1 -1
- package/dist/api/types/PromptTemplateBlockRequest.d.ts +14 -5
- 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 +27 -5
- package/dist/api/types/index.js +27 -5
- 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/ChatHistoryPromptTemplateBlock.js +36 -0
- package/dist/serialization/types/ChatHistoryPromptTemplateBlockRequest.d.ts +15 -0
- package/dist/serialization/types/ChatHistoryPromptTemplateBlockRequest.js +36 -0
- 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/ChatMessagePromptTemplateBlock.js +45 -0
- package/dist/serialization/types/ChatMessagePromptTemplateBlockProperties.d.ts +16 -0
- package/{serialization/types/PromptTemplateBlockProperties.js → dist/serialization/types/ChatMessagePromptTemplateBlockProperties.js} +4 -13
- package/dist/serialization/types/ChatMessagePromptTemplateBlockPropertiesRequest.d.ts +16 -0
- package/dist/serialization/types/{PromptTemplateBlockProperties.js → ChatMessagePromptTemplateBlockPropertiesRequest.js} +4 -13
- package/dist/serialization/types/ChatMessagePromptTemplateBlockRequest.d.ts +15 -0
- package/dist/serialization/types/ChatMessagePromptTemplateBlockRequest.js +45 -0
- 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/{serialization/types/ScenarioInputRequest.js → dist/serialization/types/FunctionDefinitionPromptTemplateBlock.js} +7 -8
- package/dist/serialization/types/FunctionDefinitionPromptTemplateBlockProperties.d.ts +15 -0
- package/dist/serialization/types/FunctionDefinitionPromptTemplateBlockProperties.js +36 -0
- package/dist/serialization/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.d.ts +15 -0
- package/dist/serialization/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.js +36 -0
- package/dist/serialization/types/FunctionDefinitionPromptTemplateBlockRequest.d.ts +16 -0
- package/dist/serialization/types/FunctionDefinitionPromptTemplateBlockRequest.js +37 -0
- 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/dist/serialization/types/JinjaPromptTemplateBlockProperties.js +35 -0
- package/dist/serialization/types/JinjaPromptTemplateBlockPropertiesRequest.d.ts +14 -0
- package/dist/serialization/types/JinjaPromptTemplateBlockPropertiesRequest.js +35 -0
- package/dist/serialization/types/JinjaPromptTemplateBlockRequest.d.ts +16 -0
- package/dist/serialization/types/JinjaPromptTemplateBlockRequest.js +37 -0
- 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/dist/serialization/types/NamedScenarioInputStringVariableValueRequest.js +34 -0
- package/dist/serialization/types/NamedTestCaseFunctionCallVariableValue.d.ts +14 -0
- package/dist/serialization/types/NamedTestCaseFunctionCallVariableValue.js +35 -0
- 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/PromptTemplateBlockDataRequest.d.ts +1 -1
- package/dist/serialization/types/PromptTemplateBlockDataRequest.js +1 -1
- package/dist/serialization/types/PromptTemplateBlockRequest.d.ts +16 -8
- package/dist/serialization/types/PromptTemplateBlockRequest.js +13 -7
- 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/ScenarioInputStringVariableValue.js +34 -0
- 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 +27 -5
- package/dist/serialization/types/index.js +27 -5
- package/package.json +1 -1
- 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/ChatHistoryPromptTemplateBlockRequest.d.ts +15 -0
- package/serialization/types/ChatHistoryPromptTemplateBlockRequest.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/ChatMessagePromptTemplateBlock.js +45 -0
- package/serialization/types/ChatMessagePromptTemplateBlockProperties.d.ts +16 -0
- package/{dist/serialization/types/PromptTemplateBlockPropertiesRequest.js → serialization/types/ChatMessagePromptTemplateBlockProperties.js} +4 -13
- package/serialization/types/ChatMessagePromptTemplateBlockPropertiesRequest.d.ts +16 -0
- package/serialization/types/{PromptTemplateBlockPropertiesRequest.js → ChatMessagePromptTemplateBlockPropertiesRequest.js} +4 -13
- package/serialization/types/ChatMessagePromptTemplateBlockRequest.d.ts +15 -0
- package/serialization/types/ChatMessagePromptTemplateBlockRequest.js +45 -0
- 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/{dist/serialization/types/ScenarioInputRequest.js → serialization/types/FunctionDefinitionPromptTemplateBlock.js} +7 -8
- package/serialization/types/FunctionDefinitionPromptTemplateBlockProperties.d.ts +15 -0
- package/serialization/types/FunctionDefinitionPromptTemplateBlockProperties.js +36 -0
- package/serialization/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.d.ts +15 -0
- package/serialization/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.js +36 -0
- package/serialization/types/FunctionDefinitionPromptTemplateBlockRequest.d.ts +16 -0
- package/serialization/types/FunctionDefinitionPromptTemplateBlockRequest.js +37 -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/serialization/types/JinjaPromptTemplateBlockProperties.js +35 -0
- package/serialization/types/JinjaPromptTemplateBlockPropertiesRequest.d.ts +14 -0
- package/serialization/types/JinjaPromptTemplateBlockPropertiesRequest.js +35 -0
- package/serialization/types/JinjaPromptTemplateBlockRequest.d.ts +16 -0
- package/serialization/types/JinjaPromptTemplateBlockRequest.js +37 -0
- 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/serialization/types/NamedScenarioInputStringVariableValueRequest.js +34 -0
- 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/PromptTemplateBlockDataRequest.d.ts +1 -1
- package/serialization/types/PromptTemplateBlockDataRequest.js +1 -1
- package/serialization/types/PromptTemplateBlockRequest.d.ts +16 -8
- package/serialization/types/PromptTemplateBlockRequest.js +13 -7
- 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/serialization/types/ScenarioInputStringVariableValue.js +34 -0
- 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 +27 -5
- package/serialization/types/index.js +27 -5
- package/api/types/BlockTypeEnum.d.ts +0 -16
- package/api/types/BlockTypeEnum.js +0 -12
- package/api/types/PromptTemplateBlockProperties.d.ts +0 -16
- package/api/types/PromptTemplateBlockPropertiesRequest.d.ts +0 -16
- 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/types/BlockTypeEnum.d.ts +0 -16
- package/dist/api/types/BlockTypeEnum.js +0 -12
- package/dist/api/types/PromptTemplateBlockProperties.d.ts +0 -16
- package/dist/api/types/PromptTemplateBlockPropertiesRequest.d.ts +0 -16
- 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/types/BlockTypeEnum.d.ts +0 -10
- package/dist/serialization/types/PromptTemplateBlockProperties.d.ts +0 -23
- package/dist/serialization/types/PromptTemplateBlockPropertiesRequest.d.ts +0 -23
- package/dist/serialization/types/ScenarioInputRequest.d.ts +0 -17
- package/dist/serialization/types/ScenarioInputTypeEnum.d.ts +0 -10
- package/serialization/types/BlockTypeEnum.d.ts +0 -10
- package/serialization/types/PromptTemplateBlockProperties.d.ts +0 -23
- package/serialization/types/PromptTemplateBlockPropertiesRequest.d.ts +0 -23
- package/serialization/types/ScenarioInputRequest.d.ts +0 -17
- package/serialization/types/ScenarioInputTypeEnum.d.ts +0 -10
- /package/api/types/{PromptTemplateBlockProperties.js → ChatHistoryPromptTemplateBlock.js} +0 -0
- /package/api/types/{PromptTemplateBlockPropertiesRequest.js → ChatHistoryPromptTemplateBlockRequest.js} +0 -0
- /package/api/types/{ScenarioInputRequest.js → ChatMessageEnum.js} +0 -0
- /package/{dist/api/types/PromptTemplateBlockProperties.js → api/types/ChatMessagePromptTemplateBlock.js} +0 -0
- /package/{dist/api/types/PromptTemplateBlockPropertiesRequest.js → api/types/ChatMessagePromptTemplateBlockProperties.js} +0 -0
- /package/{dist/api/types/ScenarioInputRequest.js → api/types/ChatMessagePromptTemplateBlockPropertiesRequest.js} +0 -0
|
@@ -60,15 +60,7 @@ class Sandboxes {
|
|
|
60
60
|
* @example
|
|
61
61
|
* await vellum.sandboxes.upsertSandboxScenario("id", {
|
|
62
62
|
* label: "Scenario 1",
|
|
63
|
-
* inputs: [
|
|
64
|
-
* key: "var_1",
|
|
65
|
-
* type: Vellum.ScenarioInputTypeEnum.Text,
|
|
66
|
-
* value: "Hello, world!"
|
|
67
|
-
* }, {
|
|
68
|
-
* key: "var_2",
|
|
69
|
-
* type: Vellum.ScenarioInputTypeEnum.Text,
|
|
70
|
-
* value: "Why hello, there!"
|
|
71
|
-
* }]
|
|
63
|
+
* inputs: []
|
|
72
64
|
* })
|
|
73
65
|
*/
|
|
74
66
|
upsertSandboxScenario(id, request, requestOptions) {
|
|
@@ -78,7 +70,7 @@ class Sandboxes {
|
|
|
78
70
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
79
71
|
.default, `v1/sandboxes/${id}/scenarios`),
|
|
80
72
|
method: "POST",
|
|
81
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
73
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
82
74
|
contentType: "application/json",
|
|
83
75
|
body: yield serializers.UpsertSandboxScenarioRequestRequest.jsonOrThrow(request, {
|
|
84
76
|
unrecognizedObjectKeys: "strip",
|
|
@@ -128,7 +120,7 @@ class Sandboxes {
|
|
|
128
120
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
129
121
|
.default, `v1/sandboxes/${id}/scenarios/${scenarioId}`),
|
|
130
122
|
method: "DELETE",
|
|
131
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
123
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
132
124
|
contentType: "application/json",
|
|
133
125
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
134
126
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
package/dist/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts
CHANGED
|
@@ -6,21 +6,13 @@ import * as Vellum from "../../../..";
|
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
8
|
* label: "Scenario 1",
|
|
9
|
-
* inputs: [
|
|
10
|
-
* key: "var_1",
|
|
11
|
-
* type: Vellum.ScenarioInputTypeEnum.Text,
|
|
12
|
-
* value: "Hello, world!"
|
|
13
|
-
* }, {
|
|
14
|
-
* key: "var_2",
|
|
15
|
-
* type: Vellum.ScenarioInputTypeEnum.Text,
|
|
16
|
-
* value: "Why hello, there!"
|
|
17
|
-
* }]
|
|
9
|
+
* inputs: []
|
|
18
10
|
* }
|
|
19
11
|
*/
|
|
20
12
|
export interface UpsertSandboxScenarioRequestRequest {
|
|
21
13
|
label?: string;
|
|
22
14
|
/** The inputs for the scenario */
|
|
23
|
-
inputs: Vellum.
|
|
15
|
+
inputs: Vellum.NamedScenarioInputRequest[];
|
|
24
16
|
/** The id of the scenario to update. If none is provided, an id will be generated and a new scenario will be appended. */
|
|
25
17
|
scenarioId?: string;
|
|
26
18
|
}
|
|
@@ -58,7 +58,7 @@ class TestSuiteRuns {
|
|
|
58
58
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
59
59
|
.default, "v1/test-suite-runs"),
|
|
60
60
|
method: "POST",
|
|
61
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
61
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
62
62
|
contentType: "application/json",
|
|
63
63
|
body: yield serializers.TestSuiteRunCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
64
64
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -106,7 +106,7 @@ class TestSuiteRuns {
|
|
|
106
106
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
107
107
|
.default, `v1/test-suite-runs/${id}`),
|
|
108
108
|
method: "GET",
|
|
109
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
109
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
110
110
|
contentType: "application/json",
|
|
111
111
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
112
112
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -163,7 +163,7 @@ class TestSuiteRuns {
|
|
|
163
163
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
164
164
|
.default, `v1/test-suite-runs/${id}/executions`),
|
|
165
165
|
method: "GET",
|
|
166
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
166
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
167
167
|
contentType: "application/json",
|
|
168
168
|
queryParameters: _queryParams,
|
|
169
169
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -69,7 +69,7 @@ class TestSuites {
|
|
|
69
69
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
70
70
|
.default, `v1/test-suites/${id}/test-cases`),
|
|
71
71
|
method: "GET",
|
|
72
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
72
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
73
73
|
contentType: "application/json",
|
|
74
74
|
queryParameters: _queryParams,
|
|
75
75
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -126,7 +126,7 @@ class TestSuites {
|
|
|
126
126
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
127
127
|
.default, `v1/test-suites/${id}/test-cases`),
|
|
128
128
|
method: "POST",
|
|
129
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
129
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
130
130
|
contentType: "application/json",
|
|
131
131
|
body: yield serializers.UpsertTestSuiteTestCaseRequest.jsonOrThrow(request, {
|
|
132
132
|
unrecognizedObjectKeys: "strip",
|
|
@@ -176,7 +176,7 @@ class TestSuites {
|
|
|
176
176
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
177
177
|
.default, `v1/test-suites/${id}/test-cases/${testCaseId}`),
|
|
178
178
|
method: "DELETE",
|
|
179
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
179
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
180
180
|
contentType: "application/json",
|
|
181
181
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
182
182
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -69,7 +69,7 @@ class WorkflowDeployments {
|
|
|
69
69
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
70
70
|
.default, "v1/workflow-deployments"),
|
|
71
71
|
method: "GET",
|
|
72
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
72
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
73
73
|
contentType: "application/json",
|
|
74
74
|
queryParameters: _queryParams,
|
|
75
75
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -117,7 +117,7 @@ class WorkflowDeployments {
|
|
|
117
117
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
118
118
|
.default, `v1/workflow-deployments/${id}`),
|
|
119
119
|
method: "GET",
|
|
120
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.
|
|
120
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
121
121
|
contentType: "application/json",
|
|
122
122
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
123
123
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
/**
|
|
6
|
+
* A block of that represents a chat history variable in a prompt template.
|
|
7
|
+
*/
|
|
8
|
+
export interface ChatHistoryPromptTemplateBlock {
|
|
9
|
+
properties: Record<string, unknown>;
|
|
10
|
+
id: string;
|
|
11
|
+
state?: Vellum.PromptTemplateBlockState;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
/**
|
|
6
|
+
* A block of that represents a chat history variable in a prompt template.
|
|
7
|
+
*/
|
|
8
|
+
export interface ChatHistoryPromptTemplateBlockRequest {
|
|
9
|
+
properties: Record<string, unknown>;
|
|
10
|
+
id: string;
|
|
11
|
+
state?: Vellum.PromptTemplateBlockState;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
/**
|
|
6
|
+
* A block of that represents a chat message in a prompt template.
|
|
7
|
+
*/
|
|
8
|
+
export interface ChatMessagePromptTemplateBlock {
|
|
9
|
+
properties: Vellum.ChatMessagePromptTemplateBlockProperties;
|
|
10
|
+
id: string;
|
|
11
|
+
state?: Vellum.PromptTemplateBlockState;
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
/**
|
|
6
|
+
* The properties of a ChatMessagePromptTemplateBlock
|
|
7
|
+
*/
|
|
8
|
+
export interface ChatMessagePromptTemplateBlockProperties {
|
|
9
|
+
blocks: Vellum.PromptTemplateBlock[];
|
|
10
|
+
chatRole?: Vellum.ChatMessageRole;
|
|
11
|
+
chatSource?: string;
|
|
12
|
+
chatMessageUnterminated?: boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
/**
|
|
6
|
+
* The properties of a ChatMessagePromptTemplateBlock
|
|
7
|
+
*/
|
|
8
|
+
export interface ChatMessagePromptTemplateBlockPropertiesRequest {
|
|
9
|
+
blocks: Vellum.PromptTemplateBlockRequest[];
|
|
10
|
+
chatRole?: Vellum.ChatMessageRole;
|
|
11
|
+
chatSource?: string;
|
|
12
|
+
chatMessageUnterminated?: boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
/**
|
|
6
|
+
* A block of that represents a chat message in a prompt template.
|
|
7
|
+
*/
|
|
8
|
+
export interface ChatMessagePromptTemplateBlockRequest {
|
|
9
|
+
properties: Vellum.ChatMessagePromptTemplateBlockPropertiesRequest;
|
|
10
|
+
id: string;
|
|
11
|
+
state?: Vellum.PromptTemplateBlockState;
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
/**
|
|
6
|
+
* The final resolved function call value.
|
|
7
|
+
*/
|
|
8
|
+
export interface FulfilledFunctionCallRequest {
|
|
9
|
+
state: Vellum.FulfilledEnum;
|
|
10
|
+
arguments: Record<string, unknown>;
|
|
11
|
+
id?: string;
|
|
12
|
+
name: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
/**
|
|
6
|
+
* A block of that represents a function definition in a prompt template.
|
|
7
|
+
*/
|
|
8
|
+
export interface FunctionDefinitionPromptTemplateBlock {
|
|
9
|
+
id: string;
|
|
10
|
+
state?: Vellum.PromptTemplateBlockState;
|
|
11
|
+
properties: Vellum.FunctionDefinitionPromptTemplateBlockProperties;
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface FunctionDefinitionPromptTemplateBlockProperties {
|
|
5
|
+
/** The name identifying the function. */
|
|
6
|
+
functionName?: string;
|
|
7
|
+
/** A description to help guide the model when to invoke this function. */
|
|
8
|
+
functionDescription?: string;
|
|
9
|
+
/** An OpenAPI specification of parameters that are supported by this function. */
|
|
10
|
+
functionParameters?: Record<string, unknown>;
|
|
11
|
+
/** Set this option to true to force the model to return a function call of this function. */
|
|
12
|
+
functionForced?: boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface FunctionDefinitionPromptTemplateBlockPropertiesRequest {
|
|
5
|
+
/** The name identifying the function. */
|
|
6
|
+
functionName?: string;
|
|
7
|
+
/** A description to help guide the model when to invoke this function. */
|
|
8
|
+
functionDescription?: string;
|
|
9
|
+
/** An OpenAPI specification of parameters that are supported by this function. */
|
|
10
|
+
functionParameters?: Record<string, unknown>;
|
|
11
|
+
/** Set this option to true to force the model to return a function call of this function. */
|
|
12
|
+
functionForced?: boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
/**
|
|
6
|
+
* A block of that represents a function definition in a prompt template.
|
|
7
|
+
*/
|
|
8
|
+
export interface FunctionDefinitionPromptTemplateBlockRequest {
|
|
9
|
+
id: string;
|
|
10
|
+
state?: Vellum.PromptTemplateBlockState;
|
|
11
|
+
properties: Vellum.FunctionDefinitionPromptTemplateBlockPropertiesRequest;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
/**
|
|
6
|
+
* A block of Jinja template code that is used to generate a prompt
|
|
7
|
+
*/
|
|
8
|
+
export interface JinjaPromptTemplateBlock {
|
|
9
|
+
id: string;
|
|
10
|
+
state?: Vellum.PromptTemplateBlockState;
|
|
11
|
+
properties: Vellum.JinjaPromptTemplateBlockProperties;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
/**
|
|
6
|
+
* A block of Jinja template code that is used to generate a prompt
|
|
7
|
+
*/
|
|
8
|
+
export interface JinjaPromptTemplateBlockRequest {
|
|
9
|
+
id: string;
|
|
10
|
+
state?: Vellum.PromptTemplateBlockState;
|
|
11
|
+
properties: Vellum.JinjaPromptTemplateBlockPropertiesRequest;
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
/**
|
|
6
|
+
* Named Prompt Sandbox Scenario input value that is of type CHAT_HISTORY
|
|
7
|
+
*/
|
|
8
|
+
export interface NamedScenarioInputChatHistoryVariableValueRequest {
|
|
9
|
+
value?: Vellum.ChatMessageRequest[];
|
|
10
|
+
name: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
export declare type NamedScenarioInputRequest = Vellum.NamedScenarioInputRequest.String | Vellum.NamedScenarioInputRequest.ChatHistory;
|
|
6
|
+
export declare namespace NamedScenarioInputRequest {
|
|
7
|
+
interface String extends Vellum.NamedScenarioInputStringVariableValueRequest {
|
|
8
|
+
type: "STRING";
|
|
9
|
+
}
|
|
10
|
+
interface ChatHistory extends Vellum.NamedScenarioInputChatHistoryVariableValueRequest {
|
|
11
|
+
type: "CHAT_HISTORY";
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
/**
|
|
6
|
+
* Named Test Case value that is of type FUNCTION_CALL
|
|
7
|
+
*/
|
|
8
|
+
export interface NamedTestCaseFunctionCallVariableValue {
|
|
9
|
+
value?: Vellum.FulfilledFunctionCall;
|
|
10
|
+
name: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
/**
|
|
6
|
+
* Named Test Case value that is of type FUNCTION_CALL
|
|
7
|
+
*/
|
|
8
|
+
export interface NamedTestCaseFunctionCallVariableValueRequest {
|
|
9
|
+
value?: Vellum.FulfilledFunctionCallRequest;
|
|
10
|
+
name: string;
|
|
11
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Vellum from "..";
|
|
5
|
-
export declare type NamedTestCaseVariableValue = Vellum.NamedTestCaseVariableValue.String | Vellum.NamedTestCaseVariableValue.Number | Vellum.NamedTestCaseVariableValue.Json | Vellum.NamedTestCaseVariableValue.ChatHistory | Vellum.NamedTestCaseVariableValue.SearchResults | Vellum.NamedTestCaseVariableValue.Error_;
|
|
5
|
+
export declare type NamedTestCaseVariableValue = Vellum.NamedTestCaseVariableValue.String | Vellum.NamedTestCaseVariableValue.Number | Vellum.NamedTestCaseVariableValue.Json | Vellum.NamedTestCaseVariableValue.ChatHistory | Vellum.NamedTestCaseVariableValue.SearchResults | Vellum.NamedTestCaseVariableValue.Error_ | Vellum.NamedTestCaseVariableValue.FunctionCall;
|
|
6
6
|
export declare namespace NamedTestCaseVariableValue {
|
|
7
7
|
interface String extends Vellum.NamedTestCaseStringVariableValue {
|
|
8
8
|
type: "STRING";
|
|
@@ -22,4 +22,7 @@ export declare namespace NamedTestCaseVariableValue {
|
|
|
22
22
|
interface Error_ extends Vellum.NamedTestCaseErrorVariableValue {
|
|
23
23
|
type: "ERROR";
|
|
24
24
|
}
|
|
25
|
+
interface FunctionCall extends Vellum.NamedTestCaseFunctionCallVariableValue {
|
|
26
|
+
type: "FUNCTION_CALL";
|
|
27
|
+
}
|
|
25
28
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Vellum from "..";
|
|
5
|
-
export declare type NamedTestCaseVariableValueRequest = Vellum.NamedTestCaseVariableValueRequest.String | Vellum.NamedTestCaseVariableValueRequest.Number | Vellum.NamedTestCaseVariableValueRequest.Json | Vellum.NamedTestCaseVariableValueRequest.ChatHistory | Vellum.NamedTestCaseVariableValueRequest.SearchResults | Vellum.NamedTestCaseVariableValueRequest.Error_;
|
|
5
|
+
export declare type NamedTestCaseVariableValueRequest = Vellum.NamedTestCaseVariableValueRequest.String | Vellum.NamedTestCaseVariableValueRequest.Number | Vellum.NamedTestCaseVariableValueRequest.Json | Vellum.NamedTestCaseVariableValueRequest.ChatHistory | Vellum.NamedTestCaseVariableValueRequest.SearchResults | Vellum.NamedTestCaseVariableValueRequest.Error_ | Vellum.NamedTestCaseVariableValueRequest.FunctionCall;
|
|
6
6
|
export declare namespace NamedTestCaseVariableValueRequest {
|
|
7
7
|
interface String extends Vellum.NamedTestCaseStringVariableValueRequest {
|
|
8
8
|
type: "STRING";
|
|
@@ -22,4 +22,7 @@ export declare namespace NamedTestCaseVariableValueRequest {
|
|
|
22
22
|
interface Error_ extends Vellum.NamedTestCaseErrorVariableValueRequest {
|
|
23
23
|
type: "ERROR";
|
|
24
24
|
}
|
|
25
|
+
interface FunctionCall extends Vellum.NamedTestCaseFunctionCallVariableValueRequest {
|
|
26
|
+
type: "FUNCTION_CALL";
|
|
27
|
+
}
|
|
25
28
|
}
|