vellum-ai 0.1.7 → 0.1.9
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 +21 -5
- package/Client.js +137 -44
- package/api/{types → client/requests}/ExecutePromptRequest.d.ts +7 -1
- package/api/client/requests/ExecutePromptStreamRequest.d.ts +20 -0
- package/api/client/requests/GenerateBodyRequest.d.ts +11 -0
- package/api/client/requests/SubmitCompletionActualsRequest.d.ts +6 -0
- package/api/client/requests/SubmitWorkflowExecutionActualsRequest.d.ts +6 -0
- package/api/client/requests/index.d.ts +2 -0
- package/api/resources/deployments/client/Client.js +2 -2
- package/api/resources/deployments/client/requests/DeploymentProviderPayloadRequest.d.ts +6 -0
- package/api/resources/documentIndexes/client/Client.js +2 -2
- package/api/resources/documents/client/Client.d.ts +3 -0
- package/api/resources/documents/client/Client.js +7 -5
- package/api/resources/documents/client/requests/DocumentsListRequest.d.ts +4 -0
- package/api/resources/modelVersions/client/Client.js +1 -1
- package/api/resources/registeredPrompts/client/Client.js +1 -1
- package/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +1 -0
- package/api/resources/sandboxes/client/Client.d.ts +3 -0
- package/api/resources/sandboxes/client/Client.js +5 -2
- package/api/resources/testSuites/client/Client.d.ts +9 -1
- package/api/resources/testSuites/client/Client.js +13 -3
- package/api/resources/testSuites/client/requests/UpsertTestSuiteTestCaseRequest.d.ts +17 -0
- package/api/resources/testSuites/client/requests/index.d.ts +1 -1
- package/api/types/BlockTypeEnum.d.ts +4 -4
- package/api/types/ChatMessageRole.d.ts +4 -4
- package/{dist/api/types/ErrorExecutePromptResponse.d.ts → api/types/CodeExecutionNodeChatHistoryResult.d.ts} +3 -3
- package/api/types/{FulfilledExecutePromptStreamingResponse.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/{dist/api/types/FulfilledExecutePromptStreamingResponse.d.ts → api/types/CodeExecutionNodeResult.d.ts} +2 -2
- package/{dist/api/types/StreamingExecutePromptStreamingResponse.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/DeploymentRead.d.ts +6 -6
- package/api/types/DeploymentStatus.d.ts +3 -3
- package/api/types/DocumentDocumentToDocumentIndex.d.ts +5 -5
- package/api/types/DocumentIndexRead.d.ts +5 -5
- package/api/types/DocumentIndexStatus.d.ts +2 -2
- package/api/types/DocumentRead.d.ts +5 -5
- package/api/types/EnrichedNormalizedCompletion.d.ts +3 -3
- package/api/types/EnvironmentEnum.d.ts +3 -3
- package/api/types/{StreamingExecutePromptStreamingResponse.d.ts → ErrorVariableValue.d.ts} +2 -2
- package/api/types/ExecutePromptEvent.d.ts +19 -0
- package/api/types/ExecutePromptResponse.d.ts +5 -8
- package/api/types/FinishReasonEnum.d.ts +3 -3
- package/api/types/FulfilledEnum.d.ts +4 -0
- package/api/types/FulfilledExecutePromptEvent.d.ts +12 -0
- package/api/types/FulfilledExecutePromptResponse.d.ts +15 -0
- package/api/types/FulfilledPromptExecutionMeta.d.ts +11 -0
- package/api/types/GenerateOptionsRequest.d.ts +2 -2
- package/api/types/IndexingStateEnum.d.ts +5 -5
- package/api/types/InitiatedEnum.d.ts +4 -0
- package/api/types/InitiatedExecutePromptEvent.d.ts +11 -0
- package/api/types/InitiatedPromptExecutionMeta.d.ts +12 -0
- package/api/types/{TestCaseJsonVariableValueRequest.d.ts → JsonVariableValue.d.ts} +1 -2
- package/api/types/LogicalOperator.d.ts +18 -18
- package/api/types/LogprobsEnum.d.ts +2 -2
- package/api/types/MetadataFilterRuleCombinator.d.ts +2 -2
- package/api/types/ModelVersionRead.d.ts +13 -12
- package/api/types/ModelVersionReadStatusEnum.d.ts +4 -4
- 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/NamedTestCaseJsonVariableValueRequest.d.ts +7 -0
- 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/ProcessingFailureReasonEnum.d.ts +2 -2
- package/api/types/ProcessingStateEnum.d.ts +4 -4
- package/api/types/PromptDeploymentExpandMetaRequestRequest.d.ts +15 -0
- package/api/types/PromptExecutionMeta.d.ts +14 -0
- package/api/types/PromptOutput.d.ts +16 -0
- package/api/types/ProviderEnum.d.ts +15 -13
- package/api/types/ProviderEnum.js +1 -0
- package/api/types/RawPromptExecutionOverridesRequest.d.ts +10 -0
- package/api/types/RejectedEnum.d.ts +4 -0
- package/api/types/RejectedExecutePromptEvent.d.ts +12 -0
- package/api/types/RejectedExecutePromptResponse.d.ts +8 -2
- package/api/types/RejectedPromptExecutionMeta.d.ts +11 -0
- package/api/types/ScenarioInputTypeEnum.d.ts +2 -2
- package/api/types/SlimDocument.d.ts +7 -7
- package/api/types/StreamingEnum.d.ts +4 -0
- package/api/types/StreamingEnum.js +5 -0
- package/api/types/StreamingExecutePromptEvent.d.ts +15 -0
- package/api/types/StreamingExecutePromptEvent.js +5 -0
- package/api/types/StreamingPromptExecutionMeta.d.ts +9 -0
- package/api/types/StreamingPromptExecutionMeta.js +5 -0
- package/api/types/StringVariableValue.d.ts +6 -0
- package/api/types/StringVariableValue.js +5 -0
- package/api/types/VellumErrorCodeEnum.d.ts +3 -3
- package/api/types/VellumVariableType.d.ts +9 -7
- package/api/types/VellumVariableType.js +1 -0
- package/api/types/WorkflowExecutionEventErrorCode.d.ts +6 -6
- package/api/types/WorkflowExecutionEventType.d.ts +2 -2
- package/api/types/WorkflowNodeResultData.d.ts +4 -1
- package/api/types/WorkflowNodeResultEventState.d.ts +4 -4
- package/api/types/WorkflowRequestInputRequest.d.ts +4 -1
- package/api/types/WorkflowRequestNumberInputRequest.d.ts +8 -0
- package/api/types/WorkflowRequestNumberInputRequest.js +5 -0
- package/api/types/index.d.ts +38 -17
- package/api/types/index.js +38 -17
- package/core/fetcher/APIResponse.d.ts +1 -0
- package/core/fetcher/Fetcher.d.ts +1 -4
- package/core/fetcher/Fetcher.js +52 -31
- package/core/fetcher/getHeader.d.ts +1 -0
- package/core/{streaming-fetcher → fetcher}/getHeader.js +2 -2
- package/core/fetcher/index.d.ts +1 -0
- package/core/fetcher/index.js +3 -1
- package/core/index.d.ts +0 -1
- package/core/index.js +0 -1
- package/core/streaming-fetcher/Stream.d.ts +3 -2
- package/core/streaming-fetcher/index.d.ts +0 -3
- package/core/streaming-fetcher/index.js +1 -5
- package/dist/Client.d.ts +21 -5
- package/dist/Client.js +137 -44
- package/dist/api/{types → client/requests}/ExecutePromptRequest.d.ts +7 -1
- package/dist/api/client/requests/ExecutePromptRequest.js +5 -0
- package/dist/api/client/requests/ExecutePromptStreamRequest.d.ts +20 -0
- package/dist/api/client/requests/ExecutePromptStreamRequest.js +5 -0
- package/dist/api/client/requests/GenerateBodyRequest.d.ts +11 -0
- package/dist/api/client/requests/SubmitCompletionActualsRequest.d.ts +6 -0
- package/dist/api/client/requests/SubmitWorkflowExecutionActualsRequest.d.ts +6 -0
- package/dist/api/client/requests/index.d.ts +2 -0
- package/dist/api/resources/deployments/client/Client.js +2 -2
- package/dist/api/resources/deployments/client/requests/DeploymentProviderPayloadRequest.d.ts +6 -0
- package/dist/api/resources/documentIndexes/client/Client.js +2 -2
- package/dist/api/resources/documents/client/Client.d.ts +3 -0
- package/dist/api/resources/documents/client/Client.js +7 -5
- package/dist/api/resources/documents/client/requests/DocumentsListRequest.d.ts +4 -0
- package/dist/api/resources/modelVersions/client/Client.js +1 -1
- package/dist/api/resources/registeredPrompts/client/Client.js +1 -1
- package/dist/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +1 -0
- package/dist/api/resources/sandboxes/client/Client.d.ts +3 -0
- package/dist/api/resources/sandboxes/client/Client.js +5 -2
- package/dist/api/resources/testSuites/client/Client.d.ts +9 -1
- package/dist/api/resources/testSuites/client/Client.js +13 -3
- package/dist/api/resources/testSuites/client/requests/UpsertTestSuiteTestCaseRequest.d.ts +17 -0
- package/dist/api/resources/testSuites/client/requests/UpsertTestSuiteTestCaseRequest.js +5 -0
- package/dist/api/resources/testSuites/client/requests/index.d.ts +1 -1
- package/dist/api/types/BlockTypeEnum.d.ts +4 -4
- package/dist/api/types/ChatMessageRole.d.ts +4 -4
- package/{api/types/ErrorExecutePromptResponse.d.ts → dist/api/types/CodeExecutionNodeChatHistoryResult.d.ts} +3 -3
- package/dist/api/types/CodeExecutionNodeChatHistoryResult.js +5 -0
- package/dist/api/types/CodeExecutionNodeErrorResult.d.ts +8 -0
- package/dist/api/types/CodeExecutionNodeErrorResult.js +5 -0
- package/dist/api/types/CodeExecutionNodeJsonResult.d.ts +7 -0
- package/dist/api/types/CodeExecutionNodeJsonResult.js +5 -0
- package/dist/api/types/CodeExecutionNodeNumberResult.d.ts +7 -0
- package/dist/api/types/CodeExecutionNodeNumberResult.js +5 -0
- package/dist/api/types/CodeExecutionNodeResult.d.ts +7 -0
- package/dist/api/types/CodeExecutionNodeResult.js +5 -0
- package/dist/api/types/CodeExecutionNodeResultData.d.ts +7 -0
- package/dist/api/types/CodeExecutionNodeResultData.js +5 -0
- package/dist/api/types/CodeExecutionNodeResultOutput.d.ts +25 -0
- package/dist/api/types/CodeExecutionNodeResultOutput.js +5 -0
- package/dist/api/types/CodeExecutionNodeSearchResultsResult.d.ts +8 -0
- package/dist/api/types/CodeExecutionNodeSearchResultsResult.js +5 -0
- package/dist/api/types/CodeExecutionNodeStringResult.d.ts +7 -0
- package/dist/api/types/CodeExecutionNodeStringResult.js +5 -0
- package/dist/api/types/DeploymentRead.d.ts +6 -6
- package/dist/api/types/DeploymentStatus.d.ts +3 -3
- package/dist/api/types/DocumentDocumentToDocumentIndex.d.ts +5 -5
- package/dist/api/types/DocumentIndexRead.d.ts +5 -5
- package/dist/api/types/DocumentIndexStatus.d.ts +2 -2
- package/dist/api/types/DocumentRead.d.ts +5 -5
- package/dist/api/types/EnrichedNormalizedCompletion.d.ts +3 -3
- package/dist/api/types/EnvironmentEnum.d.ts +3 -3
- package/dist/api/types/ErrorVariableValue.d.ts +7 -0
- package/dist/api/types/ErrorVariableValue.js +5 -0
- package/dist/api/types/ExecutePromptEvent.d.ts +19 -0
- package/dist/api/types/ExecutePromptEvent.js +5 -0
- package/dist/api/types/ExecutePromptResponse.d.ts +5 -8
- package/dist/api/types/FinishReasonEnum.d.ts +3 -3
- package/dist/api/types/FulfilledEnum.d.ts +4 -0
- package/dist/api/types/FulfilledEnum.js +5 -0
- package/dist/api/types/FulfilledExecutePromptEvent.d.ts +12 -0
- package/dist/api/types/FulfilledExecutePromptEvent.js +5 -0
- package/dist/api/types/FulfilledExecutePromptResponse.d.ts +15 -0
- package/dist/api/types/FulfilledExecutePromptResponse.js +5 -0
- package/dist/api/types/FulfilledPromptExecutionMeta.d.ts +11 -0
- package/dist/api/types/FulfilledPromptExecutionMeta.js +5 -0
- package/dist/api/types/GenerateOptionsRequest.d.ts +2 -2
- package/dist/api/types/IndexingStateEnum.d.ts +5 -5
- package/dist/api/types/InitiatedEnum.d.ts +4 -0
- package/dist/api/types/InitiatedEnum.js +5 -0
- package/dist/api/types/InitiatedExecutePromptEvent.d.ts +11 -0
- package/dist/api/types/InitiatedExecutePromptEvent.js +5 -0
- package/dist/api/types/InitiatedPromptExecutionMeta.d.ts +12 -0
- package/dist/api/types/InitiatedPromptExecutionMeta.js +5 -0
- package/dist/api/types/JsonVariableValue.d.ts +6 -0
- package/dist/api/types/JsonVariableValue.js +5 -0
- package/dist/api/types/LogicalOperator.d.ts +18 -18
- package/dist/api/types/LogprobsEnum.d.ts +2 -2
- package/dist/api/types/MetadataFilterRuleCombinator.d.ts +2 -2
- package/dist/api/types/ModelVersionRead.d.ts +13 -12
- package/dist/api/types/ModelVersionReadStatusEnum.d.ts +4 -4
- package/dist/api/types/{TestCaseChatHistoryVariableValueRequest.d.ts → NamedTestCaseChatHistoryVariableValueRequest.d.ts} +2 -2
- package/dist/api/types/NamedTestCaseChatHistoryVariableValueRequest.js +5 -0
- package/dist/api/types/{TestCaseErrorVariableValueRequest.d.ts → NamedTestCaseErrorVariableValueRequest.d.ts} +2 -2
- package/dist/api/types/NamedTestCaseErrorVariableValueRequest.js +5 -0
- package/dist/api/types/NamedTestCaseJsonVariableValueRequest.d.ts +7 -0
- package/dist/api/types/NamedTestCaseJsonVariableValueRequest.js +5 -0
- package/dist/api/types/NamedTestCaseNumberVariableValueRequest.d.ts +7 -0
- package/dist/api/types/NamedTestCaseNumberVariableValueRequest.js +5 -0
- package/dist/api/types/{TestCaseSearchResultsVariableValueRequest.d.ts → NamedTestCaseSearchResultsVariableValueRequest.d.ts} +2 -2
- package/dist/api/types/NamedTestCaseSearchResultsVariableValueRequest.js +5 -0
- package/dist/api/types/NamedTestCaseStringVariableValueRequest.d.ts +7 -0
- package/dist/api/types/NamedTestCaseStringVariableValueRequest.js +5 -0
- package/dist/api/types/NamedTestCaseVariableValueRequest.d.ts +25 -0
- package/dist/api/types/NamedTestCaseVariableValueRequest.js +5 -0
- package/dist/api/types/ProcessingFailureReasonEnum.d.ts +2 -2
- package/dist/api/types/ProcessingStateEnum.d.ts +4 -4
- package/dist/api/types/PromptDeploymentExpandMetaRequestRequest.d.ts +15 -0
- package/dist/api/types/PromptDeploymentExpandMetaRequestRequest.js +5 -0
- package/dist/api/types/PromptExecutionMeta.d.ts +14 -0
- package/dist/api/types/PromptExecutionMeta.js +5 -0
- package/dist/api/types/PromptOutput.d.ts +16 -0
- package/dist/api/types/PromptOutput.js +5 -0
- package/dist/api/types/ProviderEnum.d.ts +15 -13
- package/dist/api/types/ProviderEnum.js +1 -0
- package/dist/api/types/RawPromptExecutionOverridesRequest.d.ts +10 -0
- package/dist/api/types/RawPromptExecutionOverridesRequest.js +5 -0
- package/dist/api/types/RejectedEnum.d.ts +4 -0
- package/dist/api/types/RejectedEnum.js +5 -0
- package/dist/api/types/RejectedExecutePromptEvent.d.ts +12 -0
- package/dist/api/types/RejectedExecutePromptEvent.js +5 -0
- package/dist/api/types/RejectedExecutePromptResponse.d.ts +8 -2
- package/dist/api/types/RejectedPromptExecutionMeta.d.ts +11 -0
- package/dist/api/types/RejectedPromptExecutionMeta.js +5 -0
- package/dist/api/types/ScenarioInputTypeEnum.d.ts +2 -2
- package/dist/api/types/SlimDocument.d.ts +7 -7
- package/dist/api/types/StreamingEnum.d.ts +4 -0
- package/dist/api/types/StreamingEnum.js +5 -0
- package/dist/api/types/StreamingExecutePromptEvent.d.ts +15 -0
- package/dist/api/types/StreamingExecutePromptEvent.js +5 -0
- package/dist/api/types/StreamingPromptExecutionMeta.d.ts +9 -0
- package/dist/api/types/StreamingPromptExecutionMeta.js +5 -0
- package/dist/api/types/StringVariableValue.d.ts +6 -0
- package/dist/api/types/StringVariableValue.js +5 -0
- package/dist/api/types/VellumErrorCodeEnum.d.ts +3 -3
- package/dist/api/types/VellumVariableType.d.ts +9 -7
- package/dist/api/types/VellumVariableType.js +1 -0
- package/dist/api/types/WorkflowExecutionEventErrorCode.d.ts +6 -6
- package/dist/api/types/WorkflowExecutionEventType.d.ts +2 -2
- package/dist/api/types/WorkflowNodeResultData.d.ts +4 -1
- package/dist/api/types/WorkflowNodeResultEventState.d.ts +4 -4
- package/dist/api/types/WorkflowRequestInputRequest.d.ts +4 -1
- package/dist/api/types/WorkflowRequestNumberInputRequest.d.ts +8 -0
- package/dist/api/types/WorkflowRequestNumberInputRequest.js +5 -0
- package/dist/api/types/index.d.ts +38 -17
- package/dist/api/types/index.js +38 -17
- package/dist/core/fetcher/APIResponse.d.ts +1 -0
- package/dist/core/fetcher/Fetcher.d.ts +1 -4
- package/dist/core/fetcher/Fetcher.js +52 -31
- package/dist/core/fetcher/getHeader.d.ts +1 -0
- package/dist/core/{streaming-fetcher → fetcher}/getHeader.js +2 -2
- package/dist/core/fetcher/index.d.ts +1 -0
- package/dist/core/fetcher/index.js +3 -1
- package/dist/core/index.d.ts +0 -1
- package/dist/core/index.js +0 -1
- package/dist/core/streaming-fetcher/Stream.d.ts +3 -2
- package/dist/core/streaming-fetcher/index.d.ts +0 -3
- package/dist/core/streaming-fetcher/index.js +1 -5
- package/dist/serialization/client/requests/ExecutePromptRequest.d.ts +20 -0
- package/dist/serialization/{types → client/requests}/ExecutePromptRequest.js +8 -2
- package/dist/serialization/client/requests/ExecutePromptStreamRequest.d.ts +20 -0
- package/dist/serialization/client/requests/ExecutePromptStreamRequest.js +52 -0
- package/dist/serialization/client/requests/index.d.ts +2 -0
- package/dist/serialization/client/requests/index.js +5 -1
- package/dist/serialization/resources/testSuites/client/requests/UpsertTestSuiteTestCaseRequest.d.ts +15 -0
- package/{serialization/resources/testSuites/client/requests/TestSuiteTestCaseRequest.js → dist/serialization/resources/testSuites/client/requests/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/dist/serialization/types/{TestCaseJsonVariableValueRequest.js → CodeExecutionNodeJsonResult.js} +3 -3
- package/{serialization/types/InitiatedExecutePromptResponse.d.ts → dist/serialization/types/CodeExecutionNodeNumberResult.d.ts} +4 -4
- package/{serialization/types/TestCaseNumberVariableValueRequest.js → dist/serialization/types/CodeExecutionNodeNumberResult.js} +3 -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/FulfilledExecutePromptStreamingResponse.js → dist/serialization/types/CodeExecutionNodeResultData.js} +3 -3
- package/dist/serialization/types/CodeExecutionNodeResultOutput.d.ts +28 -0
- package/dist/serialization/types/{TestCaseVariableValueRequest.js → 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/{TestCaseStringVariableValueRequest.js → CodeExecutionNodeStringResult.js} +3 -3
- package/dist/serialization/types/ErrorVariableValue.d.ts +12 -0
- package/dist/serialization/types/{ErrorExecutePromptResponse.js → ErrorVariableValue.js} +3 -4
- package/dist/serialization/types/{ExecutePromptStreamingResponse.d.ts → ExecutePromptEvent.d.ts} +7 -7
- package/dist/serialization/types/{ExecutePromptStreamingResponse.js → ExecutePromptEvent.js} +6 -6
- package/dist/serialization/types/ExecutePromptResponse.d.ts +5 -8
- package/dist/serialization/types/ExecutePromptResponse.js +3 -4
- package/dist/serialization/types/FulfilledEnum.d.ts +10 -0
- package/dist/serialization/types/FulfilledEnum.js +31 -0
- package/dist/serialization/types/FulfilledExecutePromptEvent.d.ts +14 -0
- package/dist/serialization/types/FulfilledExecutePromptEvent.js +44 -0
- package/dist/serialization/types/FulfilledExecutePromptResponse.d.ts +15 -0
- package/dist/serialization/types/FulfilledExecutePromptResponse.js +45 -0
- package/dist/serialization/types/FulfilledPromptExecutionMeta.d.ts +13 -0
- package/dist/serialization/types/FulfilledPromptExecutionMeta.js +43 -0
- package/dist/serialization/types/InitiatedEnum.d.ts +10 -0
- package/dist/serialization/types/InitiatedEnum.js +31 -0
- package/dist/serialization/types/InitiatedExecutePromptEvent.d.ts +13 -0
- package/dist/serialization/types/{InitiatedExecutePromptResponse.js → InitiatedExecutePromptEvent.js} +3 -3
- package/dist/serialization/types/InitiatedPromptExecutionMeta.d.ts +15 -0
- package/dist/serialization/types/InitiatedPromptExecutionMeta.js +36 -0
- package/dist/serialization/types/JsonVariableValue.d.ts +12 -0
- package/{serialization/types/TestCaseJsonVariableValueRequest.js → dist/serialization/types/JsonVariableValue.js} +2 -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/{JsonExecutePromptResponse.js → NamedTestCaseJsonVariableValueRequest.js} +4 -4
- package/dist/serialization/types/NamedTestCaseNumberVariableValueRequest.d.ts +13 -0
- package/dist/serialization/types/{TestCaseNumberVariableValueRequest.js → 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/dist/serialization/types/NamedTestCaseVariableValueRequest.js +52 -0
- package/dist/serialization/types/PromptDeploymentExpandMetaRequestRequest.d.ts +16 -0
- package/dist/serialization/types/PromptDeploymentExpandMetaRequestRequest.js +37 -0
- package/dist/serialization/types/PromptExecutionMeta.d.ts +16 -0
- package/dist/serialization/types/PromptExecutionMeta.js +46 -0
- package/dist/serialization/types/PromptOutput.d.ts +19 -0
- package/dist/serialization/types/PromptOutput.js +49 -0
- package/dist/serialization/types/ProviderEnum.d.ts +1 -1
- package/dist/serialization/types/ProviderEnum.js +1 -0
- package/dist/serialization/types/RawPromptExecutionOverridesRequest.d.ts +14 -0
- package/dist/serialization/types/RawPromptExecutionOverridesRequest.js +35 -0
- package/dist/serialization/types/RejectedEnum.d.ts +10 -0
- package/dist/serialization/types/RejectedEnum.js +31 -0
- package/dist/serialization/types/RejectedExecutePromptEvent.d.ts +14 -0
- package/dist/serialization/types/RejectedExecutePromptEvent.js +44 -0
- package/dist/serialization/types/RejectedExecutePromptResponse.d.ts +3 -2
- package/dist/serialization/types/RejectedExecutePromptResponse.js +3 -2
- package/dist/serialization/types/RejectedPromptExecutionMeta.d.ts +13 -0
- package/dist/serialization/types/{InitiatedExecutePromptStreamingResponse.js → RejectedPromptExecutionMeta.js} +4 -3
- package/dist/serialization/types/StreamingEnum.d.ts +10 -0
- package/dist/serialization/types/StreamingEnum.js +31 -0
- package/dist/serialization/types/StreamingExecutePromptEvent.d.ts +16 -0
- package/dist/serialization/types/StreamingExecutePromptEvent.js +46 -0
- package/dist/serialization/types/StreamingPromptExecutionMeta.d.ts +12 -0
- package/{serialization/types/StringExecutePromptResponse.js → dist/serialization/types/StreamingPromptExecutionMeta.js} +3 -4
- package/dist/serialization/types/StringVariableValue.d.ts +12 -0
- package/dist/serialization/types/{StringExecutePromptResponse.js → StringVariableValue.js} +3 -4
- package/dist/serialization/types/VellumVariableType.d.ts +1 -1
- package/dist/serialization/types/VellumVariableType.js +1 -1
- package/dist/serialization/types/WorkflowNodeResultData.d.ts +4 -1
- package/dist/serialization/types/WorkflowNodeResultData.js +1 -0
- package/dist/serialization/types/WorkflowRequestInputRequest.d.ts +4 -1
- package/dist/serialization/types/WorkflowRequestInputRequest.js +1 -0
- package/dist/serialization/types/WorkflowRequestNumberInputRequest.d.ts +13 -0
- package/dist/serialization/types/WorkflowRequestNumberInputRequest.js +34 -0
- package/dist/serialization/types/index.d.ts +38 -17
- package/dist/serialization/types/index.js +38 -17
- package/package.json +6 -5
- package/serialization/client/requests/ExecutePromptRequest.d.ts +20 -0
- package/serialization/{types → client/requests}/ExecutePromptRequest.js +8 -2
- package/serialization/client/requests/ExecutePromptStreamRequest.d.ts +20 -0
- package/serialization/client/requests/ExecutePromptStreamRequest.js +52 -0
- package/serialization/client/requests/index.d.ts +2 -0
- package/serialization/client/requests/index.js +5 -1
- package/serialization/resources/testSuites/client/requests/UpsertTestSuiteTestCaseRequest.d.ts +15 -0
- package/{dist/serialization/resources/testSuites/client/requests/TestSuiteTestCaseRequest.js → serialization/resources/testSuites/client/requests/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/serialization/types/CodeExecutionNodeErrorResult.js +43 -0
- package/serialization/types/CodeExecutionNodeJsonResult.d.ts +13 -0
- package/serialization/types/{JsonExecutePromptResponse.js → CodeExecutionNodeJsonResult.js} +4 -4
- package/{dist/serialization/types/InitiatedExecutePromptResponse.d.ts → serialization/types/CodeExecutionNodeNumberResult.d.ts} +4 -4
- package/serialization/types/CodeExecutionNodeNumberResult.js +34 -0
- 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/{dist/serialization/types/FulfilledExecutePromptStreamingResponse.js → serialization/types/CodeExecutionNodeResultData.js} +3 -3
- package/serialization/types/CodeExecutionNodeResultOutput.d.ts +28 -0
- package/serialization/types/{TestCaseVariableValueRequest.js → 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/serialization/types/CodeExecutionNodeStringResult.js +34 -0
- package/serialization/types/ErrorVariableValue.d.ts +12 -0
- package/serialization/types/ErrorVariableValue.js +42 -0
- package/serialization/types/{ExecutePromptStreamingResponse.d.ts → ExecutePromptEvent.d.ts} +7 -7
- package/serialization/types/{ExecutePromptStreamingResponse.js → ExecutePromptEvent.js} +6 -6
- package/serialization/types/ExecutePromptResponse.d.ts +5 -8
- package/serialization/types/ExecutePromptResponse.js +3 -4
- package/serialization/types/FulfilledEnum.d.ts +10 -0
- package/serialization/types/FulfilledEnum.js +31 -0
- package/serialization/types/FulfilledExecutePromptEvent.d.ts +14 -0
- package/serialization/types/FulfilledExecutePromptEvent.js +44 -0
- package/serialization/types/FulfilledExecutePromptResponse.d.ts +15 -0
- package/serialization/types/FulfilledExecutePromptResponse.js +45 -0
- package/serialization/types/FulfilledPromptExecutionMeta.d.ts +13 -0
- package/serialization/types/FulfilledPromptExecutionMeta.js +43 -0
- package/serialization/types/InitiatedEnum.d.ts +10 -0
- package/serialization/types/InitiatedEnum.js +31 -0
- package/serialization/types/InitiatedExecutePromptEvent.d.ts +13 -0
- package/serialization/types/{InitiatedExecutePromptResponse.js → InitiatedExecutePromptEvent.js} +3 -3
- package/serialization/types/InitiatedPromptExecutionMeta.d.ts +15 -0
- package/serialization/types/InitiatedPromptExecutionMeta.js +36 -0
- package/serialization/types/JsonVariableValue.d.ts +12 -0
- package/serialization/types/JsonVariableValue.js +33 -0
- 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/NamedTestCaseJsonVariableValueRequest.js +34 -0
- 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/serialization/types/NamedTestCaseVariableValueRequest.js +52 -0
- package/serialization/types/PromptDeploymentExpandMetaRequestRequest.d.ts +16 -0
- package/serialization/types/PromptDeploymentExpandMetaRequestRequest.js +37 -0
- package/serialization/types/PromptExecutionMeta.d.ts +16 -0
- package/serialization/types/PromptExecutionMeta.js +46 -0
- package/serialization/types/PromptOutput.d.ts +19 -0
- package/serialization/types/PromptOutput.js +49 -0
- package/serialization/types/ProviderEnum.d.ts +1 -1
- package/serialization/types/ProviderEnum.js +1 -0
- package/serialization/types/RawPromptExecutionOverridesRequest.d.ts +14 -0
- package/serialization/types/RawPromptExecutionOverridesRequest.js +35 -0
- package/serialization/types/RejectedEnum.d.ts +10 -0
- package/serialization/types/RejectedEnum.js +31 -0
- package/serialization/types/RejectedExecutePromptEvent.d.ts +14 -0
- package/serialization/types/RejectedExecutePromptEvent.js +44 -0
- package/serialization/types/RejectedExecutePromptResponse.d.ts +3 -2
- package/serialization/types/RejectedExecutePromptResponse.js +3 -2
- package/serialization/types/RejectedPromptExecutionMeta.d.ts +13 -0
- package/serialization/types/RejectedPromptExecutionMeta.js +43 -0
- package/serialization/types/StreamingEnum.d.ts +10 -0
- package/serialization/types/StreamingEnum.js +31 -0
- package/serialization/types/StreamingExecutePromptEvent.d.ts +16 -0
- package/serialization/types/StreamingExecutePromptEvent.js +46 -0
- package/serialization/types/StreamingPromptExecutionMeta.d.ts +12 -0
- package/serialization/types/StreamingPromptExecutionMeta.js +33 -0
- package/serialization/types/StringVariableValue.d.ts +12 -0
- package/serialization/types/StringVariableValue.js +33 -0
- package/serialization/types/VellumVariableType.d.ts +1 -1
- package/serialization/types/VellumVariableType.js +1 -1
- package/serialization/types/WorkflowNodeResultData.d.ts +4 -1
- package/serialization/types/WorkflowNodeResultData.js +1 -0
- package/serialization/types/WorkflowRequestInputRequest.d.ts +4 -1
- package/serialization/types/WorkflowRequestInputRequest.js +1 -0
- package/serialization/types/WorkflowRequestNumberInputRequest.d.ts +13 -0
- package/serialization/types/WorkflowRequestNumberInputRequest.js +34 -0
- package/serialization/types/index.d.ts +38 -17
- package/serialization/types/index.js +38 -17
- package/api/resources/testSuites/client/requests/TestSuiteTestCaseRequest.d.ts +0 -10
- 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/RejectedExecutePromptStreamingResponse.d.ts +0 -7
- package/api/types/StringExecutePromptResponse.d.ts +0 -7
- package/api/types/TestCaseVariableValueRequest.d.ts +0 -25
- package/core/form-data-utils/getFormDataContentLength.d.ts +0 -2
- package/core/form-data-utils/getFormDataContentLength.js +0 -27
- package/core/form-data-utils/index.d.ts +0 -1
- package/core/form-data-utils/index.js +0 -5
- package/core/streaming-fetcher/StreamingFetcher.d.ts +0 -24
- package/core/streaming-fetcher/StreamingFetcher.js +0 -58
- package/core/streaming-fetcher/getHeader.d.ts +0 -2
- package/dist/api/resources/testSuites/client/requests/TestSuiteTestCaseRequest.d.ts +0 -10
- 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/RejectedExecutePromptStreamingResponse.d.ts +0 -7
- package/dist/api/types/StringExecutePromptResponse.d.ts +0 -7
- package/dist/api/types/TestCaseVariableValueRequest.d.ts +0 -25
- package/dist/core/form-data-utils/getFormDataContentLength.d.ts +0 -2
- package/dist/core/form-data-utils/getFormDataContentLength.js +0 -27
- package/dist/core/form-data-utils/index.d.ts +0 -1
- package/dist/core/form-data-utils/index.js +0 -5
- package/dist/core/streaming-fetcher/StreamingFetcher.d.ts +0 -24
- package/dist/core/streaming-fetcher/StreamingFetcher.js +0 -58
- package/dist/core/streaming-fetcher/getHeader.d.ts +0 -2
- 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/ExecutePromptRequest.d.ts +0 -16
- package/dist/serialization/types/FulfilledExecutePromptStreamingResponse.d.ts +0 -12
- package/dist/serialization/types/InitiatedExecutePromptStreamingResponse.d.ts +0 -12
- package/dist/serialization/types/JsonExecutePromptResponse.d.ts +0 -13
- 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/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/ExecutePromptRequest.d.ts +0 -16
- package/serialization/types/FulfilledExecutePromptStreamingResponse.d.ts +0 -12
- 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/RejectedExecutePromptStreamingResponse.d.ts +0 -12
- package/serialization/types/StreamingExecutePromptStreamingResponse.d.ts +0 -12
- package/serialization/types/StreamingExecutePromptStreamingResponse.js +0 -42
- package/serialization/types/StringExecutePromptResponse.d.ts +0 -13
- 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/{types → client/requests}/ExecutePromptRequest.js +0 -0
- /package/api/{resources/testSuites/client/requests/TestSuiteTestCaseRequest.js → client/requests/ExecutePromptStreamRequest.js} +0 -0
- /package/api/{types/ErrorExecutePromptResponse.js → resources/testSuites/client/requests/UpsertTestSuiteTestCaseRequest.js} +0 -0
- /package/api/types/{ExecutePromptStreamingResponse.js → CodeExecutionNodeChatHistoryResult.js} +0 -0
- /package/api/types/{FulfilledExecutePromptStreamingResponse.js → CodeExecutionNodeErrorResult.js} +0 -0
- /package/api/types/{InitiatedExecutePromptResponse.js → CodeExecutionNodeJsonResult.js} +0 -0
- /package/api/types/{InitiatedExecutePromptStreamingResponse.js → CodeExecutionNodeNumberResult.js} +0 -0
- /package/api/types/{JsonExecutePromptResponse.js → CodeExecutionNodeResult.js} +0 -0
- /package/api/types/{RejectedExecutePromptStreamingResponse.js → CodeExecutionNodeResultData.js} +0 -0
- /package/api/types/{StreamingExecutePromptStreamingResponse.js → CodeExecutionNodeResultOutput.js} +0 -0
- /package/api/types/{StringExecutePromptResponse.js → CodeExecutionNodeSearchResultsResult.js} +0 -0
- /package/api/types/{TestCaseChatHistoryVariableValueRequest.js → CodeExecutionNodeStringResult.js} +0 -0
- /package/api/types/{TestCaseErrorVariableValueRequest.js → ErrorVariableValue.js} +0 -0
- /package/api/types/{TestCaseJsonVariableValueRequest.js → ExecutePromptEvent.js} +0 -0
- /package/api/types/{TestCaseNumberVariableValueRequest.js → FulfilledEnum.js} +0 -0
- /package/api/types/{TestCaseSearchResultsVariableValueRequest.js → FulfilledExecutePromptEvent.js} +0 -0
- /package/api/types/{TestCaseStringVariableValueRequest.js → FulfilledExecutePromptResponse.js} +0 -0
- /package/api/types/{TestCaseVariableValueRequest.js → FulfilledPromptExecutionMeta.js} +0 -0
- /package/{dist/api/resources/testSuites/client/requests/TestSuiteTestCaseRequest.js → api/types/InitiatedEnum.js} +0 -0
- /package/{dist/api/types/ErrorExecutePromptResponse.js → api/types/InitiatedExecutePromptEvent.js} +0 -0
- /package/{dist/api/types/ExecutePromptRequest.js → api/types/InitiatedPromptExecutionMeta.js} +0 -0
- /package/{dist/api/types/ExecutePromptStreamingResponse.js → api/types/JsonVariableValue.js} +0 -0
- /package/{dist/api/types/FulfilledExecutePromptStreamingResponse.js → api/types/NamedTestCaseChatHistoryVariableValueRequest.js} +0 -0
- /package/{dist/api/types/InitiatedExecutePromptResponse.js → api/types/NamedTestCaseErrorVariableValueRequest.js} +0 -0
- /package/{dist/api/types/InitiatedExecutePromptStreamingResponse.js → api/types/NamedTestCaseJsonVariableValueRequest.js} +0 -0
- /package/{dist/api/types/JsonExecutePromptResponse.js → api/types/NamedTestCaseNumberVariableValueRequest.js} +0 -0
- /package/{dist/api/types/RejectedExecutePromptStreamingResponse.js → api/types/NamedTestCaseSearchResultsVariableValueRequest.js} +0 -0
- /package/{dist/api/types/StreamingExecutePromptStreamingResponse.js → api/types/NamedTestCaseStringVariableValueRequest.js} +0 -0
- /package/{dist/api/types/StringExecutePromptResponse.js → api/types/NamedTestCaseVariableValueRequest.js} +0 -0
- /package/{dist/api/types/TestCaseChatHistoryVariableValueRequest.js → api/types/PromptDeploymentExpandMetaRequestRequest.js} +0 -0
- /package/{dist/api/types/TestCaseErrorVariableValueRequest.js → api/types/PromptExecutionMeta.js} +0 -0
- /package/{dist/api/types/TestCaseJsonVariableValueRequest.js → api/types/PromptOutput.js} +0 -0
- /package/{dist/api/types/TestCaseNumberVariableValueRequest.js → api/types/RawPromptExecutionOverridesRequest.js} +0 -0
- /package/{dist/api/types/TestCaseSearchResultsVariableValueRequest.js → api/types/RejectedEnum.js} +0 -0
- /package/{dist/api/types/TestCaseStringVariableValueRequest.js → api/types/RejectedExecutePromptEvent.js} +0 -0
- /package/{dist/api/types/TestCaseVariableValueRequest.js → api/types/RejectedPromptExecutionMeta.js} +0 -0
package/Client.d.ts
CHANGED
|
@@ -34,12 +34,8 @@ export declare class VellumClient {
|
|
|
34
34
|
executePrompt(request: Vellum.ExecutePromptRequest, requestOptions?: VellumClient.RequestOptions): Promise<Vellum.ExecutePromptResponse>;
|
|
35
35
|
/**
|
|
36
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
37
|
*/
|
|
42
|
-
executePromptStream(request: Vellum.
|
|
38
|
+
executePromptStream(request: Vellum.ExecutePromptStreamRequest, requestOptions?: VellumClient.RequestOptions): Promise<core.Stream<Vellum.ExecutePromptEvent>>;
|
|
43
39
|
/**
|
|
44
40
|
* Executes a deployed Workflow and streams back its results.
|
|
45
41
|
*/
|
|
@@ -52,6 +48,16 @@ export declare class VellumClient {
|
|
|
52
48
|
* @throws {@link Vellum.ForbiddenError}
|
|
53
49
|
* @throws {@link Vellum.NotFoundError}
|
|
54
50
|
* @throws {@link Vellum.InternalServerError}
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* await vellum.generate({
|
|
54
|
+
* requests: [{
|
|
55
|
+
* inputValues: {}
|
|
56
|
+
* }],
|
|
57
|
+
* options: {
|
|
58
|
+
* logprobs: Vellum.LogprobsEnum.All
|
|
59
|
+
* }
|
|
60
|
+
* })
|
|
55
61
|
*/
|
|
56
62
|
generate(request: Vellum.GenerateBodyRequest, requestOptions?: VellumClient.RequestOptions): Promise<Vellum.GenerateResponse>;
|
|
57
63
|
/**
|
|
@@ -76,12 +82,22 @@ export declare class VellumClient {
|
|
|
76
82
|
* @throws {@link Vellum.BadRequestError}
|
|
77
83
|
* @throws {@link Vellum.NotFoundError}
|
|
78
84
|
* @throws {@link Vellum.InternalServerError}
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* await vellum.submitCompletionActuals({
|
|
88
|
+
* actuals: []
|
|
89
|
+
* })
|
|
79
90
|
*/
|
|
80
91
|
submitCompletionActuals(request: Vellum.SubmitCompletionActualsRequest, requestOptions?: VellumClient.RequestOptions): Promise<void>;
|
|
81
92
|
/**
|
|
82
93
|
* Used to submit feedback regarding the quality of previous workflow execution and its outputs.
|
|
83
94
|
*
|
|
84
95
|
* **Note:** Uses a base url of `https://predict.vellum.ai`.
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* await vellum.submitWorkflowExecutionActuals({
|
|
99
|
+
* actuals: []
|
|
100
|
+
* })
|
|
85
101
|
*/
|
|
86
102
|
submitWorkflowExecutionActuals(request: Vellum.SubmitWorkflowExecutionActualsRequest, requestOptions?: VellumClient.RequestOptions): Promise<void>;
|
|
87
103
|
protected _deployments: Deployments | undefined;
|
package/Client.js
CHANGED
|
@@ -68,13 +68,13 @@ class VellumClient {
|
|
|
68
68
|
return __awaiter(this, void 0, void 0, function* () {
|
|
69
69
|
const _response = yield core.fetcher({
|
|
70
70
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
71
|
-
.
|
|
71
|
+
.predict, "v1/execute-prompt"),
|
|
72
72
|
method: "POST",
|
|
73
73
|
headers: {
|
|
74
74
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
75
75
|
"X-Fern-Language": "JavaScript",
|
|
76
76
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
77
|
-
"X-Fern-SDK-Version": "
|
|
77
|
+
"X-Fern-SDK-Version": "v0.1.9",
|
|
78
78
|
},
|
|
79
79
|
contentType: "application/json",
|
|
80
80
|
body: yield serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -123,35 +123,40 @@ class VellumClient {
|
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
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
126
|
*/
|
|
131
127
|
executePromptStream(request, requestOptions) {
|
|
132
128
|
var _a;
|
|
133
129
|
return __awaiter(this, void 0, void 0, function* () {
|
|
134
130
|
const _response = yield core.fetcher({
|
|
135
131
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
136
|
-
.
|
|
132
|
+
.predict, "v1/execute-prompt-stream"),
|
|
137
133
|
method: "POST",
|
|
138
134
|
headers: {
|
|
139
135
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
140
136
|
"X-Fern-Language": "JavaScript",
|
|
141
137
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
142
|
-
"X-Fern-SDK-Version": "
|
|
138
|
+
"X-Fern-SDK-Version": "v0.1.9",
|
|
143
139
|
},
|
|
144
140
|
contentType: "application/json",
|
|
145
|
-
body: yield serializers.
|
|
141
|
+
body: yield serializers.ExecutePromptStreamRequest.jsonOrThrow(request, {
|
|
142
|
+
unrecognizedObjectKeys: "strip",
|
|
143
|
+
}),
|
|
144
|
+
responseType: "streaming",
|
|
146
145
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
147
146
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
148
147
|
});
|
|
149
148
|
if (_response.ok) {
|
|
150
|
-
return
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
149
|
+
return new core.Stream({
|
|
150
|
+
stream: _response.body,
|
|
151
|
+
terminator: "\n",
|
|
152
|
+
parse: (data) => __awaiter(this, void 0, void 0, function* () {
|
|
153
|
+
return yield serializers.ExecutePromptEvent.parseOrThrow(data, {
|
|
154
|
+
unrecognizedObjectKeys: "passthrough",
|
|
155
|
+
allowUnrecognizedUnionMembers: true,
|
|
156
|
+
allowUnrecognizedEnumValues: true,
|
|
157
|
+
breadcrumbsPrefix: ["response"],
|
|
158
|
+
});
|
|
159
|
+
}),
|
|
155
160
|
});
|
|
156
161
|
}
|
|
157
162
|
if (_response.error.reason === "status-code") {
|
|
@@ -192,7 +197,7 @@ class VellumClient {
|
|
|
192
197
|
executeWorkflowStream(request, requestOptions) {
|
|
193
198
|
var _a;
|
|
194
199
|
return __awaiter(this, void 0, void 0, function* () {
|
|
195
|
-
const _response = yield core.
|
|
200
|
+
const _response = yield core.fetcher({
|
|
196
201
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
197
202
|
.predict, "v1/execute-workflow-stream"),
|
|
198
203
|
method: "POST",
|
|
@@ -200,25 +205,58 @@ class VellumClient {
|
|
|
200
205
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
201
206
|
"X-Fern-Language": "JavaScript",
|
|
202
207
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
203
|
-
"X-Fern-SDK-Version": "
|
|
208
|
+
"X-Fern-SDK-Version": "v0.1.9",
|
|
204
209
|
},
|
|
210
|
+
contentType: "application/json",
|
|
205
211
|
body: yield serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, {
|
|
206
212
|
unrecognizedObjectKeys: "strip",
|
|
207
213
|
}),
|
|
214
|
+
responseType: "streaming",
|
|
208
215
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
216
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
209
217
|
});
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
218
|
+
if (_response.ok) {
|
|
219
|
+
return new core.Stream({
|
|
220
|
+
stream: _response.body,
|
|
221
|
+
terminator: "\n",
|
|
222
|
+
parse: (data) => __awaiter(this, void 0, void 0, function* () {
|
|
223
|
+
return yield serializers.WorkflowStreamEvent.parseOrThrow(data, {
|
|
224
|
+
unrecognizedObjectKeys: "passthrough",
|
|
225
|
+
allowUnrecognizedUnionMembers: true,
|
|
226
|
+
allowUnrecognizedEnumValues: true,
|
|
227
|
+
breadcrumbsPrefix: ["response"],
|
|
228
|
+
});
|
|
229
|
+
}),
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
if (_response.error.reason === "status-code") {
|
|
233
|
+
switch (_response.error.statusCode) {
|
|
234
|
+
case 400:
|
|
235
|
+
throw new Vellum.BadRequestError(_response.error.body);
|
|
236
|
+
case 404:
|
|
237
|
+
throw new Vellum.NotFoundError(_response.error.body);
|
|
238
|
+
case 500:
|
|
239
|
+
throw new Vellum.InternalServerError(_response.error.body);
|
|
240
|
+
default:
|
|
241
|
+
throw new errors.VellumError({
|
|
242
|
+
statusCode: _response.error.statusCode,
|
|
243
|
+
body: _response.error.body,
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
switch (_response.error.reason) {
|
|
248
|
+
case "non-json":
|
|
249
|
+
throw new errors.VellumError({
|
|
250
|
+
statusCode: _response.error.statusCode,
|
|
251
|
+
body: _response.error.rawBody,
|
|
219
252
|
});
|
|
220
|
-
|
|
221
|
-
|
|
253
|
+
case "timeout":
|
|
254
|
+
throw new errors.VellumTimeoutError();
|
|
255
|
+
case "unknown":
|
|
256
|
+
throw new errors.VellumError({
|
|
257
|
+
message: _response.error.errorMessage,
|
|
258
|
+
});
|
|
259
|
+
}
|
|
222
260
|
});
|
|
223
261
|
}
|
|
224
262
|
/**
|
|
@@ -229,6 +267,16 @@ class VellumClient {
|
|
|
229
267
|
* @throws {@link Vellum.ForbiddenError}
|
|
230
268
|
* @throws {@link Vellum.NotFoundError}
|
|
231
269
|
* @throws {@link Vellum.InternalServerError}
|
|
270
|
+
*
|
|
271
|
+
* @example
|
|
272
|
+
* await vellum.generate({
|
|
273
|
+
* requests: [{
|
|
274
|
+
* inputValues: {}
|
|
275
|
+
* }],
|
|
276
|
+
* options: {
|
|
277
|
+
* logprobs: Vellum.LogprobsEnum.All
|
|
278
|
+
* }
|
|
279
|
+
* })
|
|
232
280
|
*/
|
|
233
281
|
generate(request, requestOptions) {
|
|
234
282
|
var _a;
|
|
@@ -241,7 +289,7 @@ class VellumClient {
|
|
|
241
289
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
242
290
|
"X-Fern-Language": "JavaScript",
|
|
243
291
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
244
|
-
"X-Fern-SDK-Version": "
|
|
292
|
+
"X-Fern-SDK-Version": "v0.1.9",
|
|
245
293
|
},
|
|
246
294
|
contentType: "application/json",
|
|
247
295
|
body: yield serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -296,7 +344,7 @@ class VellumClient {
|
|
|
296
344
|
generateStream(request, requestOptions) {
|
|
297
345
|
var _a;
|
|
298
346
|
return __awaiter(this, void 0, void 0, function* () {
|
|
299
|
-
const _response = yield core.
|
|
347
|
+
const _response = yield core.fetcher({
|
|
300
348
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
301
349
|
.predict, "v1/generate-stream"),
|
|
302
350
|
method: "POST",
|
|
@@ -304,23 +352,58 @@ class VellumClient {
|
|
|
304
352
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
305
353
|
"X-Fern-Language": "JavaScript",
|
|
306
354
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
307
|
-
"X-Fern-SDK-Version": "
|
|
355
|
+
"X-Fern-SDK-Version": "v0.1.9",
|
|
308
356
|
},
|
|
357
|
+
contentType: "application/json",
|
|
309
358
|
body: yield serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
359
|
+
responseType: "streaming",
|
|
310
360
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
361
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
311
362
|
});
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
363
|
+
if (_response.ok) {
|
|
364
|
+
return new core.Stream({
|
|
365
|
+
stream: _response.body,
|
|
366
|
+
terminator: "\n",
|
|
367
|
+
parse: (data) => __awaiter(this, void 0, void 0, function* () {
|
|
368
|
+
return yield serializers.GenerateStreamResponse.parseOrThrow(data, {
|
|
369
|
+
unrecognizedObjectKeys: "passthrough",
|
|
370
|
+
allowUnrecognizedUnionMembers: true,
|
|
371
|
+
allowUnrecognizedEnumValues: true,
|
|
372
|
+
breadcrumbsPrefix: ["response"],
|
|
373
|
+
});
|
|
374
|
+
}),
|
|
375
|
+
});
|
|
376
|
+
}
|
|
377
|
+
if (_response.error.reason === "status-code") {
|
|
378
|
+
switch (_response.error.statusCode) {
|
|
379
|
+
case 400:
|
|
380
|
+
throw new Vellum.BadRequestError(_response.error.body);
|
|
381
|
+
case 403:
|
|
382
|
+
throw new Vellum.ForbiddenError(_response.error.body);
|
|
383
|
+
case 404:
|
|
384
|
+
throw new Vellum.NotFoundError(_response.error.body);
|
|
385
|
+
case 500:
|
|
386
|
+
throw new Vellum.InternalServerError(_response.error.body);
|
|
387
|
+
default:
|
|
388
|
+
throw new errors.VellumError({
|
|
389
|
+
statusCode: _response.error.statusCode,
|
|
390
|
+
body: _response.error.body,
|
|
391
|
+
});
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
switch (_response.error.reason) {
|
|
395
|
+
case "non-json":
|
|
396
|
+
throw new errors.VellumError({
|
|
397
|
+
statusCode: _response.error.statusCode,
|
|
398
|
+
body: _response.error.rawBody,
|
|
321
399
|
});
|
|
322
|
-
|
|
323
|
-
|
|
400
|
+
case "timeout":
|
|
401
|
+
throw new errors.VellumTimeoutError();
|
|
402
|
+
case "unknown":
|
|
403
|
+
throw new errors.VellumError({
|
|
404
|
+
message: _response.error.errorMessage,
|
|
405
|
+
});
|
|
406
|
+
}
|
|
324
407
|
});
|
|
325
408
|
}
|
|
326
409
|
/**
|
|
@@ -342,7 +425,7 @@ class VellumClient {
|
|
|
342
425
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
343
426
|
"X-Fern-Language": "JavaScript",
|
|
344
427
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
345
|
-
"X-Fern-SDK-Version": "
|
|
428
|
+
"X-Fern-SDK-Version": "v0.1.9",
|
|
346
429
|
},
|
|
347
430
|
contentType: "application/json",
|
|
348
431
|
body: yield serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -394,6 +477,11 @@ class VellumClient {
|
|
|
394
477
|
* @throws {@link Vellum.BadRequestError}
|
|
395
478
|
* @throws {@link Vellum.NotFoundError}
|
|
396
479
|
* @throws {@link Vellum.InternalServerError}
|
|
480
|
+
*
|
|
481
|
+
* @example
|
|
482
|
+
* await vellum.submitCompletionActuals({
|
|
483
|
+
* actuals: []
|
|
484
|
+
* })
|
|
397
485
|
*/
|
|
398
486
|
submitCompletionActuals(request, requestOptions) {
|
|
399
487
|
var _a;
|
|
@@ -406,7 +494,7 @@ class VellumClient {
|
|
|
406
494
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
407
495
|
"X-Fern-Language": "JavaScript",
|
|
408
496
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
409
|
-
"X-Fern-SDK-Version": "
|
|
497
|
+
"X-Fern-SDK-Version": "v0.1.9",
|
|
410
498
|
},
|
|
411
499
|
contentType: "application/json",
|
|
412
500
|
body: yield serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, {
|
|
@@ -452,6 +540,11 @@ class VellumClient {
|
|
|
452
540
|
* Used to submit feedback regarding the quality of previous workflow execution and its outputs.
|
|
453
541
|
*
|
|
454
542
|
* **Note:** Uses a base url of `https://predict.vellum.ai`.
|
|
543
|
+
*
|
|
544
|
+
* @example
|
|
545
|
+
* await vellum.submitWorkflowExecutionActuals({
|
|
546
|
+
* actuals: []
|
|
547
|
+
* })
|
|
455
548
|
*/
|
|
456
549
|
submitWorkflowExecutionActuals(request, requestOptions) {
|
|
457
550
|
var _a;
|
|
@@ -464,7 +557,7 @@ class VellumClient {
|
|
|
464
557
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
465
558
|
"X-Fern-Language": "JavaScript",
|
|
466
559
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
467
|
-
"X-Fern-SDK-Version": "
|
|
560
|
+
"X-Fern-SDK-Version": "v0.1.9",
|
|
468
561
|
},
|
|
469
562
|
contentType: "application/json",
|
|
470
563
|
body: yield serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Vellum from "
|
|
4
|
+
import * as Vellum from "../..";
|
|
5
5
|
export interface ExecutePromptRequest {
|
|
6
6
|
inputs: Vellum.PromptDeploymentInputRequest[];
|
|
7
7
|
/** The ID of the Prompt Deployment. Must provide either this or prompt_deployment_name. */
|
|
@@ -11,4 +11,10 @@ export interface ExecutePromptRequest {
|
|
|
11
11
|
/** Optionally specify a release tag if you want to pin to a specific release of the Prompt Deployment */
|
|
12
12
|
releaseTag?: string;
|
|
13
13
|
externalId?: string;
|
|
14
|
+
/** The name of the Prompt Deployment. Must provide either this or prompt_deployment_id. */
|
|
15
|
+
expandMeta?: Vellum.PromptDeploymentExpandMetaRequestRequest;
|
|
16
|
+
rawOverrides?: Vellum.RawPromptExecutionOverridesRequest;
|
|
17
|
+
/** Returns the raw API response data sent from the model host. Combined with `raw_overrides`, it can be used to access new features from models. */
|
|
18
|
+
expandRaw?: string[];
|
|
19
|
+
metadata?: Record<string, unknown>;
|
|
14
20
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../..";
|
|
5
|
+
export interface ExecutePromptStreamRequest {
|
|
6
|
+
inputs: Vellum.PromptDeploymentInputRequest[];
|
|
7
|
+
/** The ID of the Prompt Deployment. Must provide either this or prompt_deployment_name. */
|
|
8
|
+
promptDeploymentId?: string;
|
|
9
|
+
/** The name of the Prompt Deployment. Must provide either this or prompt_deployment_id. */
|
|
10
|
+
promptDeploymentName?: string;
|
|
11
|
+
/** Optionally specify a release tag if you want to pin to a specific release of the Prompt Deployment */
|
|
12
|
+
releaseTag?: string;
|
|
13
|
+
externalId?: string;
|
|
14
|
+
/** The name of the Prompt Deployment. Must provide either this or prompt_deployment_id. */
|
|
15
|
+
expandMeta?: Vellum.PromptDeploymentExpandMetaRequestRequest;
|
|
16
|
+
rawOverrides?: Vellum.RawPromptExecutionOverridesRequest;
|
|
17
|
+
/** Returns the raw API response data sent from the model host. Combined with `raw_overrides`, it can be used to access new features from models. */
|
|
18
|
+
expandRaw?: string[];
|
|
19
|
+
metadata?: Record<string, unknown>;
|
|
20
|
+
}
|
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Vellum from "../..";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* requests: [{
|
|
9
|
+
* inputValues: {}
|
|
10
|
+
* }],
|
|
11
|
+
* options: {
|
|
12
|
+
* logprobs: Vellum.LogprobsEnum.All
|
|
13
|
+
* }
|
|
14
|
+
* }
|
|
15
|
+
*/
|
|
5
16
|
export interface GenerateBodyRequest {
|
|
6
17
|
/** The ID of the deployment. Must provide either this or deployment_name. */
|
|
7
18
|
deploymentId?: string;
|
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Vellum from "../..";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* actuals: []
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
5
11
|
export interface SubmitCompletionActualsRequest {
|
|
6
12
|
/** The ID of the deployment. Must provide either this or deployment_name. */
|
|
7
13
|
deploymentId?: string;
|
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Vellum from "../..";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* actuals: []
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
5
11
|
export interface SubmitWorkflowExecutionActualsRequest {
|
|
6
12
|
/** Feedback regarding the quality of an output on a previously executed workflow. */
|
|
7
13
|
actuals: Vellum.SubmitWorkflowExecutionActualRequest[];
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { ExecutePromptRequest } from "./ExecutePromptRequest";
|
|
2
|
+
export { ExecutePromptStreamRequest } from "./ExecutePromptStreamRequest";
|
|
1
3
|
export { ExecuteWorkflowStreamRequest } from "./ExecuteWorkflowStreamRequest";
|
|
2
4
|
export { GenerateBodyRequest } from "./GenerateBodyRequest";
|
|
3
5
|
export { GenerateStreamBodyRequest } from "./GenerateStreamBodyRequest";
|
|
@@ -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": "
|
|
65
|
+
"X-Fern-SDK-Version": "v0.1.9",
|
|
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": "
|
|
111
|
+
"X-Fern-SDK-Version": "v0.1.9",
|
|
112
112
|
},
|
|
113
113
|
contentType: "application/json",
|
|
114
114
|
body: yield serializers.DeploymentProviderPayloadRequest.jsonOrThrow(request, {
|
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Vellum from "../../../..";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* inputs: []
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
5
11
|
export interface DeploymentProviderPayloadRequest {
|
|
6
12
|
/** The ID of the deployment. Must provide either this or deployment_name. */
|
|
7
13
|
deploymentId?: string;
|
|
@@ -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": "
|
|
65
|
+
"X-Fern-SDK-Version": "v0.1.9",
|
|
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": "
|
|
117
|
+
"X-Fern-SDK-Version": "v0.1.9",
|
|
118
118
|
},
|
|
119
119
|
contentType: "application/json",
|
|
120
120
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -21,6 +21,9 @@ export declare class Documents {
|
|
|
21
21
|
constructor(_options: Documents.Options);
|
|
22
22
|
/**
|
|
23
23
|
* Used to list documents. Optionally filter on supported fields.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* await vellum.documents.list({})
|
|
24
27
|
*/
|
|
25
28
|
list(request?: Vellum.DocumentsListRequest, requestOptions?: Documents.RequestOptions): Promise<Vellum.PaginatedSlimDocumentList>;
|
|
26
29
|
destroy(id: string, requestOptions?: Documents.RequestOptions): Promise<void>;
|
|
@@ -52,6 +52,9 @@ class Documents {
|
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
54
|
* Used to list documents. Optionally filter on supported fields.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* await vellum.documents.list({})
|
|
55
58
|
*/
|
|
56
59
|
list(request = {}, requestOptions) {
|
|
57
60
|
var _a;
|
|
@@ -78,7 +81,7 @@ class Documents {
|
|
|
78
81
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
79
82
|
"X-Fern-Language": "JavaScript",
|
|
80
83
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
81
|
-
"X-Fern-SDK-Version": "
|
|
84
|
+
"X-Fern-SDK-Version": "v0.1.9",
|
|
82
85
|
},
|
|
83
86
|
contentType: "application/json",
|
|
84
87
|
queryParameters: _queryParams,
|
|
@@ -125,7 +128,7 @@ class Documents {
|
|
|
125
128
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
126
129
|
"X-Fern-Language": "JavaScript",
|
|
127
130
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
128
|
-
"X-Fern-SDK-Version": "
|
|
131
|
+
"X-Fern-SDK-Version": "v0.1.9",
|
|
129
132
|
},
|
|
130
133
|
contentType: "application/json",
|
|
131
134
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -169,7 +172,7 @@ class Documents {
|
|
|
169
172
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
170
173
|
"X-Fern-Language": "JavaScript",
|
|
171
174
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
172
|
-
"X-Fern-SDK-Version": "
|
|
175
|
+
"X-Fern-SDK-Version": "v0.1.9",
|
|
173
176
|
},
|
|
174
177
|
contentType: "application/json",
|
|
175
178
|
body: yield serializers.PatchedDocumentUpdateRequest.jsonOrThrow(request, {
|
|
@@ -245,8 +248,7 @@ class Documents {
|
|
|
245
248
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
246
249
|
"X-Fern-Language": "JavaScript",
|
|
247
250
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
248
|
-
"X-Fern-SDK-Version": "
|
|
249
|
-
"Content-Length": (yield core.getFormDataContentLength(_request)).toString(),
|
|
251
|
+
"X-Fern-SDK-Version": "v0.1.9",
|
|
250
252
|
},
|
|
251
253
|
contentType: "multipart/form-data; boundary=" + _request.getBoundary(),
|
|
252
254
|
body: _request,
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {}
|
|
7
|
+
*/
|
|
4
8
|
export interface DocumentsListRequest {
|
|
5
9
|
/**
|
|
6
10
|
* Filter down to only those documents that are included in the specified index. You may provide either the Vellum-generated ID or the unique name of the index specified upon initial creation.
|
|
@@ -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": "
|
|
65
|
+
"X-Fern-SDK-Version": "v0.1.9",
|
|
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": "
|
|
72
|
+
"X-Fern-SDK-Version": "v0.1.9",
|
|
73
73
|
},
|
|
74
74
|
contentType: "application/json",
|
|
75
75
|
body: yield serializers.RegisterPromptRequestRequest.jsonOrThrow(request, {
|
|
@@ -29,6 +29,9 @@ export declare class Sandboxes {
|
|
|
29
29
|
upsertSandboxScenario(id: string, request: Vellum.UpsertSandboxScenarioRequestRequest, requestOptions?: Sandboxes.RequestOptions): Promise<Vellum.SandboxScenario>;
|
|
30
30
|
/**
|
|
31
31
|
* Deletes an existing scenario from a sandbox, keying off of the provided scenario id.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* await vellum.sandboxes.deleteSandboxScenario("id", "scenario-id")
|
|
32
35
|
*/
|
|
33
36
|
deleteSandboxScenario(id: string, scenarioId: string, requestOptions?: Sandboxes.RequestOptions): Promise<void>;
|
|
34
37
|
}
|
|
@@ -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": "
|
|
71
|
+
"X-Fern-SDK-Version": "v0.1.9",
|
|
72
72
|
},
|
|
73
73
|
contentType: "application/json",
|
|
74
74
|
body: yield serializers.UpsertSandboxScenarioRequestRequest.jsonOrThrow(request, {
|
|
@@ -108,6 +108,9 @@ class Sandboxes {
|
|
|
108
108
|
}
|
|
109
109
|
/**
|
|
110
110
|
* Deletes an existing scenario from a sandbox, keying off of the provided scenario id.
|
|
111
|
+
*
|
|
112
|
+
* @example
|
|
113
|
+
* await vellum.sandboxes.deleteSandboxScenario("id", "scenario-id")
|
|
111
114
|
*/
|
|
112
115
|
deleteSandboxScenario(id, scenarioId, requestOptions) {
|
|
113
116
|
var _a;
|
|
@@ -120,7 +123,7 @@ class Sandboxes {
|
|
|
120
123
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
121
124
|
"X-Fern-Language": "JavaScript",
|
|
122
125
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
123
|
-
"X-Fern-SDK-Version": "
|
|
126
|
+
"X-Fern-SDK-Version": "v0.1.9",
|
|
124
127
|
},
|
|
125
128
|
contentType: "application/json",
|
|
126
129
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|