vellum-ai 0.1.6 → 0.1.8
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 -16
- package/Client.js +12 -137
- package/api/errors/ForbiddenError.d.ts +2 -1
- package/api/resources/deployments/client/Client.js +2 -2
- package/api/resources/documentIndexes/client/Client.js +2 -2
- package/api/resources/documents/client/Client.js +4 -4
- package/api/resources/modelVersions/client/Client.js +1 -1
- package/api/resources/registeredPrompts/client/Client.js +1 -1
- package/api/resources/sandboxes/client/Client.js +2 -2
- package/api/resources/testSuites/client/Client.d.ts +1 -1
- package/api/resources/testSuites/client/Client.js +5 -3
- package/api/resources/testSuites/client/requests/UpsertTestSuiteTestCaseRequest.d.ts +10 -0
- package/api/resources/testSuites/client/requests/index.d.ts +1 -1
- package/api/types/{ErrorExecutePromptResponse.d.ts → CodeExecutionNodeChatHistoryResult.d.ts} +3 -3
- package/api/types/{StreamingExecutePromptStreamingResponse.d.ts → CodeExecutionNodeErrorResult.d.ts} +3 -2
- package/{dist/api/types/TestCaseJsonVariableValueRequest.d.ts → api/types/CodeExecutionNodeJsonResult.d.ts} +2 -2
- package/api/types/{TestCaseNumberVariableValueRequest.d.ts → CodeExecutionNodeNumberResult.d.ts} +2 -2
- package/api/types/{FulfilledExecutePromptStreamingResponse.d.ts → CodeExecutionNodeResult.d.ts} +2 -2
- package/{dist/api/types/FulfilledExecutePromptStreamingResponse.d.ts → api/types/CodeExecutionNodeResultData.d.ts} +2 -2
- package/api/types/CodeExecutionNodeResultOutput.d.ts +25 -0
- package/api/types/CodeExecutionNodeSearchResultsResult.d.ts +8 -0
- package/api/types/{TestCaseStringVariableValueRequest.d.ts → CodeExecutionNodeStringResult.d.ts} +2 -2
- package/api/types/{TestCaseChatHistoryVariableValueRequest.d.ts → NamedTestCaseChatHistoryVariableValueRequest.d.ts} +2 -2
- package/api/types/{TestCaseErrorVariableValueRequest.d.ts → NamedTestCaseErrorVariableValueRequest.d.ts} +2 -2
- package/api/types/{TestCaseJsonVariableValueRequest.d.ts → NamedTestCaseJsonVariableValueRequest.d.ts} +2 -2
- package/{dist/api/types/TestCaseNumberVariableValueRequest.d.ts → api/types/NamedTestCaseNumberVariableValueRequest.d.ts} +2 -2
- package/api/types/{TestCaseSearchResultsVariableValueRequest.d.ts → NamedTestCaseSearchResultsVariableValueRequest.d.ts} +2 -2
- package/{dist/api/types/TestCaseStringVariableValueRequest.d.ts → api/types/NamedTestCaseStringVariableValueRequest.d.ts} +2 -2
- package/api/types/NamedTestCaseVariableValueRequest.d.ts +25 -0
- package/api/types/WorkflowNodeResultData.d.ts +4 -1
- package/api/types/index.d.ts +16 -20
- package/api/types/index.js +16 -20
- package/dist/Client.d.ts +0 -16
- package/dist/Client.js +12 -137
- package/dist/api/errors/ForbiddenError.d.ts +2 -1
- package/dist/api/resources/deployments/client/Client.js +2 -2
- package/dist/api/resources/documentIndexes/client/Client.js +2 -2
- package/dist/api/resources/documents/client/Client.js +4 -4
- package/dist/api/resources/modelVersions/client/Client.js +1 -1
- package/dist/api/resources/registeredPrompts/client/Client.js +1 -1
- package/dist/api/resources/sandboxes/client/Client.js +2 -2
- package/dist/api/resources/testSuites/client/Client.d.ts +1 -1
- package/dist/api/resources/testSuites/client/Client.js +5 -3
- package/dist/api/resources/testSuites/client/requests/UpsertTestSuiteTestCaseRequest.d.ts +10 -0
- package/dist/api/resources/testSuites/client/requests/index.d.ts +1 -1
- package/dist/api/types/{ErrorExecutePromptResponse.d.ts → CodeExecutionNodeChatHistoryResult.d.ts} +3 -3
- package/dist/api/types/{StreamingExecutePromptStreamingResponse.d.ts → CodeExecutionNodeErrorResult.d.ts} +3 -2
- package/dist/api/types/CodeExecutionNodeJsonResult.d.ts +7 -0
- package/dist/api/types/CodeExecutionNodeNumberResult.d.ts +7 -0
- package/dist/api/types/CodeExecutionNodeResult.d.ts +7 -0
- package/dist/api/types/CodeExecutionNodeResultData.d.ts +7 -0
- package/dist/api/types/CodeExecutionNodeResultOutput.d.ts +25 -0
- package/dist/api/types/CodeExecutionNodeSearchResultsResult.d.ts +8 -0
- package/dist/api/types/CodeExecutionNodeStringResult.d.ts +7 -0
- package/dist/api/types/{TestCaseChatHistoryVariableValueRequest.d.ts → NamedTestCaseChatHistoryVariableValueRequest.d.ts} +2 -2
- package/dist/api/types/{TestCaseErrorVariableValueRequest.d.ts → NamedTestCaseErrorVariableValueRequest.d.ts} +2 -2
- package/dist/api/types/NamedTestCaseJsonVariableValueRequest.d.ts +7 -0
- package/dist/api/types/NamedTestCaseNumberVariableValueRequest.d.ts +7 -0
- package/dist/api/types/{TestCaseSearchResultsVariableValueRequest.d.ts → NamedTestCaseSearchResultsVariableValueRequest.d.ts} +2 -2
- package/dist/api/types/NamedTestCaseStringVariableValueRequest.d.ts +7 -0
- package/dist/api/types/NamedTestCaseVariableValueRequest.d.ts +25 -0
- package/dist/api/types/WorkflowNodeResultData.d.ts +4 -1
- package/dist/api/types/index.d.ts +16 -20
- package/dist/api/types/index.js +16 -20
- package/dist/serialization/resources/testSuites/client/requests/UpsertTestSuiteTestCaseRequest.d.ts +15 -0
- package/dist/serialization/resources/testSuites/client/requests/{TestSuiteTestCaseRequest.js → UpsertTestSuiteTestCaseRequest.js} +5 -5
- package/dist/serialization/resources/testSuites/client/requests/index.d.ts +1 -1
- package/dist/serialization/resources/testSuites/client/requests/index.js +3 -3
- package/dist/serialization/types/CodeExecutionNodeChatHistoryResult.d.ts +13 -0
- package/dist/serialization/types/CodeExecutionNodeChatHistoryResult.js +45 -0
- package/dist/serialization/types/CodeExecutionNodeErrorResult.d.ts +13 -0
- package/{serialization/types/ErrorExecutePromptResponse.js → dist/serialization/types/CodeExecutionNodeErrorResult.js} +4 -4
- package/dist/serialization/types/CodeExecutionNodeJsonResult.d.ts +13 -0
- package/{serialization/types/TestCaseJsonVariableValueRequest.js → dist/serialization/types/CodeExecutionNodeJsonResult.js} +3 -3
- package/{serialization/types/InitiatedExecutePromptResponse.d.ts → dist/serialization/types/CodeExecutionNodeNumberResult.d.ts} +4 -4
- package/{serialization/types/ExecutePromptApiErrorResponse.js → dist/serialization/types/CodeExecutionNodeNumberResult.js} +4 -3
- package/dist/serialization/types/CodeExecutionNodeResult.d.ts +12 -0
- package/dist/serialization/types/{RejectedExecutePromptStreamingResponse.js → CodeExecutionNodeResult.js} +3 -3
- package/dist/serialization/types/CodeExecutionNodeResultData.d.ts +12 -0
- package/{serialization/types/StreamingExecutePromptStreamingResponse.js → dist/serialization/types/CodeExecutionNodeResultData.js} +3 -3
- package/dist/serialization/types/CodeExecutionNodeResultOutput.d.ts +28 -0
- package/{serialization/types/TestCaseVariableValueRequest.js → dist/serialization/types/CodeExecutionNodeResultOutput.js} +8 -8
- package/dist/serialization/types/CodeExecutionNodeSearchResultsResult.d.ts +13 -0
- package/dist/serialization/types/CodeExecutionNodeSearchResultsResult.js +45 -0
- package/dist/serialization/types/CodeExecutionNodeStringResult.d.ts +13 -0
- package/dist/serialization/types/{ExecutePromptApiErrorResponse.js → CodeExecutionNodeStringResult.js} +4 -3
- package/dist/serialization/types/NamedTestCaseChatHistoryVariableValueRequest.d.ts +13 -0
- package/dist/serialization/types/{TestCaseChatHistoryVariableValueRequest.js → NamedTestCaseChatHistoryVariableValueRequest.js} +3 -3
- package/dist/serialization/types/NamedTestCaseErrorVariableValueRequest.d.ts +13 -0
- package/dist/serialization/types/{TestCaseErrorVariableValueRequest.js → NamedTestCaseErrorVariableValueRequest.js} +3 -3
- package/dist/serialization/types/NamedTestCaseJsonVariableValueRequest.d.ts +13 -0
- package/dist/serialization/types/{TestCaseJsonVariableValueRequest.js → NamedTestCaseJsonVariableValueRequest.js} +3 -3
- package/dist/serialization/types/NamedTestCaseNumberVariableValueRequest.d.ts +13 -0
- package/{serialization/types/TestCaseNumberVariableValueRequest.js → dist/serialization/types/NamedTestCaseNumberVariableValueRequest.js} +3 -3
- package/dist/serialization/types/NamedTestCaseSearchResultsVariableValueRequest.d.ts +13 -0
- package/dist/serialization/types/{TestCaseSearchResultsVariableValueRequest.js → NamedTestCaseSearchResultsVariableValueRequest.js} +3 -3
- package/dist/serialization/types/NamedTestCaseStringVariableValueRequest.d.ts +13 -0
- package/{serialization/types/TestCaseStringVariableValueRequest.js → dist/serialization/types/NamedTestCaseStringVariableValueRequest.js} +3 -3
- package/dist/serialization/types/NamedTestCaseVariableValueRequest.d.ts +28 -0
- package/{serialization/types/ExecutePromptResponse.js → dist/serialization/types/NamedTestCaseVariableValueRequest.js} +8 -5
- package/dist/serialization/types/WorkflowNodeResultData.d.ts +4 -1
- package/dist/serialization/types/WorkflowNodeResultData.js +1 -0
- package/dist/serialization/types/index.d.ts +16 -20
- package/dist/serialization/types/index.js +16 -20
- package/package.json +1 -1
- package/serialization/resources/testSuites/client/requests/UpsertTestSuiteTestCaseRequest.d.ts +15 -0
- package/serialization/resources/testSuites/client/requests/{TestSuiteTestCaseRequest.js → UpsertTestSuiteTestCaseRequest.js} +5 -5
- package/serialization/resources/testSuites/client/requests/index.d.ts +1 -1
- package/serialization/resources/testSuites/client/requests/index.js +3 -3
- package/serialization/types/CodeExecutionNodeChatHistoryResult.d.ts +13 -0
- package/serialization/types/CodeExecutionNodeChatHistoryResult.js +45 -0
- package/serialization/types/CodeExecutionNodeErrorResult.d.ts +13 -0
- package/{dist/serialization/types/ErrorExecutePromptResponse.js → serialization/types/CodeExecutionNodeErrorResult.js} +4 -4
- package/serialization/types/CodeExecutionNodeJsonResult.d.ts +13 -0
- package/{dist/serialization/types/JsonExecutePromptResponse.js → serialization/types/CodeExecutionNodeJsonResult.js} +4 -4
- package/{dist/serialization/types/InitiatedExecutePromptResponse.d.ts → serialization/types/CodeExecutionNodeNumberResult.d.ts} +4 -4
- package/{dist/serialization/types/TestCaseNumberVariableValueRequest.js → serialization/types/CodeExecutionNodeNumberResult.js} +3 -3
- package/serialization/types/CodeExecutionNodeResult.d.ts +12 -0
- package/serialization/types/{RejectedExecutePromptStreamingResponse.js → CodeExecutionNodeResult.js} +3 -3
- package/serialization/types/CodeExecutionNodeResultData.d.ts +12 -0
- package/serialization/types/{FulfilledExecutePromptStreamingResponse.js → CodeExecutionNodeResultData.js} +3 -3
- package/serialization/types/CodeExecutionNodeResultOutput.d.ts +28 -0
- package/{dist/serialization/types/TestCaseVariableValueRequest.js → serialization/types/CodeExecutionNodeResultOutput.js} +8 -8
- package/serialization/types/CodeExecutionNodeSearchResultsResult.d.ts +13 -0
- package/serialization/types/CodeExecutionNodeSearchResultsResult.js +45 -0
- package/serialization/types/CodeExecutionNodeStringResult.d.ts +13 -0
- package/{dist/serialization/types/TestCaseStringVariableValueRequest.js → serialization/types/CodeExecutionNodeStringResult.js} +3 -3
- package/serialization/types/NamedTestCaseChatHistoryVariableValueRequest.d.ts +13 -0
- package/serialization/types/{TestCaseChatHistoryVariableValueRequest.js → NamedTestCaseChatHistoryVariableValueRequest.js} +3 -3
- package/serialization/types/NamedTestCaseErrorVariableValueRequest.d.ts +13 -0
- package/serialization/types/{TestCaseErrorVariableValueRequest.js → NamedTestCaseErrorVariableValueRequest.js} +3 -3
- package/serialization/types/NamedTestCaseJsonVariableValueRequest.d.ts +13 -0
- package/serialization/types/{JsonExecutePromptResponse.js → NamedTestCaseJsonVariableValueRequest.js} +4 -4
- package/serialization/types/NamedTestCaseNumberVariableValueRequest.d.ts +13 -0
- package/serialization/types/NamedTestCaseNumberVariableValueRequest.js +34 -0
- package/serialization/types/NamedTestCaseSearchResultsVariableValueRequest.d.ts +13 -0
- package/serialization/types/{TestCaseSearchResultsVariableValueRequest.js → NamedTestCaseSearchResultsVariableValueRequest.js} +3 -3
- package/serialization/types/NamedTestCaseStringVariableValueRequest.d.ts +13 -0
- package/serialization/types/NamedTestCaseStringVariableValueRequest.js +34 -0
- package/serialization/types/NamedTestCaseVariableValueRequest.d.ts +28 -0
- package/{dist/serialization/types/ExecutePromptResponse.js → serialization/types/NamedTestCaseVariableValueRequest.js} +8 -5
- package/serialization/types/WorkflowNodeResultData.d.ts +4 -1
- package/serialization/types/WorkflowNodeResultData.js +1 -0
- package/serialization/types/index.d.ts +16 -20
- package/serialization/types/index.js +16 -20
- package/api/resources/testSuites/client/requests/TestSuiteTestCaseRequest.d.ts +0 -10
- package/api/types/ExecutePromptApiErrorResponse.d.ts +0 -7
- package/api/types/ExecutePromptRequest.d.ts +0 -14
- package/api/types/ExecutePromptResponse.d.ts +0 -16
- package/api/types/ExecutePromptStreamingResponse.d.ts +0 -19
- package/api/types/InitiatedExecutePromptResponse.d.ts +0 -8
- package/api/types/InitiatedExecutePromptStreamingResponse.d.ts +0 -7
- package/api/types/JsonExecutePromptResponse.d.ts +0 -7
- package/api/types/RejectedExecutePromptResponse.d.ts +0 -9
- package/api/types/RejectedExecutePromptStreamingResponse.d.ts +0 -7
- package/api/types/StringExecutePromptResponse.d.ts +0 -7
- package/api/types/TestCaseVariableValueRequest.d.ts +0 -25
- package/dist/api/resources/testSuites/client/requests/TestSuiteTestCaseRequest.d.ts +0 -10
- package/dist/api/types/ExecutePromptApiErrorResponse.d.ts +0 -7
- package/dist/api/types/ExecutePromptRequest.d.ts +0 -14
- package/dist/api/types/ExecutePromptResponse.d.ts +0 -16
- package/dist/api/types/ExecutePromptStreamingResponse.d.ts +0 -19
- package/dist/api/types/InitiatedExecutePromptResponse.d.ts +0 -8
- package/dist/api/types/InitiatedExecutePromptStreamingResponse.d.ts +0 -7
- package/dist/api/types/JsonExecutePromptResponse.d.ts +0 -7
- package/dist/api/types/RejectedExecutePromptResponse.d.ts +0 -9
- package/dist/api/types/RejectedExecutePromptStreamingResponse.d.ts +0 -7
- package/dist/api/types/StringExecutePromptResponse.d.ts +0 -7
- package/dist/api/types/StringExecutePromptResponse.js +0 -5
- package/dist/api/types/TestCaseChatHistoryVariableValueRequest.js +0 -5
- package/dist/api/types/TestCaseErrorVariableValueRequest.js +0 -5
- package/dist/api/types/TestCaseJsonVariableValueRequest.js +0 -5
- package/dist/api/types/TestCaseNumberVariableValueRequest.js +0 -5
- package/dist/api/types/TestCaseSearchResultsVariableValueRequest.js +0 -5
- package/dist/api/types/TestCaseStringVariableValueRequest.js +0 -5
- package/dist/api/types/TestCaseVariableValueRequest.d.ts +0 -25
- package/dist/api/types/TestCaseVariableValueRequest.js +0 -5
- package/dist/serialization/resources/testSuites/client/requests/TestSuiteTestCaseRequest.d.ts +0 -15
- package/dist/serialization/types/ErrorExecutePromptResponse.d.ts +0 -13
- package/dist/serialization/types/ExecutePromptApiErrorResponse.d.ts +0 -12
- package/dist/serialization/types/ExecutePromptRequest.d.ts +0 -16
- package/dist/serialization/types/ExecutePromptRequest.js +0 -46
- package/dist/serialization/types/ExecutePromptResponse.d.ts +0 -19
- package/dist/serialization/types/ExecutePromptStreamingResponse.d.ts +0 -22
- package/dist/serialization/types/ExecutePromptStreamingResponse.js +0 -50
- package/dist/serialization/types/FulfilledExecutePromptStreamingResponse.d.ts +0 -12
- package/dist/serialization/types/FulfilledExecutePromptStreamingResponse.js +0 -42
- package/dist/serialization/types/InitiatedExecutePromptResponse.js +0 -43
- package/dist/serialization/types/InitiatedExecutePromptStreamingResponse.d.ts +0 -12
- package/dist/serialization/types/InitiatedExecutePromptStreamingResponse.js +0 -42
- package/dist/serialization/types/JsonExecutePromptResponse.d.ts +0 -13
- package/dist/serialization/types/RejectedExecutePromptResponse.d.ts +0 -14
- package/dist/serialization/types/RejectedExecutePromptResponse.js +0 -44
- package/dist/serialization/types/RejectedExecutePromptStreamingResponse.d.ts +0 -12
- package/dist/serialization/types/StreamingExecutePromptStreamingResponse.d.ts +0 -12
- package/dist/serialization/types/StreamingExecutePromptStreamingResponse.js +0 -42
- package/dist/serialization/types/StringExecutePromptResponse.d.ts +0 -13
- package/dist/serialization/types/StringExecutePromptResponse.js +0 -34
- package/dist/serialization/types/TestCaseChatHistoryVariableValueRequest.d.ts +0 -13
- package/dist/serialization/types/TestCaseErrorVariableValueRequest.d.ts +0 -13
- package/dist/serialization/types/TestCaseJsonVariableValueRequest.d.ts +0 -13
- package/dist/serialization/types/TestCaseNumberVariableValueRequest.d.ts +0 -13
- package/dist/serialization/types/TestCaseSearchResultsVariableValueRequest.d.ts +0 -13
- package/dist/serialization/types/TestCaseStringVariableValueRequest.d.ts +0 -13
- package/dist/serialization/types/TestCaseVariableValueRequest.d.ts +0 -28
- package/serialization/resources/testSuites/client/requests/TestSuiteTestCaseRequest.d.ts +0 -15
- package/serialization/types/ErrorExecutePromptResponse.d.ts +0 -13
- package/serialization/types/ExecutePromptApiErrorResponse.d.ts +0 -12
- package/serialization/types/ExecutePromptRequest.d.ts +0 -16
- package/serialization/types/ExecutePromptRequest.js +0 -46
- package/serialization/types/ExecutePromptResponse.d.ts +0 -19
- package/serialization/types/ExecutePromptStreamingResponse.d.ts +0 -22
- package/serialization/types/ExecutePromptStreamingResponse.js +0 -50
- package/serialization/types/FulfilledExecutePromptStreamingResponse.d.ts +0 -12
- package/serialization/types/InitiatedExecutePromptResponse.js +0 -43
- package/serialization/types/InitiatedExecutePromptStreamingResponse.d.ts +0 -12
- package/serialization/types/InitiatedExecutePromptStreamingResponse.js +0 -42
- package/serialization/types/JsonExecutePromptResponse.d.ts +0 -13
- package/serialization/types/RejectedExecutePromptResponse.d.ts +0 -14
- package/serialization/types/RejectedExecutePromptResponse.js +0 -44
- package/serialization/types/RejectedExecutePromptStreamingResponse.d.ts +0 -12
- package/serialization/types/StreamingExecutePromptStreamingResponse.d.ts +0 -12
- package/serialization/types/StringExecutePromptResponse.d.ts +0 -13
- package/serialization/types/StringExecutePromptResponse.js +0 -34
- package/serialization/types/TestCaseChatHistoryVariableValueRequest.d.ts +0 -13
- package/serialization/types/TestCaseErrorVariableValueRequest.d.ts +0 -13
- package/serialization/types/TestCaseJsonVariableValueRequest.d.ts +0 -13
- package/serialization/types/TestCaseNumberVariableValueRequest.d.ts +0 -13
- package/serialization/types/TestCaseSearchResultsVariableValueRequest.d.ts +0 -13
- package/serialization/types/TestCaseStringVariableValueRequest.d.ts +0 -13
- package/serialization/types/TestCaseVariableValueRequest.d.ts +0 -28
- /package/api/resources/testSuites/client/requests/{TestSuiteTestCaseRequest.js → UpsertTestSuiteTestCaseRequest.js} +0 -0
- /package/api/types/{ErrorExecutePromptResponse.js → CodeExecutionNodeChatHistoryResult.js} +0 -0
- /package/api/types/{ExecutePromptApiErrorResponse.js → CodeExecutionNodeErrorResult.js} +0 -0
- /package/api/types/{ExecutePromptRequest.js → CodeExecutionNodeJsonResult.js} +0 -0
- /package/api/types/{ExecutePromptResponse.js → CodeExecutionNodeNumberResult.js} +0 -0
- /package/api/types/{ExecutePromptStreamingResponse.js → CodeExecutionNodeResult.js} +0 -0
- /package/api/types/{FulfilledExecutePromptStreamingResponse.js → CodeExecutionNodeResultData.js} +0 -0
- /package/api/types/{InitiatedExecutePromptResponse.js → CodeExecutionNodeResultOutput.js} +0 -0
- /package/api/types/{InitiatedExecutePromptStreamingResponse.js → CodeExecutionNodeSearchResultsResult.js} +0 -0
- /package/api/types/{JsonExecutePromptResponse.js → CodeExecutionNodeStringResult.js} +0 -0
- /package/api/types/{RejectedExecutePromptResponse.js → NamedTestCaseChatHistoryVariableValueRequest.js} +0 -0
- /package/api/types/{RejectedExecutePromptStreamingResponse.js → NamedTestCaseErrorVariableValueRequest.js} +0 -0
- /package/api/types/{StreamingExecutePromptStreamingResponse.js → NamedTestCaseJsonVariableValueRequest.js} +0 -0
- /package/api/types/{StringExecutePromptResponse.js → NamedTestCaseNumberVariableValueRequest.js} +0 -0
- /package/api/types/{TestCaseChatHistoryVariableValueRequest.js → NamedTestCaseSearchResultsVariableValueRequest.js} +0 -0
- /package/api/types/{TestCaseErrorVariableValueRequest.js → NamedTestCaseStringVariableValueRequest.js} +0 -0
- /package/api/types/{TestCaseJsonVariableValueRequest.js → NamedTestCaseVariableValueRequest.js} +0 -0
- /package/{api/types/TestCaseNumberVariableValueRequest.js → dist/api/resources/testSuites/client/requests/UpsertTestSuiteTestCaseRequest.js} +0 -0
- /package/{api/types/TestCaseSearchResultsVariableValueRequest.js → dist/api/types/CodeExecutionNodeChatHistoryResult.js} +0 -0
- /package/{api/types/TestCaseStringVariableValueRequest.js → dist/api/types/CodeExecutionNodeErrorResult.js} +0 -0
- /package/{api/types/TestCaseVariableValueRequest.js → dist/api/types/CodeExecutionNodeJsonResult.js} +0 -0
- /package/dist/api/{resources/testSuites/client/requests/TestSuiteTestCaseRequest.js → types/CodeExecutionNodeNumberResult.js} +0 -0
- /package/dist/api/types/{ErrorExecutePromptResponse.js → CodeExecutionNodeResult.js} +0 -0
- /package/dist/api/types/{ExecutePromptApiErrorResponse.js → CodeExecutionNodeResultData.js} +0 -0
- /package/dist/api/types/{ExecutePromptRequest.js → CodeExecutionNodeResultOutput.js} +0 -0
- /package/dist/api/types/{ExecutePromptResponse.js → CodeExecutionNodeSearchResultsResult.js} +0 -0
- /package/dist/api/types/{ExecutePromptStreamingResponse.js → CodeExecutionNodeStringResult.js} +0 -0
- /package/dist/api/types/{FulfilledExecutePromptStreamingResponse.js → NamedTestCaseChatHistoryVariableValueRequest.js} +0 -0
- /package/dist/api/types/{InitiatedExecutePromptResponse.js → NamedTestCaseErrorVariableValueRequest.js} +0 -0
- /package/dist/api/types/{InitiatedExecutePromptStreamingResponse.js → NamedTestCaseJsonVariableValueRequest.js} +0 -0
- /package/dist/api/types/{JsonExecutePromptResponse.js → NamedTestCaseNumberVariableValueRequest.js} +0 -0
- /package/dist/api/types/{RejectedExecutePromptResponse.js → NamedTestCaseSearchResultsVariableValueRequest.js} +0 -0
- /package/dist/api/types/{RejectedExecutePromptStreamingResponse.js → NamedTestCaseStringVariableValueRequest.js} +0 -0
- /package/dist/api/types/{StreamingExecutePromptStreamingResponse.js → NamedTestCaseVariableValueRequest.js} +0 -0
package/Client.d.ts
CHANGED
|
@@ -24,22 +24,6 @@ export declare namespace VellumClient {
|
|
|
24
24
|
export declare class VellumClient {
|
|
25
25
|
protected readonly _options: VellumClient.Options;
|
|
26
26
|
constructor(_options: VellumClient.Options);
|
|
27
|
-
/**
|
|
28
|
-
* Executes a deployed Prompt and returns the result.
|
|
29
|
-
* @throws {@link Vellum.BadRequestError}
|
|
30
|
-
* @throws {@link Vellum.ForbiddenError}
|
|
31
|
-
* @throws {@link Vellum.NotFoundError}
|
|
32
|
-
* @throws {@link Vellum.InternalServerError}
|
|
33
|
-
*/
|
|
34
|
-
executePrompt(request: Vellum.ExecutePromptRequest, requestOptions?: VellumClient.RequestOptions): Promise<Vellum.ExecutePromptResponse>;
|
|
35
|
-
/**
|
|
36
|
-
* Executes a deployed Prompt and streams back the results.
|
|
37
|
-
* @throws {@link Vellum.BadRequestError}
|
|
38
|
-
* @throws {@link Vellum.ForbiddenError}
|
|
39
|
-
* @throws {@link Vellum.NotFoundError}
|
|
40
|
-
* @throws {@link Vellum.InternalServerError}
|
|
41
|
-
*/
|
|
42
|
-
executePromptStream(request: Vellum.ExecutePromptRequest, requestOptions?: VellumClient.RequestOptions): Promise<Vellum.ExecutePromptStreamingResponse>;
|
|
43
27
|
/**
|
|
44
28
|
* Executes a deployed Workflow and streams back its results.
|
|
45
29
|
*/
|
package/Client.js
CHANGED
|
@@ -56,136 +56,6 @@ class VellumClient {
|
|
|
56
56
|
constructor(_options) {
|
|
57
57
|
this._options = _options;
|
|
58
58
|
}
|
|
59
|
-
/**
|
|
60
|
-
* Executes a deployed Prompt and returns the result.
|
|
61
|
-
* @throws {@link Vellum.BadRequestError}
|
|
62
|
-
* @throws {@link Vellum.ForbiddenError}
|
|
63
|
-
* @throws {@link Vellum.NotFoundError}
|
|
64
|
-
* @throws {@link Vellum.InternalServerError}
|
|
65
|
-
*/
|
|
66
|
-
executePrompt(request, requestOptions) {
|
|
67
|
-
var _a;
|
|
68
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
69
|
-
const _response = yield core.fetcher({
|
|
70
|
-
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
71
|
-
.default, "v1/execute-prompt"),
|
|
72
|
-
method: "POST",
|
|
73
|
-
headers: {
|
|
74
|
-
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
75
|
-
"X-Fern-Language": "JavaScript",
|
|
76
|
-
"X-Fern-SDK-Name": "vellum-ai",
|
|
77
|
-
"X-Fern-SDK-Version": "0.1.6",
|
|
78
|
-
},
|
|
79
|
-
contentType: "application/json",
|
|
80
|
-
body: yield serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
81
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
82
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
83
|
-
});
|
|
84
|
-
if (_response.ok) {
|
|
85
|
-
return yield serializers.ExecutePromptResponse.parseOrThrow(_response.body, {
|
|
86
|
-
unrecognizedObjectKeys: "passthrough",
|
|
87
|
-
allowUnrecognizedUnionMembers: true,
|
|
88
|
-
allowUnrecognizedEnumValues: true,
|
|
89
|
-
breadcrumbsPrefix: ["response"],
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
if (_response.error.reason === "status-code") {
|
|
93
|
-
switch (_response.error.statusCode) {
|
|
94
|
-
case 400:
|
|
95
|
-
throw new Vellum.BadRequestError(_response.error.body);
|
|
96
|
-
case 403:
|
|
97
|
-
throw new Vellum.ForbiddenError(_response.error.body);
|
|
98
|
-
case 404:
|
|
99
|
-
throw new Vellum.NotFoundError(_response.error.body);
|
|
100
|
-
case 500:
|
|
101
|
-
throw new Vellum.InternalServerError(_response.error.body);
|
|
102
|
-
default:
|
|
103
|
-
throw new errors.VellumError({
|
|
104
|
-
statusCode: _response.error.statusCode,
|
|
105
|
-
body: _response.error.body,
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
switch (_response.error.reason) {
|
|
110
|
-
case "non-json":
|
|
111
|
-
throw new errors.VellumError({
|
|
112
|
-
statusCode: _response.error.statusCode,
|
|
113
|
-
body: _response.error.rawBody,
|
|
114
|
-
});
|
|
115
|
-
case "timeout":
|
|
116
|
-
throw new errors.VellumTimeoutError();
|
|
117
|
-
case "unknown":
|
|
118
|
-
throw new errors.VellumError({
|
|
119
|
-
message: _response.error.errorMessage,
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* Executes a deployed Prompt and streams back the results.
|
|
126
|
-
* @throws {@link Vellum.BadRequestError}
|
|
127
|
-
* @throws {@link Vellum.ForbiddenError}
|
|
128
|
-
* @throws {@link Vellum.NotFoundError}
|
|
129
|
-
* @throws {@link Vellum.InternalServerError}
|
|
130
|
-
*/
|
|
131
|
-
executePromptStream(request, requestOptions) {
|
|
132
|
-
var _a;
|
|
133
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
134
|
-
const _response = yield core.fetcher({
|
|
135
|
-
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
136
|
-
.default, "v1/execute-prompt-stream"),
|
|
137
|
-
method: "POST",
|
|
138
|
-
headers: {
|
|
139
|
-
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
140
|
-
"X-Fern-Language": "JavaScript",
|
|
141
|
-
"X-Fern-SDK-Name": "vellum-ai",
|
|
142
|
-
"X-Fern-SDK-Version": "0.1.6",
|
|
143
|
-
},
|
|
144
|
-
contentType: "application/json",
|
|
145
|
-
body: yield serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
146
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
147
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
148
|
-
});
|
|
149
|
-
if (_response.ok) {
|
|
150
|
-
return yield serializers.ExecutePromptStreamingResponse.parseOrThrow(_response.body, {
|
|
151
|
-
unrecognizedObjectKeys: "passthrough",
|
|
152
|
-
allowUnrecognizedUnionMembers: true,
|
|
153
|
-
allowUnrecognizedEnumValues: true,
|
|
154
|
-
breadcrumbsPrefix: ["response"],
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
if (_response.error.reason === "status-code") {
|
|
158
|
-
switch (_response.error.statusCode) {
|
|
159
|
-
case 400:
|
|
160
|
-
throw new Vellum.BadRequestError(_response.error.body);
|
|
161
|
-
case 403:
|
|
162
|
-
throw new Vellum.ForbiddenError(_response.error.body);
|
|
163
|
-
case 404:
|
|
164
|
-
throw new Vellum.NotFoundError(_response.error.body);
|
|
165
|
-
case 500:
|
|
166
|
-
throw new Vellum.InternalServerError(_response.error.body);
|
|
167
|
-
default:
|
|
168
|
-
throw new errors.VellumError({
|
|
169
|
-
statusCode: _response.error.statusCode,
|
|
170
|
-
body: _response.error.body,
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
switch (_response.error.reason) {
|
|
175
|
-
case "non-json":
|
|
176
|
-
throw new errors.VellumError({
|
|
177
|
-
statusCode: _response.error.statusCode,
|
|
178
|
-
body: _response.error.rawBody,
|
|
179
|
-
});
|
|
180
|
-
case "timeout":
|
|
181
|
-
throw new errors.VellumTimeoutError();
|
|
182
|
-
case "unknown":
|
|
183
|
-
throw new errors.VellumError({
|
|
184
|
-
message: _response.error.errorMessage,
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
59
|
/**
|
|
190
60
|
* Executes a deployed Workflow and streams back its results.
|
|
191
61
|
*/
|
|
@@ -200,7 +70,7 @@ class VellumClient {
|
|
|
200
70
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
201
71
|
"X-Fern-Language": "JavaScript",
|
|
202
72
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
203
|
-
"X-Fern-SDK-Version": "0.1.
|
|
73
|
+
"X-Fern-SDK-Version": "0.1.8",
|
|
204
74
|
},
|
|
205
75
|
body: yield serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, {
|
|
206
76
|
unrecognizedObjectKeys: "strip",
|
|
@@ -241,7 +111,7 @@ class VellumClient {
|
|
|
241
111
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
242
112
|
"X-Fern-Language": "JavaScript",
|
|
243
113
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
244
|
-
"X-Fern-SDK-Version": "0.1.
|
|
114
|
+
"X-Fern-SDK-Version": "0.1.8",
|
|
245
115
|
},
|
|
246
116
|
contentType: "application/json",
|
|
247
117
|
body: yield serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -261,7 +131,12 @@ class VellumClient {
|
|
|
261
131
|
case 400:
|
|
262
132
|
throw new Vellum.BadRequestError(_response.error.body);
|
|
263
133
|
case 403:
|
|
264
|
-
throw new Vellum.ForbiddenError(_response.error.body
|
|
134
|
+
throw new Vellum.ForbiddenError(yield serializers.GenerateErrorResponse.parseOrThrow(_response.error.body, {
|
|
135
|
+
unrecognizedObjectKeys: "passthrough",
|
|
136
|
+
allowUnrecognizedUnionMembers: true,
|
|
137
|
+
allowUnrecognizedEnumValues: true,
|
|
138
|
+
breadcrumbsPrefix: ["response"],
|
|
139
|
+
}));
|
|
265
140
|
case 404:
|
|
266
141
|
throw new Vellum.NotFoundError(_response.error.body);
|
|
267
142
|
case 500:
|
|
@@ -304,7 +179,7 @@ class VellumClient {
|
|
|
304
179
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
305
180
|
"X-Fern-Language": "JavaScript",
|
|
306
181
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
307
|
-
"X-Fern-SDK-Version": "0.1.
|
|
182
|
+
"X-Fern-SDK-Version": "0.1.8",
|
|
308
183
|
},
|
|
309
184
|
body: yield serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
310
185
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -342,7 +217,7 @@ class VellumClient {
|
|
|
342
217
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
343
218
|
"X-Fern-Language": "JavaScript",
|
|
344
219
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
345
|
-
"X-Fern-SDK-Version": "0.1.
|
|
220
|
+
"X-Fern-SDK-Version": "0.1.8",
|
|
346
221
|
},
|
|
347
222
|
contentType: "application/json",
|
|
348
223
|
body: yield serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -406,7 +281,7 @@ class VellumClient {
|
|
|
406
281
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
407
282
|
"X-Fern-Language": "JavaScript",
|
|
408
283
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
409
|
-
"X-Fern-SDK-Version": "0.1.
|
|
284
|
+
"X-Fern-SDK-Version": "0.1.8",
|
|
410
285
|
},
|
|
411
286
|
contentType: "application/json",
|
|
412
287
|
body: yield serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, {
|
|
@@ -464,7 +339,7 @@ class VellumClient {
|
|
|
464
339
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
465
340
|
"X-Fern-Language": "JavaScript",
|
|
466
341
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
467
|
-
"X-Fern-SDK-Version": "0.1.
|
|
342
|
+
"X-Fern-SDK-Version": "0.1.8",
|
|
468
343
|
},
|
|
469
344
|
contentType: "application/json",
|
|
470
345
|
body: yield serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as errors from "../../errors";
|
|
5
|
+
import * as Vellum from "..";
|
|
5
6
|
export declare class ForbiddenError extends errors.VellumError {
|
|
6
|
-
constructor(body
|
|
7
|
+
constructor(body: Vellum.GenerateErrorResponse);
|
|
7
8
|
}
|
|
@@ -62,7 +62,7 @@ class Deployments {
|
|
|
62
62
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
63
63
|
"X-Fern-Language": "JavaScript",
|
|
64
64
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
65
|
-
"X-Fern-SDK-Version": "0.1.
|
|
65
|
+
"X-Fern-SDK-Version": "0.1.8",
|
|
66
66
|
},
|
|
67
67
|
contentType: "application/json",
|
|
68
68
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -108,7 +108,7 @@ class Deployments {
|
|
|
108
108
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
109
109
|
"X-Fern-Language": "JavaScript",
|
|
110
110
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
111
|
-
"X-Fern-SDK-Version": "0.1.
|
|
111
|
+
"X-Fern-SDK-Version": "0.1.8",
|
|
112
112
|
},
|
|
113
113
|
contentType: "application/json",
|
|
114
114
|
body: yield serializers.DeploymentProviderPayloadRequest.jsonOrThrow(request, {
|
|
@@ -62,7 +62,7 @@ class DocumentIndexes {
|
|
|
62
62
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
63
63
|
"X-Fern-Language": "JavaScript",
|
|
64
64
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
65
|
-
"X-Fern-SDK-Version": "0.1.
|
|
65
|
+
"X-Fern-SDK-Version": "0.1.8",
|
|
66
66
|
},
|
|
67
67
|
contentType: "application/json",
|
|
68
68
|
body: yield serializers.DocumentIndexCreateRequest.jsonOrThrow(request, {
|
|
@@ -114,7 +114,7 @@ class DocumentIndexes {
|
|
|
114
114
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
115
115
|
"X-Fern-Language": "JavaScript",
|
|
116
116
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
117
|
-
"X-Fern-SDK-Version": "0.1.
|
|
117
|
+
"X-Fern-SDK-Version": "0.1.8",
|
|
118
118
|
},
|
|
119
119
|
contentType: "application/json",
|
|
120
120
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -78,7 +78,7 @@ class Documents {
|
|
|
78
78
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
79
79
|
"X-Fern-Language": "JavaScript",
|
|
80
80
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
81
|
-
"X-Fern-SDK-Version": "0.1.
|
|
81
|
+
"X-Fern-SDK-Version": "0.1.8",
|
|
82
82
|
},
|
|
83
83
|
contentType: "application/json",
|
|
84
84
|
queryParameters: _queryParams,
|
|
@@ -125,7 +125,7 @@ class Documents {
|
|
|
125
125
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
126
126
|
"X-Fern-Language": "JavaScript",
|
|
127
127
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
128
|
-
"X-Fern-SDK-Version": "0.1.
|
|
128
|
+
"X-Fern-SDK-Version": "0.1.8",
|
|
129
129
|
},
|
|
130
130
|
contentType: "application/json",
|
|
131
131
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -169,7 +169,7 @@ class Documents {
|
|
|
169
169
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
170
170
|
"X-Fern-Language": "JavaScript",
|
|
171
171
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
172
|
-
"X-Fern-SDK-Version": "0.1.
|
|
172
|
+
"X-Fern-SDK-Version": "0.1.8",
|
|
173
173
|
},
|
|
174
174
|
contentType: "application/json",
|
|
175
175
|
body: yield serializers.PatchedDocumentUpdateRequest.jsonOrThrow(request, {
|
|
@@ -245,7 +245,7 @@ class Documents {
|
|
|
245
245
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
246
246
|
"X-Fern-Language": "JavaScript",
|
|
247
247
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
248
|
-
"X-Fern-SDK-Version": "0.1.
|
|
248
|
+
"X-Fern-SDK-Version": "0.1.8",
|
|
249
249
|
"Content-Length": (yield core.getFormDataContentLength(_request)).toString(),
|
|
250
250
|
},
|
|
251
251
|
contentType: "multipart/form-data; boundary=" + _request.getBoundary(),
|
|
@@ -62,7 +62,7 @@ class ModelVersions {
|
|
|
62
62
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
63
63
|
"X-Fern-Language": "JavaScript",
|
|
64
64
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
65
|
-
"X-Fern-SDK-Version": "0.1.
|
|
65
|
+
"X-Fern-SDK-Version": "0.1.8",
|
|
66
66
|
},
|
|
67
67
|
contentType: "application/json",
|
|
68
68
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -69,7 +69,7 @@ class RegisteredPrompts {
|
|
|
69
69
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
70
70
|
"X-Fern-Language": "JavaScript",
|
|
71
71
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
72
|
-
"X-Fern-SDK-Version": "0.1.
|
|
72
|
+
"X-Fern-SDK-Version": "0.1.8",
|
|
73
73
|
},
|
|
74
74
|
contentType: "application/json",
|
|
75
75
|
body: yield serializers.RegisterPromptRequestRequest.jsonOrThrow(request, {
|
|
@@ -68,7 +68,7 @@ class Sandboxes {
|
|
|
68
68
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
69
69
|
"X-Fern-Language": "JavaScript",
|
|
70
70
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
71
|
-
"X-Fern-SDK-Version": "0.1.
|
|
71
|
+
"X-Fern-SDK-Version": "0.1.8",
|
|
72
72
|
},
|
|
73
73
|
contentType: "application/json",
|
|
74
74
|
body: yield serializers.UpsertSandboxScenarioRequestRequest.jsonOrThrow(request, {
|
|
@@ -120,7 +120,7 @@ class Sandboxes {
|
|
|
120
120
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
121
121
|
"X-Fern-Language": "JavaScript",
|
|
122
122
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
123
|
-
"X-Fern-SDK-Version": "0.1.
|
|
123
|
+
"X-Fern-SDK-Version": "0.1.8",
|
|
124
124
|
},
|
|
125
125
|
contentType: "application/json",
|
|
126
126
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -26,7 +26,7 @@ export declare class TestSuites {
|
|
|
26
26
|
* Note that a full replacement of the test case is performed, so any fields not provided will be removed
|
|
27
27
|
* or overwritten with default values.
|
|
28
28
|
*/
|
|
29
|
-
upsertTestSuiteTestCase(id: string, request: Vellum.
|
|
29
|
+
upsertTestSuiteTestCase(id: string, request: Vellum.UpsertTestSuiteTestCaseRequest, requestOptions?: TestSuites.RequestOptions): Promise<Vellum.TestSuiteTestCase>;
|
|
30
30
|
/**
|
|
31
31
|
* Deletes an existing test case for a test suite, keying off of the test case id.
|
|
32
32
|
*
|
|
@@ -68,10 +68,12 @@ class TestSuites {
|
|
|
68
68
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
69
69
|
"X-Fern-Language": "JavaScript",
|
|
70
70
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
71
|
-
"X-Fern-SDK-Version": "0.1.
|
|
71
|
+
"X-Fern-SDK-Version": "0.1.8",
|
|
72
72
|
},
|
|
73
73
|
contentType: "application/json",
|
|
74
|
-
body: yield serializers.
|
|
74
|
+
body: yield serializers.UpsertTestSuiteTestCaseRequest.jsonOrThrow(request, {
|
|
75
|
+
unrecognizedObjectKeys: "strip",
|
|
76
|
+
}),
|
|
75
77
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
76
78
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
77
79
|
});
|
|
@@ -119,7 +121,7 @@ class TestSuites {
|
|
|
119
121
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
120
122
|
"X-Fern-Language": "JavaScript",
|
|
121
123
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
122
|
-
"X-Fern-SDK-Version": "0.1.
|
|
124
|
+
"X-Fern-SDK-Version": "0.1.8",
|
|
123
125
|
},
|
|
124
126
|
contentType: "application/json",
|
|
125
127
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../../../..";
|
|
5
|
+
export interface UpsertTestSuiteTestCaseRequest {
|
|
6
|
+
upsertTestSuiteTestCaseRequestId?: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
inputValues: Vellum.NamedTestCaseVariableValueRequest[];
|
|
9
|
+
evaluationValues: Vellum.NamedTestCaseVariableValueRequest[];
|
|
10
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { UpsertTestSuiteTestCaseRequest } from "./UpsertTestSuiteTestCaseRequest";
|
package/api/types/{ErrorExecutePromptResponse.d.ts → CodeExecutionNodeChatHistoryResult.d.ts}
RENAMED
|
@@ -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 interface
|
|
6
|
-
|
|
7
|
-
value
|
|
5
|
+
export interface CodeExecutionNodeChatHistoryResult {
|
|
6
|
+
id: string;
|
|
7
|
+
value?: Vellum.ChatMessage[];
|
|
8
8
|
}
|
package/api/types/{StreamingExecutePromptStreamingResponse.d.ts → CodeExecutionNodeErrorResult.d.ts}
RENAMED
|
@@ -2,6 +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 interface
|
|
6
|
-
|
|
5
|
+
export interface CodeExecutionNodeErrorResult {
|
|
6
|
+
id: string;
|
|
7
|
+
value?: Vellum.VellumError;
|
|
7
8
|
}
|
package/api/types/{FulfilledExecutePromptStreamingResponse.d.ts → CodeExecutionNodeResult.d.ts}
RENAMED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Vellum from "..";
|
|
5
|
-
export interface
|
|
6
|
-
data: Vellum.
|
|
5
|
+
export interface CodeExecutionNodeResult {
|
|
6
|
+
data: Vellum.CodeExecutionNodeResultData;
|
|
7
7
|
}
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Vellum from "..";
|
|
5
|
-
export interface
|
|
6
|
-
|
|
5
|
+
export interface CodeExecutionNodeResultData {
|
|
6
|
+
output: Vellum.CodeExecutionNodeResultOutput;
|
|
7
7
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
export declare type CodeExecutionNodeResultOutput = Vellum.CodeExecutionNodeResultOutput.String | Vellum.CodeExecutionNodeResultOutput.Number | Vellum.CodeExecutionNodeResultOutput.Json | Vellum.CodeExecutionNodeResultOutput.ChatHistory | Vellum.CodeExecutionNodeResultOutput.SearchResults | Vellum.CodeExecutionNodeResultOutput.Error_;
|
|
6
|
+
export declare namespace CodeExecutionNodeResultOutput {
|
|
7
|
+
interface String extends Vellum.CodeExecutionNodeStringResult {
|
|
8
|
+
type: "STRING";
|
|
9
|
+
}
|
|
10
|
+
interface Number extends Vellum.CodeExecutionNodeNumberResult {
|
|
11
|
+
type: "NUMBER";
|
|
12
|
+
}
|
|
13
|
+
interface Json extends Vellum.CodeExecutionNodeJsonResult {
|
|
14
|
+
type: "JSON";
|
|
15
|
+
}
|
|
16
|
+
interface ChatHistory extends Vellum.CodeExecutionNodeChatHistoryResult {
|
|
17
|
+
type: "CHAT_HISTORY";
|
|
18
|
+
}
|
|
19
|
+
interface SearchResults extends Vellum.CodeExecutionNodeSearchResultsResult {
|
|
20
|
+
type: "SEARCH_RESULTS";
|
|
21
|
+
}
|
|
22
|
+
interface Error_ extends Vellum.CodeExecutionNodeErrorResult {
|
|
23
|
+
type: "ERROR";
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -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 interface
|
|
6
|
-
|
|
5
|
+
export interface NamedTestCaseChatHistoryVariableValueRequest {
|
|
6
|
+
name: string;
|
|
7
7
|
value?: Vellum.ChatMessageRequest[];
|
|
8
8
|
}
|
|
@@ -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 interface
|
|
6
|
-
|
|
5
|
+
export interface NamedTestCaseErrorVariableValueRequest {
|
|
6
|
+
name: string;
|
|
7
7
|
value?: Vellum.VellumErrorRequest;
|
|
8
8
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export interface
|
|
5
|
-
|
|
4
|
+
export interface NamedTestCaseJsonVariableValueRequest {
|
|
5
|
+
name: string;
|
|
6
6
|
value?: Record<string, unknown>;
|
|
7
7
|
}
|
|
@@ -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 interface
|
|
6
|
-
|
|
5
|
+
export interface NamedTestCaseSearchResultsVariableValueRequest {
|
|
6
|
+
name: string;
|
|
7
7
|
value?: Vellum.SearchResultRequest[];
|
|
8
8
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
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_;
|
|
6
|
+
export declare namespace NamedTestCaseVariableValueRequest {
|
|
7
|
+
interface String extends Vellum.NamedTestCaseStringVariableValueRequest {
|
|
8
|
+
type: "STRING";
|
|
9
|
+
}
|
|
10
|
+
interface Number extends Vellum.NamedTestCaseNumberVariableValueRequest {
|
|
11
|
+
type: "NUMBER";
|
|
12
|
+
}
|
|
13
|
+
interface Json extends Vellum.NamedTestCaseJsonVariableValueRequest {
|
|
14
|
+
type: "JSON";
|
|
15
|
+
}
|
|
16
|
+
interface ChatHistory extends Vellum.NamedTestCaseChatHistoryVariableValueRequest {
|
|
17
|
+
type: "CHAT_HISTORY";
|
|
18
|
+
}
|
|
19
|
+
interface SearchResults extends Vellum.NamedTestCaseSearchResultsVariableValueRequest {
|
|
20
|
+
type: "SEARCH_RESULTS";
|
|
21
|
+
}
|
|
22
|
+
interface Error_ extends Vellum.NamedTestCaseErrorVariableValueRequest {
|
|
23
|
+
type: "ERROR";
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -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 WorkflowNodeResultData = Vellum.WorkflowNodeResultData.Prompt | Vellum.WorkflowNodeResultData.Search | Vellum.WorkflowNodeResultData.Templating | Vellum.WorkflowNodeResultData.Conditional | Vellum.WorkflowNodeResultData.Api | Vellum.WorkflowNodeResultData.Terminal;
|
|
5
|
+
export declare type WorkflowNodeResultData = Vellum.WorkflowNodeResultData.Prompt | Vellum.WorkflowNodeResultData.Search | Vellum.WorkflowNodeResultData.Templating | Vellum.WorkflowNodeResultData.CodeExecution | Vellum.WorkflowNodeResultData.Conditional | Vellum.WorkflowNodeResultData.Api | Vellum.WorkflowNodeResultData.Terminal;
|
|
6
6
|
export declare namespace WorkflowNodeResultData {
|
|
7
7
|
interface Prompt extends Vellum.PromptNodeResult {
|
|
8
8
|
type: "PROMPT";
|
|
@@ -13,6 +13,9 @@ export declare namespace WorkflowNodeResultData {
|
|
|
13
13
|
interface Templating extends Vellum.TemplatingNodeResult {
|
|
14
14
|
type: "TEMPLATING";
|
|
15
15
|
}
|
|
16
|
+
interface CodeExecution extends Vellum.CodeExecutionNodeResult {
|
|
17
|
+
type: "CODE_EXECUTION";
|
|
18
|
+
}
|
|
16
19
|
interface Conditional extends Vellum.ConditionalNodeResult {
|
|
17
20
|
type: "CONDITIONAL";
|
|
18
21
|
}
|