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
|
@@ -6,7 +6,7 @@ import * as Vellum from "../../api";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const WorkflowRequestInputRequest: core.serialization.Schema<serializers.WorkflowRequestInputRequest.Raw, Vellum.WorkflowRequestInputRequest>;
|
|
8
8
|
export declare namespace WorkflowRequestInputRequest {
|
|
9
|
-
type Raw = WorkflowRequestInputRequest.String | WorkflowRequestInputRequest.Json | WorkflowRequestInputRequest.ChatHistory;
|
|
9
|
+
type Raw = WorkflowRequestInputRequest.String | WorkflowRequestInputRequest.Json | WorkflowRequestInputRequest.ChatHistory | WorkflowRequestInputRequest.Number;
|
|
10
10
|
interface String extends serializers.WorkflowRequestStringInputRequest.Raw {
|
|
11
11
|
type: "STRING";
|
|
12
12
|
}
|
|
@@ -16,4 +16,7 @@ export declare namespace WorkflowRequestInputRequest {
|
|
|
16
16
|
interface ChatHistory extends serializers.WorkflowRequestChatHistoryInputRequest.Raw {
|
|
17
17
|
type: "CHAT_HISTORY";
|
|
18
18
|
}
|
|
19
|
+
interface Number extends serializers.WorkflowRequestNumberInputRequest.Raw {
|
|
20
|
+
type: "NUMBER";
|
|
21
|
+
}
|
|
19
22
|
}
|
|
@@ -42,6 +42,7 @@ exports.WorkflowRequestInputRequest = core.serialization
|
|
|
42
42
|
STRING: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowRequestStringInputRequest; })),
|
|
43
43
|
JSON: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowRequestJsonInputRequest; })),
|
|
44
44
|
CHAT_HISTORY: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowRequestChatHistoryInputRequest; })),
|
|
45
|
+
NUMBER: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowRequestNumberInputRequest; })),
|
|
45
46
|
})
|
|
46
47
|
.transform({
|
|
47
48
|
transform: (value) => value,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const WorkflowRequestNumberInputRequest: core.serialization.ObjectSchema<serializers.WorkflowRequestNumberInputRequest.Raw, Vellum.WorkflowRequestNumberInputRequest>;
|
|
8
|
+
export declare namespace WorkflowRequestNumberInputRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
name: string;
|
|
11
|
+
value: number;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.WorkflowRequestNumberInputRequest = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.WorkflowRequestNumberInputRequest = core.serialization.object({
|
|
32
|
+
name: core.serialization.string(),
|
|
33
|
+
value: core.serialization.number(),
|
|
34
|
+
});
|
|
@@ -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";
|
|
@@ -42,10 +42,18 @@ __exportStar(require("./DocumentRead"), exports);
|
|
|
42
42
|
__exportStar(require("./DocumentStatus"), exports);
|
|
43
43
|
__exportStar(require("./EnrichedNormalizedCompletion"), exports);
|
|
44
44
|
__exportStar(require("./EnvironmentEnum"), exports);
|
|
45
|
+
__exportStar(require("./ErrorVariableValue"), exports);
|
|
45
46
|
__exportStar(require("./EvaluationParams"), exports);
|
|
46
47
|
__exportStar(require("./EvaluationParamsRequest"), exports);
|
|
48
|
+
__exportStar(require("./ExecutePromptApiErrorResponse"), exports);
|
|
49
|
+
__exportStar(require("./ExecutePromptEvent"), exports);
|
|
50
|
+
__exportStar(require("./ExecutePromptResponse"), exports);
|
|
47
51
|
__exportStar(require("./ExecuteWorkflowStreamErrorResponse"), exports);
|
|
48
52
|
__exportStar(require("./FinishReasonEnum"), exports);
|
|
53
|
+
__exportStar(require("./FulfilledEnum"), exports);
|
|
54
|
+
__exportStar(require("./FulfilledExecutePromptEvent"), exports);
|
|
55
|
+
__exportStar(require("./FulfilledExecutePromptResponse"), exports);
|
|
56
|
+
__exportStar(require("./FulfilledPromptExecutionMeta"), exports);
|
|
49
57
|
__exportStar(require("./GenerateErrorResponse"), exports);
|
|
50
58
|
__exportStar(require("./GenerateOptionsRequest"), exports);
|
|
51
59
|
__exportStar(require("./GenerateRequest"), exports);
|
|
@@ -57,7 +65,11 @@ __exportStar(require("./GenerateStreamResponse"), exports);
|
|
|
57
65
|
__exportStar(require("./GenerateStreamResult"), exports);
|
|
58
66
|
__exportStar(require("./GenerateStreamResultData"), exports);
|
|
59
67
|
__exportStar(require("./IndexingStateEnum"), exports);
|
|
68
|
+
__exportStar(require("./InitiatedEnum"), exports);
|
|
69
|
+
__exportStar(require("./InitiatedExecutePromptEvent"), exports);
|
|
70
|
+
__exportStar(require("./InitiatedPromptExecutionMeta"), exports);
|
|
60
71
|
__exportStar(require("./JsonInputRequest"), exports);
|
|
72
|
+
__exportStar(require("./JsonVariableValue"), exports);
|
|
61
73
|
__exportStar(require("./LogicalOperator"), exports);
|
|
62
74
|
__exportStar(require("./LogprobsEnum"), exports);
|
|
63
75
|
__exportStar(require("./MetadataFilterConfigRequest"), exports);
|
|
@@ -88,9 +100,12 @@ __exportStar(require("./NormalizedTokenLogProbs"), exports);
|
|
|
88
100
|
__exportStar(require("./PaginatedSlimDocumentList"), exports);
|
|
89
101
|
__exportStar(require("./ProcessingFailureReasonEnum"), exports);
|
|
90
102
|
__exportStar(require("./ProcessingStateEnum"), exports);
|
|
103
|
+
__exportStar(require("./PromptDeploymentExpandMetaRequestRequest"), exports);
|
|
91
104
|
__exportStar(require("./PromptDeploymentInputRequest"), exports);
|
|
105
|
+
__exportStar(require("./PromptExecutionMeta"), exports);
|
|
92
106
|
__exportStar(require("./PromptNodeResult"), exports);
|
|
93
107
|
__exportStar(require("./PromptNodeResultData"), exports);
|
|
108
|
+
__exportStar(require("./PromptOutput"), exports);
|
|
94
109
|
__exportStar(require("./PromptTemplateBlock"), exports);
|
|
95
110
|
__exportStar(require("./PromptTemplateBlockData"), exports);
|
|
96
111
|
__exportStar(require("./PromptTemplateBlockDataRequest"), exports);
|
|
@@ -98,6 +113,7 @@ __exportStar(require("./PromptTemplateBlockProperties"), exports);
|
|
|
98
113
|
__exportStar(require("./PromptTemplateBlockPropertiesRequest"), exports);
|
|
99
114
|
__exportStar(require("./PromptTemplateBlockRequest"), exports);
|
|
100
115
|
__exportStar(require("./ProviderEnum"), exports);
|
|
116
|
+
__exportStar(require("./RawPromptExecutionOverridesRequest"), exports);
|
|
101
117
|
__exportStar(require("./RegisterPromptErrorResponse"), exports);
|
|
102
118
|
__exportStar(require("./RegisterPromptModelParametersRequest"), exports);
|
|
103
119
|
__exportStar(require("./RegisterPromptPrompt"), exports);
|
|
@@ -108,6 +124,10 @@ __exportStar(require("./RegisteredPromptInputVariableRequest"), exports);
|
|
|
108
124
|
__exportStar(require("./RegisteredPromptModelVersion"), exports);
|
|
109
125
|
__exportStar(require("./RegisteredPromptSandbox"), exports);
|
|
110
126
|
__exportStar(require("./RegisteredPromptSandboxSnapshot"), exports);
|
|
127
|
+
__exportStar(require("./RejectedEnum"), exports);
|
|
128
|
+
__exportStar(require("./RejectedExecutePromptEvent"), exports);
|
|
129
|
+
__exportStar(require("./RejectedExecutePromptResponse"), exports);
|
|
130
|
+
__exportStar(require("./RejectedPromptExecutionMeta"), exports);
|
|
111
131
|
__exportStar(require("./SandboxMetricInputParams"), exports);
|
|
112
132
|
__exportStar(require("./SandboxMetricInputParamsRequest"), exports);
|
|
113
133
|
__exportStar(require("./SandboxScenario"), exports);
|
|
@@ -127,7 +147,11 @@ __exportStar(require("./SearchResultMergingRequest"), exports);
|
|
|
127
147
|
__exportStar(require("./SearchResultRequest"), exports);
|
|
128
148
|
__exportStar(require("./SearchWeightsRequest"), exports);
|
|
129
149
|
__exportStar(require("./SlimDocument"), exports);
|
|
150
|
+
__exportStar(require("./StreamingEnum"), exports);
|
|
151
|
+
__exportStar(require("./StreamingExecutePromptEvent"), exports);
|
|
152
|
+
__exportStar(require("./StreamingPromptExecutionMeta"), exports);
|
|
130
153
|
__exportStar(require("./StringInputRequest"), exports);
|
|
154
|
+
__exportStar(require("./StringVariableValue"), exports);
|
|
131
155
|
__exportStar(require("./SubmitCompletionActualRequest"), exports);
|
|
132
156
|
__exportStar(require("./SubmitCompletionActualsErrorResponse"), exports);
|
|
133
157
|
__exportStar(require("./SubmitWorkflowExecutionActualRequest"), exports);
|
|
@@ -178,6 +202,7 @@ __exportStar(require("./WorkflowNodeResultEventState"), exports);
|
|
|
178
202
|
__exportStar(require("./WorkflowRequestChatHistoryInputRequest"), exports);
|
|
179
203
|
__exportStar(require("./WorkflowRequestInputRequest"), exports);
|
|
180
204
|
__exportStar(require("./WorkflowRequestJsonInputRequest"), exports);
|
|
205
|
+
__exportStar(require("./WorkflowRequestNumberInputRequest"), exports);
|
|
181
206
|
__exportStar(require("./WorkflowRequestStringInputRequest"), exports);
|
|
182
207
|
__exportStar(require("./WorkflowResultEvent"), exports);
|
|
183
208
|
__exportStar(require("./WorkflowResultEventOutputData"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vellum-ai",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "v0.1.9",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": "https://github.com/vellum-ai/vellum-client-node",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -12,13 +12,14 @@
|
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"url-join": "4.0.1",
|
|
15
|
-
"@types/url-join": "4.0.1",
|
|
16
15
|
"form-data": "4.0.0",
|
|
17
|
-
"
|
|
18
|
-
"qs": "6.11.2"
|
|
19
|
-
"@types/qs": "6.9.8"
|
|
16
|
+
"node-fetch": "2.7.0",
|
|
17
|
+
"qs": "6.11.2"
|
|
20
18
|
},
|
|
21
19
|
"devDependencies": {
|
|
20
|
+
"@types/url-join": "4.0.1",
|
|
21
|
+
"@types/qs": "6.9.8",
|
|
22
|
+
"@types/node-fetch": "2.6.9",
|
|
22
23
|
"@types/node": "17.0.33",
|
|
23
24
|
"prettier": "2.7.1",
|
|
24
25
|
"typescript": "4.6.4"
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../..";
|
|
5
|
+
import * as Vellum from "../../../api";
|
|
6
|
+
import * as core from "../../../core";
|
|
7
|
+
export declare const ExecutePromptRequest: core.serialization.Schema<serializers.ExecutePromptRequest.Raw, Vellum.ExecutePromptRequest>;
|
|
8
|
+
export declare namespace ExecutePromptRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
inputs: serializers.PromptDeploymentInputRequest.Raw[];
|
|
11
|
+
prompt_deployment_id?: string | null;
|
|
12
|
+
prompt_deployment_name?: string | null;
|
|
13
|
+
release_tag?: string | null;
|
|
14
|
+
external_id?: string | null;
|
|
15
|
+
expand_meta?: serializers.PromptDeploymentExpandMetaRequestRequest.Raw | null;
|
|
16
|
+
raw_overrides?: serializers.RawPromptExecutionOverridesRequest.Raw | null;
|
|
17
|
+
expand_raw?: string[] | null;
|
|
18
|
+
metadata?: Record<string, unknown> | null;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
exports.ExecutePromptRequest = void 0;
|
|
39
|
+
const core = __importStar(require("../../../core"));
|
|
40
|
+
exports.ExecutePromptRequest = core.serialization.object({
|
|
41
|
+
inputs: core.serialization.list(core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../..")))).PromptDeploymentInputRequest; }))),
|
|
42
|
+
promptDeploymentId: core.serialization.property("prompt_deployment_id", core.serialization.string().optional()),
|
|
43
|
+
promptDeploymentName: core.serialization.property("prompt_deployment_name", core.serialization.string().optional()),
|
|
44
|
+
releaseTag: core.serialization.property("release_tag", core.serialization.string().optional()),
|
|
45
|
+
externalId: core.serialization.property("external_id", core.serialization.string().optional()),
|
|
46
|
+
expandMeta: core.serialization.property("expand_meta", core.serialization
|
|
47
|
+
.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../..")))).PromptDeploymentExpandMetaRequestRequest; }))
|
|
48
|
+
.optional()),
|
|
49
|
+
rawOverrides: core.serialization.property("raw_overrides", core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../..")))).RawPromptExecutionOverridesRequest; })).optional()),
|
|
50
|
+
expandRaw: core.serialization.property("expand_raw", core.serialization.list(core.serialization.string()).optional()),
|
|
51
|
+
metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
52
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../..";
|
|
5
|
+
import * as Vellum from "../../../api";
|
|
6
|
+
import * as core from "../../../core";
|
|
7
|
+
export declare const ExecutePromptStreamRequest: core.serialization.Schema<serializers.ExecutePromptStreamRequest.Raw, Vellum.ExecutePromptStreamRequest>;
|
|
8
|
+
export declare namespace ExecutePromptStreamRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
inputs: serializers.PromptDeploymentInputRequest.Raw[];
|
|
11
|
+
prompt_deployment_id?: string | null;
|
|
12
|
+
prompt_deployment_name?: string | null;
|
|
13
|
+
release_tag?: string | null;
|
|
14
|
+
external_id?: string | null;
|
|
15
|
+
expand_meta?: serializers.PromptDeploymentExpandMetaRequestRequest.Raw | null;
|
|
16
|
+
raw_overrides?: serializers.RawPromptExecutionOverridesRequest.Raw | null;
|
|
17
|
+
expand_raw?: string[] | null;
|
|
18
|
+
metadata?: Record<string, unknown> | null;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
exports.ExecutePromptStreamRequest = void 0;
|
|
39
|
+
const core = __importStar(require("../../../core"));
|
|
40
|
+
exports.ExecutePromptStreamRequest = core.serialization.object({
|
|
41
|
+
inputs: core.serialization.list(core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../..")))).PromptDeploymentInputRequest; }))),
|
|
42
|
+
promptDeploymentId: core.serialization.property("prompt_deployment_id", core.serialization.string().optional()),
|
|
43
|
+
promptDeploymentName: core.serialization.property("prompt_deployment_name", core.serialization.string().optional()),
|
|
44
|
+
releaseTag: core.serialization.property("release_tag", core.serialization.string().optional()),
|
|
45
|
+
externalId: core.serialization.property("external_id", core.serialization.string().optional()),
|
|
46
|
+
expandMeta: core.serialization.property("expand_meta", core.serialization
|
|
47
|
+
.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../..")))).PromptDeploymentExpandMetaRequestRequest; }))
|
|
48
|
+
.optional()),
|
|
49
|
+
rawOverrides: core.serialization.property("raw_overrides", core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../..")))).RawPromptExecutionOverridesRequest; })).optional()),
|
|
50
|
+
expandRaw: core.serialization.property("expand_raw", core.serialization.list(core.serialization.string()).optional()),
|
|
51
|
+
metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
52
|
+
});
|
|
@@ -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";
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SubmitWorkflowExecutionActualsRequest = exports.SubmitCompletionActualsRequest = exports.SearchRequestBodyRequest = exports.GenerateStreamBodyRequest = exports.GenerateBodyRequest = exports.ExecuteWorkflowStreamRequest = void 0;
|
|
3
|
+
exports.SubmitWorkflowExecutionActualsRequest = exports.SubmitCompletionActualsRequest = exports.SearchRequestBodyRequest = exports.GenerateStreamBodyRequest = exports.GenerateBodyRequest = exports.ExecuteWorkflowStreamRequest = exports.ExecutePromptStreamRequest = exports.ExecutePromptRequest = void 0;
|
|
4
|
+
var ExecutePromptRequest_1 = require("./ExecutePromptRequest");
|
|
5
|
+
Object.defineProperty(exports, "ExecutePromptRequest", { enumerable: true, get: function () { return ExecutePromptRequest_1.ExecutePromptRequest; } });
|
|
6
|
+
var ExecutePromptStreamRequest_1 = require("./ExecutePromptStreamRequest");
|
|
7
|
+
Object.defineProperty(exports, "ExecutePromptStreamRequest", { enumerable: true, get: function () { return ExecutePromptStreamRequest_1.ExecutePromptStreamRequest; } });
|
|
4
8
|
var ExecuteWorkflowStreamRequest_1 = require("./ExecuteWorkflowStreamRequest");
|
|
5
9
|
Object.defineProperty(exports, "ExecuteWorkflowStreamRequest", { enumerable: true, get: function () { return ExecuteWorkflowStreamRequest_1.ExecuteWorkflowStreamRequest; } });
|
|
6
10
|
var GenerateBodyRequest_1 = require("./GenerateBodyRequest");
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const ErrorVariableValue: core.serialization.ObjectSchema<serializers.ErrorVariableValue.Raw, Vellum.ErrorVariableValue>;
|
|
8
|
+
export declare namespace ErrorVariableValue {
|
|
9
|
+
interface Raw {
|
|
10
|
+
value?: serializers.VellumError.Raw | null;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
exports.ErrorVariableValue = void 0;
|
|
39
|
+
const core = __importStar(require("../../core"));
|
|
40
|
+
exports.ErrorVariableValue = core.serialization.object({
|
|
41
|
+
value: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).VellumError; })).optional(),
|
|
42
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const ExecutePromptApiErrorResponse: core.serialization.ObjectSchema<serializers.ExecutePromptApiErrorResponse.Raw, Vellum.ExecutePromptApiErrorResponse>;
|
|
8
|
+
export declare namespace ExecutePromptApiErrorResponse {
|
|
9
|
+
interface Raw {
|
|
10
|
+
detail: string;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ExecutePromptApiErrorResponse = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.ExecutePromptApiErrorResponse = core.serialization.object({
|
|
32
|
+
detail: core.serialization.string(),
|
|
33
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const ExecutePromptEvent: core.serialization.Schema<serializers.ExecutePromptEvent.Raw, Vellum.ExecutePromptEvent>;
|
|
8
|
+
export declare namespace ExecutePromptEvent {
|
|
9
|
+
type Raw = ExecutePromptEvent.Initiated | ExecutePromptEvent.Streaming | ExecutePromptEvent.Fulfilled | ExecutePromptEvent.Rejected;
|
|
10
|
+
interface Initiated extends serializers.InitiatedExecutePromptEvent.Raw {
|
|
11
|
+
state: "INITIATED";
|
|
12
|
+
}
|
|
13
|
+
interface Streaming extends serializers.StreamingExecutePromptEvent.Raw {
|
|
14
|
+
state: "STREAMING";
|
|
15
|
+
}
|
|
16
|
+
interface Fulfilled extends serializers.FulfilledExecutePromptEvent.Raw {
|
|
17
|
+
state: "FULFILLED";
|
|
18
|
+
}
|
|
19
|
+
interface Rejected extends serializers.RejectedExecutePromptEvent.Raw {
|
|
20
|
+
state: "REJECTED";
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
exports.ExecutePromptEvent = void 0;
|
|
39
|
+
const core = __importStar(require("../../core"));
|
|
40
|
+
exports.ExecutePromptEvent = core.serialization
|
|
41
|
+
.union("state", {
|
|
42
|
+
INITIATED: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).InitiatedExecutePromptEvent; })),
|
|
43
|
+
STREAMING: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).StreamingExecutePromptEvent; })),
|
|
44
|
+
FULFILLED: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).FulfilledExecutePromptEvent; })),
|
|
45
|
+
REJECTED: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).RejectedExecutePromptEvent; })),
|
|
46
|
+
})
|
|
47
|
+
.transform({
|
|
48
|
+
transform: (value) => value,
|
|
49
|
+
untransform: (value) => value,
|
|
50
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const ExecutePromptResponse: core.serialization.Schema<serializers.ExecutePromptResponse.Raw, Vellum.ExecutePromptResponse>;
|
|
8
|
+
export declare namespace ExecutePromptResponse {
|
|
9
|
+
type Raw = ExecutePromptResponse.Fulfilled | ExecutePromptResponse.Rejected;
|
|
10
|
+
interface Fulfilled extends serializers.FulfilledExecutePromptResponse.Raw {
|
|
11
|
+
state: "FULFILLED";
|
|
12
|
+
}
|
|
13
|
+
interface Rejected extends serializers.RejectedExecutePromptResponse.Raw {
|
|
14
|
+
state: "REJECTED";
|
|
15
|
+
}
|
|
16
|
+
}
|