vellum-ai 0.1.8 → 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 +32 -0
- package/Client.js +254 -36
- package/api/client/requests/ExecutePromptRequest.d.ts +20 -0
- package/api/client/requests/ExecutePromptRequest.js +5 -0
- package/api/client/requests/ExecutePromptStreamRequest.d.ts +20 -0
- package/api/client/requests/ExecutePromptStreamRequest.js +5 -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/errors/ForbiddenError.d.ts +1 -2
- 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 +8 -0
- package/api/resources/testSuites/client/Client.js +10 -2
- package/api/resources/testSuites/client/requests/UpsertTestSuiteTestCaseRequest.d.ts +7 -0
- package/api/types/BlockTypeEnum.d.ts +4 -4
- package/api/types/ChatMessageRole.d.ts +4 -4
- 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/ErrorVariableValue.d.ts +7 -0
- package/api/types/ErrorVariableValue.js +5 -0
- package/api/types/ExecutePromptApiErrorResponse.d.ts +7 -0
- package/api/types/ExecutePromptApiErrorResponse.js +5 -0
- package/api/types/ExecutePromptEvent.d.ts +19 -0
- package/api/types/ExecutePromptEvent.js +5 -0
- package/api/types/ExecutePromptResponse.d.ts +13 -0
- package/api/types/ExecutePromptResponse.js +5 -0
- package/api/types/FinishReasonEnum.d.ts +3 -3
- package/api/types/FulfilledEnum.d.ts +4 -0
- package/api/types/FulfilledEnum.js +5 -0
- package/api/types/FulfilledExecutePromptEvent.d.ts +12 -0
- package/api/types/FulfilledExecutePromptEvent.js +5 -0
- package/api/types/FulfilledExecutePromptResponse.d.ts +15 -0
- package/api/types/FulfilledExecutePromptResponse.js +5 -0
- package/api/types/FulfilledPromptExecutionMeta.d.ts +11 -0
- package/api/types/FulfilledPromptExecutionMeta.js +5 -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/InitiatedEnum.js +5 -0
- package/api/types/InitiatedExecutePromptEvent.d.ts +11 -0
- package/api/types/InitiatedExecutePromptEvent.js +5 -0
- package/api/types/InitiatedPromptExecutionMeta.d.ts +12 -0
- package/api/types/InitiatedPromptExecutionMeta.js +5 -0
- package/api/types/JsonVariableValue.d.ts +6 -0
- package/api/types/JsonVariableValue.js +5 -0
- 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/ProcessingFailureReasonEnum.d.ts +2 -2
- package/api/types/ProcessingStateEnum.d.ts +4 -4
- package/api/types/PromptDeploymentExpandMetaRequestRequest.d.ts +15 -0
- package/api/types/PromptDeploymentExpandMetaRequestRequest.js +5 -0
- package/api/types/PromptExecutionMeta.d.ts +14 -0
- package/api/types/PromptExecutionMeta.js +5 -0
- package/api/types/PromptOutput.d.ts +16 -0
- package/api/types/PromptOutput.js +5 -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/RawPromptExecutionOverridesRequest.js +5 -0
- package/api/types/RejectedEnum.d.ts +4 -0
- package/api/types/RejectedEnum.js +5 -0
- package/api/types/RejectedExecutePromptEvent.d.ts +12 -0
- package/api/types/RejectedExecutePromptEvent.js +5 -0
- package/api/types/RejectedExecutePromptResponse.d.ts +15 -0
- package/api/types/RejectedExecutePromptResponse.js +5 -0
- package/api/types/RejectedPromptExecutionMeta.d.ts +11 -0
- package/api/types/RejectedPromptExecutionMeta.js +5 -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/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 +25 -0
- package/api/types/index.js +25 -0
- 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 +32 -0
- package/dist/Client.js +254 -36
- package/dist/api/client/requests/ExecutePromptRequest.d.ts +20 -0
- 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/errors/ForbiddenError.d.ts +1 -2
- 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 +8 -0
- package/dist/api/resources/testSuites/client/Client.js +10 -2
- package/dist/api/resources/testSuites/client/requests/UpsertTestSuiteTestCaseRequest.d.ts +7 -0
- package/dist/api/types/BlockTypeEnum.d.ts +4 -4
- package/dist/api/types/ChatMessageRole.d.ts +4 -4
- 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/ExecutePromptApiErrorResponse.d.ts +7 -0
- package/dist/api/types/ExecutePromptApiErrorResponse.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 +13 -0
- package/dist/api/types/ExecutePromptResponse.js +5 -0
- 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/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 +15 -0
- package/dist/api/types/RejectedExecutePromptResponse.js +5 -0
- 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/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 +25 -0
- package/dist/api/types/index.js +25 -0
- 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/client/requests/ExecutePromptRequest.js +52 -0
- 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/types/ErrorVariableValue.d.ts +12 -0
- package/dist/serialization/types/ErrorVariableValue.js +42 -0
- package/dist/serialization/types/ExecutePromptApiErrorResponse.d.ts +12 -0
- package/dist/serialization/types/ExecutePromptApiErrorResponse.js +33 -0
- package/dist/serialization/types/ExecutePromptEvent.d.ts +22 -0
- package/dist/serialization/types/ExecutePromptEvent.js +50 -0
- package/dist/serialization/types/ExecutePromptResponse.d.ts +16 -0
- package/dist/serialization/types/ExecutePromptResponse.js +48 -0
- 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/InitiatedExecutePromptEvent.js +43 -0
- 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/dist/serialization/types/JsonVariableValue.js +33 -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 +15 -0
- package/dist/serialization/types/RejectedExecutePromptResponse.js +45 -0
- package/dist/serialization/types/RejectedPromptExecutionMeta.d.ts +13 -0
- package/dist/serialization/types/RejectedPromptExecutionMeta.js +43 -0
- 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/dist/serialization/types/StreamingPromptExecutionMeta.js +33 -0
- package/dist/serialization/types/StringVariableValue.d.ts +12 -0
- package/dist/serialization/types/StringVariableValue.js +33 -0
- package/dist/serialization/types/VellumVariableType.d.ts +1 -1
- package/dist/serialization/types/VellumVariableType.js +1 -1
- 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 +25 -0
- package/dist/serialization/types/index.js +25 -0
- package/package.json +6 -5
- package/serialization/client/requests/ExecutePromptRequest.d.ts +20 -0
- package/serialization/client/requests/ExecutePromptRequest.js +52 -0
- 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/types/ErrorVariableValue.d.ts +12 -0
- package/serialization/types/ErrorVariableValue.js +42 -0
- package/serialization/types/ExecutePromptApiErrorResponse.d.ts +12 -0
- package/serialization/types/ExecutePromptApiErrorResponse.js +33 -0
- package/serialization/types/ExecutePromptEvent.d.ts +22 -0
- package/serialization/types/ExecutePromptEvent.js +50 -0
- package/serialization/types/ExecutePromptResponse.d.ts +16 -0
- package/serialization/types/ExecutePromptResponse.js +48 -0
- 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/InitiatedExecutePromptEvent.js +43 -0
- 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/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 +15 -0
- package/serialization/types/RejectedExecutePromptResponse.js +45 -0
- 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/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 +25 -0
- package/serialization/types/index.js +25 -0
- 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/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
|
@@ -12,18 +12,19 @@ export interface ModelVersionRead {
|
|
|
12
12
|
/**
|
|
13
13
|
* Which LLM provider this model version is associated with.
|
|
14
14
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
15
|
+
* - `ANTHROPIC` - Anthropic
|
|
16
|
+
* - `AWS_BEDROCK` - AWS Bedrock
|
|
17
|
+
* - `AZURE_OPENAI` - Azure OpenAI
|
|
18
|
+
* - `COHERE` - Cohere
|
|
19
|
+
* - `GOOGLE` - Google
|
|
20
|
+
* - `HOSTED` - Hosted
|
|
21
|
+
* - `MOSAICML` - MosaicML
|
|
22
|
+
* - `OPENAI` - OpenAI
|
|
23
|
+
* - `FIREWORKS_AI` - Fireworks AI
|
|
24
|
+
* - `HUGGINGFACE` - HuggingFace
|
|
25
|
+
* - `MYSTIC` - Mystic
|
|
26
|
+
* - `PYQ` - Pyq
|
|
27
|
+
* - `REPLICATE` - Replicate
|
|
27
28
|
*/
|
|
28
29
|
provider: Vellum.ProviderEnum;
|
|
29
30
|
/** The unique id of this model version as it exists in the above provider's system. */
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
5
|
+
* - `CREATING` - Creating
|
|
6
|
+
* - `READY` - Ready
|
|
7
|
+
* - `CREATION_FAILED` - Creation Failed
|
|
8
|
+
* - `DISABLED` - Disabled
|
|
9
9
|
*/
|
|
10
10
|
export declare type ModelVersionReadStatusEnum = "CREATING" | "READY" | "CREATION_FAILED" | "DISABLED";
|
|
11
11
|
export declare const ModelVersionReadStatusEnum: {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* - `EXCEEDED_CHARACTER_LIMIT` - Exceeded Character Limit
|
|
6
|
+
* - `INVALID_FILE` - Invalid File
|
|
7
7
|
*/
|
|
8
8
|
export declare type ProcessingFailureReasonEnum = "EXCEEDED_CHARACTER_LIMIT" | "INVALID_FILE";
|
|
9
9
|
export declare const ProcessingFailureReasonEnum: {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
5
|
+
* - `QUEUED` - Queued
|
|
6
|
+
* - `PROCESSING` - Processing
|
|
7
|
+
* - `PROCESSED` - Processed
|
|
8
|
+
* - `FAILED` - Failed
|
|
9
9
|
*/
|
|
10
10
|
export declare type ProcessingStateEnum = "QUEUED" | "PROCESSING" | "PROCESSED" | "FAILED";
|
|
11
11
|
export declare const ProcessingStateEnum: {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface PromptDeploymentExpandMetaRequestRequest {
|
|
5
|
+
/** If enabled, the response will include the model identifier representing the ML Model invoked by the Prompt Deployment. */
|
|
6
|
+
modelName?: boolean;
|
|
7
|
+
/** If enabled, the response will include the time in nanoseconds it took to execute the Prompt Deployment. */
|
|
8
|
+
latency?: boolean;
|
|
9
|
+
/** If enabled, the response will include the release tag of the Prompt Deployment. */
|
|
10
|
+
deploymentReleaseTag?: boolean;
|
|
11
|
+
/** If enabled, the response will include the ID of the Prompt Version backing the deployment. */
|
|
12
|
+
promptVersionId?: boolean;
|
|
13
|
+
/** If enabled, the response will include the reason provided by the model for why the execution finished. */
|
|
14
|
+
finishReason?: boolean;
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
/**
|
|
6
|
+
* The subset of the metadata tracked by Vellum during prompt execution that the request opted into with `expand_meta`.
|
|
7
|
+
*/
|
|
8
|
+
export interface PromptExecutionMeta {
|
|
9
|
+
modelName?: string;
|
|
10
|
+
latency?: number;
|
|
11
|
+
deploymentReleaseTag?: string;
|
|
12
|
+
promptVersionId?: string;
|
|
13
|
+
finishReason?: Vellum.FinishReasonEnum;
|
|
14
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
export declare type PromptOutput = Vellum.PromptOutput.String | Vellum.PromptOutput.Json | Vellum.PromptOutput.Error_;
|
|
6
|
+
export declare namespace PromptOutput {
|
|
7
|
+
interface String extends Vellum.StringVariableValue {
|
|
8
|
+
type: "STRING";
|
|
9
|
+
}
|
|
10
|
+
interface Json extends Vellum.JsonVariableValue {
|
|
11
|
+
type: "JSON";
|
|
12
|
+
}
|
|
13
|
+
interface Error_ extends Vellum.ErrorVariableValue {
|
|
14
|
+
type: "ERROR";
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -2,20 +2,21 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
5
|
+
* - `ANTHROPIC` - Anthropic
|
|
6
|
+
* - `AWS_BEDROCK` - AWS Bedrock
|
|
7
|
+
* - `AZURE_OPENAI` - Azure OpenAI
|
|
8
|
+
* - `COHERE` - Cohere
|
|
9
|
+
* - `GOOGLE` - Google
|
|
10
|
+
* - `HOSTED` - Hosted
|
|
11
|
+
* - `MOSAICML` - MosaicML
|
|
12
|
+
* - `OPENAI` - OpenAI
|
|
13
|
+
* - `FIREWORKS_AI` - Fireworks AI
|
|
14
|
+
* - `HUGGINGFACE` - HuggingFace
|
|
15
|
+
* - `MYSTIC` - Mystic
|
|
16
|
+
* - `PYQ` - Pyq
|
|
17
|
+
* - `REPLICATE` - Replicate
|
|
17
18
|
*/
|
|
18
|
-
export declare type ProviderEnum = "ANTHROPIC" | "AWS_BEDROCK" | "AZURE_OPENAI" | "COHERE" | "GOOGLE" | "HOSTED" | "MOSAICML" | "OPENAI" | "HUGGINGFACE" | "MYSTIC" | "PYQ" | "REPLICATE";
|
|
19
|
+
export declare type ProviderEnum = "ANTHROPIC" | "AWS_BEDROCK" | "AZURE_OPENAI" | "COHERE" | "GOOGLE" | "HOSTED" | "MOSAICML" | "OPENAI" | "FIREWORKS_AI" | "HUGGINGFACE" | "MYSTIC" | "PYQ" | "REPLICATE";
|
|
19
20
|
export declare const ProviderEnum: {
|
|
20
21
|
readonly Anthropic: "ANTHROPIC";
|
|
21
22
|
readonly AwsBedrock: "AWS_BEDROCK";
|
|
@@ -25,6 +26,7 @@ export declare const ProviderEnum: {
|
|
|
25
26
|
readonly Hosted: "HOSTED";
|
|
26
27
|
readonly Mosaicml: "MOSAICML";
|
|
27
28
|
readonly Openai: "OPENAI";
|
|
29
|
+
readonly FireworksAi: "FIREWORKS_AI";
|
|
28
30
|
readonly Huggingface: "HUGGINGFACE";
|
|
29
31
|
readonly Mystic: "MYSTIC";
|
|
30
32
|
readonly Pyq: "PYQ";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface RawPromptExecutionOverridesRequest {
|
|
5
|
+
body?: Record<string, unknown>;
|
|
6
|
+
/** The raw headers to send to the model host. */
|
|
7
|
+
headers?: Record<string, string | undefined>;
|
|
8
|
+
/** The raw URL to send to the model host. */
|
|
9
|
+
url?: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
/**
|
|
6
|
+
* The final data returned indicating an error occurred during the stream.
|
|
7
|
+
*/
|
|
8
|
+
export interface RejectedExecutePromptEvent {
|
|
9
|
+
error: Vellum.VellumError;
|
|
10
|
+
executionId: string;
|
|
11
|
+
meta?: Vellum.RejectedPromptExecutionMeta;
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
/**
|
|
6
|
+
* The unsuccessful response from the model containing an error of what went wrong.
|
|
7
|
+
*/
|
|
8
|
+
export interface RejectedExecutePromptResponse {
|
|
9
|
+
meta?: Vellum.PromptExecutionMeta;
|
|
10
|
+
/** The subset of the raw response from the model that the request opted into with `expand_raw`. */
|
|
11
|
+
raw?: Record<string, unknown>;
|
|
12
|
+
/** The ID of the execution. */
|
|
13
|
+
executionId: string;
|
|
14
|
+
error: Vellum.VellumError;
|
|
15
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
/**
|
|
6
|
+
* The subset of the metadata tracked by Vellum during prompt execution that the request opted into with `expand_meta`.
|
|
7
|
+
*/
|
|
8
|
+
export interface RejectedPromptExecutionMeta {
|
|
9
|
+
latency?: number;
|
|
10
|
+
finishReason?: Vellum.FinishReasonEnum;
|
|
11
|
+
}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* - `TEXT` - Text
|
|
6
|
+
* - `CHAT_HISTORY` - Chat History
|
|
7
7
|
*/
|
|
8
8
|
export declare type ScenarioInputTypeEnum = "TEXT" | "CHAT_HISTORY";
|
|
9
9
|
export declare const ScenarioInputTypeEnum: {
|
|
@@ -14,23 +14,23 @@ export interface SlimDocument {
|
|
|
14
14
|
/**
|
|
15
15
|
* An enum value representing where this document is along its processing lifecycle. Note that this is different than its indexing lifecycle.
|
|
16
16
|
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
17
|
+
* - `QUEUED` - Queued
|
|
18
|
+
* - `PROCESSING` - Processing
|
|
19
|
+
* - `PROCESSED` - Processed
|
|
20
|
+
* - `FAILED` - Failed
|
|
21
21
|
*/
|
|
22
22
|
processingState?: Vellum.ProcessingStateEnum;
|
|
23
23
|
/**
|
|
24
24
|
* An enum value representing why the document could not be processed. Is null unless processing_state is FAILED.
|
|
25
25
|
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
26
|
+
* - `EXCEEDED_CHARACTER_LIMIT` - Exceeded Character Limit
|
|
27
|
+
* - `INVALID_FILE` - Invalid File
|
|
28
28
|
*/
|
|
29
29
|
processingFailureReason?: Vellum.ProcessingFailureReasonEnum;
|
|
30
30
|
/**
|
|
31
31
|
* The document's current status.
|
|
32
32
|
*
|
|
33
|
-
*
|
|
33
|
+
* - `ACTIVE` - Active
|
|
34
34
|
*/
|
|
35
35
|
status?: Vellum.DocumentStatus;
|
|
36
36
|
/** A list of keywords associated with this document. Originally provided when uploading the document. */
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
/**
|
|
6
|
+
* The data returned for each delta during the prompt execution stream.
|
|
7
|
+
*/
|
|
8
|
+
export interface StreamingExecutePromptEvent {
|
|
9
|
+
output: Vellum.PromptOutput;
|
|
10
|
+
outputIndex: number;
|
|
11
|
+
executionId: string;
|
|
12
|
+
meta?: Vellum.StreamingPromptExecutionMeta;
|
|
13
|
+
/** The subset of the raw response from the model that the request opted into with `expand_raw`. */
|
|
14
|
+
raw?: Record<string, unknown>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* The subset of the metadata tracked by Vellum during prompt execution that the request opted into with `expand_meta`.
|
|
6
|
+
*/
|
|
7
|
+
export interface StreamingPromptExecutionMeta {
|
|
8
|
+
latency?: number;
|
|
9
|
+
}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* - `INVALID_REQUEST` - INVALID_REQUEST
|
|
6
|
+
* - `PROVIDER_ERROR` - PROVIDER_ERROR
|
|
7
|
+
* - `INTERNAL_SERVER_ERROR` - INTERNAL_SERVER_ERROR
|
|
8
8
|
*/
|
|
9
9
|
export declare type VellumErrorCodeEnum = "INVALID_REQUEST" | "PROVIDER_ERROR" | "INTERNAL_SERVER_ERROR";
|
|
10
10
|
export declare const VellumErrorCodeEnum: {
|
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
5
|
+
* - `STRING` - STRING
|
|
6
|
+
* - `NUMBER` - NUMBER
|
|
7
|
+
* - `JSON` - JSON
|
|
8
|
+
* - `CHAT_HISTORY` - CHAT_HISTORY
|
|
9
|
+
* - `SEARCH_RESULTS` - SEARCH_RESULTS
|
|
10
|
+
* - `ERROR` - ERROR
|
|
11
|
+
* - `ARRAY` - ARRAY
|
|
11
12
|
*/
|
|
12
|
-
export declare type VellumVariableType = "STRING" | "NUMBER" | "JSON" | "CHAT_HISTORY" | "SEARCH_RESULTS" | "ERROR";
|
|
13
|
+
export declare type VellumVariableType = "STRING" | "NUMBER" | "JSON" | "CHAT_HISTORY" | "SEARCH_RESULTS" | "ERROR" | "ARRAY";
|
|
13
14
|
export declare const VellumVariableType: {
|
|
14
15
|
readonly String: "STRING";
|
|
15
16
|
readonly Number: "NUMBER";
|
|
@@ -17,4 +18,5 @@ export declare const VellumVariableType: {
|
|
|
17
18
|
readonly ChatHistory: "CHAT_HISTORY";
|
|
18
19
|
readonly SearchResults: "SEARCH_RESULTS";
|
|
19
20
|
readonly Error: "ERROR";
|
|
21
|
+
readonly Array: "ARRAY";
|
|
20
22
|
};
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
5
|
+
* - `WORKFLOW_INITIALIZATION` - WORKFLOW_INITIALIZATION
|
|
6
|
+
* - `NODE_EXECUTION_COUNT_LIMIT_REACHED` - NODE_EXECUTION_COUNT_LIMIT_REACHED
|
|
7
|
+
* - `INTERNAL_SERVER_ERROR` - INTERNAL_SERVER_ERROR
|
|
8
|
+
* - `NODE_EXECUTION` - NODE_EXECUTION
|
|
9
|
+
* - `LLM_PROVIDER` - LLM_PROVIDER
|
|
10
|
+
* - `INVALID_TEMPLATE` - INVALID_TEMPLATE
|
|
11
11
|
*/
|
|
12
12
|
export declare type WorkflowExecutionEventErrorCode = "WORKFLOW_INITIALIZATION" | "NODE_EXECUTION_COUNT_LIMIT_REACHED" | "INTERNAL_SERVER_ERROR" | "NODE_EXECUTION" | "LLM_PROVIDER" | "INVALID_TEMPLATE";
|
|
13
13
|
export declare const WorkflowExecutionEventErrorCode: {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* - `NODE` - Node
|
|
6
|
+
* - `WORKFLOW` - Workflow
|
|
7
7
|
*/
|
|
8
8
|
export declare type WorkflowExecutionEventType = "NODE" | "WORKFLOW";
|
|
9
9
|
export declare const WorkflowExecutionEventType: {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
5
|
+
* - `INITIATED` - INITIATED
|
|
6
|
+
* - `STREAMING` - STREAMING
|
|
7
|
+
* - `FULFILLED` - FULFILLED
|
|
8
|
+
* - `REJECTED` - REJECTED
|
|
9
9
|
*/
|
|
10
10
|
export declare type WorkflowNodeResultEventState = "INITIATED" | "STREAMING" | "FULFILLED" | "REJECTED";
|
|
11
11
|
export declare const WorkflowNodeResultEventState: {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Vellum from "..";
|
|
5
|
-
export declare type WorkflowRequestInputRequest = Vellum.WorkflowRequestInputRequest.String | Vellum.WorkflowRequestInputRequest.Json | Vellum.WorkflowRequestInputRequest.ChatHistory;
|
|
5
|
+
export declare type WorkflowRequestInputRequest = Vellum.WorkflowRequestInputRequest.String | Vellum.WorkflowRequestInputRequest.Json | Vellum.WorkflowRequestInputRequest.ChatHistory | Vellum.WorkflowRequestInputRequest.Number;
|
|
6
6
|
export declare namespace WorkflowRequestInputRequest {
|
|
7
7
|
interface String extends Vellum.WorkflowRequestStringInputRequest {
|
|
8
8
|
type: "STRING";
|
|
@@ -13,4 +13,7 @@ export declare namespace WorkflowRequestInputRequest {
|
|
|
13
13
|
interface ChatHistory extends Vellum.WorkflowRequestChatHistoryInputRequest {
|
|
14
14
|
type: "CHAT_HISTORY";
|
|
15
15
|
}
|
|
16
|
+
interface Number extends Vellum.WorkflowRequestNumberInputRequest {
|
|
17
|
+
type: "NUMBER";
|
|
18
|
+
}
|
|
16
19
|
}
|
|
@@ -26,10 +26,18 @@ export * from "./DocumentRead";
|
|
|
26
26
|
export * from "./DocumentStatus";
|
|
27
27
|
export * from "./EnrichedNormalizedCompletion";
|
|
28
28
|
export * from "./EnvironmentEnum";
|
|
29
|
+
export * from "./ErrorVariableValue";
|
|
29
30
|
export * from "./EvaluationParams";
|
|
30
31
|
export * from "./EvaluationParamsRequest";
|
|
32
|
+
export * from "./ExecutePromptApiErrorResponse";
|
|
33
|
+
export * from "./ExecutePromptEvent";
|
|
34
|
+
export * from "./ExecutePromptResponse";
|
|
31
35
|
export * from "./ExecuteWorkflowStreamErrorResponse";
|
|
32
36
|
export * from "./FinishReasonEnum";
|
|
37
|
+
export * from "./FulfilledEnum";
|
|
38
|
+
export * from "./FulfilledExecutePromptEvent";
|
|
39
|
+
export * from "./FulfilledExecutePromptResponse";
|
|
40
|
+
export * from "./FulfilledPromptExecutionMeta";
|
|
33
41
|
export * from "./GenerateErrorResponse";
|
|
34
42
|
export * from "./GenerateOptionsRequest";
|
|
35
43
|
export * from "./GenerateRequest";
|
|
@@ -41,7 +49,11 @@ export * from "./GenerateStreamResponse";
|
|
|
41
49
|
export * from "./GenerateStreamResult";
|
|
42
50
|
export * from "./GenerateStreamResultData";
|
|
43
51
|
export * from "./IndexingStateEnum";
|
|
52
|
+
export * from "./InitiatedEnum";
|
|
53
|
+
export * from "./InitiatedExecutePromptEvent";
|
|
54
|
+
export * from "./InitiatedPromptExecutionMeta";
|
|
44
55
|
export * from "./JsonInputRequest";
|
|
56
|
+
export * from "./JsonVariableValue";
|
|
45
57
|
export * from "./LogicalOperator";
|
|
46
58
|
export * from "./LogprobsEnum";
|
|
47
59
|
export * from "./MetadataFilterConfigRequest";
|
|
@@ -72,9 +84,12 @@ export * from "./NormalizedTokenLogProbs";
|
|
|
72
84
|
export * from "./PaginatedSlimDocumentList";
|
|
73
85
|
export * from "./ProcessingFailureReasonEnum";
|
|
74
86
|
export * from "./ProcessingStateEnum";
|
|
87
|
+
export * from "./PromptDeploymentExpandMetaRequestRequest";
|
|
75
88
|
export * from "./PromptDeploymentInputRequest";
|
|
89
|
+
export * from "./PromptExecutionMeta";
|
|
76
90
|
export * from "./PromptNodeResult";
|
|
77
91
|
export * from "./PromptNodeResultData";
|
|
92
|
+
export * from "./PromptOutput";
|
|
78
93
|
export * from "./PromptTemplateBlock";
|
|
79
94
|
export * from "./PromptTemplateBlockData";
|
|
80
95
|
export * from "./PromptTemplateBlockDataRequest";
|
|
@@ -82,6 +97,7 @@ export * from "./PromptTemplateBlockProperties";
|
|
|
82
97
|
export * from "./PromptTemplateBlockPropertiesRequest";
|
|
83
98
|
export * from "./PromptTemplateBlockRequest";
|
|
84
99
|
export * from "./ProviderEnum";
|
|
100
|
+
export * from "./RawPromptExecutionOverridesRequest";
|
|
85
101
|
export * from "./RegisterPromptErrorResponse";
|
|
86
102
|
export * from "./RegisterPromptModelParametersRequest";
|
|
87
103
|
export * from "./RegisterPromptPrompt";
|
|
@@ -92,6 +108,10 @@ export * from "./RegisteredPromptInputVariableRequest";
|
|
|
92
108
|
export * from "./RegisteredPromptModelVersion";
|
|
93
109
|
export * from "./RegisteredPromptSandbox";
|
|
94
110
|
export * from "./RegisteredPromptSandboxSnapshot";
|
|
111
|
+
export * from "./RejectedEnum";
|
|
112
|
+
export * from "./RejectedExecutePromptEvent";
|
|
113
|
+
export * from "./RejectedExecutePromptResponse";
|
|
114
|
+
export * from "./RejectedPromptExecutionMeta";
|
|
95
115
|
export * from "./SandboxMetricInputParams";
|
|
96
116
|
export * from "./SandboxMetricInputParamsRequest";
|
|
97
117
|
export * from "./SandboxScenario";
|
|
@@ -111,7 +131,11 @@ export * from "./SearchResultMergingRequest";
|
|
|
111
131
|
export * from "./SearchResultRequest";
|
|
112
132
|
export * from "./SearchWeightsRequest";
|
|
113
133
|
export * from "./SlimDocument";
|
|
134
|
+
export * from "./StreamingEnum";
|
|
135
|
+
export * from "./StreamingExecutePromptEvent";
|
|
136
|
+
export * from "./StreamingPromptExecutionMeta";
|
|
114
137
|
export * from "./StringInputRequest";
|
|
138
|
+
export * from "./StringVariableValue";
|
|
115
139
|
export * from "./SubmitCompletionActualRequest";
|
|
116
140
|
export * from "./SubmitCompletionActualsErrorResponse";
|
|
117
141
|
export * from "./SubmitWorkflowExecutionActualRequest";
|
|
@@ -162,6 +186,7 @@ export * from "./WorkflowNodeResultEventState";
|
|
|
162
186
|
export * from "./WorkflowRequestChatHistoryInputRequest";
|
|
163
187
|
export * from "./WorkflowRequestInputRequest";
|
|
164
188
|
export * from "./WorkflowRequestJsonInputRequest";
|
|
189
|
+
export * from "./WorkflowRequestNumberInputRequest";
|
|
165
190
|
export * from "./WorkflowRequestStringInputRequest";
|
|
166
191
|
export * from "./WorkflowResultEvent";
|
|
167
192
|
export * from "./WorkflowResultEventOutputData";
|