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
|
@@ -52,6 +52,9 @@ class Documents {
|
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
54
|
* Used to list documents. Optionally filter on supported fields.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* await vellum.documents.list({})
|
|
55
58
|
*/
|
|
56
59
|
list(request = {}, requestOptions) {
|
|
57
60
|
var _a;
|
|
@@ -78,7 +81,7 @@ class Documents {
|
|
|
78
81
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
79
82
|
"X-Fern-Language": "JavaScript",
|
|
80
83
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
81
|
-
"X-Fern-SDK-Version": "
|
|
84
|
+
"X-Fern-SDK-Version": "v0.1.9",
|
|
82
85
|
},
|
|
83
86
|
contentType: "application/json",
|
|
84
87
|
queryParameters: _queryParams,
|
|
@@ -125,7 +128,7 @@ class Documents {
|
|
|
125
128
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
126
129
|
"X-Fern-Language": "JavaScript",
|
|
127
130
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
128
|
-
"X-Fern-SDK-Version": "
|
|
131
|
+
"X-Fern-SDK-Version": "v0.1.9",
|
|
129
132
|
},
|
|
130
133
|
contentType: "application/json",
|
|
131
134
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -169,7 +172,7 @@ class Documents {
|
|
|
169
172
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
170
173
|
"X-Fern-Language": "JavaScript",
|
|
171
174
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
172
|
-
"X-Fern-SDK-Version": "
|
|
175
|
+
"X-Fern-SDK-Version": "v0.1.9",
|
|
173
176
|
},
|
|
174
177
|
contentType: "application/json",
|
|
175
178
|
body: yield serializers.PatchedDocumentUpdateRequest.jsonOrThrow(request, {
|
|
@@ -245,8 +248,7 @@ class Documents {
|
|
|
245
248
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
246
249
|
"X-Fern-Language": "JavaScript",
|
|
247
250
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
248
|
-
"X-Fern-SDK-Version": "
|
|
249
|
-
"Content-Length": (yield core.getFormDataContentLength(_request)).toString(),
|
|
251
|
+
"X-Fern-SDK-Version": "v0.1.9",
|
|
250
252
|
},
|
|
251
253
|
contentType: "multipart/form-data; boundary=" + _request.getBoundary(),
|
|
252
254
|
body: _request,
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {}
|
|
7
|
+
*/
|
|
4
8
|
export interface DocumentsListRequest {
|
|
5
9
|
/**
|
|
6
10
|
* Filter down to only those documents that are included in the specified index. You may provide either the Vellum-generated ID or the unique name of the index specified upon initial creation.
|
|
@@ -62,7 +62,7 @@ class ModelVersions {
|
|
|
62
62
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
63
63
|
"X-Fern-Language": "JavaScript",
|
|
64
64
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
65
|
-
"X-Fern-SDK-Version": "
|
|
65
|
+
"X-Fern-SDK-Version": "v0.1.9",
|
|
66
66
|
},
|
|
67
67
|
contentType: "application/json",
|
|
68
68
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -69,7 +69,7 @@ class RegisteredPrompts {
|
|
|
69
69
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
70
70
|
"X-Fern-Language": "JavaScript",
|
|
71
71
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
72
|
-
"X-Fern-SDK-Version": "
|
|
72
|
+
"X-Fern-SDK-Version": "v0.1.9",
|
|
73
73
|
},
|
|
74
74
|
contentType: "application/json",
|
|
75
75
|
body: yield serializers.RegisterPromptRequestRequest.jsonOrThrow(request, {
|
|
@@ -29,6 +29,9 @@ export declare class Sandboxes {
|
|
|
29
29
|
upsertSandboxScenario(id: string, request: Vellum.UpsertSandboxScenarioRequestRequest, requestOptions?: Sandboxes.RequestOptions): Promise<Vellum.SandboxScenario>;
|
|
30
30
|
/**
|
|
31
31
|
* Deletes an existing scenario from a sandbox, keying off of the provided scenario id.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* await vellum.sandboxes.deleteSandboxScenario("id", "scenario-id")
|
|
32
35
|
*/
|
|
33
36
|
deleteSandboxScenario(id: string, scenarioId: string, requestOptions?: Sandboxes.RequestOptions): Promise<void>;
|
|
34
37
|
}
|
|
@@ -68,7 +68,7 @@ class Sandboxes {
|
|
|
68
68
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
69
69
|
"X-Fern-Language": "JavaScript",
|
|
70
70
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
71
|
-
"X-Fern-SDK-Version": "
|
|
71
|
+
"X-Fern-SDK-Version": "v0.1.9",
|
|
72
72
|
},
|
|
73
73
|
contentType: "application/json",
|
|
74
74
|
body: yield serializers.UpsertSandboxScenarioRequestRequest.jsonOrThrow(request, {
|
|
@@ -108,6 +108,9 @@ class Sandboxes {
|
|
|
108
108
|
}
|
|
109
109
|
/**
|
|
110
110
|
* Deletes an existing scenario from a sandbox, keying off of the provided scenario id.
|
|
111
|
+
*
|
|
112
|
+
* @example
|
|
113
|
+
* await vellum.sandboxes.deleteSandboxScenario("id", "scenario-id")
|
|
111
114
|
*/
|
|
112
115
|
deleteSandboxScenario(id, scenarioId, requestOptions) {
|
|
113
116
|
var _a;
|
|
@@ -120,7 +123,7 @@ class Sandboxes {
|
|
|
120
123
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
121
124
|
"X-Fern-Language": "JavaScript",
|
|
122
125
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
123
|
-
"X-Fern-SDK-Version": "
|
|
126
|
+
"X-Fern-SDK-Version": "v0.1.9",
|
|
124
127
|
},
|
|
125
128
|
contentType: "application/json",
|
|
126
129
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -25,11 +25,19 @@ export declare class TestSuites {
|
|
|
25
25
|
*
|
|
26
26
|
* Note that a full replacement of the test case is performed, so any fields not provided will be removed
|
|
27
27
|
* or overwritten with default values.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* await vellum.testSuites.upsertTestSuiteTestCase("id", {
|
|
31
|
+
* inputValues: [],
|
|
32
|
+
* evaluationValues: []
|
|
33
|
+
* })
|
|
28
34
|
*/
|
|
29
35
|
upsertTestSuiteTestCase(id: string, request: Vellum.UpsertTestSuiteTestCaseRequest, requestOptions?: TestSuites.RequestOptions): Promise<Vellum.TestSuiteTestCase>;
|
|
30
36
|
/**
|
|
31
37
|
* Deletes an existing test case for a test suite, keying off of the test case id.
|
|
32
38
|
*
|
|
39
|
+
* @example
|
|
40
|
+
* await vellum.testSuites.deleteTestSuiteTestCase("id", "test-case-id")
|
|
33
41
|
*/
|
|
34
42
|
deleteTestSuiteTestCase(id: string, testCaseId: string, requestOptions?: TestSuites.RequestOptions): Promise<void>;
|
|
35
43
|
}
|
|
@@ -56,6 +56,12 @@ class TestSuites {
|
|
|
56
56
|
*
|
|
57
57
|
* Note that a full replacement of the test case is performed, so any fields not provided will be removed
|
|
58
58
|
* or overwritten with default values.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* await vellum.testSuites.upsertTestSuiteTestCase("id", {
|
|
62
|
+
* inputValues: [],
|
|
63
|
+
* evaluationValues: []
|
|
64
|
+
* })
|
|
59
65
|
*/
|
|
60
66
|
upsertTestSuiteTestCase(id, request, requestOptions) {
|
|
61
67
|
var _a;
|
|
@@ -68,7 +74,7 @@ class TestSuites {
|
|
|
68
74
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
69
75
|
"X-Fern-Language": "JavaScript",
|
|
70
76
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
71
|
-
"X-Fern-SDK-Version": "
|
|
77
|
+
"X-Fern-SDK-Version": "v0.1.9",
|
|
72
78
|
},
|
|
73
79
|
contentType: "application/json",
|
|
74
80
|
body: yield serializers.UpsertTestSuiteTestCaseRequest.jsonOrThrow(request, {
|
|
@@ -109,6 +115,8 @@ class TestSuites {
|
|
|
109
115
|
/**
|
|
110
116
|
* Deletes an existing test case for a test suite, keying off of the test case id.
|
|
111
117
|
*
|
|
118
|
+
* @example
|
|
119
|
+
* await vellum.testSuites.deleteTestSuiteTestCase("id", "test-case-id")
|
|
112
120
|
*/
|
|
113
121
|
deleteTestSuiteTestCase(id, testCaseId, requestOptions) {
|
|
114
122
|
var _a;
|
|
@@ -121,7 +129,7 @@ class TestSuites {
|
|
|
121
129
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
122
130
|
"X-Fern-Language": "JavaScript",
|
|
123
131
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
124
|
-
"X-Fern-SDK-Version": "
|
|
132
|
+
"X-Fern-SDK-Version": "v0.1.9",
|
|
125
133
|
},
|
|
126
134
|
contentType: "application/json",
|
|
127
135
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Vellum from "../../../..";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* inputValues: [],
|
|
9
|
+
* evaluationValues: []
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
5
12
|
export interface UpsertTestSuiteTestCaseRequest {
|
|
6
13
|
upsertTestSuiteTestCaseRequestId?: string;
|
|
7
14
|
label?: string;
|
|
@@ -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
|
+
* - `CHAT_MESSAGE` - CHAT_MESSAGE
|
|
6
|
+
* - `CHAT_HISTORY` - CHAT_HISTORY
|
|
7
|
+
* - `JINJA` - JINJA
|
|
8
|
+
* - `FUNCTION_DEFINITION` - FUNCTION_DEFINITION
|
|
9
9
|
*/
|
|
10
10
|
export declare type BlockTypeEnum = "CHAT_MESSAGE" | "CHAT_HISTORY" | "JINJA" | "FUNCTION_DEFINITION";
|
|
11
11
|
export declare const BlockTypeEnum: {
|
|
@@ -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
|
+
* - `SYSTEM` - System
|
|
6
|
+
* - `ASSISTANT` - Assistant
|
|
7
|
+
* - `USER` - User
|
|
8
|
+
* - `FUNCTION` - Function
|
|
9
9
|
*/
|
|
10
10
|
export declare type ChatMessageRole = "SYSTEM" | "ASSISTANT" | "USER" | "FUNCTION";
|
|
11
11
|
export declare const ChatMessageRole: {
|
|
@@ -12,17 +12,17 @@ export interface DeploymentRead {
|
|
|
12
12
|
/**
|
|
13
13
|
* The current status of the deployment
|
|
14
14
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
15
|
+
* - `ACTIVE` - Active
|
|
16
|
+
* - `INACTIVE` - Inactive
|
|
17
|
+
* - `ARCHIVED` - Archived
|
|
18
18
|
*/
|
|
19
19
|
status?: Vellum.DeploymentStatus;
|
|
20
20
|
/**
|
|
21
21
|
* The environment this deployment is used in
|
|
22
22
|
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
23
|
+
* - `DEVELOPMENT` - Development
|
|
24
|
+
* - `STAGING` - Staging
|
|
25
|
+
* - `PRODUCTION` - Production
|
|
26
26
|
*/
|
|
27
27
|
environment?: Vellum.EnvironmentEnum;
|
|
28
28
|
/** Deprecated. The Prompt execution endpoints return a `prompt_version_id` that could be used instead. */
|
|
@@ -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
|
+
* - `ACTIVE` - Active
|
|
6
|
+
* - `INACTIVE` - Inactive
|
|
7
|
+
* - `ARCHIVED` - Archived
|
|
8
8
|
*/
|
|
9
9
|
export declare type DeploymentStatus = "ACTIVE" | "INACTIVE" | "ARCHIVED";
|
|
10
10
|
export declare const DeploymentStatus: {
|
|
@@ -10,11 +10,11 @@ export interface DocumentDocumentToDocumentIndex {
|
|
|
10
10
|
/**
|
|
11
11
|
* An enum value representing where this document is along its indexing lifecycle for this index.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
13
|
+
* - `AWAITING_PROCESSING` - Awaiting Processing
|
|
14
|
+
* - `QUEUED` - Queued
|
|
15
|
+
* - `INDEXING` - Indexing
|
|
16
|
+
* - `INDEXED` - Indexed
|
|
17
|
+
* - `FAILED` - Failed
|
|
18
18
|
*/
|
|
19
19
|
indexingState?: Vellum.IndexingStateEnum;
|
|
20
20
|
}
|
|
@@ -12,16 +12,16 @@ export interface DocumentIndexRead {
|
|
|
12
12
|
/**
|
|
13
13
|
* The current status of the document index
|
|
14
14
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
15
|
+
* - `ACTIVE` - Active
|
|
16
|
+
* - `ARCHIVED` - Archived
|
|
17
17
|
*/
|
|
18
18
|
status?: Vellum.DocumentIndexStatus;
|
|
19
19
|
/**
|
|
20
20
|
* The environment this document index is used in
|
|
21
21
|
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
22
|
+
* - `DEVELOPMENT` - Development
|
|
23
|
+
* - `STAGING` - Staging
|
|
24
|
+
* - `PRODUCTION` - Production
|
|
25
25
|
*/
|
|
26
26
|
environment?: Vellum.EnvironmentEnum;
|
|
27
27
|
/** Configuration representing how documents should be indexed */
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* - `ACTIVE` - Active
|
|
6
|
+
* - `ARCHIVED` - Archived
|
|
7
7
|
*/
|
|
8
8
|
export declare type DocumentIndexStatus = "ACTIVE" | "ARCHIVED";
|
|
9
9
|
export declare const DocumentIndexStatus: {
|
|
@@ -12,16 +12,16 @@ export interface DocumentRead {
|
|
|
12
12
|
/**
|
|
13
13
|
* The current processing state of the document
|
|
14
14
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
15
|
+
* - `QUEUED` - Queued
|
|
16
|
+
* - `PROCESSING` - Processing
|
|
17
|
+
* - `PROCESSED` - Processed
|
|
18
|
+
* - `FAILED` - Failed
|
|
19
19
|
*/
|
|
20
20
|
processingState?: Vellum.ProcessingStateEnum;
|
|
21
21
|
/**
|
|
22
22
|
* The current status of the document
|
|
23
23
|
*
|
|
24
|
-
*
|
|
24
|
+
* - `ACTIVE` - Active
|
|
25
25
|
*/
|
|
26
26
|
status?: Vellum.DocumentStatus;
|
|
27
27
|
originalFileUrl?: string;
|
|
@@ -12,9 +12,9 @@ export interface EnrichedNormalizedCompletion {
|
|
|
12
12
|
/**
|
|
13
13
|
* The reason the generation finished.
|
|
14
14
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
15
|
+
* - `LENGTH` - LENGTH
|
|
16
|
+
* - `STOP` - STOP
|
|
17
|
+
* - `UNKNOWN` - UNKNOWN
|
|
18
18
|
*/
|
|
19
19
|
finishReason?: Vellum.FinishReasonEnum;
|
|
20
20
|
/** The logprobs of the completion. Only present if specified in the original request options. */
|
|
@@ -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
|
+
* - `DEVELOPMENT` - Development
|
|
6
|
+
* - `STAGING` - Staging
|
|
7
|
+
* - `PRODUCTION` - Production
|
|
8
8
|
*/
|
|
9
9
|
export declare type EnvironmentEnum = "DEVELOPMENT" | "STAGING" | "PRODUCTION";
|
|
10
10
|
export declare const EnvironmentEnum: {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
export declare type ExecutePromptEvent = Vellum.ExecutePromptEvent.Initiated | Vellum.ExecutePromptEvent.Streaming | Vellum.ExecutePromptEvent.Fulfilled | Vellum.ExecutePromptEvent.Rejected;
|
|
6
|
+
export declare namespace ExecutePromptEvent {
|
|
7
|
+
interface Initiated extends Vellum.InitiatedExecutePromptEvent {
|
|
8
|
+
state: "INITIATED";
|
|
9
|
+
}
|
|
10
|
+
interface Streaming extends Vellum.StreamingExecutePromptEvent {
|
|
11
|
+
state: "STREAMING";
|
|
12
|
+
}
|
|
13
|
+
interface Fulfilled extends Vellum.FulfilledExecutePromptEvent {
|
|
14
|
+
state: "FULFILLED";
|
|
15
|
+
}
|
|
16
|
+
interface Rejected extends Vellum.RejectedExecutePromptEvent {
|
|
17
|
+
state: "REJECTED";
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
export declare type ExecutePromptResponse = Vellum.ExecutePromptResponse.Fulfilled | Vellum.ExecutePromptResponse.Rejected;
|
|
6
|
+
export declare namespace ExecutePromptResponse {
|
|
7
|
+
interface Fulfilled extends Vellum.FulfilledExecutePromptResponse {
|
|
8
|
+
state: "FULFILLED";
|
|
9
|
+
}
|
|
10
|
+
interface Rejected extends Vellum.RejectedExecutePromptResponse {
|
|
11
|
+
state: "REJECTED";
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -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
|
+
* - `LENGTH` - LENGTH
|
|
6
|
+
* - `STOP` - STOP
|
|
7
|
+
* - `UNKNOWN` - UNKNOWN
|
|
8
8
|
*/
|
|
9
9
|
export declare type FinishReasonEnum = "LENGTH" | "STOP" | "UNKNOWN";
|
|
10
10
|
export declare const FinishReasonEnum: {
|
|
@@ -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 event returned indicating that the stream has ended and all final resolved values from the model can be found.
|
|
7
|
+
*/
|
|
8
|
+
export interface FulfilledExecutePromptEvent {
|
|
9
|
+
outputs: Vellum.PromptOutput[];
|
|
10
|
+
executionId: string;
|
|
11
|
+
meta?: Vellum.FulfilledPromptExecutionMeta;
|
|
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 successful response from the model containing all of the resolved values generated by the prompt.
|
|
7
|
+
*/
|
|
8
|
+
export interface FulfilledExecutePromptResponse {
|
|
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
|
+
outputs: Vellum.PromptOutput[];
|
|
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 FulfilledPromptExecutionMeta {
|
|
9
|
+
latency?: number;
|
|
10
|
+
finishReason?: Vellum.FinishReasonEnum;
|
|
11
|
+
}
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
5
|
+
* - `AWAITING_PROCESSING` - Awaiting Processing
|
|
6
|
+
* - `QUEUED` - Queued
|
|
7
|
+
* - `INDEXING` - Indexing
|
|
8
|
+
* - `INDEXED` - Indexed
|
|
9
|
+
* - `FAILED` - Failed
|
|
10
10
|
*/
|
|
11
11
|
export declare type IndexingStateEnum = "AWAITING_PROCESSING" | "QUEUED" | "INDEXING" | "INDEXED" | "FAILED";
|
|
12
12
|
export declare const IndexingStateEnum: {
|
|
@@ -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 initial data returned indicating that the response from the model has returned and begun streaming.
|
|
7
|
+
*/
|
|
8
|
+
export interface InitiatedExecutePromptEvent {
|
|
9
|
+
meta?: Vellum.InitiatedPromptExecutionMeta;
|
|
10
|
+
executionId: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
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 InitiatedPromptExecutionMeta {
|
|
8
|
+
modelName?: string;
|
|
9
|
+
latency?: number;
|
|
10
|
+
deploymentReleaseTag?: string;
|
|
11
|
+
promptVersionId?: string;
|
|
12
|
+
}
|