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/api/types/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export * from "./ExecutePromptRequest";
|
|
2
1
|
export * from "./ApiNodeResult";
|
|
3
2
|
export * from "./ApiNodeResultData";
|
|
4
3
|
export * from "./BlockTypeEnum";
|
|
@@ -6,6 +5,15 @@ export * from "./ChatHistoryInputRequest";
|
|
|
6
5
|
export * from "./ChatMessage";
|
|
7
6
|
export * from "./ChatMessageRequest";
|
|
8
7
|
export * from "./ChatMessageRole";
|
|
8
|
+
export * from "./CodeExecutionNodeChatHistoryResult";
|
|
9
|
+
export * from "./CodeExecutionNodeErrorResult";
|
|
10
|
+
export * from "./CodeExecutionNodeJsonResult";
|
|
11
|
+
export * from "./CodeExecutionNodeNumberResult";
|
|
12
|
+
export * from "./CodeExecutionNodeResult";
|
|
13
|
+
export * from "./CodeExecutionNodeResultData";
|
|
14
|
+
export * from "./CodeExecutionNodeResultOutput";
|
|
15
|
+
export * from "./CodeExecutionNodeSearchResultsResult";
|
|
16
|
+
export * from "./CodeExecutionNodeStringResult";
|
|
9
17
|
export * from "./ConditionalNodeResult";
|
|
10
18
|
export * from "./ConditionalNodeResultData";
|
|
11
19
|
export * from "./DeploymentProviderPayloadResponse";
|
|
@@ -18,15 +26,10 @@ export * from "./DocumentRead";
|
|
|
18
26
|
export * from "./DocumentStatus";
|
|
19
27
|
export * from "./EnrichedNormalizedCompletion";
|
|
20
28
|
export * from "./EnvironmentEnum";
|
|
21
|
-
export * from "./ErrorExecutePromptResponse";
|
|
22
29
|
export * from "./EvaluationParams";
|
|
23
30
|
export * from "./EvaluationParamsRequest";
|
|
24
|
-
export * from "./ExecutePromptApiErrorResponse";
|
|
25
|
-
export * from "./ExecutePromptResponse";
|
|
26
|
-
export * from "./ExecutePromptStreamingResponse";
|
|
27
31
|
export * from "./ExecuteWorkflowStreamErrorResponse";
|
|
28
32
|
export * from "./FinishReasonEnum";
|
|
29
|
-
export * from "./FulfilledExecutePromptStreamingResponse";
|
|
30
33
|
export * from "./GenerateErrorResponse";
|
|
31
34
|
export * from "./GenerateOptionsRequest";
|
|
32
35
|
export * from "./GenerateRequest";
|
|
@@ -38,9 +41,6 @@ export * from "./GenerateStreamResponse";
|
|
|
38
41
|
export * from "./GenerateStreamResult";
|
|
39
42
|
export * from "./GenerateStreamResultData";
|
|
40
43
|
export * from "./IndexingStateEnum";
|
|
41
|
-
export * from "./InitiatedExecutePromptResponse";
|
|
42
|
-
export * from "./InitiatedExecutePromptStreamingResponse";
|
|
43
|
-
export * from "./JsonExecutePromptResponse";
|
|
44
44
|
export * from "./JsonInputRequest";
|
|
45
45
|
export * from "./LogicalOperator";
|
|
46
46
|
export * from "./LogprobsEnum";
|
|
@@ -53,6 +53,13 @@ export * from "./ModelVersionExecConfigParameters";
|
|
|
53
53
|
export * from "./ModelVersionRead";
|
|
54
54
|
export * from "./ModelVersionReadStatusEnum";
|
|
55
55
|
export * from "./ModelVersionSandboxSnapshot";
|
|
56
|
+
export * from "./NamedTestCaseChatHistoryVariableValueRequest";
|
|
57
|
+
export * from "./NamedTestCaseErrorVariableValueRequest";
|
|
58
|
+
export * from "./NamedTestCaseJsonVariableValueRequest";
|
|
59
|
+
export * from "./NamedTestCaseNumberVariableValueRequest";
|
|
60
|
+
export * from "./NamedTestCaseSearchResultsVariableValueRequest";
|
|
61
|
+
export * from "./NamedTestCaseStringVariableValueRequest";
|
|
62
|
+
export * from "./NamedTestCaseVariableValueRequest";
|
|
56
63
|
export * from "./NodeInputCompiledChatHistoryValue";
|
|
57
64
|
export * from "./NodeInputCompiledErrorValue";
|
|
58
65
|
export * from "./NodeInputCompiledJsonValue";
|
|
@@ -85,8 +92,6 @@ export * from "./RegisteredPromptInputVariableRequest";
|
|
|
85
92
|
export * from "./RegisteredPromptModelVersion";
|
|
86
93
|
export * from "./RegisteredPromptSandbox";
|
|
87
94
|
export * from "./RegisteredPromptSandboxSnapshot";
|
|
88
|
-
export * from "./RejectedExecutePromptResponse";
|
|
89
|
-
export * from "./RejectedExecutePromptStreamingResponse";
|
|
90
95
|
export * from "./SandboxMetricInputParams";
|
|
91
96
|
export * from "./SandboxMetricInputParamsRequest";
|
|
92
97
|
export * from "./SandboxScenario";
|
|
@@ -106,8 +111,6 @@ export * from "./SearchResultMergingRequest";
|
|
|
106
111
|
export * from "./SearchResultRequest";
|
|
107
112
|
export * from "./SearchWeightsRequest";
|
|
108
113
|
export * from "./SlimDocument";
|
|
109
|
-
export * from "./StreamingExecutePromptStreamingResponse";
|
|
110
|
-
export * from "./StringExecutePromptResponse";
|
|
111
114
|
export * from "./StringInputRequest";
|
|
112
115
|
export * from "./SubmitCompletionActualRequest";
|
|
113
116
|
export * from "./SubmitCompletionActualsErrorResponse";
|
|
@@ -131,19 +134,12 @@ export * from "./TerminalNodeResultOutput";
|
|
|
131
134
|
export * from "./TerminalNodeSearchResultsResult";
|
|
132
135
|
export * from "./TerminalNodeStringResult";
|
|
133
136
|
export * from "./TestCaseChatHistoryVariableValue";
|
|
134
|
-
export * from "./TestCaseChatHistoryVariableValueRequest";
|
|
135
137
|
export * from "./TestCaseErrorVariableValue";
|
|
136
|
-
export * from "./TestCaseErrorVariableValueRequest";
|
|
137
138
|
export * from "./TestCaseJsonVariableValue";
|
|
138
|
-
export * from "./TestCaseJsonVariableValueRequest";
|
|
139
139
|
export * from "./TestCaseNumberVariableValue";
|
|
140
|
-
export * from "./TestCaseNumberVariableValueRequest";
|
|
141
140
|
export * from "./TestCaseSearchResultsVariableValue";
|
|
142
|
-
export * from "./TestCaseSearchResultsVariableValueRequest";
|
|
143
141
|
export * from "./TestCaseStringVariableValue";
|
|
144
|
-
export * from "./TestCaseStringVariableValueRequest";
|
|
145
142
|
export * from "./TestCaseVariableValue";
|
|
146
|
-
export * from "./TestCaseVariableValueRequest";
|
|
147
143
|
export * from "./TestSuiteTestCase";
|
|
148
144
|
export * from "./UploadDocumentErrorResponse";
|
|
149
145
|
export * from "./UploadDocumentResponse";
|
package/api/types/index.js
CHANGED
|
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./ExecutePromptRequest"), exports);
|
|
18
17
|
__exportStar(require("./ApiNodeResult"), exports);
|
|
19
18
|
__exportStar(require("./ApiNodeResultData"), exports);
|
|
20
19
|
__exportStar(require("./BlockTypeEnum"), exports);
|
|
@@ -22,6 +21,15 @@ __exportStar(require("./ChatHistoryInputRequest"), exports);
|
|
|
22
21
|
__exportStar(require("./ChatMessage"), exports);
|
|
23
22
|
__exportStar(require("./ChatMessageRequest"), exports);
|
|
24
23
|
__exportStar(require("./ChatMessageRole"), exports);
|
|
24
|
+
__exportStar(require("./CodeExecutionNodeChatHistoryResult"), exports);
|
|
25
|
+
__exportStar(require("./CodeExecutionNodeErrorResult"), exports);
|
|
26
|
+
__exportStar(require("./CodeExecutionNodeJsonResult"), exports);
|
|
27
|
+
__exportStar(require("./CodeExecutionNodeNumberResult"), exports);
|
|
28
|
+
__exportStar(require("./CodeExecutionNodeResult"), exports);
|
|
29
|
+
__exportStar(require("./CodeExecutionNodeResultData"), exports);
|
|
30
|
+
__exportStar(require("./CodeExecutionNodeResultOutput"), exports);
|
|
31
|
+
__exportStar(require("./CodeExecutionNodeSearchResultsResult"), exports);
|
|
32
|
+
__exportStar(require("./CodeExecutionNodeStringResult"), exports);
|
|
25
33
|
__exportStar(require("./ConditionalNodeResult"), exports);
|
|
26
34
|
__exportStar(require("./ConditionalNodeResultData"), exports);
|
|
27
35
|
__exportStar(require("./DeploymentProviderPayloadResponse"), exports);
|
|
@@ -34,15 +42,10 @@ __exportStar(require("./DocumentRead"), exports);
|
|
|
34
42
|
__exportStar(require("./DocumentStatus"), exports);
|
|
35
43
|
__exportStar(require("./EnrichedNormalizedCompletion"), exports);
|
|
36
44
|
__exportStar(require("./EnvironmentEnum"), exports);
|
|
37
|
-
__exportStar(require("./ErrorExecutePromptResponse"), exports);
|
|
38
45
|
__exportStar(require("./EvaluationParams"), exports);
|
|
39
46
|
__exportStar(require("./EvaluationParamsRequest"), exports);
|
|
40
|
-
__exportStar(require("./ExecutePromptApiErrorResponse"), exports);
|
|
41
|
-
__exportStar(require("./ExecutePromptResponse"), exports);
|
|
42
|
-
__exportStar(require("./ExecutePromptStreamingResponse"), exports);
|
|
43
47
|
__exportStar(require("./ExecuteWorkflowStreamErrorResponse"), exports);
|
|
44
48
|
__exportStar(require("./FinishReasonEnum"), exports);
|
|
45
|
-
__exportStar(require("./FulfilledExecutePromptStreamingResponse"), exports);
|
|
46
49
|
__exportStar(require("./GenerateErrorResponse"), exports);
|
|
47
50
|
__exportStar(require("./GenerateOptionsRequest"), exports);
|
|
48
51
|
__exportStar(require("./GenerateRequest"), exports);
|
|
@@ -54,9 +57,6 @@ __exportStar(require("./GenerateStreamResponse"), exports);
|
|
|
54
57
|
__exportStar(require("./GenerateStreamResult"), exports);
|
|
55
58
|
__exportStar(require("./GenerateStreamResultData"), exports);
|
|
56
59
|
__exportStar(require("./IndexingStateEnum"), exports);
|
|
57
|
-
__exportStar(require("./InitiatedExecutePromptResponse"), exports);
|
|
58
|
-
__exportStar(require("./InitiatedExecutePromptStreamingResponse"), exports);
|
|
59
|
-
__exportStar(require("./JsonExecutePromptResponse"), exports);
|
|
60
60
|
__exportStar(require("./JsonInputRequest"), exports);
|
|
61
61
|
__exportStar(require("./LogicalOperator"), exports);
|
|
62
62
|
__exportStar(require("./LogprobsEnum"), exports);
|
|
@@ -69,6 +69,13 @@ __exportStar(require("./ModelVersionExecConfigParameters"), exports);
|
|
|
69
69
|
__exportStar(require("./ModelVersionRead"), exports);
|
|
70
70
|
__exportStar(require("./ModelVersionReadStatusEnum"), exports);
|
|
71
71
|
__exportStar(require("./ModelVersionSandboxSnapshot"), exports);
|
|
72
|
+
__exportStar(require("./NamedTestCaseChatHistoryVariableValueRequest"), exports);
|
|
73
|
+
__exportStar(require("./NamedTestCaseErrorVariableValueRequest"), exports);
|
|
74
|
+
__exportStar(require("./NamedTestCaseJsonVariableValueRequest"), exports);
|
|
75
|
+
__exportStar(require("./NamedTestCaseNumberVariableValueRequest"), exports);
|
|
76
|
+
__exportStar(require("./NamedTestCaseSearchResultsVariableValueRequest"), exports);
|
|
77
|
+
__exportStar(require("./NamedTestCaseStringVariableValueRequest"), exports);
|
|
78
|
+
__exportStar(require("./NamedTestCaseVariableValueRequest"), exports);
|
|
72
79
|
__exportStar(require("./NodeInputCompiledChatHistoryValue"), exports);
|
|
73
80
|
__exportStar(require("./NodeInputCompiledErrorValue"), exports);
|
|
74
81
|
__exportStar(require("./NodeInputCompiledJsonValue"), exports);
|
|
@@ -101,8 +108,6 @@ __exportStar(require("./RegisteredPromptInputVariableRequest"), exports);
|
|
|
101
108
|
__exportStar(require("./RegisteredPromptModelVersion"), exports);
|
|
102
109
|
__exportStar(require("./RegisteredPromptSandbox"), exports);
|
|
103
110
|
__exportStar(require("./RegisteredPromptSandboxSnapshot"), exports);
|
|
104
|
-
__exportStar(require("./RejectedExecutePromptResponse"), exports);
|
|
105
|
-
__exportStar(require("./RejectedExecutePromptStreamingResponse"), exports);
|
|
106
111
|
__exportStar(require("./SandboxMetricInputParams"), exports);
|
|
107
112
|
__exportStar(require("./SandboxMetricInputParamsRequest"), exports);
|
|
108
113
|
__exportStar(require("./SandboxScenario"), exports);
|
|
@@ -122,8 +127,6 @@ __exportStar(require("./SearchResultMergingRequest"), exports);
|
|
|
122
127
|
__exportStar(require("./SearchResultRequest"), exports);
|
|
123
128
|
__exportStar(require("./SearchWeightsRequest"), exports);
|
|
124
129
|
__exportStar(require("./SlimDocument"), exports);
|
|
125
|
-
__exportStar(require("./StreamingExecutePromptStreamingResponse"), exports);
|
|
126
|
-
__exportStar(require("./StringExecutePromptResponse"), exports);
|
|
127
130
|
__exportStar(require("./StringInputRequest"), exports);
|
|
128
131
|
__exportStar(require("./SubmitCompletionActualRequest"), exports);
|
|
129
132
|
__exportStar(require("./SubmitCompletionActualsErrorResponse"), exports);
|
|
@@ -147,19 +150,12 @@ __exportStar(require("./TerminalNodeResultOutput"), exports);
|
|
|
147
150
|
__exportStar(require("./TerminalNodeSearchResultsResult"), exports);
|
|
148
151
|
__exportStar(require("./TerminalNodeStringResult"), exports);
|
|
149
152
|
__exportStar(require("./TestCaseChatHistoryVariableValue"), exports);
|
|
150
|
-
__exportStar(require("./TestCaseChatHistoryVariableValueRequest"), exports);
|
|
151
153
|
__exportStar(require("./TestCaseErrorVariableValue"), exports);
|
|
152
|
-
__exportStar(require("./TestCaseErrorVariableValueRequest"), exports);
|
|
153
154
|
__exportStar(require("./TestCaseJsonVariableValue"), exports);
|
|
154
|
-
__exportStar(require("./TestCaseJsonVariableValueRequest"), exports);
|
|
155
155
|
__exportStar(require("./TestCaseNumberVariableValue"), exports);
|
|
156
|
-
__exportStar(require("./TestCaseNumberVariableValueRequest"), exports);
|
|
157
156
|
__exportStar(require("./TestCaseSearchResultsVariableValue"), exports);
|
|
158
|
-
__exportStar(require("./TestCaseSearchResultsVariableValueRequest"), exports);
|
|
159
157
|
__exportStar(require("./TestCaseStringVariableValue"), exports);
|
|
160
|
-
__exportStar(require("./TestCaseStringVariableValueRequest"), exports);
|
|
161
158
|
__exportStar(require("./TestCaseVariableValue"), exports);
|
|
162
|
-
__exportStar(require("./TestCaseVariableValueRequest"), exports);
|
|
163
159
|
__exportStar(require("./TestSuiteTestCase"), exports);
|
|
164
160
|
__exportStar(require("./UploadDocumentErrorResponse"), exports);
|
|
165
161
|
__exportStar(require("./UploadDocumentResponse"), exports);
|
package/dist/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/dist/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/dist/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
|
}
|
|
@@ -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
|
}
|