vellum-ai 0.8.4 → 0.8.6
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 +6 -6
- package/Client.js +23 -23
- package/api/client/requests/ExecutePromptRequest.d.ts +1 -1
- package/api/client/requests/ExecutePromptStreamRequest.d.ts +1 -1
- package/api/errors/index.d.ts +1 -1
- package/api/errors/index.js +1 -1
- package/api/resources/adHoc/client/Client.d.ts +31 -0
- package/api/resources/adHoc/client/Client.js +126 -0
- package/api/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +65 -0
- package/api/resources/adHoc/client/requests/index.d.ts +1 -0
- package/api/resources/deployments/client/Client.d.ts +3 -3
- package/api/resources/deployments/client/Client.js +6 -6
- package/api/resources/documentIndexes/client/Client.d.ts +3 -3
- package/api/resources/documentIndexes/client/Client.js +9 -9
- package/api/resources/documents/client/Client.d.ts +3 -3
- package/api/resources/documents/client/Client.js +6 -6
- package/api/resources/folderEntities/client/Client.d.ts +3 -3
- package/api/resources/folderEntities/client/Client.js +2 -2
- package/api/resources/index.d.ts +2 -2
- package/api/resources/index.js +3 -3
- package/api/resources/sandboxes/client/Client.d.ts +5 -5
- package/api/resources/sandboxes/client/Client.js +6 -8
- package/{dist/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts → api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequest.d.ts} +1 -1
- package/api/resources/sandboxes/client/requests/index.d.ts +1 -1
- package/api/resources/testSuiteRuns/client/Client.d.ts +3 -3
- package/api/resources/testSuiteRuns/client/Client.js +4 -4
- package/api/resources/testSuites/client/Client.d.ts +3 -3
- package/api/resources/testSuites/client/Client.js +5 -5
- package/api/resources/workflowDeployments/client/Client.d.ts +3 -3
- package/api/resources/workflowDeployments/client/Client.js +5 -5
- package/api/resources/workflowSandboxes/client/Client.d.ts +3 -3
- package/api/resources/workflowSandboxes/client/Client.js +2 -2
- package/api/types/AdHocExecutePromptEvent.d.ts +5 -0
- package/api/types/AdHocExpandMetaRequest.d.ts +12 -0
- package/api/types/AdHocFulfilledPromptExecutionMeta.d.ts +12 -0
- package/api/types/AdHocInitiatedPromptExecutionMeta.d.ts +10 -0
- package/api/types/AdHocRejectedPromptExecutionMeta.d.ts +11 -0
- package/api/types/AdHocStreamingPromptExecutionMeta.d.ts +9 -0
- package/api/types/ChatMessagePromptBlockPropertiesRequest.d.ts +13 -0
- package/api/types/ChatMessagePromptBlockRequest.d.ts +14 -0
- package/api/types/{MlModelDeveloperEnumValueLabel.d.ts → EphemeralPromptCacheConfigRequest.d.ts} +2 -3
- package/api/types/EphemeralPromptCacheConfigTypeEnum.d.ts +7 -0
- package/api/types/FulfilledAdHocExecutePromptEvent.d.ts +13 -0
- package/api/types/FunctionDefinitionPromptBlockPropertiesRequest.d.ts +15 -0
- package/api/types/FunctionDefinitionPromptBlockRequest.d.ts +14 -0
- package/api/types/InitiatedAdHocExecutePromptEvent.d.ts +12 -0
- package/api/types/JinjaPromptBlockPropertiesRequest.d.ts +8 -0
- package/api/types/JinjaPromptBlockRequest.d.ts +14 -0
- package/api/types/MlModelUsage.d.ts +2 -0
- package/api/types/PlainTextPromptBlockRequest.d.ts +14 -0
- package/api/types/PromptBlockRequest.d.ts +5 -0
- package/api/types/PromptBlockState.d.ts +12 -0
- package/api/types/{VisibilityEnum.js → PromptBlockState.js} +3 -5
- package/api/types/{PromptDeploymentExpandMetaRequestRequest.d.ts → PromptDeploymentExpandMetaRequest.d.ts} +1 -1
- package/api/types/PromptParametersRequest.d.ts +14 -0
- package/api/types/PromptRequestChatHistoryInputRequest.d.ts +10 -0
- package/api/types/PromptRequestInputRequest.d.ts +5 -0
- package/api/types/PromptRequestJsonInputRequest.d.ts +9 -0
- package/api/types/PromptRequestStringInputRequest.d.ts +9 -0
- package/api/types/RejectedAdHocExecutePromptEvent.d.ts +13 -0
- package/api/types/RichTextChildBlockRequest.d.ts +5 -0
- package/api/types/RichTextPromptBlockRequest.d.ts +14 -0
- package/api/types/StreamingAdHocExecutePromptEvent.d.ts +16 -0
- package/api/types/VariablePromptBlockRequest.d.ts +14 -0
- package/api/types/{MlModelFamilyEnumValueLabel.d.ts → VellumVariableRequest.d.ts} +4 -3
- package/api/types/index.d.ts +31 -51
- package/api/types/index.js +31 -51
- package/dist/Client.d.ts +6 -6
- package/dist/Client.js +23 -23
- package/dist/api/client/requests/ExecutePromptRequest.d.ts +1 -1
- package/dist/api/client/requests/ExecutePromptStreamRequest.d.ts +1 -1
- package/dist/api/errors/index.d.ts +1 -1
- package/dist/api/errors/index.js +1 -1
- package/dist/api/resources/adHoc/client/Client.d.ts +31 -0
- package/dist/api/resources/adHoc/client/Client.js +126 -0
- package/dist/api/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +65 -0
- package/dist/api/resources/adHoc/client/requests/index.d.ts +1 -0
- package/dist/api/resources/deployments/client/Client.d.ts +3 -3
- package/dist/api/resources/deployments/client/Client.js +6 -6
- package/dist/api/resources/documentIndexes/client/Client.d.ts +3 -3
- package/dist/api/resources/documentIndexes/client/Client.js +9 -9
- package/dist/api/resources/documents/client/Client.d.ts +3 -3
- package/dist/api/resources/documents/client/Client.js +6 -6
- package/dist/api/resources/folderEntities/client/Client.d.ts +3 -3
- package/dist/api/resources/folderEntities/client/Client.js +2 -2
- package/dist/api/resources/index.d.ts +2 -2
- package/dist/api/resources/index.js +3 -3
- package/dist/api/resources/sandboxes/client/Client.d.ts +5 -5
- package/dist/api/resources/sandboxes/client/Client.js +6 -8
- package/{api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts → dist/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequest.d.ts} +1 -1
- package/dist/api/resources/sandboxes/client/requests/index.d.ts +1 -1
- package/dist/api/resources/testSuiteRuns/client/Client.d.ts +3 -3
- package/dist/api/resources/testSuiteRuns/client/Client.js +4 -4
- package/dist/api/resources/testSuites/client/Client.d.ts +3 -3
- package/dist/api/resources/testSuites/client/Client.js +5 -5
- package/dist/api/resources/workflowDeployments/client/Client.d.ts +3 -3
- package/dist/api/resources/workflowDeployments/client/Client.js +5 -5
- package/dist/api/resources/workflowSandboxes/client/Client.d.ts +3 -3
- package/dist/api/resources/workflowSandboxes/client/Client.js +2 -2
- package/dist/api/types/AdHocExecutePromptEvent.d.ts +5 -0
- package/dist/api/types/AdHocExpandMetaRequest.d.ts +12 -0
- package/dist/api/types/AdHocFulfilledPromptExecutionMeta.d.ts +12 -0
- package/dist/api/types/AdHocInitiatedPromptExecutionMeta.d.ts +10 -0
- package/dist/api/types/AdHocRejectedPromptExecutionMeta.d.ts +11 -0
- package/dist/api/types/AdHocStreamingPromptExecutionMeta.d.ts +9 -0
- package/dist/api/types/ChatMessagePromptBlockPropertiesRequest.d.ts +13 -0
- package/dist/api/types/ChatMessagePromptBlockRequest.d.ts +14 -0
- package/{api/types/MlModelDisplayTagEnumValueLabel.d.ts → dist/api/types/EphemeralPromptCacheConfigRequest.d.ts} +2 -3
- package/dist/api/types/EphemeralPromptCacheConfigTypeEnum.d.ts +7 -0
- package/dist/api/types/FulfilledAdHocExecutePromptEvent.d.ts +13 -0
- package/dist/api/types/FunctionDefinitionPromptBlockPropertiesRequest.d.ts +15 -0
- package/dist/api/types/FunctionDefinitionPromptBlockRequest.d.ts +14 -0
- package/dist/api/types/InitiatedAdHocExecutePromptEvent.d.ts +12 -0
- package/dist/api/types/JinjaPromptBlockPropertiesRequest.d.ts +8 -0
- package/dist/api/types/JinjaPromptBlockRequest.d.ts +14 -0
- package/dist/api/types/MlModelUsage.d.ts +2 -0
- package/dist/api/types/PlainTextPromptBlockRequest.d.ts +14 -0
- package/dist/api/types/PromptBlockRequest.d.ts +5 -0
- package/dist/api/types/PromptBlockState.d.ts +12 -0
- package/dist/api/types/{VisibilityEnum.js → PromptBlockState.js} +3 -5
- package/dist/api/types/{PromptDeploymentExpandMetaRequestRequest.d.ts → PromptDeploymentExpandMetaRequest.d.ts} +1 -1
- package/dist/api/types/PromptParametersRequest.d.ts +14 -0
- package/dist/api/types/PromptRequestChatHistoryInputRequest.d.ts +10 -0
- package/dist/api/types/PromptRequestInputRequest.d.ts +5 -0
- package/dist/api/types/PromptRequestJsonInputRequest.d.ts +9 -0
- package/dist/api/types/PromptRequestStringInputRequest.d.ts +9 -0
- package/dist/api/types/RejectedAdHocExecutePromptEvent.d.ts +13 -0
- package/dist/api/types/RichTextChildBlockRequest.d.ts +5 -0
- package/dist/api/types/RichTextPromptBlockRequest.d.ts +14 -0
- package/dist/api/types/StreamingAdHocExecutePromptEvent.d.ts +16 -0
- package/dist/api/types/VariablePromptBlockRequest.d.ts +14 -0
- package/dist/api/types/{MlModelDeveloperEnumValueLabel.d.ts → VellumVariableRequest.d.ts} +4 -3
- package/dist/api/types/index.d.ts +31 -51
- package/dist/api/types/index.js +31 -51
- package/dist/serialization/client/requests/ExecutePromptRequest.d.ts +2 -2
- package/dist/serialization/client/requests/ExecutePromptRequest.js +2 -2
- package/dist/serialization/client/requests/ExecutePromptStreamRequest.d.ts +2 -2
- package/dist/serialization/client/requests/ExecutePromptStreamRequest.js +2 -2
- package/dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +21 -0
- package/{serialization/resources/mlModels/client/requests/MlModelUpdateRequest.js → dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.js} +13 -10
- package/dist/serialization/resources/adHoc/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/adHoc/client/requests/index.js +5 -0
- package/dist/serialization/resources/index.d.ts +2 -2
- package/dist/serialization/resources/index.js +3 -3
- package/{serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts → dist/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequest.d.ts} +2 -2
- package/{serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.js → dist/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequest.js} +2 -2
- package/dist/serialization/resources/sandboxes/client/requests/index.d.ts +1 -1
- package/dist/serialization/resources/sandboxes/client/requests/index.js +3 -3
- package/dist/serialization/types/AdHocExecutePromptEvent.d.ts +14 -0
- package/dist/serialization/types/AdHocExecutePromptEvent.js +40 -0
- package/dist/serialization/types/AdHocExpandMetaRequest.d.ts +15 -0
- package/dist/serialization/types/AdHocExpandMetaRequest.js +36 -0
- package/dist/serialization/types/AdHocFulfilledPromptExecutionMeta.d.ts +16 -0
- package/dist/serialization/types/AdHocFulfilledPromptExecutionMeta.js +37 -0
- package/dist/serialization/types/AdHocInitiatedPromptExecutionMeta.d.ts +13 -0
- package/{serialization/types/HuggingFaceTokenizerConfigRequest.js → dist/serialization/types/AdHocInitiatedPromptExecutionMeta.js} +4 -5
- package/dist/serialization/types/AdHocRejectedPromptExecutionMeta.d.ts +14 -0
- package/dist/serialization/types/AdHocRejectedPromptExecutionMeta.js +35 -0
- package/dist/serialization/types/AdHocStreamingPromptExecutionMeta.d.ts +12 -0
- package/dist/serialization/types/{MlModelDisplayTag.js → AdHocStreamingPromptExecutionMeta.js} +4 -2
- package/dist/serialization/types/ChatMessagePromptBlockPropertiesRequest.d.ts +16 -0
- package/{serialization/types/OpenApiOneOfProperty.js → dist/serialization/types/ChatMessagePromptBlockPropertiesRequest.js} +7 -6
- package/dist/serialization/types/ChatMessagePromptBlockRequest.d.ts +18 -0
- package/dist/serialization/types/{OpenApiOneOfProperty.js → ChatMessagePromptBlockRequest.js} +9 -6
- package/dist/serialization/types/EphemeralPromptCacheConfigRequest.d.ts +13 -0
- package/dist/serialization/types/EphemeralPromptCacheConfigRequest.js +34 -0
- package/dist/serialization/types/EphemeralPromptCacheConfigTypeEnum.d.ts +10 -0
- package/{serialization/types/MlModelRequestAuthorizationConfigTypeEnum.js → dist/serialization/types/EphemeralPromptCacheConfigTypeEnum.js} +2 -2
- package/dist/serialization/types/FulfilledAdHocExecutePromptEvent.d.ts +17 -0
- package/dist/serialization/types/FulfilledAdHocExecutePromptEvent.js +38 -0
- package/dist/serialization/types/FunctionDefinitionPromptBlockPropertiesRequest.d.ts +16 -0
- package/{serialization/types/MlModelRequestConfig.js → dist/serialization/types/FunctionDefinitionPromptBlockPropertiesRequest.js} +7 -6
- package/dist/serialization/types/FunctionDefinitionPromptBlockRequest.d.ts +19 -0
- package/dist/serialization/types/FunctionDefinitionPromptBlockRequest.js +40 -0
- package/dist/serialization/types/InitiatedAdHocExecutePromptEvent.d.ts +15 -0
- package/dist/serialization/types/InitiatedAdHocExecutePromptEvent.js +36 -0
- package/dist/serialization/types/JinjaPromptBlockPropertiesRequest.d.ts +14 -0
- package/dist/serialization/types/{MlModelRequestAuthorizationConfig.js → JinjaPromptBlockPropertiesRequest.js} +5 -4
- package/dist/serialization/types/JinjaPromptBlockRequest.d.ts +19 -0
- package/dist/serialization/types/JinjaPromptBlockRequest.js +40 -0
- package/dist/serialization/types/MlModelUsage.d.ts +2 -0
- package/dist/serialization/types/MlModelUsage.js +2 -0
- package/dist/serialization/types/PlainTextPromptBlockRequest.d.ts +18 -0
- package/dist/serialization/types/{MlModelDisplayConfigRequest.js → PlainTextPromptBlockRequest.js} +9 -7
- package/dist/serialization/types/PromptBlockRequest.d.ts +14 -0
- package/dist/serialization/types/PromptBlockRequest.js +42 -0
- package/dist/serialization/types/PromptBlockState.d.ts +10 -0
- package/dist/serialization/types/{VisibilityEnum.js → PromptBlockState.js} +2 -2
- package/dist/serialization/types/{PromptDeploymentExpandMetaRequestRequest.d.ts → PromptDeploymentExpandMetaRequest.d.ts} +2 -2
- package/{serialization/types/PromptDeploymentExpandMetaRequestRequest.js → dist/serialization/types/PromptDeploymentExpandMetaRequest.js} +2 -2
- package/dist/serialization/types/PromptParametersRequest.d.ts +20 -0
- package/dist/serialization/types/{MlModelParameterConfig.js → PromptParametersRequest.js} +11 -16
- package/dist/serialization/types/PromptRequestChatHistoryInputRequest.d.ts +15 -0
- package/dist/serialization/types/PromptRequestChatHistoryInputRequest.js +36 -0
- package/dist/serialization/types/PromptRequestInputRequest.d.ts +13 -0
- package/dist/serialization/types/{MlModelFamily.js → PromptRequestInputRequest.js} +8 -22
- package/dist/serialization/types/PromptRequestJsonInputRequest.d.ts +14 -0
- package/dist/serialization/types/{MlModelDeveloperEnumValueLabel.js → PromptRequestJsonInputRequest.js} +5 -5
- package/dist/serialization/types/PromptRequestStringInputRequest.d.ts +14 -0
- package/dist/serialization/types/{TikTokenTokenizerConfigRequest.js → PromptRequestStringInputRequest.js} +5 -4
- package/dist/serialization/types/RejectedAdHocExecutePromptEvent.d.ts +17 -0
- package/{serialization/types/MlModelDisplayTagEnumValueLabel.js → dist/serialization/types/RejectedAdHocExecutePromptEvent.js} +8 -5
- package/dist/serialization/types/RichTextChildBlockRequest.d.ts +12 -0
- package/dist/serialization/types/{HostedByEnum.js → RichTextChildBlockRequest.js} +4 -20
- package/dist/serialization/types/RichTextPromptBlockRequest.d.ts +19 -0
- package/dist/serialization/types/RichTextPromptBlockRequest.js +40 -0
- package/dist/serialization/types/StreamingAdHocExecutePromptEvent.d.ts +19 -0
- package/dist/serialization/types/StreamingAdHocExecutePromptEvent.js +40 -0
- package/dist/serialization/types/VariablePromptBlockRequest.d.ts +18 -0
- package/{serialization/types/HuggingFaceTokenizerConfig.js → dist/serialization/types/VariablePromptBlockRequest.js} +9 -5
- package/dist/serialization/types/VellumVariableRequest.d.ts +15 -0
- package/dist/serialization/types/{MlModelDisplayTagEnumValueLabel.js → VellumVariableRequest.js} +6 -5
- package/dist/serialization/types/index.d.ts +31 -51
- package/dist/serialization/types/index.js +31 -51
- package/package.json +1 -1
- package/reference.md +121 -347
- package/serialization/client/requests/ExecutePromptRequest.d.ts +2 -2
- package/serialization/client/requests/ExecutePromptRequest.js +2 -2
- package/serialization/client/requests/ExecutePromptStreamRequest.d.ts +2 -2
- package/serialization/client/requests/ExecutePromptStreamRequest.js +2 -2
- package/serialization/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +21 -0
- package/{dist/serialization/resources/mlModels/client/requests/MlModelUpdateRequest.js → serialization/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.js} +13 -10
- package/serialization/resources/adHoc/client/requests/index.d.ts +1 -0
- package/serialization/resources/adHoc/client/requests/index.js +5 -0
- package/serialization/resources/index.d.ts +2 -2
- package/serialization/resources/index.js +3 -3
- package/{dist/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts → serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequest.d.ts} +2 -2
- package/{dist/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.js → serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequest.js} +2 -2
- package/serialization/resources/sandboxes/client/requests/index.d.ts +1 -1
- package/serialization/resources/sandboxes/client/requests/index.js +3 -3
- package/serialization/types/AdHocExecutePromptEvent.d.ts +14 -0
- package/serialization/types/AdHocExecutePromptEvent.js +40 -0
- package/serialization/types/AdHocExpandMetaRequest.d.ts +15 -0
- package/serialization/types/AdHocExpandMetaRequest.js +36 -0
- package/serialization/types/AdHocFulfilledPromptExecutionMeta.d.ts +16 -0
- package/serialization/types/AdHocFulfilledPromptExecutionMeta.js +37 -0
- package/serialization/types/AdHocInitiatedPromptExecutionMeta.d.ts +13 -0
- package/{dist/serialization/types/HuggingFaceTokenizerConfigRequest.js → serialization/types/AdHocInitiatedPromptExecutionMeta.js} +4 -5
- package/serialization/types/AdHocRejectedPromptExecutionMeta.d.ts +14 -0
- package/serialization/types/AdHocRejectedPromptExecutionMeta.js +35 -0
- package/serialization/types/AdHocStreamingPromptExecutionMeta.d.ts +12 -0
- package/serialization/types/{MlModelDisplayTag.js → AdHocStreamingPromptExecutionMeta.js} +4 -2
- package/serialization/types/ChatMessagePromptBlockPropertiesRequest.d.ts +16 -0
- package/serialization/types/{OpenApiOneOfPropertyRequest.js → ChatMessagePromptBlockPropertiesRequest.js} +7 -6
- package/serialization/types/ChatMessagePromptBlockRequest.d.ts +18 -0
- package/{dist/serialization/types/OpenApiOneOfPropertyRequest.js → serialization/types/ChatMessagePromptBlockRequest.js} +9 -6
- package/serialization/types/EphemeralPromptCacheConfigRequest.d.ts +13 -0
- package/serialization/types/EphemeralPromptCacheConfigRequest.js +34 -0
- package/serialization/types/EphemeralPromptCacheConfigTypeEnum.d.ts +10 -0
- package/{dist/serialization/types/MlModelRequestAuthorizationConfigTypeEnum.js → serialization/types/EphemeralPromptCacheConfigTypeEnum.js} +2 -2
- package/serialization/types/FulfilledAdHocExecutePromptEvent.d.ts +17 -0
- package/serialization/types/FulfilledAdHocExecutePromptEvent.js +38 -0
- package/serialization/types/FunctionDefinitionPromptBlockPropertiesRequest.d.ts +16 -0
- package/{dist/serialization/types/MlModelRequestConfig.js → serialization/types/FunctionDefinitionPromptBlockPropertiesRequest.js} +7 -6
- package/serialization/types/FunctionDefinitionPromptBlockRequest.d.ts +19 -0
- package/serialization/types/FunctionDefinitionPromptBlockRequest.js +40 -0
- package/serialization/types/InitiatedAdHocExecutePromptEvent.d.ts +15 -0
- package/serialization/types/InitiatedAdHocExecutePromptEvent.js +36 -0
- package/serialization/types/JinjaPromptBlockPropertiesRequest.d.ts +14 -0
- package/serialization/types/{MlModelRequestAuthorizationConfig.js → JinjaPromptBlockPropertiesRequest.js} +5 -4
- package/serialization/types/JinjaPromptBlockRequest.d.ts +19 -0
- package/serialization/types/JinjaPromptBlockRequest.js +40 -0
- package/serialization/types/MlModelUsage.d.ts +2 -0
- package/serialization/types/MlModelUsage.js +2 -0
- package/serialization/types/PlainTextPromptBlockRequest.d.ts +18 -0
- package/{dist/serialization/types/MlModelFamilyEnumValueLabel.js → serialization/types/PlainTextPromptBlockRequest.js} +9 -5
- package/serialization/types/PromptBlockRequest.d.ts +14 -0
- package/serialization/types/PromptBlockRequest.js +42 -0
- package/serialization/types/PromptBlockState.d.ts +10 -0
- package/serialization/types/{VisibilityEnum.js → PromptBlockState.js} +2 -2
- package/serialization/types/{PromptDeploymentExpandMetaRequestRequest.d.ts → PromptDeploymentExpandMetaRequest.d.ts} +2 -2
- package/{dist/serialization/types/PromptDeploymentExpandMetaRequestRequest.js → serialization/types/PromptDeploymentExpandMetaRequest.js} +2 -2
- package/serialization/types/PromptParametersRequest.d.ts +20 -0
- package/serialization/types/{MlModelParameterConfig.js → PromptParametersRequest.js} +11 -16
- package/serialization/types/PromptRequestChatHistoryInputRequest.d.ts +15 -0
- package/serialization/types/PromptRequestChatHistoryInputRequest.js +36 -0
- package/serialization/types/PromptRequestInputRequest.d.ts +13 -0
- package/{dist/serialization/types/MlModelFeature.js → serialization/types/PromptRequestInputRequest.js} +8 -11
- package/serialization/types/PromptRequestJsonInputRequest.d.ts +14 -0
- package/serialization/types/PromptRequestJsonInputRequest.js +35 -0
- package/serialization/types/PromptRequestStringInputRequest.d.ts +14 -0
- package/serialization/types/{MlModelFamilyEnumValueLabel.js → PromptRequestStringInputRequest.js} +5 -5
- package/serialization/types/RejectedAdHocExecutePromptEvent.d.ts +17 -0
- package/{dist/serialization/types/MlModelDisplayConfigLabelled.js → serialization/types/RejectedAdHocExecutePromptEvent.js} +8 -7
- package/serialization/types/RichTextChildBlockRequest.d.ts +12 -0
- package/{dist/serialization/types/MlModelDeveloper.js → serialization/types/RichTextChildBlockRequest.js} +4 -21
- package/serialization/types/RichTextPromptBlockRequest.d.ts +19 -0
- package/serialization/types/RichTextPromptBlockRequest.js +40 -0
- package/serialization/types/StreamingAdHocExecutePromptEvent.d.ts +19 -0
- package/serialization/types/StreamingAdHocExecutePromptEvent.js +40 -0
- package/serialization/types/VariablePromptBlockRequest.d.ts +18 -0
- package/serialization/types/VariablePromptBlockRequest.js +39 -0
- package/serialization/types/VellumVariableRequest.d.ts +15 -0
- package/{dist/serialization/types/HuggingFaceTokenizerConfig.js → serialization/types/VellumVariableRequest.js} +6 -5
- package/serialization/types/index.d.ts +31 -51
- package/serialization/types/index.js +31 -51
- package/api/resources/mlModels/client/Client.d.ts +0 -92
- package/api/resources/mlModels/client/Client.js +0 -348
- package/api/resources/mlModels/client/requests/MlModelCreateRequest.d.ts +0 -110
- package/api/resources/mlModels/client/requests/MlModelUpdateRequest.d.ts +0 -25
- package/api/resources/mlModels/client/requests/MlModelsListRequest.d.ts +0 -21
- package/api/resources/mlModels/client/requests/PatchedMlModelUpdateRequest.d.ts +0 -25
- package/api/resources/mlModels/client/requests/index.d.ts +0 -4
- package/api/types/HostedByEnum.d.ts +0 -42
- package/api/types/HostedByEnum.js +0 -25
- package/api/types/HuggingFaceTokenizerConfig.d.ts +0 -11
- package/api/types/HuggingFaceTokenizerConfigRequest.d.ts +0 -11
- package/api/types/MlModelDeveloper.d.ts +0 -44
- package/api/types/MlModelDeveloper.js +0 -26
- package/api/types/MlModelDisplayConfigLabelled.d.ts +0 -11
- package/api/types/MlModelDisplayConfigRequest.d.ts +0 -11
- package/api/types/MlModelDisplayTag.d.ts +0 -24
- package/api/types/MlModelDisplayTag.js +0 -16
- package/api/types/MlModelExecConfig.d.ts +0 -15
- package/api/types/MlModelExecConfigRequest.d.ts +0 -15
- package/api/types/MlModelFamily.d.ts +0 -48
- package/api/types/MlModelFamily.js +0 -28
- package/api/types/MlModelFeature.d.ts +0 -26
- package/api/types/MlModelFeature.js +0 -17
- package/api/types/MlModelParameterConfig.d.ts +0 -15
- package/api/types/MlModelParameterConfigRequest.d.ts +0 -15
- package/api/types/MlModelRead.d.ts +0 -53
- package/api/types/MlModelRequestAuthorizationConfig.d.ts +0 -7
- package/api/types/MlModelRequestAuthorizationConfigRequest.d.ts +0 -7
- package/api/types/MlModelRequestAuthorizationConfigTypeEnum.d.ts +0 -12
- package/api/types/MlModelRequestAuthorizationConfigTypeEnum.js +0 -10
- package/api/types/MlModelRequestConfig.d.ts +0 -9
- package/api/types/MlModelRequestConfigRequest.d.ts +0 -9
- package/api/types/MlModelResponseConfig.d.ts +0 -8
- package/api/types/MlModelResponseConfigRequest.d.ts +0 -8
- package/api/types/MlModelTokenizerConfig.d.ts +0 -5
- package/api/types/MlModelTokenizerConfigRequest.d.ts +0 -5
- package/api/types/OpenApiArrayProperty.d.ts +0 -21
- package/api/types/OpenApiArrayPropertyRequest.d.ts +0 -21
- package/api/types/OpenApiBooleanProperty.d.ts +0 -12
- package/api/types/OpenApiBooleanPropertyRequest.d.ts +0 -12
- package/api/types/OpenApiConstProperty.d.ts +0 -12
- package/api/types/OpenApiConstPropertyRequest.d.ts +0 -12
- package/api/types/OpenApiIntegerProperty.d.ts +0 -16
- package/api/types/OpenApiIntegerPropertyRequest.d.ts +0 -16
- package/api/types/OpenApiNumberProperty.d.ts +0 -17
- package/api/types/OpenApiNumberPropertyRequest.d.ts +0 -17
- package/api/types/OpenApiObjectProperty.d.ts +0 -20
- package/api/types/OpenApiObjectPropertyRequest.d.ts +0 -20
- package/api/types/OpenApiOneOfProperty.d.ts +0 -13
- package/api/types/OpenApiOneOfPropertyRequest.d.ts +0 -13
- package/api/types/OpenApiProperty.d.ts +0 -5
- package/api/types/OpenApiPropertyRequest.d.ts +0 -5
- package/api/types/OpenApiRefProperty.d.ts +0 -12
- package/api/types/OpenApiRefPropertyRequest.d.ts +0 -12
- package/api/types/OpenApiStringProperty.d.ts +0 -16
- package/api/types/OpenApiStringPropertyRequest.d.ts +0 -16
- package/api/types/PaginatedMlModelReadList.d.ts +0 -10
- package/api/types/TikTokenTokenizerConfig.d.ts +0 -10
- package/api/types/TikTokenTokenizerConfigRequest.d.ts +0 -10
- package/api/types/VisibilityEnum.d.ts +0 -16
- package/dist/api/resources/mlModels/client/Client.d.ts +0 -92
- package/dist/api/resources/mlModels/client/Client.js +0 -348
- package/dist/api/resources/mlModels/client/requests/MlModelCreateRequest.d.ts +0 -110
- package/dist/api/resources/mlModels/client/requests/MlModelUpdateRequest.d.ts +0 -25
- package/dist/api/resources/mlModels/client/requests/MlModelsListRequest.d.ts +0 -21
- package/dist/api/resources/mlModels/client/requests/PatchedMlModelUpdateRequest.d.ts +0 -25
- package/dist/api/resources/mlModels/client/requests/index.d.ts +0 -4
- package/dist/api/types/HostedByEnum.d.ts +0 -42
- package/dist/api/types/HostedByEnum.js +0 -25
- package/dist/api/types/HuggingFaceTokenizerConfig.d.ts +0 -11
- package/dist/api/types/HuggingFaceTokenizerConfigRequest.d.ts +0 -11
- package/dist/api/types/MlModelDeveloper.d.ts +0 -44
- package/dist/api/types/MlModelDeveloper.js +0 -26
- package/dist/api/types/MlModelDisplayConfigLabelled.d.ts +0 -11
- package/dist/api/types/MlModelDisplayConfigRequest.d.ts +0 -11
- package/dist/api/types/MlModelDisplayTag.d.ts +0 -24
- package/dist/api/types/MlModelDisplayTag.js +0 -16
- package/dist/api/types/MlModelDisplayTagEnumValueLabel.d.ts +0 -8
- package/dist/api/types/MlModelExecConfig.d.ts +0 -15
- package/dist/api/types/MlModelExecConfigRequest.d.ts +0 -15
- package/dist/api/types/MlModelFamily.d.ts +0 -48
- package/dist/api/types/MlModelFamily.js +0 -28
- package/dist/api/types/MlModelFamilyEnumValueLabel.d.ts +0 -8
- package/dist/api/types/MlModelFeature.d.ts +0 -26
- package/dist/api/types/MlModelFeature.js +0 -17
- package/dist/api/types/MlModelParameterConfig.d.ts +0 -15
- package/dist/api/types/MlModelParameterConfigRequest.d.ts +0 -15
- package/dist/api/types/MlModelParameterConfigRequest.js +0 -5
- package/dist/api/types/MlModelRead.d.ts +0 -53
- package/dist/api/types/MlModelRead.js +0 -5
- package/dist/api/types/MlModelRequestAuthorizationConfig.d.ts +0 -7
- package/dist/api/types/MlModelRequestAuthorizationConfig.js +0 -5
- package/dist/api/types/MlModelRequestAuthorizationConfigRequest.d.ts +0 -7
- package/dist/api/types/MlModelRequestAuthorizationConfigRequest.js +0 -5
- package/dist/api/types/MlModelRequestAuthorizationConfigTypeEnum.d.ts +0 -12
- package/dist/api/types/MlModelRequestAuthorizationConfigTypeEnum.js +0 -10
- package/dist/api/types/MlModelRequestConfig.d.ts +0 -9
- package/dist/api/types/MlModelRequestConfig.js +0 -5
- package/dist/api/types/MlModelRequestConfigRequest.d.ts +0 -9
- package/dist/api/types/MlModelRequestConfigRequest.js +0 -5
- package/dist/api/types/MlModelResponseConfig.d.ts +0 -8
- package/dist/api/types/MlModelResponseConfig.js +0 -5
- package/dist/api/types/MlModelResponseConfigRequest.d.ts +0 -8
- package/dist/api/types/MlModelResponseConfigRequest.js +0 -5
- package/dist/api/types/MlModelTokenizerConfig.d.ts +0 -5
- package/dist/api/types/MlModelTokenizerConfig.js +0 -5
- package/dist/api/types/MlModelTokenizerConfigRequest.d.ts +0 -5
- package/dist/api/types/MlModelTokenizerConfigRequest.js +0 -5
- package/dist/api/types/OpenApiArrayProperty.d.ts +0 -21
- package/dist/api/types/OpenApiArrayProperty.js +0 -5
- package/dist/api/types/OpenApiArrayPropertyRequest.d.ts +0 -21
- package/dist/api/types/OpenApiArrayPropertyRequest.js +0 -5
- package/dist/api/types/OpenApiBooleanProperty.d.ts +0 -12
- package/dist/api/types/OpenApiBooleanProperty.js +0 -5
- package/dist/api/types/OpenApiBooleanPropertyRequest.d.ts +0 -12
- package/dist/api/types/OpenApiBooleanPropertyRequest.js +0 -5
- package/dist/api/types/OpenApiConstProperty.d.ts +0 -12
- package/dist/api/types/OpenApiConstProperty.js +0 -5
- package/dist/api/types/OpenApiConstPropertyRequest.d.ts +0 -12
- package/dist/api/types/OpenApiConstPropertyRequest.js +0 -5
- package/dist/api/types/OpenApiIntegerProperty.d.ts +0 -16
- package/dist/api/types/OpenApiIntegerProperty.js +0 -5
- package/dist/api/types/OpenApiIntegerPropertyRequest.d.ts +0 -16
- package/dist/api/types/OpenApiIntegerPropertyRequest.js +0 -5
- package/dist/api/types/OpenApiNumberProperty.d.ts +0 -17
- package/dist/api/types/OpenApiNumberProperty.js +0 -5
- package/dist/api/types/OpenApiNumberPropertyRequest.d.ts +0 -17
- package/dist/api/types/OpenApiNumberPropertyRequest.js +0 -5
- package/dist/api/types/OpenApiObjectProperty.d.ts +0 -20
- package/dist/api/types/OpenApiObjectProperty.js +0 -5
- package/dist/api/types/OpenApiObjectPropertyRequest.d.ts +0 -20
- package/dist/api/types/OpenApiObjectPropertyRequest.js +0 -5
- package/dist/api/types/OpenApiOneOfProperty.d.ts +0 -13
- package/dist/api/types/OpenApiOneOfProperty.js +0 -5
- package/dist/api/types/OpenApiOneOfPropertyRequest.d.ts +0 -13
- package/dist/api/types/OpenApiOneOfPropertyRequest.js +0 -5
- package/dist/api/types/OpenApiProperty.d.ts +0 -5
- package/dist/api/types/OpenApiProperty.js +0 -5
- package/dist/api/types/OpenApiPropertyRequest.d.ts +0 -5
- package/dist/api/types/OpenApiPropertyRequest.js +0 -5
- package/dist/api/types/OpenApiRefProperty.d.ts +0 -12
- package/dist/api/types/OpenApiRefProperty.js +0 -5
- package/dist/api/types/OpenApiRefPropertyRequest.d.ts +0 -12
- package/dist/api/types/OpenApiRefPropertyRequest.js +0 -5
- package/dist/api/types/OpenApiStringProperty.d.ts +0 -16
- package/dist/api/types/OpenApiStringProperty.js +0 -5
- package/dist/api/types/OpenApiStringPropertyRequest.d.ts +0 -16
- package/dist/api/types/OpenApiStringPropertyRequest.js +0 -5
- package/dist/api/types/PaginatedMlModelReadList.d.ts +0 -10
- package/dist/api/types/PaginatedMlModelReadList.js +0 -5
- package/dist/api/types/PromptDeploymentExpandMetaRequestRequest.js +0 -5
- package/dist/api/types/TikTokenTokenizerConfig.d.ts +0 -10
- package/dist/api/types/TikTokenTokenizerConfig.js +0 -5
- package/dist/api/types/TikTokenTokenizerConfigRequest.d.ts +0 -10
- package/dist/api/types/TikTokenTokenizerConfigRequest.js +0 -5
- package/dist/api/types/VisibilityEnum.d.ts +0 -16
- package/dist/serialization/resources/mlModels/client/requests/MlModelCreateRequest.d.ts +0 -26
- package/dist/serialization/resources/mlModels/client/requests/MlModelCreateRequest.js +0 -47
- package/dist/serialization/resources/mlModels/client/requests/MlModelUpdateRequest.d.ts +0 -19
- package/dist/serialization/resources/mlModels/client/requests/PatchedMlModelUpdateRequest.d.ts +0 -19
- package/dist/serialization/resources/mlModels/client/requests/PatchedMlModelUpdateRequest.js +0 -40
- package/dist/serialization/resources/mlModels/client/requests/index.d.ts +0 -3
- package/dist/serialization/resources/mlModels/client/requests/index.js +0 -9
- package/dist/serialization/types/HostedByEnum.d.ts +0 -10
- package/dist/serialization/types/HuggingFaceTokenizerConfig.d.ts +0 -14
- package/dist/serialization/types/HuggingFaceTokenizerConfigRequest.d.ts +0 -14
- package/dist/serialization/types/MlModelDeveloper.d.ts +0 -10
- package/dist/serialization/types/MlModelDeveloperEnumValueLabel.d.ts +0 -14
- package/dist/serialization/types/MlModelDisplayConfigLabelled.d.ts +0 -16
- package/dist/serialization/types/MlModelDisplayConfigRequest.d.ts +0 -16
- package/dist/serialization/types/MlModelDisplayTag.d.ts +0 -10
- package/dist/serialization/types/MlModelDisplayTagEnumValueLabel.d.ts +0 -14
- package/dist/serialization/types/MlModelExecConfig.d.ts +0 -23
- package/dist/serialization/types/MlModelExecConfig.js +0 -44
- package/dist/serialization/types/MlModelExecConfigRequest.d.ts +0 -23
- package/dist/serialization/types/MlModelExecConfigRequest.js +0 -44
- package/dist/serialization/types/MlModelFamily.d.ts +0 -10
- package/dist/serialization/types/MlModelFamilyEnumValueLabel.d.ts +0 -14
- package/dist/serialization/types/MlModelFeature.d.ts +0 -10
- package/dist/serialization/types/MlModelParameterConfig.d.ts +0 -22
- package/dist/serialization/types/MlModelParameterConfigRequest.d.ts +0 -22
- package/dist/serialization/types/MlModelParameterConfigRequest.js +0 -46
- package/dist/serialization/types/MlModelRead.d.ts +0 -27
- package/dist/serialization/types/MlModelRead.js +0 -48
- package/dist/serialization/types/MlModelRequestAuthorizationConfig.d.ts +0 -13
- package/dist/serialization/types/MlModelRequestAuthorizationConfigRequest.d.ts +0 -13
- package/dist/serialization/types/MlModelRequestAuthorizationConfigRequest.js +0 -34
- package/dist/serialization/types/MlModelRequestAuthorizationConfigTypeEnum.d.ts +0 -10
- package/dist/serialization/types/MlModelRequestConfig.d.ts +0 -15
- package/dist/serialization/types/MlModelRequestConfigRequest.d.ts +0 -15
- package/dist/serialization/types/MlModelRequestConfigRequest.js +0 -36
- package/dist/serialization/types/MlModelResponseConfig.d.ts +0 -14
- package/dist/serialization/types/MlModelResponseConfig.js +0 -35
- package/dist/serialization/types/MlModelResponseConfigRequest.d.ts +0 -14
- package/dist/serialization/types/MlModelResponseConfigRequest.js +0 -35
- package/dist/serialization/types/MlModelTokenizerConfig.d.ts +0 -12
- package/dist/serialization/types/MlModelTokenizerConfig.js +0 -33
- package/dist/serialization/types/MlModelTokenizerConfigRequest.d.ts +0 -12
- package/dist/serialization/types/MlModelTokenizerConfigRequest.js +0 -33
- package/dist/serialization/types/OpenApiArrayProperty.d.ts +0 -23
- package/dist/serialization/types/OpenApiArrayProperty.js +0 -45
- package/dist/serialization/types/OpenApiArrayPropertyRequest.d.ts +0 -23
- package/dist/serialization/types/OpenApiArrayPropertyRequest.js +0 -45
- package/dist/serialization/types/OpenApiBooleanProperty.d.ts +0 -15
- package/dist/serialization/types/OpenApiBooleanProperty.js +0 -36
- package/dist/serialization/types/OpenApiBooleanPropertyRequest.d.ts +0 -15
- package/dist/serialization/types/OpenApiBooleanPropertyRequest.js +0 -36
- package/dist/serialization/types/OpenApiConstProperty.d.ts +0 -15
- package/dist/serialization/types/OpenApiConstProperty.js +0 -36
- package/dist/serialization/types/OpenApiConstPropertyRequest.d.ts +0 -15
- package/dist/serialization/types/OpenApiConstPropertyRequest.js +0 -36
- package/dist/serialization/types/OpenApiIntegerProperty.d.ts +0 -19
- package/dist/serialization/types/OpenApiIntegerProperty.js +0 -40
- package/dist/serialization/types/OpenApiIntegerPropertyRequest.d.ts +0 -19
- package/dist/serialization/types/OpenApiIntegerPropertyRequest.js +0 -40
- package/dist/serialization/types/OpenApiNumberProperty.d.ts +0 -20
- package/dist/serialization/types/OpenApiNumberProperty.js +0 -41
- package/dist/serialization/types/OpenApiNumberPropertyRequest.d.ts +0 -20
- package/dist/serialization/types/OpenApiNumberPropertyRequest.js +0 -41
- package/dist/serialization/types/OpenApiObjectProperty.d.ts +0 -22
- package/dist/serialization/types/OpenApiObjectProperty.js +0 -48
- package/dist/serialization/types/OpenApiObjectPropertyRequest.d.ts +0 -22
- package/dist/serialization/types/OpenApiObjectPropertyRequest.js +0 -48
- package/dist/serialization/types/OpenApiOneOfProperty.d.ts +0 -15
- package/dist/serialization/types/OpenApiOneOfPropertyRequest.d.ts +0 -15
- package/dist/serialization/types/OpenApiProperty.d.ts +0 -16
- package/dist/serialization/types/OpenApiProperty.js +0 -48
- package/dist/serialization/types/OpenApiPropertyRequest.d.ts +0 -16
- package/dist/serialization/types/OpenApiPropertyRequest.js +0 -48
- package/dist/serialization/types/OpenApiRefProperty.d.ts +0 -15
- package/dist/serialization/types/OpenApiRefProperty.js +0 -36
- package/dist/serialization/types/OpenApiRefPropertyRequest.d.ts +0 -15
- package/dist/serialization/types/OpenApiRefPropertyRequest.js +0 -36
- package/dist/serialization/types/OpenApiStringProperty.d.ts +0 -19
- package/dist/serialization/types/OpenApiStringProperty.js +0 -40
- package/dist/serialization/types/OpenApiStringPropertyRequest.d.ts +0 -19
- package/dist/serialization/types/OpenApiStringPropertyRequest.js +0 -40
- package/dist/serialization/types/PaginatedMlModelReadList.d.ts +0 -16
- package/dist/serialization/types/PaginatedMlModelReadList.js +0 -37
- package/dist/serialization/types/TikTokenTokenizerConfig.d.ts +0 -13
- package/dist/serialization/types/TikTokenTokenizerConfig.js +0 -34
- package/dist/serialization/types/TikTokenTokenizerConfigRequest.d.ts +0 -13
- package/dist/serialization/types/VisibilityEnum.d.ts +0 -10
- package/serialization/resources/mlModels/client/requests/MlModelCreateRequest.d.ts +0 -26
- package/serialization/resources/mlModels/client/requests/MlModelCreateRequest.js +0 -47
- package/serialization/resources/mlModels/client/requests/MlModelUpdateRequest.d.ts +0 -19
- package/serialization/resources/mlModels/client/requests/PatchedMlModelUpdateRequest.d.ts +0 -19
- package/serialization/resources/mlModels/client/requests/PatchedMlModelUpdateRequest.js +0 -40
- package/serialization/resources/mlModels/client/requests/index.d.ts +0 -3
- package/serialization/resources/mlModels/client/requests/index.js +0 -9
- package/serialization/types/HostedByEnum.d.ts +0 -10
- package/serialization/types/HostedByEnum.js +0 -49
- package/serialization/types/HuggingFaceTokenizerConfig.d.ts +0 -14
- package/serialization/types/HuggingFaceTokenizerConfigRequest.d.ts +0 -14
- package/serialization/types/MlModelDeveloper.d.ts +0 -10
- package/serialization/types/MlModelDeveloper.js +0 -50
- package/serialization/types/MlModelDeveloperEnumValueLabel.d.ts +0 -14
- package/serialization/types/MlModelDeveloperEnumValueLabel.js +0 -35
- package/serialization/types/MlModelDisplayConfigLabelled.d.ts +0 -16
- package/serialization/types/MlModelDisplayConfigLabelled.js +0 -37
- package/serialization/types/MlModelDisplayConfigRequest.d.ts +0 -16
- package/serialization/types/MlModelDisplayConfigRequest.js +0 -37
- package/serialization/types/MlModelDisplayTag.d.ts +0 -10
- package/serialization/types/MlModelDisplayTagEnumValueLabel.d.ts +0 -14
- package/serialization/types/MlModelExecConfig.d.ts +0 -23
- package/serialization/types/MlModelExecConfig.js +0 -44
- package/serialization/types/MlModelExecConfigRequest.d.ts +0 -23
- package/serialization/types/MlModelExecConfigRequest.js +0 -44
- package/serialization/types/MlModelFamily.d.ts +0 -10
- package/serialization/types/MlModelFamily.js +0 -52
- package/serialization/types/MlModelFamilyEnumValueLabel.d.ts +0 -14
- package/serialization/types/MlModelFeature.d.ts +0 -10
- package/serialization/types/MlModelFeature.js +0 -41
- package/serialization/types/MlModelParameterConfig.d.ts +0 -22
- package/serialization/types/MlModelParameterConfigRequest.d.ts +0 -22
- package/serialization/types/MlModelParameterConfigRequest.js +0 -46
- package/serialization/types/MlModelRead.d.ts +0 -27
- package/serialization/types/MlModelRead.js +0 -48
- package/serialization/types/MlModelRequestAuthorizationConfig.d.ts +0 -13
- package/serialization/types/MlModelRequestAuthorizationConfigRequest.d.ts +0 -13
- package/serialization/types/MlModelRequestAuthorizationConfigRequest.js +0 -34
- package/serialization/types/MlModelRequestAuthorizationConfigTypeEnum.d.ts +0 -10
- package/serialization/types/MlModelRequestConfig.d.ts +0 -15
- package/serialization/types/MlModelRequestConfigRequest.d.ts +0 -15
- package/serialization/types/MlModelRequestConfigRequest.js +0 -36
- package/serialization/types/MlModelResponseConfig.d.ts +0 -14
- package/serialization/types/MlModelResponseConfig.js +0 -35
- package/serialization/types/MlModelResponseConfigRequest.d.ts +0 -14
- package/serialization/types/MlModelResponseConfigRequest.js +0 -35
- package/serialization/types/MlModelTokenizerConfig.d.ts +0 -12
- package/serialization/types/MlModelTokenizerConfig.js +0 -33
- package/serialization/types/MlModelTokenizerConfigRequest.d.ts +0 -12
- package/serialization/types/MlModelTokenizerConfigRequest.js +0 -33
- package/serialization/types/OpenApiArrayProperty.d.ts +0 -23
- package/serialization/types/OpenApiArrayProperty.js +0 -45
- package/serialization/types/OpenApiArrayPropertyRequest.d.ts +0 -23
- package/serialization/types/OpenApiArrayPropertyRequest.js +0 -45
- package/serialization/types/OpenApiBooleanProperty.d.ts +0 -15
- package/serialization/types/OpenApiBooleanProperty.js +0 -36
- package/serialization/types/OpenApiBooleanPropertyRequest.d.ts +0 -15
- package/serialization/types/OpenApiBooleanPropertyRequest.js +0 -36
- package/serialization/types/OpenApiConstProperty.d.ts +0 -15
- package/serialization/types/OpenApiConstProperty.js +0 -36
- package/serialization/types/OpenApiConstPropertyRequest.d.ts +0 -15
- package/serialization/types/OpenApiConstPropertyRequest.js +0 -36
- package/serialization/types/OpenApiIntegerProperty.d.ts +0 -19
- package/serialization/types/OpenApiIntegerProperty.js +0 -40
- package/serialization/types/OpenApiIntegerPropertyRequest.d.ts +0 -19
- package/serialization/types/OpenApiIntegerPropertyRequest.js +0 -40
- package/serialization/types/OpenApiNumberProperty.d.ts +0 -20
- package/serialization/types/OpenApiNumberProperty.js +0 -41
- package/serialization/types/OpenApiNumberPropertyRequest.d.ts +0 -20
- package/serialization/types/OpenApiNumberPropertyRequest.js +0 -41
- package/serialization/types/OpenApiObjectProperty.d.ts +0 -22
- package/serialization/types/OpenApiObjectProperty.js +0 -48
- package/serialization/types/OpenApiObjectPropertyRequest.d.ts +0 -22
- package/serialization/types/OpenApiObjectPropertyRequest.js +0 -48
- package/serialization/types/OpenApiOneOfProperty.d.ts +0 -15
- package/serialization/types/OpenApiOneOfPropertyRequest.d.ts +0 -15
- package/serialization/types/OpenApiProperty.d.ts +0 -16
- package/serialization/types/OpenApiProperty.js +0 -48
- package/serialization/types/OpenApiPropertyRequest.d.ts +0 -16
- package/serialization/types/OpenApiPropertyRequest.js +0 -48
- package/serialization/types/OpenApiRefProperty.d.ts +0 -15
- package/serialization/types/OpenApiRefProperty.js +0 -36
- package/serialization/types/OpenApiRefPropertyRequest.d.ts +0 -15
- package/serialization/types/OpenApiRefPropertyRequest.js +0 -36
- package/serialization/types/OpenApiStringProperty.d.ts +0 -19
- package/serialization/types/OpenApiStringProperty.js +0 -40
- package/serialization/types/OpenApiStringPropertyRequest.d.ts +0 -19
- package/serialization/types/OpenApiStringPropertyRequest.js +0 -40
- package/serialization/types/PaginatedMlModelReadList.d.ts +0 -16
- package/serialization/types/PaginatedMlModelReadList.js +0 -37
- package/serialization/types/TikTokenTokenizerConfig.d.ts +0 -13
- package/serialization/types/TikTokenTokenizerConfig.js +0 -34
- package/serialization/types/TikTokenTokenizerConfigRequest.d.ts +0 -13
- package/serialization/types/TikTokenTokenizerConfigRequest.js +0 -34
- package/serialization/types/VisibilityEnum.d.ts +0 -10
- /package/api/resources/{mlModels → adHoc}/client/index.d.ts +0 -0
- /package/api/resources/{mlModels → adHoc}/client/index.js +0 -0
- /package/api/resources/{mlModels/client/requests/MlModelCreateRequest.js → adHoc/client/requests/AdHocExecutePromptStreamRequest.js} +0 -0
- /package/api/resources/{mlModels → adHoc}/client/requests/index.js +0 -0
- /package/api/resources/{mlModels → adHoc}/index.d.ts +0 -0
- /package/api/resources/{mlModels → adHoc}/index.js +0 -0
- /package/api/resources/{mlModels/client/requests/MlModelUpdateRequest.js → sandboxes/client/requests/UpsertSandboxScenarioRequest.js} +0 -0
- /package/api/{resources/mlModels/client/requests/MlModelsListRequest.js → types/AdHocExecutePromptEvent.js} +0 -0
- /package/api/{resources/mlModels/client/requests/PatchedMlModelUpdateRequest.js → types/AdHocExpandMetaRequest.js} +0 -0
- /package/api/{resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.js → types/AdHocFulfilledPromptExecutionMeta.js} +0 -0
- /package/api/types/{HuggingFaceTokenizerConfig.js → AdHocInitiatedPromptExecutionMeta.js} +0 -0
- /package/api/types/{HuggingFaceTokenizerConfigRequest.js → AdHocRejectedPromptExecutionMeta.js} +0 -0
- /package/api/types/{MlModelDeveloperEnumValueLabel.js → AdHocStreamingPromptExecutionMeta.js} +0 -0
- /package/api/types/{MlModelDisplayConfigLabelled.js → ChatMessagePromptBlockPropertiesRequest.js} +0 -0
- /package/api/types/{MlModelDisplayConfigRequest.js → ChatMessagePromptBlockRequest.js} +0 -0
- /package/api/types/{MlModelDisplayTagEnumValueLabel.js → EphemeralPromptCacheConfigRequest.js} +0 -0
- /package/api/types/{MlModelExecConfig.js → EphemeralPromptCacheConfigTypeEnum.js} +0 -0
- /package/api/types/{MlModelExecConfigRequest.js → FulfilledAdHocExecutePromptEvent.js} +0 -0
- /package/api/types/{MlModelFamilyEnumValueLabel.js → FunctionDefinitionPromptBlockPropertiesRequest.js} +0 -0
- /package/api/types/{MlModelParameterConfig.js → FunctionDefinitionPromptBlockRequest.js} +0 -0
- /package/api/types/{MlModelParameterConfigRequest.js → InitiatedAdHocExecutePromptEvent.js} +0 -0
- /package/api/types/{MlModelRead.js → JinjaPromptBlockPropertiesRequest.js} +0 -0
- /package/api/types/{MlModelRequestAuthorizationConfig.js → JinjaPromptBlockRequest.js} +0 -0
- /package/api/types/{MlModelRequestAuthorizationConfigRequest.js → PlainTextPromptBlockRequest.js} +0 -0
- /package/api/types/{MlModelRequestConfig.js → PromptBlockRequest.js} +0 -0
- /package/api/types/{MlModelRequestConfigRequest.js → PromptDeploymentExpandMetaRequest.js} +0 -0
- /package/api/types/{MlModelResponseConfig.js → PromptParametersRequest.js} +0 -0
- /package/api/types/{MlModelResponseConfigRequest.js → PromptRequestChatHistoryInputRequest.js} +0 -0
- /package/api/types/{MlModelTokenizerConfig.js → PromptRequestInputRequest.js} +0 -0
- /package/api/types/{MlModelTokenizerConfigRequest.js → PromptRequestJsonInputRequest.js} +0 -0
- /package/api/types/{OpenApiArrayProperty.js → PromptRequestStringInputRequest.js} +0 -0
- /package/api/types/{OpenApiArrayPropertyRequest.js → RejectedAdHocExecutePromptEvent.js} +0 -0
- /package/api/types/{OpenApiBooleanProperty.js → RichTextChildBlockRequest.js} +0 -0
- /package/api/types/{OpenApiBooleanPropertyRequest.js → RichTextPromptBlockRequest.js} +0 -0
- /package/api/types/{OpenApiConstProperty.js → StreamingAdHocExecutePromptEvent.js} +0 -0
- /package/api/types/{OpenApiConstPropertyRequest.js → VariablePromptBlockRequest.js} +0 -0
- /package/api/types/{OpenApiIntegerProperty.js → VellumVariableRequest.js} +0 -0
- /package/dist/api/resources/{mlModels → adHoc}/client/index.d.ts +0 -0
- /package/dist/api/resources/{mlModels → adHoc}/client/index.js +0 -0
- /package/{api/types/OpenApiIntegerPropertyRequest.js → dist/api/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.js} +0 -0
- /package/dist/api/resources/{mlModels → adHoc}/client/requests/index.js +0 -0
- /package/dist/api/resources/{mlModels → adHoc}/index.d.ts +0 -0
- /package/dist/api/resources/{mlModels → adHoc}/index.js +0 -0
- /package/{api/types/OpenApiNumberProperty.js → dist/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequest.js} +0 -0
- /package/{api/types/OpenApiNumberPropertyRequest.js → dist/api/types/AdHocExecutePromptEvent.js} +0 -0
- /package/{api/types/OpenApiObjectProperty.js → dist/api/types/AdHocExpandMetaRequest.js} +0 -0
- /package/{api/types/OpenApiObjectPropertyRequest.js → dist/api/types/AdHocFulfilledPromptExecutionMeta.js} +0 -0
- /package/{api/types/OpenApiOneOfProperty.js → dist/api/types/AdHocInitiatedPromptExecutionMeta.js} +0 -0
- /package/{api/types/OpenApiOneOfPropertyRequest.js → dist/api/types/AdHocRejectedPromptExecutionMeta.js} +0 -0
- /package/{api/types/OpenApiProperty.js → dist/api/types/AdHocStreamingPromptExecutionMeta.js} +0 -0
- /package/{api/types/OpenApiPropertyRequest.js → dist/api/types/ChatMessagePromptBlockPropertiesRequest.js} +0 -0
- /package/{api/types/OpenApiRefProperty.js → dist/api/types/ChatMessagePromptBlockRequest.js} +0 -0
- /package/{api/types/OpenApiRefPropertyRequest.js → dist/api/types/EphemeralPromptCacheConfigRequest.js} +0 -0
- /package/{api/types/OpenApiStringProperty.js → dist/api/types/EphemeralPromptCacheConfigTypeEnum.js} +0 -0
- /package/{api/types/OpenApiStringPropertyRequest.js → dist/api/types/FulfilledAdHocExecutePromptEvent.js} +0 -0
- /package/{api/types/PaginatedMlModelReadList.js → dist/api/types/FunctionDefinitionPromptBlockPropertiesRequest.js} +0 -0
- /package/{api/types/PromptDeploymentExpandMetaRequestRequest.js → dist/api/types/FunctionDefinitionPromptBlockRequest.js} +0 -0
- /package/{api/types/TikTokenTokenizerConfig.js → dist/api/types/InitiatedAdHocExecutePromptEvent.js} +0 -0
- /package/{api/types/TikTokenTokenizerConfigRequest.js → dist/api/types/JinjaPromptBlockPropertiesRequest.js} +0 -0
- /package/dist/api/{resources/mlModels/client/requests/MlModelCreateRequest.js → types/JinjaPromptBlockRequest.js} +0 -0
- /package/dist/api/{resources/mlModels/client/requests/MlModelUpdateRequest.js → types/PlainTextPromptBlockRequest.js} +0 -0
- /package/dist/api/{resources/mlModels/client/requests/MlModelsListRequest.js → types/PromptBlockRequest.js} +0 -0
- /package/dist/api/{resources/mlModels/client/requests/PatchedMlModelUpdateRequest.js → types/PromptDeploymentExpandMetaRequest.js} +0 -0
- /package/dist/api/{resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.js → types/PromptParametersRequest.js} +0 -0
- /package/dist/api/types/{HuggingFaceTokenizerConfig.js → PromptRequestChatHistoryInputRequest.js} +0 -0
- /package/dist/api/types/{HuggingFaceTokenizerConfigRequest.js → PromptRequestInputRequest.js} +0 -0
- /package/dist/api/types/{MlModelDeveloperEnumValueLabel.js → PromptRequestJsonInputRequest.js} +0 -0
- /package/dist/api/types/{MlModelDisplayConfigLabelled.js → PromptRequestStringInputRequest.js} +0 -0
- /package/dist/api/types/{MlModelDisplayConfigRequest.js → RejectedAdHocExecutePromptEvent.js} +0 -0
- /package/dist/api/types/{MlModelDisplayTagEnumValueLabel.js → RichTextChildBlockRequest.js} +0 -0
- /package/dist/api/types/{MlModelExecConfig.js → RichTextPromptBlockRequest.js} +0 -0
- /package/dist/api/types/{MlModelExecConfigRequest.js → StreamingAdHocExecutePromptEvent.js} +0 -0
- /package/dist/api/types/{MlModelFamilyEnumValueLabel.js → VariablePromptBlockRequest.js} +0 -0
- /package/dist/api/types/{MlModelParameterConfig.js → VellumVariableRequest.js} +0 -0
- /package/dist/serialization/resources/{mlModels → adHoc}/client/index.d.ts +0 -0
- /package/dist/serialization/resources/{mlModels → adHoc}/client/index.js +0 -0
- /package/dist/serialization/resources/{mlModels → adHoc}/index.d.ts +0 -0
- /package/dist/serialization/resources/{mlModels → adHoc}/index.js +0 -0
- /package/serialization/resources/{mlModels → adHoc}/client/index.d.ts +0 -0
- /package/serialization/resources/{mlModels → adHoc}/client/index.js +0 -0
- /package/serialization/resources/{mlModels → adHoc}/index.d.ts +0 -0
- /package/serialization/resources/{mlModels → adHoc}/index.js +0 -0
|
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
|
|
|
7
7
|
export declare namespace Sandboxes {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
10
|
-
apiKey
|
|
10
|
+
apiKey?: core.Supplier<string | undefined>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
13
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -20,7 +20,7 @@ export declare namespace Sandboxes {
|
|
|
20
20
|
}
|
|
21
21
|
export declare class Sandboxes {
|
|
22
22
|
protected readonly _options: Sandboxes.Options;
|
|
23
|
-
constructor(_options
|
|
23
|
+
constructor(_options?: Sandboxes.Options);
|
|
24
24
|
/**
|
|
25
25
|
* @param {string} id - A UUID string identifying this sandbox.
|
|
26
26
|
* @param {string} promptVariantId - An ID identifying the Prompt you'd like to deploy.
|
|
@@ -41,7 +41,7 @@ export declare class Sandboxes {
|
|
|
41
41
|
* or overwritten with default values.
|
|
42
42
|
*
|
|
43
43
|
* @param {string} id - A UUID string identifying this sandbox.
|
|
44
|
-
* @param {Vellum.
|
|
44
|
+
* @param {Vellum.UpsertSandboxScenarioRequest} request
|
|
45
45
|
* @param {Sandboxes.RequestOptions} requestOptions - Request-specific configuration.
|
|
46
46
|
*
|
|
47
47
|
* @example
|
|
@@ -74,7 +74,7 @@ export declare class Sandboxes {
|
|
|
74
74
|
* }]
|
|
75
75
|
* })
|
|
76
76
|
*/
|
|
77
|
-
upsertSandboxScenario(id: string, request: Vellum.
|
|
77
|
+
upsertSandboxScenario(id: string, request: Vellum.UpsertSandboxScenarioRequest, requestOptions?: Sandboxes.RequestOptions): Promise<Vellum.SandboxScenario>;
|
|
78
78
|
/**
|
|
79
79
|
* Deletes an existing scenario from a sandbox, keying off of the provided scenario id.
|
|
80
80
|
*
|
|
@@ -87,6 +87,6 @@ export declare class Sandboxes {
|
|
|
87
87
|
*/
|
|
88
88
|
deleteSandboxScenario(id: string, scenarioId: string, requestOptions?: Sandboxes.RequestOptions): Promise<void>;
|
|
89
89
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
90
|
-
X_API_KEY: string;
|
|
90
|
+
X_API_KEY: string | undefined;
|
|
91
91
|
}>;
|
|
92
92
|
}
|
|
@@ -45,7 +45,7 @@ const serializers = __importStar(require("../../../../serialization/index"));
|
|
|
45
45
|
const url_join_1 = __importDefault(require("url-join"));
|
|
46
46
|
const errors = __importStar(require("../../../../errors/index"));
|
|
47
47
|
class Sandboxes {
|
|
48
|
-
constructor(_options) {
|
|
48
|
+
constructor(_options = {}) {
|
|
49
49
|
this._options = _options;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
@@ -64,7 +64,7 @@ class Sandboxes {
|
|
|
64
64
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
65
65
|
.default, `v1/sandboxes/${encodeURIComponent(id)}/prompts/${encodeURIComponent(promptVariantId)}/deploy`),
|
|
66
66
|
method: "POST",
|
|
67
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
67
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.6", "User-Agent": "vellum-ai/0.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
68
68
|
contentType: "application/json",
|
|
69
69
|
requestType: "json",
|
|
70
70
|
body: serializers.DeploySandboxPromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -111,7 +111,7 @@ class Sandboxes {
|
|
|
111
111
|
* or overwritten with default values.
|
|
112
112
|
*
|
|
113
113
|
* @param {string} id - A UUID string identifying this sandbox.
|
|
114
|
-
* @param {Vellum.
|
|
114
|
+
* @param {Vellum.UpsertSandboxScenarioRequest} request
|
|
115
115
|
* @param {Sandboxes.RequestOptions} requestOptions - Request-specific configuration.
|
|
116
116
|
*
|
|
117
117
|
* @example
|
|
@@ -151,12 +151,10 @@ class Sandboxes {
|
|
|
151
151
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
152
152
|
.default, `v1/sandboxes/${encodeURIComponent(id)}/scenarios`),
|
|
153
153
|
method: "POST",
|
|
154
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
154
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.6", "User-Agent": "vellum-ai/0.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
155
155
|
contentType: "application/json",
|
|
156
156
|
requestType: "json",
|
|
157
|
-
body: serializers.
|
|
158
|
-
unrecognizedObjectKeys: "strip",
|
|
159
|
-
}),
|
|
157
|
+
body: serializers.UpsertSandboxScenarioRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
160
158
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
161
159
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
162
160
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -207,7 +205,7 @@ class Sandboxes {
|
|
|
207
205
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
208
206
|
.default, `v1/sandboxes/${encodeURIComponent(id)}/scenarios/${encodeURIComponent(scenarioId)}`),
|
|
209
207
|
method: "DELETE",
|
|
210
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
208
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.6", "User-Agent": "vellum-ai/0.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
211
209
|
contentType: "application/json",
|
|
212
210
|
requestType: "json",
|
|
213
211
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -33,7 +33,7 @@ import * as Vellum from "../../../../index";
|
|
|
33
33
|
* }]
|
|
34
34
|
* }
|
|
35
35
|
*/
|
|
36
|
-
export interface
|
|
36
|
+
export interface UpsertSandboxScenarioRequest {
|
|
37
37
|
label?: string;
|
|
38
38
|
/** The inputs for the scenario */
|
|
39
39
|
inputs: Vellum.NamedScenarioInputRequest[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { type DeploySandboxPromptRequest } from "./DeploySandboxPromptRequest";
|
|
2
|
-
export { type
|
|
2
|
+
export { type UpsertSandboxScenarioRequest } from "./UpsertSandboxScenarioRequest";
|
|
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
|
|
|
7
7
|
export declare namespace TestSuiteRuns {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
10
|
-
apiKey
|
|
10
|
+
apiKey?: core.Supplier<string | undefined>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
13
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -20,7 +20,7 @@ export declare namespace TestSuiteRuns {
|
|
|
20
20
|
}
|
|
21
21
|
export declare class TestSuiteRuns {
|
|
22
22
|
protected readonly _options: TestSuiteRuns.Options;
|
|
23
|
-
constructor(_options
|
|
23
|
+
constructor(_options?: TestSuiteRuns.Options);
|
|
24
24
|
/**
|
|
25
25
|
* Trigger a Test Suite and create a new Test Suite Run
|
|
26
26
|
*
|
|
@@ -59,6 +59,6 @@ export declare class TestSuiteRuns {
|
|
|
59
59
|
*/
|
|
60
60
|
listExecutions(id: string, request?: Vellum.TestSuiteRunsListExecutionsRequest, requestOptions?: TestSuiteRuns.RequestOptions): Promise<Vellum.PaginatedTestSuiteRunExecutionList>;
|
|
61
61
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
62
|
-
X_API_KEY: string;
|
|
62
|
+
X_API_KEY: string | undefined;
|
|
63
63
|
}>;
|
|
64
64
|
}
|
|
@@ -45,7 +45,7 @@ const serializers = __importStar(require("../../../../serialization/index"));
|
|
|
45
45
|
const url_join_1 = __importDefault(require("url-join"));
|
|
46
46
|
const errors = __importStar(require("../../../../errors/index"));
|
|
47
47
|
class TestSuiteRuns {
|
|
48
|
-
constructor(_options) {
|
|
48
|
+
constructor(_options = {}) {
|
|
49
49
|
this._options = _options;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
@@ -72,7 +72,7 @@ class TestSuiteRuns {
|
|
|
72
72
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
73
73
|
.default, "v1/test-suite-runs"),
|
|
74
74
|
method: "POST",
|
|
75
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
75
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.6", "User-Agent": "vellum-ai/0.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
76
76
|
contentType: "application/json",
|
|
77
77
|
requestType: "json",
|
|
78
78
|
body: serializers.TestSuiteRunCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -125,7 +125,7 @@ class TestSuiteRuns {
|
|
|
125
125
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
126
126
|
.default, `v1/test-suite-runs/${encodeURIComponent(id)}`),
|
|
127
127
|
method: "GET",
|
|
128
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
128
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.6", "User-Agent": "vellum-ai/0.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
129
129
|
contentType: "application/json",
|
|
130
130
|
requestType: "json",
|
|
131
131
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -192,7 +192,7 @@ class TestSuiteRuns {
|
|
|
192
192
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
193
193
|
.default, `v1/test-suite-runs/${encodeURIComponent(id)}/executions`),
|
|
194
194
|
method: "GET",
|
|
195
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
195
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.6", "User-Agent": "vellum-ai/0.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
196
196
|
contentType: "application/json",
|
|
197
197
|
queryParameters: _queryParams,
|
|
198
198
|
requestType: "json",
|
|
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
|
|
|
7
7
|
export declare namespace TestSuites {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
10
|
-
apiKey
|
|
10
|
+
apiKey?: core.Supplier<string | undefined>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
13
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -20,7 +20,7 @@ export declare namespace TestSuites {
|
|
|
20
20
|
}
|
|
21
21
|
export declare class TestSuites {
|
|
22
22
|
protected readonly _options: TestSuites.Options;
|
|
23
|
-
constructor(_options
|
|
23
|
+
constructor(_options?: TestSuites.Options);
|
|
24
24
|
/**
|
|
25
25
|
* List the Test Cases associated with a Test Suite
|
|
26
26
|
*
|
|
@@ -74,6 +74,6 @@ export declare class TestSuites {
|
|
|
74
74
|
*/
|
|
75
75
|
deleteTestSuiteTestCase(id: string, testCaseId: string, requestOptions?: TestSuites.RequestOptions): Promise<void>;
|
|
76
76
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
77
|
-
X_API_KEY: string;
|
|
77
|
+
X_API_KEY: string | undefined;
|
|
78
78
|
}>;
|
|
79
79
|
}
|
|
@@ -45,7 +45,7 @@ const url_join_1 = __importDefault(require("url-join"));
|
|
|
45
45
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
46
46
|
const errors = __importStar(require("../../../../errors/index"));
|
|
47
47
|
class TestSuites {
|
|
48
|
-
constructor(_options) {
|
|
48
|
+
constructor(_options = {}) {
|
|
49
49
|
this._options = _options;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
@@ -73,7 +73,7 @@ class TestSuites {
|
|
|
73
73
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
74
74
|
.default, `v1/test-suites/${encodeURIComponent(id)}/test-cases`),
|
|
75
75
|
method: "GET",
|
|
76
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
76
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.6", "User-Agent": "vellum-ai/0.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
77
77
|
contentType: "application/json",
|
|
78
78
|
queryParameters: _queryParams,
|
|
79
79
|
requestType: "json",
|
|
@@ -142,7 +142,7 @@ class TestSuites {
|
|
|
142
142
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
143
143
|
.default, `v1/test-suites/${encodeURIComponent(id)}/test-cases`),
|
|
144
144
|
method: "POST",
|
|
145
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
145
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.6", "User-Agent": "vellum-ai/0.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
146
146
|
contentType: "application/json",
|
|
147
147
|
requestType: "json",
|
|
148
148
|
body: serializers.UpsertTestSuiteTestCaseRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -189,7 +189,7 @@ class TestSuites {
|
|
|
189
189
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
190
190
|
.default, `v1/test-suites/${encodeURIComponent(id)}/test-cases-bulk`),
|
|
191
191
|
method: "POST",
|
|
192
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
192
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.6", "User-Agent": "vellum-ai/0.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
193
193
|
contentType: "application/json",
|
|
194
194
|
requestType: "json",
|
|
195
195
|
body: serializers.testSuites.testSuiteTestCasesBulk.Request.jsonOrThrow(request, {
|
|
@@ -256,7 +256,7 @@ class TestSuites {
|
|
|
256
256
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
257
257
|
.default, `v1/test-suites/${encodeURIComponent(id)}/test-cases/${encodeURIComponent(testCaseId)}`),
|
|
258
258
|
method: "DELETE",
|
|
259
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
259
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.6", "User-Agent": "vellum-ai/0.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
260
260
|
contentType: "application/json",
|
|
261
261
|
requestType: "json",
|
|
262
262
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
|
|
|
7
7
|
export declare namespace WorkflowDeployments {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
10
|
-
apiKey
|
|
10
|
+
apiKey?: core.Supplier<string | undefined>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
13
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -20,7 +20,7 @@ export declare namespace WorkflowDeployments {
|
|
|
20
20
|
}
|
|
21
21
|
export declare class WorkflowDeployments {
|
|
22
22
|
protected readonly _options: WorkflowDeployments.Options;
|
|
23
|
-
constructor(_options
|
|
23
|
+
constructor(_options?: WorkflowDeployments.Options);
|
|
24
24
|
/**
|
|
25
25
|
* Used to list all Workflow Deployments.
|
|
26
26
|
*
|
|
@@ -65,6 +65,6 @@ export declare class WorkflowDeployments {
|
|
|
65
65
|
*/
|
|
66
66
|
updateWorkflowReleaseTag(id: string, name: string, request?: Vellum.PatchedWorkflowReleaseTagUpdateRequest, requestOptions?: WorkflowDeployments.RequestOptions): Promise<Vellum.WorkflowReleaseTagRead>;
|
|
67
67
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
68
|
-
X_API_KEY: string;
|
|
68
|
+
X_API_KEY: string | undefined;
|
|
69
69
|
}>;
|
|
70
70
|
}
|
|
@@ -45,7 +45,7 @@ const url_join_1 = __importDefault(require("url-join"));
|
|
|
45
45
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
46
46
|
const errors = __importStar(require("../../../../errors/index"));
|
|
47
47
|
class WorkflowDeployments {
|
|
48
|
-
constructor(_options) {
|
|
48
|
+
constructor(_options = {}) {
|
|
49
49
|
this._options = _options;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
@@ -78,7 +78,7 @@ class WorkflowDeployments {
|
|
|
78
78
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
79
79
|
.default, "v1/workflow-deployments"),
|
|
80
80
|
method: "GET",
|
|
81
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
81
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.6", "User-Agent": "vellum-ai/0.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
82
82
|
contentType: "application/json",
|
|
83
83
|
queryParameters: _queryParams,
|
|
84
84
|
requestType: "json",
|
|
@@ -131,7 +131,7 @@ class WorkflowDeployments {
|
|
|
131
131
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
132
132
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}`),
|
|
133
133
|
method: "GET",
|
|
134
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
134
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.6", "User-Agent": "vellum-ai/0.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
135
135
|
contentType: "application/json",
|
|
136
136
|
requestType: "json",
|
|
137
137
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -184,7 +184,7 @@ class WorkflowDeployments {
|
|
|
184
184
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
185
185
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
186
186
|
method: "GET",
|
|
187
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
187
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.6", "User-Agent": "vellum-ai/0.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
188
188
|
contentType: "application/json",
|
|
189
189
|
requestType: "json",
|
|
190
190
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -238,7 +238,7 @@ class WorkflowDeployments {
|
|
|
238
238
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
239
239
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
240
240
|
method: "PATCH",
|
|
241
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
241
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.6", "User-Agent": "vellum-ai/0.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
242
242
|
contentType: "application/json",
|
|
243
243
|
requestType: "json",
|
|
244
244
|
body: serializers.PatchedWorkflowReleaseTagUpdateRequest.jsonOrThrow(request, {
|
|
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
|
|
|
7
7
|
export declare namespace WorkflowSandboxes {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
10
|
-
apiKey
|
|
10
|
+
apiKey?: core.Supplier<string | undefined>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
13
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -20,7 +20,7 @@ export declare namespace WorkflowSandboxes {
|
|
|
20
20
|
}
|
|
21
21
|
export declare class WorkflowSandboxes {
|
|
22
22
|
protected readonly _options: WorkflowSandboxes.Options;
|
|
23
|
-
constructor(_options
|
|
23
|
+
constructor(_options?: WorkflowSandboxes.Options);
|
|
24
24
|
/**
|
|
25
25
|
* @param {string} id - A UUID string identifying this workflow sandbox.
|
|
26
26
|
* @param {string} workflowId - An ID identifying the Workflow you'd like to deploy.
|
|
@@ -32,6 +32,6 @@ export declare class WorkflowSandboxes {
|
|
|
32
32
|
*/
|
|
33
33
|
deployWorkflow(id: string, workflowId: string, request?: Vellum.DeploySandboxWorkflowRequest, requestOptions?: WorkflowSandboxes.RequestOptions): Promise<Vellum.WorkflowDeploymentRead>;
|
|
34
34
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
35
|
-
X_API_KEY: string;
|
|
35
|
+
X_API_KEY: string | undefined;
|
|
36
36
|
}>;
|
|
37
37
|
}
|
|
@@ -45,7 +45,7 @@ const serializers = __importStar(require("../../../../serialization/index"));
|
|
|
45
45
|
const url_join_1 = __importDefault(require("url-join"));
|
|
46
46
|
const errors = __importStar(require("../../../../errors/index"));
|
|
47
47
|
class WorkflowSandboxes {
|
|
48
|
-
constructor(_options) {
|
|
48
|
+
constructor(_options = {}) {
|
|
49
49
|
this._options = _options;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
@@ -64,7 +64,7 @@ class WorkflowSandboxes {
|
|
|
64
64
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
65
65
|
.default, `v1/workflow-sandboxes/${encodeURIComponent(id)}/workflows/${encodeURIComponent(workflowId)}/deploy`),
|
|
66
66
|
method: "POST",
|
|
67
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
67
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.6", "User-Agent": "vellum-ai/0.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
68
68
|
contentType: "application/json",
|
|
69
69
|
requestType: "json",
|
|
70
70
|
body: serializers.DeploySandboxWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../index";
|
|
5
|
+
export declare type AdHocExecutePromptEvent = Vellum.InitiatedAdHocExecutePromptEvent | Vellum.StreamingAdHocExecutePromptEvent | Vellum.FulfilledAdHocExecutePromptEvent | Vellum.RejectedAdHocExecutePromptEvent;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface AdHocExpandMetaRequest {
|
|
5
|
+
cost?: boolean;
|
|
6
|
+
/** If enabled, the response will include the model identifier representing the ML Model invoked by the Prompt. */
|
|
7
|
+
modelName?: boolean;
|
|
8
|
+
/** If enabled, the response will include model host usage tracking. This may increase latency for some model hosts. */
|
|
9
|
+
usage?: boolean;
|
|
10
|
+
/** If enabled, the response will include the reason provided by the model for why the execution finished. */
|
|
11
|
+
finishReason?: boolean;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../index";
|
|
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 AdHocFulfilledPromptExecutionMeta {
|
|
9
|
+
latency?: number;
|
|
10
|
+
finishReason?: Vellum.FinishReasonEnum;
|
|
11
|
+
usage?: Vellum.MlModelUsage;
|
|
12
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
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 AdHocInitiatedPromptExecutionMeta {
|
|
8
|
+
modelName?: string;
|
|
9
|
+
latency?: number;
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../index";
|
|
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 AdHocRejectedPromptExecutionMeta {
|
|
9
|
+
latency?: number;
|
|
10
|
+
finishReason?: Vellum.FinishReasonEnum;
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* The subset of the metadata tracked by Vellum during prompt execution that the request opted into with `expand_meta`.
|
|
6
|
+
*/
|
|
7
|
+
export interface AdHocStreamingPromptExecutionMeta {
|
|
8
|
+
latency?: number;
|
|
9
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* The properties of a ChatMessagePromptTemplateBlock
|
|
7
|
+
*/
|
|
8
|
+
export interface ChatMessagePromptBlockPropertiesRequest {
|
|
9
|
+
blocks: Vellum.PromptBlockRequest[];
|
|
10
|
+
chatRole?: Vellum.ChatMessageRole;
|
|
11
|
+
chatSource?: string;
|
|
12
|
+
chatMessageUnterminated?: boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* A block that represents a chat message in a prompt template.
|
|
7
|
+
*/
|
|
8
|
+
export interface ChatMessagePromptBlockRequest {
|
|
9
|
+
blockType: "CHAT_MESSAGE";
|
|
10
|
+
properties: Vellum.ChatMessagePromptBlockPropertiesRequest;
|
|
11
|
+
id: string;
|
|
12
|
+
state?: Vellum.PromptBlockState;
|
|
13
|
+
cacheConfig?: Vellum.EphemeralPromptCacheConfigRequest;
|
|
14
|
+
}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Vellum from "../index";
|
|
5
|
-
export interface
|
|
6
|
-
|
|
7
|
-
value: Vellum.MlModelDisplayTag;
|
|
5
|
+
export interface EphemeralPromptCacheConfigRequest {
|
|
6
|
+
type?: Vellum.EphemeralPromptCacheConfigTypeEnum;
|
|
8
7
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../index";
|
|
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 FulfilledAdHocExecutePromptEvent {
|
|
9
|
+
state: "FULFILLED";
|
|
10
|
+
outputs: Vellum.PromptOutput[];
|
|
11
|
+
executionId: string;
|
|
12
|
+
meta?: Vellum.AdHocFulfilledPromptExecutionMeta;
|
|
13
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface FunctionDefinitionPromptBlockPropertiesRequest {
|
|
5
|
+
/** The name identifying the function. */
|
|
6
|
+
functionName?: string;
|
|
7
|
+
/** A description to help guide the model when to invoke this function. */
|
|
8
|
+
functionDescription?: string;
|
|
9
|
+
/** An OpenAPI specification of parameters that are supported by this function. */
|
|
10
|
+
functionParameters?: Record<string, unknown>;
|
|
11
|
+
/** Set this option to true to force the model to return a function call of this function. */
|
|
12
|
+
functionForced?: boolean;
|
|
13
|
+
/** Set this option to use strict schema decoding when available. */
|
|
14
|
+
functionStrict?: boolean;
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* A block that represents a function definition in a prompt template.
|
|
7
|
+
*/
|
|
8
|
+
export interface FunctionDefinitionPromptBlockRequest {
|
|
9
|
+
blockType: "FUNCTION_DEFINITION";
|
|
10
|
+
properties: Vellum.FunctionDefinitionPromptBlockPropertiesRequest;
|
|
11
|
+
id: string;
|
|
12
|
+
state?: Vellum.PromptBlockState;
|
|
13
|
+
cacheConfig?: Vellum.EphemeralPromptCacheConfigRequest;
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* The initial data returned indicating that the response from the model has returned and begun streaming.
|
|
7
|
+
*/
|
|
8
|
+
export interface InitiatedAdHocExecutePromptEvent {
|
|
9
|
+
state: "INITIATED";
|
|
10
|
+
meta?: Vellum.AdHocInitiatedPromptExecutionMeta;
|
|
11
|
+
executionId: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* A block of Jinja template code that is used to generate a prompt
|
|
7
|
+
*/
|
|
8
|
+
export interface JinjaPromptBlockRequest {
|
|
9
|
+
blockType: "JINJA";
|
|
10
|
+
properties: Vellum.JinjaPromptBlockPropertiesRequest;
|
|
11
|
+
id: string;
|
|
12
|
+
state?: Vellum.PromptBlockState;
|
|
13
|
+
cacheConfig?: Vellum.EphemeralPromptCacheConfigRequest;
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* A block that holds a plain text string value.
|
|
7
|
+
*/
|
|
8
|
+
export interface PlainTextPromptBlockRequest {
|
|
9
|
+
blockType: "PLAIN_TEXT";
|
|
10
|
+
text: string;
|
|
11
|
+
id: string;
|
|
12
|
+
state?: Vellum.PromptBlockState;
|
|
13
|
+
cacheConfig?: Vellum.EphemeralPromptCacheConfigRequest;
|
|
14
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../index";
|
|
5
|
+
export declare type PromptBlockRequest = Vellum.JinjaPromptBlockRequest | Vellum.ChatMessagePromptBlockRequest | Vellum.FunctionDefinitionPromptBlockRequest | Vellum.VariablePromptBlockRequest | Vellum.RichTextPromptBlockRequest;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* - `ENABLED` - ENABLED
|
|
6
|
+
* - `DISABLED` - DISABLED
|
|
7
|
+
*/
|
|
8
|
+
export declare type PromptBlockState = "ENABLED" | "DISABLED";
|
|
9
|
+
export declare const PromptBlockState: {
|
|
10
|
+
readonly Enabled: "ENABLED";
|
|
11
|
+
readonly Disabled: "DISABLED";
|
|
12
|
+
};
|