vellum-ai 0.9.6 → 0.9.8
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/.mock/definition/__package__.yml +91 -89
- package/.mock/definition/adHoc.yml +7 -7
- package/.mock/openapi/openapi.yml +112 -137
- package/Client.js +10 -10
- package/api/resources/adHoc/client/Client.d.ts +1 -1
- package/api/resources/adHoc/client/Client.js +2 -2
- package/api/resources/adHoc/client/requests/{AdHocExecutePromptStreamRequest.d.ts → AdHocExecutePromptStream.d.ts} +14 -12
- package/api/resources/adHoc/client/requests/index.d.ts +1 -1
- package/api/resources/containerImages/client/Client.js +4 -4
- package/api/resources/deployments/client/Client.js +6 -6
- package/api/resources/documentIndexes/client/Client.js +8 -8
- package/api/resources/documents/client/Client.js +5 -5
- package/api/resources/folderEntities/client/Client.js +2 -2
- package/api/resources/metricDefinitions/client/Client.js +1 -1
- package/api/resources/sandboxes/client/Client.js +3 -3
- package/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/api/resources/testSuites/client/Client.js +4 -4
- package/api/resources/workflowDeployments/client/Client.js +5 -5
- package/api/resources/workflowSandboxes/client/Client.js +1 -1
- package/api/resources/workflows/client/Client.js +2 -2
- package/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/{dist/api/types/AdHocExpandMetaRequest.d.ts → api/types/AdHocExpandMeta.d.ts} +1 -1
- package/api/types/{ChatMessagePromptBlockRequest.d.ts → ChatMessagePromptBlock.d.ts} +3 -3
- package/api/types/{ChatMessagePromptBlockPropertiesRequest.d.ts → ChatMessagePromptBlockProperties.d.ts} +2 -2
- package/api/types/{EphemeralPromptCacheConfigRequest.d.ts → EphemeralPromptCacheConfig.d.ts} +1 -1
- package/{dist/api/types/FunctionDefinitionPromptBlockRequest.d.ts → api/types/FunctionDefinitionPromptBlock.d.ts} +3 -3
- package/{dist/api/types/FunctionDefinitionPromptBlockPropertiesRequest.d.ts → api/types/FunctionDefinitionPromptBlockProperties.d.ts} +1 -1
- package/{dist/api/types/JinjaPromptBlockRequest.d.ts → api/types/JinjaPromptBlock.d.ts} +3 -3
- package/api/types/{JinjaPromptBlockPropertiesRequest.d.ts → JinjaPromptBlockProperties.d.ts} +1 -1
- package/{dist/api/types/PlainTextPromptBlockRequest.d.ts → api/types/PlainTextPromptBlock.d.ts} +2 -2
- package/api/types/PromptBlock.d.ts +5 -0
- package/api/types/{PromptParametersRequest.d.ts → PromptParameters.d.ts} +1 -1
- package/api/types/{PromptRequestChatHistoryInputRequest.d.ts → PromptRequestChatHistoryInput.d.ts} +2 -2
- package/api/types/PromptRequestInput.d.ts +5 -0
- package/{dist/api/types/PromptRequestJsonInputRequest.d.ts → api/types/PromptRequestJsonInput.d.ts} +1 -1
- package/api/types/{PromptRequestStringInputRequest.d.ts → PromptRequestStringInput.d.ts} +1 -1
- package/api/types/{PromptSettingsRequest.d.ts → PromptSettings.d.ts} +1 -1
- package/api/types/RichTextChildBlock.d.ts +5 -0
- package/{dist/api/types/RichTextPromptBlockRequest.d.ts → api/types/RichTextPromptBlock.d.ts} +4 -5
- package/api/types/{VariablePromptBlockRequest.d.ts → VariablePromptBlock.d.ts} +2 -2
- package/api/types/index.d.ts +19 -21
- package/api/types/index.js +19 -21
- package/dist/Client.js +10 -10
- package/dist/api/resources/adHoc/client/Client.d.ts +1 -1
- package/dist/api/resources/adHoc/client/Client.js +2 -2
- package/dist/api/resources/adHoc/client/requests/{AdHocExecutePromptStreamRequest.d.ts → AdHocExecutePromptStream.d.ts} +14 -12
- package/dist/api/resources/adHoc/client/requests/index.d.ts +1 -1
- package/dist/api/resources/containerImages/client/Client.js +4 -4
- package/dist/api/resources/deployments/client/Client.js +6 -6
- package/dist/api/resources/documentIndexes/client/Client.js +8 -8
- package/dist/api/resources/documents/client/Client.js +5 -5
- package/dist/api/resources/folderEntities/client/Client.js +2 -2
- package/dist/api/resources/metricDefinitions/client/Client.js +1 -1
- package/dist/api/resources/sandboxes/client/Client.js +3 -3
- package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/dist/api/resources/testSuites/client/Client.js +4 -4
- package/dist/api/resources/workflowDeployments/client/Client.js +5 -5
- package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
- package/dist/api/resources/workflows/client/Client.js +2 -2
- package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/{api/types/AdHocExpandMetaRequest.d.ts → dist/api/types/AdHocExpandMeta.d.ts} +1 -1
- package/dist/api/types/{ChatMessagePromptBlockRequest.d.ts → ChatMessagePromptBlock.d.ts} +3 -3
- package/dist/api/types/{ChatMessagePromptBlockPropertiesRequest.d.ts → ChatMessagePromptBlockProperties.d.ts} +2 -2
- package/dist/api/types/{EphemeralPromptCacheConfigRequest.d.ts → EphemeralPromptCacheConfig.d.ts} +1 -1
- package/{api/types/FunctionDefinitionPromptBlockRequest.d.ts → dist/api/types/FunctionDefinitionPromptBlock.d.ts} +3 -3
- package/{api/types/FunctionDefinitionPromptBlockPropertiesRequest.d.ts → dist/api/types/FunctionDefinitionPromptBlockProperties.d.ts} +1 -1
- package/{api/types/JinjaPromptBlockRequest.d.ts → dist/api/types/JinjaPromptBlock.d.ts} +3 -3
- package/dist/api/types/{JinjaPromptBlockPropertiesRequest.d.ts → JinjaPromptBlockProperties.d.ts} +1 -1
- package/{api/types/PlainTextPromptBlockRequest.d.ts → dist/api/types/PlainTextPromptBlock.d.ts} +2 -2
- package/dist/api/types/PromptBlock.d.ts +5 -0
- package/dist/api/types/{PromptParametersRequest.d.ts → PromptParameters.d.ts} +1 -1
- package/dist/api/types/{PromptRequestChatHistoryInputRequest.d.ts → PromptRequestChatHistoryInput.d.ts} +2 -2
- package/dist/api/types/PromptRequestInput.d.ts +5 -0
- package/{api/types/PromptRequestJsonInputRequest.d.ts → dist/api/types/PromptRequestJsonInput.d.ts} +1 -1
- package/dist/api/types/{PromptRequestStringInputRequest.d.ts → PromptRequestStringInput.d.ts} +1 -1
- package/dist/api/types/{PromptSettingsRequest.d.ts → PromptSettings.d.ts} +1 -1
- package/dist/api/types/RichTextChildBlock.d.ts +5 -0
- package/{api/types/RichTextPromptBlockRequest.d.ts → dist/api/types/RichTextPromptBlock.d.ts} +4 -5
- package/dist/api/types/{VariablePromptBlockRequest.d.ts → VariablePromptBlock.d.ts} +2 -2
- package/dist/api/types/index.d.ts +19 -21
- package/dist/api/types/index.js +19 -21
- package/dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +23 -0
- package/{serialization/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.js → dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.js} +13 -13
- package/dist/serialization/resources/adHoc/client/requests/index.d.ts +1 -1
- package/dist/serialization/resources/adHoc/client/requests/index.js +3 -3
- package/dist/serialization/types/{AdHocExpandMetaRequest.d.ts → AdHocExpandMeta.d.ts} +2 -2
- package/dist/serialization/types/{AdHocExpandMetaRequest.js → AdHocExpandMeta.js} +2 -2
- package/{serialization/types/ChatMessagePromptBlockRequest.d.ts → dist/serialization/types/ChatMessagePromptBlock.d.ts} +5 -5
- package/dist/serialization/types/{ChatMessagePromptBlockRequest.js → ChatMessagePromptBlock.js} +5 -5
- package/{serialization/types/ChatMessagePromptBlockPropertiesRequest.d.ts → dist/serialization/types/ChatMessagePromptBlockProperties.d.ts} +3 -3
- package/dist/serialization/types/{ChatMessagePromptBlockPropertiesRequest.js → ChatMessagePromptBlockProperties.js} +3 -3
- package/{serialization/types/EphemeralPromptCacheConfigRequest.d.ts → dist/serialization/types/EphemeralPromptCacheConfig.d.ts} +2 -2
- package/{serialization/types/EphemeralPromptCacheConfigRequest.js → dist/serialization/types/EphemeralPromptCacheConfig.js} +2 -2
- package/dist/serialization/types/FunctionDefinitionPromptBlock.d.ts +18 -0
- package/dist/serialization/types/{JinjaPromptBlockRequest.js → FunctionDefinitionPromptBlock.js} +7 -7
- package/{serialization/types/FunctionDefinitionPromptBlockPropertiesRequest.d.ts → dist/serialization/types/FunctionDefinitionPromptBlockProperties.d.ts} +2 -2
- package/dist/serialization/types/{FunctionDefinitionPromptBlockPropertiesRequest.js → FunctionDefinitionPromptBlockProperties.js} +2 -2
- package/dist/serialization/types/JinjaPromptBlock.d.ts +18 -0
- package/dist/serialization/types/JinjaPromptBlock.js +39 -0
- package/{serialization/types/JinjaPromptBlockPropertiesRequest.d.ts → dist/serialization/types/JinjaPromptBlockProperties.d.ts} +2 -2
- package/{serialization/types/JinjaPromptBlockPropertiesRequest.js → dist/serialization/types/JinjaPromptBlockProperties.js} +2 -2
- package/{serialization/types/PlainTextPromptBlockRequest.d.ts → dist/serialization/types/PlainTextPromptBlock.d.ts} +4 -4
- package/{serialization/types/PlainTextPromptBlockRequest.js → dist/serialization/types/PlainTextPromptBlock.js} +4 -4
- package/dist/serialization/types/PromptBlock.d.ts +14 -0
- package/{serialization/types/VellumVariableRequest.js → dist/serialization/types/PromptBlock.js} +12 -11
- package/dist/serialization/types/{PromptParametersRequest.d.ts → PromptParameters.d.ts} +2 -2
- package/dist/serialization/types/{PromptParametersRequest.js → PromptParameters.js} +2 -2
- package/dist/serialization/types/PromptRequestChatHistoryInput.d.ts +15 -0
- package/dist/serialization/types/{PromptRequestChatHistoryInputRequest.js → PromptRequestChatHistoryInput.js} +4 -4
- package/dist/serialization/types/PromptRequestInput.d.ts +13 -0
- package/dist/serialization/types/PromptRequestInput.js +38 -0
- package/{serialization/types/PromptRequestJsonInputRequest.d.ts → dist/serialization/types/PromptRequestJsonInput.d.ts} +2 -2
- package/dist/serialization/types/{PromptRequestJsonInputRequest.js → PromptRequestJsonInput.js} +2 -2
- package/{serialization/types/PromptRequestStringInputRequest.d.ts → dist/serialization/types/PromptRequestStringInput.d.ts} +2 -2
- package/{serialization/types/PromptRequestStringInputRequest.js → dist/serialization/types/PromptRequestStringInput.js} +2 -2
- package/{serialization/types/PromptSettingsRequest.d.ts → dist/serialization/types/PromptSettings.d.ts} +2 -2
- package/{serialization/types/PromptSettingsRequest.js → dist/serialization/types/PromptSettings.js} +2 -2
- package/dist/serialization/types/RichTextChildBlock.d.ts +12 -0
- package/dist/serialization/types/RichTextChildBlock.js +33 -0
- package/dist/serialization/types/RichTextPromptBlock.d.ts +18 -0
- package/dist/serialization/types/RichTextPromptBlock.js +39 -0
- package/dist/serialization/types/{VariablePromptBlockRequest.d.ts → VariablePromptBlock.d.ts} +4 -4
- package/dist/serialization/types/{VariablePromptBlockRequest.js → VariablePromptBlock.js} +4 -4
- package/dist/serialization/types/index.d.ts +19 -21
- package/dist/serialization/types/index.js +19 -21
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +8 -6
- package/serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +23 -0
- package/{dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.js → serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.js} +13 -13
- package/serialization/resources/adHoc/client/requests/index.d.ts +1 -1
- package/serialization/resources/adHoc/client/requests/index.js +3 -3
- package/serialization/types/{AdHocExpandMetaRequest.d.ts → AdHocExpandMeta.d.ts} +2 -2
- package/serialization/types/{AdHocExpandMetaRequest.js → AdHocExpandMeta.js} +2 -2
- package/{dist/serialization/types/ChatMessagePromptBlockRequest.d.ts → serialization/types/ChatMessagePromptBlock.d.ts} +5 -5
- package/serialization/types/{ChatMessagePromptBlockRequest.js → ChatMessagePromptBlock.js} +5 -5
- package/{dist/serialization/types/ChatMessagePromptBlockPropertiesRequest.d.ts → serialization/types/ChatMessagePromptBlockProperties.d.ts} +3 -3
- package/serialization/types/{ChatMessagePromptBlockPropertiesRequest.js → ChatMessagePromptBlockProperties.js} +3 -3
- package/{dist/serialization/types/EphemeralPromptCacheConfigRequest.d.ts → serialization/types/EphemeralPromptCacheConfig.d.ts} +2 -2
- package/{dist/serialization/types/EphemeralPromptCacheConfigRequest.js → serialization/types/EphemeralPromptCacheConfig.js} +2 -2
- package/serialization/types/FunctionDefinitionPromptBlock.d.ts +18 -0
- package/serialization/types/FunctionDefinitionPromptBlock.js +39 -0
- package/{dist/serialization/types/FunctionDefinitionPromptBlockPropertiesRequest.d.ts → serialization/types/FunctionDefinitionPromptBlockProperties.d.ts} +2 -2
- package/serialization/types/{FunctionDefinitionPromptBlockPropertiesRequest.js → FunctionDefinitionPromptBlockProperties.js} +2 -2
- package/serialization/types/JinjaPromptBlock.d.ts +18 -0
- package/serialization/types/JinjaPromptBlock.js +39 -0
- package/{dist/serialization/types/JinjaPromptBlockPropertiesRequest.d.ts → serialization/types/JinjaPromptBlockProperties.d.ts} +2 -2
- package/{dist/serialization/types/JinjaPromptBlockPropertiesRequest.js → serialization/types/JinjaPromptBlockProperties.js} +2 -2
- package/{dist/serialization/types/PlainTextPromptBlockRequest.d.ts → serialization/types/PlainTextPromptBlock.d.ts} +4 -4
- package/{dist/serialization/types/PlainTextPromptBlockRequest.js → serialization/types/PlainTextPromptBlock.js} +4 -4
- package/serialization/types/PromptBlock.d.ts +14 -0
- package/{dist/serialization/types/VellumVariableRequest.js → serialization/types/PromptBlock.js} +12 -11
- package/serialization/types/{PromptParametersRequest.d.ts → PromptParameters.d.ts} +2 -2
- package/serialization/types/{PromptParametersRequest.js → PromptParameters.js} +2 -2
- package/serialization/types/PromptRequestChatHistoryInput.d.ts +15 -0
- package/serialization/types/{PromptRequestChatHistoryInputRequest.js → PromptRequestChatHistoryInput.js} +4 -4
- package/serialization/types/PromptRequestInput.d.ts +13 -0
- package/serialization/types/PromptRequestInput.js +38 -0
- package/{dist/serialization/types/PromptRequestJsonInputRequest.d.ts → serialization/types/PromptRequestJsonInput.d.ts} +2 -2
- package/serialization/types/{PromptRequestJsonInputRequest.js → PromptRequestJsonInput.js} +2 -2
- package/{dist/serialization/types/PromptRequestStringInputRequest.d.ts → serialization/types/PromptRequestStringInput.d.ts} +2 -2
- package/{dist/serialization/types/PromptRequestStringInputRequest.js → serialization/types/PromptRequestStringInput.js} +2 -2
- package/{dist/serialization/types/PromptSettingsRequest.d.ts → serialization/types/PromptSettings.d.ts} +2 -2
- package/{dist/serialization/types/PromptSettingsRequest.js → serialization/types/PromptSettings.js} +2 -2
- package/serialization/types/RichTextChildBlock.d.ts +12 -0
- package/serialization/types/RichTextChildBlock.js +33 -0
- package/serialization/types/RichTextPromptBlock.d.ts +18 -0
- package/serialization/types/RichTextPromptBlock.js +39 -0
- package/serialization/types/{VariablePromptBlockRequest.d.ts → VariablePromptBlock.d.ts} +4 -4
- package/serialization/types/{VariablePromptBlockRequest.js → VariablePromptBlock.js} +4 -4
- package/serialization/types/index.d.ts +19 -21
- package/serialization/types/index.js +19 -21
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/types/PromptBlockRequest.d.ts +0 -5
- package/api/types/PromptRequestInputRequest.d.ts +0 -5
- package/api/types/RichTextChildBlockRequest.d.ts +0 -5
- package/api/types/VellumVariableExtensionsRequest.d.ts +0 -9
- package/api/types/VellumVariableRequest.d.ts +0 -12
- package/dist/api/types/PromptBlockRequest.d.ts +0 -5
- package/dist/api/types/PromptRequestInputRequest.d.ts +0 -5
- package/dist/api/types/RichTextChildBlockRequest.d.ts +0 -5
- package/dist/api/types/RichTextPromptBlockRequest.js +0 -5
- package/dist/api/types/VariablePromptBlockRequest.js +0 -5
- package/dist/api/types/VellumVariableExtensionsRequest.d.ts +0 -9
- package/dist/api/types/VellumVariableExtensionsRequest.js +0 -5
- package/dist/api/types/VellumVariableRequest.d.ts +0 -12
- package/dist/api/types/VellumVariableRequest.js +0 -5
- package/dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +0 -23
- package/dist/serialization/types/FunctionDefinitionPromptBlockRequest.d.ts +0 -18
- package/dist/serialization/types/FunctionDefinitionPromptBlockRequest.js +0 -39
- package/dist/serialization/types/JinjaPromptBlockRequest.d.ts +0 -18
- package/dist/serialization/types/PromptBlockRequest.d.ts +0 -14
- package/dist/serialization/types/PromptBlockRequest.js +0 -42
- package/dist/serialization/types/PromptRequestChatHistoryInputRequest.d.ts +0 -15
- package/dist/serialization/types/PromptRequestInputRequest.d.ts +0 -13
- package/dist/serialization/types/PromptRequestInputRequest.js +0 -38
- package/dist/serialization/types/RichTextChildBlockRequest.d.ts +0 -12
- package/dist/serialization/types/RichTextChildBlockRequest.js +0 -33
- package/dist/serialization/types/RichTextPromptBlockRequest.d.ts +0 -19
- package/dist/serialization/types/RichTextPromptBlockRequest.js +0 -40
- package/dist/serialization/types/VellumVariableExtensionsRequest.d.ts +0 -12
- package/dist/serialization/types/VellumVariableExtensionsRequest.js +0 -33
- package/dist/serialization/types/VellumVariableRequest.d.ts +0 -19
- package/serialization/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +0 -23
- package/serialization/types/FunctionDefinitionPromptBlockRequest.d.ts +0 -18
- package/serialization/types/FunctionDefinitionPromptBlockRequest.js +0 -39
- package/serialization/types/JinjaPromptBlockRequest.d.ts +0 -18
- package/serialization/types/JinjaPromptBlockRequest.js +0 -39
- package/serialization/types/PromptBlockRequest.d.ts +0 -14
- package/serialization/types/PromptBlockRequest.js +0 -42
- package/serialization/types/PromptRequestChatHistoryInputRequest.d.ts +0 -15
- package/serialization/types/PromptRequestInputRequest.d.ts +0 -13
- package/serialization/types/PromptRequestInputRequest.js +0 -38
- package/serialization/types/RichTextChildBlockRequest.d.ts +0 -12
- package/serialization/types/RichTextChildBlockRequest.js +0 -33
- package/serialization/types/RichTextPromptBlockRequest.d.ts +0 -19
- package/serialization/types/RichTextPromptBlockRequest.js +0 -40
- package/serialization/types/VellumVariableExtensionsRequest.d.ts +0 -12
- package/serialization/types/VellumVariableExtensionsRequest.js +0 -33
- package/serialization/types/VellumVariableRequest.d.ts +0 -19
- /package/api/resources/adHoc/client/requests/{AdHocExecutePromptStreamRequest.js → AdHocExecutePromptStream.js} +0 -0
- /package/api/types/{AdHocExpandMetaRequest.js → AdHocExpandMeta.js} +0 -0
- /package/api/types/{ChatMessagePromptBlockPropertiesRequest.js → ChatMessagePromptBlock.js} +0 -0
- /package/api/types/{ChatMessagePromptBlockRequest.js → ChatMessagePromptBlockProperties.js} +0 -0
- /package/api/types/{EphemeralPromptCacheConfigRequest.js → EphemeralPromptCacheConfig.js} +0 -0
- /package/api/types/{FunctionDefinitionPromptBlockPropertiesRequest.js → FunctionDefinitionPromptBlock.js} +0 -0
- /package/api/types/{FunctionDefinitionPromptBlockRequest.js → FunctionDefinitionPromptBlockProperties.js} +0 -0
- /package/api/types/{JinjaPromptBlockPropertiesRequest.js → JinjaPromptBlock.js} +0 -0
- /package/api/types/{JinjaPromptBlockRequest.js → JinjaPromptBlockProperties.js} +0 -0
- /package/api/types/{PlainTextPromptBlockRequest.js → PlainTextPromptBlock.js} +0 -0
- /package/api/types/{PromptBlockRequest.js → PromptBlock.js} +0 -0
- /package/api/types/{PromptParametersRequest.js → PromptParameters.js} +0 -0
- /package/api/types/{PromptRequestChatHistoryInputRequest.js → PromptRequestChatHistoryInput.js} +0 -0
- /package/api/types/{PromptRequestInputRequest.js → PromptRequestInput.js} +0 -0
- /package/api/types/{PromptRequestJsonInputRequest.js → PromptRequestJsonInput.js} +0 -0
- /package/api/types/{PromptRequestStringInputRequest.js → PromptRequestStringInput.js} +0 -0
- /package/api/types/{PromptSettingsRequest.js → PromptSettings.js} +0 -0
- /package/api/types/{RichTextChildBlockRequest.js → RichTextChildBlock.js} +0 -0
- /package/api/types/{RichTextPromptBlockRequest.js → RichTextPromptBlock.js} +0 -0
- /package/api/types/{VariablePromptBlockRequest.js → VariablePromptBlock.js} +0 -0
- /package/{api/types/VellumVariableExtensionsRequest.js → dist/api/resources/adHoc/client/requests/AdHocExecutePromptStream.js} +0 -0
- /package/{api/types/VellumVariableRequest.js → dist/api/types/AdHocExpandMeta.js} +0 -0
- /package/dist/api/{resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.js → types/ChatMessagePromptBlock.js} +0 -0
- /package/dist/api/types/{AdHocExpandMetaRequest.js → ChatMessagePromptBlockProperties.js} +0 -0
- /package/dist/api/types/{ChatMessagePromptBlockPropertiesRequest.js → EphemeralPromptCacheConfig.js} +0 -0
- /package/dist/api/types/{ChatMessagePromptBlockRequest.js → FunctionDefinitionPromptBlock.js} +0 -0
- /package/dist/api/types/{EphemeralPromptCacheConfigRequest.js → FunctionDefinitionPromptBlockProperties.js} +0 -0
- /package/dist/api/types/{FunctionDefinitionPromptBlockPropertiesRequest.js → JinjaPromptBlock.js} +0 -0
- /package/dist/api/types/{FunctionDefinitionPromptBlockRequest.js → JinjaPromptBlockProperties.js} +0 -0
- /package/dist/api/types/{JinjaPromptBlockPropertiesRequest.js → PlainTextPromptBlock.js} +0 -0
- /package/dist/api/types/{JinjaPromptBlockRequest.js → PromptBlock.js} +0 -0
- /package/dist/api/types/{PlainTextPromptBlockRequest.js → PromptParameters.js} +0 -0
- /package/dist/api/types/{PromptBlockRequest.js → PromptRequestChatHistoryInput.js} +0 -0
- /package/dist/api/types/{PromptParametersRequest.js → PromptRequestInput.js} +0 -0
- /package/dist/api/types/{PromptRequestChatHistoryInputRequest.js → PromptRequestJsonInput.js} +0 -0
- /package/dist/api/types/{PromptRequestInputRequest.js → PromptRequestStringInput.js} +0 -0
- /package/dist/api/types/{PromptRequestJsonInputRequest.js → PromptSettings.js} +0 -0
- /package/dist/api/types/{PromptRequestStringInputRequest.js → RichTextChildBlock.js} +0 -0
- /package/dist/api/types/{PromptSettingsRequest.js → RichTextPromptBlock.js} +0 -0
- /package/dist/api/types/{RichTextChildBlockRequest.js → VariablePromptBlock.js} +0 -0
|
@@ -26,10 +26,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.JinjaPromptBlockProperties = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
const VellumVariableType_1 = require("./VellumVariableType");
|
|
32
|
-
exports.
|
|
32
|
+
exports.JinjaPromptBlockProperties = core.serialization.object({
|
|
33
33
|
template: core.serialization.string().optional(),
|
|
34
34
|
templateType: core.serialization.property("template_type", VellumVariableType_1.VellumVariableType.optional()),
|
|
35
35
|
});
|
|
@@ -5,12 +5,12 @@ import * as serializers from "../index";
|
|
|
5
5
|
import * as Vellum from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { PromptBlockState } from "./PromptBlockState";
|
|
8
|
-
import {
|
|
9
|
-
export declare const
|
|
10
|
-
export declare namespace
|
|
8
|
+
import { EphemeralPromptCacheConfig } from "./EphemeralPromptCacheConfig";
|
|
9
|
+
export declare const PlainTextPromptBlock: core.serialization.ObjectSchema<serializers.PlainTextPromptBlock.Raw, Vellum.PlainTextPromptBlock>;
|
|
10
|
+
export declare namespace PlainTextPromptBlock {
|
|
11
11
|
interface Raw {
|
|
12
12
|
state?: PromptBlockState.Raw | null;
|
|
13
|
-
cache_config?:
|
|
13
|
+
cache_config?: EphemeralPromptCacheConfig.Raw | null;
|
|
14
14
|
block_type: "PLAIN_TEXT";
|
|
15
15
|
text: string;
|
|
16
16
|
}
|
|
@@ -26,13 +26,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.PlainTextPromptBlock = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
const PromptBlockState_1 = require("./PromptBlockState");
|
|
32
|
-
const
|
|
33
|
-
exports.
|
|
32
|
+
const EphemeralPromptCacheConfig_1 = require("./EphemeralPromptCacheConfig");
|
|
33
|
+
exports.PlainTextPromptBlock = core.serialization.object({
|
|
34
34
|
state: PromptBlockState_1.PromptBlockState.optional(),
|
|
35
|
-
cacheConfig: core.serialization.property("cache_config",
|
|
35
|
+
cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfig_1.EphemeralPromptCacheConfig.optional()),
|
|
36
36
|
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("PLAIN_TEXT")),
|
|
37
37
|
text: core.serialization.string(),
|
|
38
38
|
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Vellum from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { JinjaPromptBlock } from "./JinjaPromptBlock";
|
|
8
|
+
import { FunctionDefinitionPromptBlock } from "./FunctionDefinitionPromptBlock";
|
|
9
|
+
import { VariablePromptBlock } from "./VariablePromptBlock";
|
|
10
|
+
import { RichTextPromptBlock } from "./RichTextPromptBlock";
|
|
11
|
+
export declare const PromptBlock: core.serialization.Schema<serializers.PromptBlock.Raw, Vellum.PromptBlock>;
|
|
12
|
+
export declare namespace PromptBlock {
|
|
13
|
+
type Raw = JinjaPromptBlock.Raw | serializers.ChatMessagePromptBlock.Raw | FunctionDefinitionPromptBlock.Raw | VariablePromptBlock.Raw | RichTextPromptBlock.Raw;
|
|
14
|
+
}
|
package/{serialization/types/VellumVariableRequest.js → dist/serialization/types/PromptBlock.js}
RENAMED
|
@@ -26,16 +26,17 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.PromptBlock = void 0;
|
|
30
30
|
const serializers = __importStar(require("../index"));
|
|
31
31
|
const core = __importStar(require("../../core"));
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
32
|
+
const JinjaPromptBlock_1 = require("./JinjaPromptBlock");
|
|
33
|
+
const FunctionDefinitionPromptBlock_1 = require("./FunctionDefinitionPromptBlock");
|
|
34
|
+
const VariablePromptBlock_1 = require("./VariablePromptBlock");
|
|
35
|
+
const RichTextPromptBlock_1 = require("./RichTextPromptBlock");
|
|
36
|
+
exports.PromptBlock = core.serialization.undiscriminatedUnion([
|
|
37
|
+
JinjaPromptBlock_1.JinjaPromptBlock,
|
|
38
|
+
core.serialization.lazyObject(() => serializers.ChatMessagePromptBlock),
|
|
39
|
+
FunctionDefinitionPromptBlock_1.FunctionDefinitionPromptBlock,
|
|
40
|
+
VariablePromptBlock_1.VariablePromptBlock,
|
|
41
|
+
RichTextPromptBlock_1.RichTextPromptBlock,
|
|
42
|
+
]);
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Vellum from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
export declare const
|
|
8
|
-
export declare namespace
|
|
7
|
+
export declare const PromptParameters: core.serialization.ObjectSchema<serializers.PromptParameters.Raw, Vellum.PromptParameters>;
|
|
8
|
+
export declare namespace PromptParameters {
|
|
9
9
|
interface Raw {
|
|
10
10
|
stop?: string[] | null;
|
|
11
11
|
temperature?: number | null;
|
|
@@ -26,9 +26,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.PromptParameters = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.
|
|
31
|
+
exports.PromptParameters = core.serialization.object({
|
|
32
32
|
stop: core.serialization.list(core.serialization.string()).optional(),
|
|
33
33
|
temperature: core.serialization.number().optional(),
|
|
34
34
|
maxTokens: core.serialization.property("max_tokens", core.serialization.number().optional()),
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Vellum from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { ChatMessage } from "./ChatMessage";
|
|
8
|
+
export declare const PromptRequestChatHistoryInput: core.serialization.ObjectSchema<serializers.PromptRequestChatHistoryInput.Raw, Vellum.PromptRequestChatHistoryInput>;
|
|
9
|
+
export declare namespace PromptRequestChatHistoryInput {
|
|
10
|
+
interface Raw {
|
|
11
|
+
key: string;
|
|
12
|
+
type: "CHAT_HISTORY";
|
|
13
|
+
value: ChatMessage.Raw[];
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -26,11 +26,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.PromptRequestChatHistoryInput = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
const
|
|
32
|
-
exports.
|
|
31
|
+
const ChatMessage_1 = require("./ChatMessage");
|
|
32
|
+
exports.PromptRequestChatHistoryInput = core.serialization.object({
|
|
33
33
|
key: core.serialization.string(),
|
|
34
34
|
type: core.serialization.stringLiteral("CHAT_HISTORY"),
|
|
35
|
-
value: core.serialization.list(
|
|
35
|
+
value: core.serialization.list(ChatMessage_1.ChatMessage),
|
|
36
36
|
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Vellum from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { PromptRequestStringInput } from "./PromptRequestStringInput";
|
|
8
|
+
import { PromptRequestJsonInput } from "./PromptRequestJsonInput";
|
|
9
|
+
import { PromptRequestChatHistoryInput } from "./PromptRequestChatHistoryInput";
|
|
10
|
+
export declare const PromptRequestInput: core.serialization.Schema<serializers.PromptRequestInput.Raw, Vellum.PromptRequestInput>;
|
|
11
|
+
export declare namespace PromptRequestInput {
|
|
12
|
+
type Raw = PromptRequestStringInput.Raw | PromptRequestJsonInput.Raw | PromptRequestChatHistoryInput.Raw;
|
|
13
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.PromptRequestInput = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
const PromptRequestStringInput_1 = require("./PromptRequestStringInput");
|
|
32
|
+
const PromptRequestJsonInput_1 = require("./PromptRequestJsonInput");
|
|
33
|
+
const PromptRequestChatHistoryInput_1 = require("./PromptRequestChatHistoryInput");
|
|
34
|
+
exports.PromptRequestInput = core.serialization.undiscriminatedUnion([
|
|
35
|
+
PromptRequestStringInput_1.PromptRequestStringInput,
|
|
36
|
+
PromptRequestJsonInput_1.PromptRequestJsonInput,
|
|
37
|
+
PromptRequestChatHistoryInput_1.PromptRequestChatHistoryInput,
|
|
38
|
+
]);
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Vellum from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
export declare const
|
|
8
|
-
export declare namespace
|
|
7
|
+
export declare const PromptRequestJsonInput: core.serialization.ObjectSchema<serializers.PromptRequestJsonInput.Raw, Vellum.PromptRequestJsonInput>;
|
|
8
|
+
export declare namespace PromptRequestJsonInput {
|
|
9
9
|
interface Raw {
|
|
10
10
|
key: string;
|
|
11
11
|
type: "JSON";
|
package/dist/serialization/types/{PromptRequestJsonInputRequest.js → PromptRequestJsonInput.js}
RENAMED
|
@@ -26,9 +26,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.PromptRequestJsonInput = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.
|
|
31
|
+
exports.PromptRequestJsonInput = core.serialization.object({
|
|
32
32
|
key: core.serialization.string(),
|
|
33
33
|
type: core.serialization.stringLiteral("JSON"),
|
|
34
34
|
value: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Vellum from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
export declare const
|
|
8
|
-
export declare namespace
|
|
7
|
+
export declare const PromptRequestStringInput: core.serialization.ObjectSchema<serializers.PromptRequestStringInput.Raw, Vellum.PromptRequestStringInput>;
|
|
8
|
+
export declare namespace PromptRequestStringInput {
|
|
9
9
|
interface Raw {
|
|
10
10
|
key: string;
|
|
11
11
|
type: "STRING";
|
|
@@ -26,9 +26,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.PromptRequestStringInput = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.
|
|
31
|
+
exports.PromptRequestStringInput = core.serialization.object({
|
|
32
32
|
key: core.serialization.string(),
|
|
33
33
|
type: core.serialization.stringLiteral("STRING"),
|
|
34
34
|
value: core.serialization.string(),
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Vellum from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
export declare const
|
|
8
|
-
export declare namespace
|
|
7
|
+
export declare const PromptSettings: core.serialization.ObjectSchema<serializers.PromptSettings.Raw, Vellum.PromptSettings>;
|
|
8
|
+
export declare namespace PromptSettings {
|
|
9
9
|
interface Raw {
|
|
10
10
|
timeout?: number | null;
|
|
11
11
|
}
|
package/{serialization/types/PromptSettingsRequest.js → dist/serialization/types/PromptSettings.js}
RENAMED
|
@@ -26,8 +26,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.PromptSettings = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.
|
|
31
|
+
exports.PromptSettings = core.serialization.object({
|
|
32
32
|
timeout: core.serialization.number().optional(),
|
|
33
33
|
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Vellum from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { VariablePromptBlock } from "./VariablePromptBlock";
|
|
8
|
+
import { PlainTextPromptBlock } from "./PlainTextPromptBlock";
|
|
9
|
+
export declare const RichTextChildBlock: core.serialization.Schema<serializers.RichTextChildBlock.Raw, Vellum.RichTextChildBlock>;
|
|
10
|
+
export declare namespace RichTextChildBlock {
|
|
11
|
+
type Raw = VariablePromptBlock.Raw | PlainTextPromptBlock.Raw;
|
|
12
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.RichTextChildBlock = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
const VariablePromptBlock_1 = require("./VariablePromptBlock");
|
|
32
|
+
const PlainTextPromptBlock_1 = require("./PlainTextPromptBlock");
|
|
33
|
+
exports.RichTextChildBlock = core.serialization.undiscriminatedUnion([VariablePromptBlock_1.VariablePromptBlock, PlainTextPromptBlock_1.PlainTextPromptBlock]);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Vellum from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { PromptBlockState } from "./PromptBlockState";
|
|
8
|
+
import { EphemeralPromptCacheConfig } from "./EphemeralPromptCacheConfig";
|
|
9
|
+
import { RichTextChildBlock } from "./RichTextChildBlock";
|
|
10
|
+
export declare const RichTextPromptBlock: core.serialization.ObjectSchema<serializers.RichTextPromptBlock.Raw, Vellum.RichTextPromptBlock>;
|
|
11
|
+
export declare namespace RichTextPromptBlock {
|
|
12
|
+
interface Raw {
|
|
13
|
+
state?: PromptBlockState.Raw | null;
|
|
14
|
+
cache_config?: EphemeralPromptCacheConfig.Raw | null;
|
|
15
|
+
block_type: "RICH_TEXT";
|
|
16
|
+
blocks: RichTextChildBlock.Raw[];
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.RichTextPromptBlock = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
const PromptBlockState_1 = require("./PromptBlockState");
|
|
32
|
+
const EphemeralPromptCacheConfig_1 = require("./EphemeralPromptCacheConfig");
|
|
33
|
+
const RichTextChildBlock_1 = require("./RichTextChildBlock");
|
|
34
|
+
exports.RichTextPromptBlock = core.serialization.object({
|
|
35
|
+
state: PromptBlockState_1.PromptBlockState.optional(),
|
|
36
|
+
cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfig_1.EphemeralPromptCacheConfig.optional()),
|
|
37
|
+
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("RICH_TEXT")),
|
|
38
|
+
blocks: core.serialization.list(RichTextChildBlock_1.RichTextChildBlock),
|
|
39
|
+
});
|
package/dist/serialization/types/{VariablePromptBlockRequest.d.ts → VariablePromptBlock.d.ts}
RENAMED
|
@@ -5,12 +5,12 @@ import * as serializers from "../index";
|
|
|
5
5
|
import * as Vellum from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { PromptBlockState } from "./PromptBlockState";
|
|
8
|
-
import {
|
|
9
|
-
export declare const
|
|
10
|
-
export declare namespace
|
|
8
|
+
import { EphemeralPromptCacheConfig } from "./EphemeralPromptCacheConfig";
|
|
9
|
+
export declare const VariablePromptBlock: core.serialization.ObjectSchema<serializers.VariablePromptBlock.Raw, Vellum.VariablePromptBlock>;
|
|
10
|
+
export declare namespace VariablePromptBlock {
|
|
11
11
|
interface Raw {
|
|
12
12
|
state?: PromptBlockState.Raw | null;
|
|
13
|
-
cache_config?:
|
|
13
|
+
cache_config?: EphemeralPromptCacheConfig.Raw | null;
|
|
14
14
|
block_type: "VARIABLE";
|
|
15
15
|
input_variable_id: string;
|
|
16
16
|
}
|
|
@@ -26,13 +26,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.VariablePromptBlock = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
const PromptBlockState_1 = require("./PromptBlockState");
|
|
32
|
-
const
|
|
33
|
-
exports.
|
|
32
|
+
const EphemeralPromptCacheConfig_1 = require("./EphemeralPromptCacheConfig");
|
|
33
|
+
exports.VariablePromptBlock = core.serialization.object({
|
|
34
34
|
state: PromptBlockState_1.PromptBlockState.optional(),
|
|
35
|
-
cacheConfig: core.serialization.property("cache_config",
|
|
35
|
+
cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfig_1.EphemeralPromptCacheConfig.optional()),
|
|
36
36
|
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("VARIABLE")),
|
|
37
37
|
inputVariableId: core.serialization.property("input_variable_id", core.serialization.string()),
|
|
38
38
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "./AdHocExecutePromptEvent";
|
|
2
|
-
export * from "./
|
|
2
|
+
export * from "./AdHocExpandMeta";
|
|
3
3
|
export * from "./AdHocFulfilledPromptExecutionMeta";
|
|
4
4
|
export * from "./AdHocInitiatedPromptExecutionMeta";
|
|
5
5
|
export * from "./AdHocRejectedPromptExecutionMeta";
|
|
@@ -34,8 +34,8 @@ export * from "./ChatHistoryVellumValueRequest";
|
|
|
34
34
|
export * from "./ChatMessage";
|
|
35
35
|
export * from "./ChatMessageContent";
|
|
36
36
|
export * from "./ChatMessageContentRequest";
|
|
37
|
-
export * from "./
|
|
38
|
-
export * from "./
|
|
37
|
+
export * from "./ChatMessagePromptBlock";
|
|
38
|
+
export * from "./ChatMessagePromptBlockProperties";
|
|
39
39
|
export * from "./ChatMessageRequest";
|
|
40
40
|
export * from "./ChatMessageRole";
|
|
41
41
|
export * from "./CodeExecutionNodeArrayResult";
|
|
@@ -79,7 +79,7 @@ export * from "./EnrichedNormalizedCompletion";
|
|
|
79
79
|
export * from "./EntityStatus";
|
|
80
80
|
export * from "./EntityVisibility";
|
|
81
81
|
export * from "./EnvironmentEnum";
|
|
82
|
-
export * from "./
|
|
82
|
+
export * from "./EphemeralPromptCacheConfig";
|
|
83
83
|
export * from "./EphemeralPromptCacheConfigTypeEnum";
|
|
84
84
|
export * from "./ErrorInputRequest";
|
|
85
85
|
export * from "./ErrorVariableValue";
|
|
@@ -129,8 +129,8 @@ export * from "./FunctionCallRequest";
|
|
|
129
129
|
export * from "./FunctionCallVariableValue";
|
|
130
130
|
export * from "./FunctionCallVellumValue";
|
|
131
131
|
export * from "./FunctionCallVellumValueRequest";
|
|
132
|
-
export * from "./
|
|
133
|
-
export * from "./
|
|
132
|
+
export * from "./FunctionDefinitionPromptBlock";
|
|
133
|
+
export * from "./FunctionDefinitionPromptBlockProperties";
|
|
134
134
|
export * from "./GenerateOptionsRequest";
|
|
135
135
|
export * from "./GenerateRequest";
|
|
136
136
|
export * from "./GenerateResponse";
|
|
@@ -164,8 +164,8 @@ export * from "./InstructorVectorizerConfig";
|
|
|
164
164
|
export * from "./InstructorVectorizerConfigRequest";
|
|
165
165
|
export * from "./IterationStateEnum";
|
|
166
166
|
export * from "./JsonInputRequest";
|
|
167
|
-
export * from "./
|
|
168
|
-
export * from "./
|
|
167
|
+
export * from "./JinjaPromptBlock";
|
|
168
|
+
export * from "./JinjaPromptBlockProperties";
|
|
169
169
|
export * from "./JsonVariableValue";
|
|
170
170
|
export * from "./JsonVellumValue";
|
|
171
171
|
export * from "./JsonVellumValueRequest";
|
|
@@ -249,11 +249,11 @@ export * from "./PaginatedTestSuiteTestCaseList";
|
|
|
249
249
|
export * from "./PaginatedWorkflowReleaseTagReadList";
|
|
250
250
|
export * from "./PdfSearchResultMetaSource";
|
|
251
251
|
export * from "./PdfSearchResultMetaSourceRequest";
|
|
252
|
-
export * from "./
|
|
252
|
+
export * from "./PlainTextPromptBlock";
|
|
253
253
|
export * from "./Price";
|
|
254
254
|
export * from "./ProcessingFailureReasonEnum";
|
|
255
255
|
export * from "./ProcessingStateEnum";
|
|
256
|
-
export * from "./
|
|
256
|
+
export * from "./PromptBlock";
|
|
257
257
|
export * from "./PromptBlockState";
|
|
258
258
|
export * from "./PromptDeploymentExpandMetaRequest";
|
|
259
259
|
export * from "./PromptDeploymentInputRequest";
|
|
@@ -262,12 +262,12 @@ export * from "./PromptNodeExecutionMeta";
|
|
|
262
262
|
export * from "./PromptNodeResult";
|
|
263
263
|
export * from "./PromptNodeResultData";
|
|
264
264
|
export * from "./PromptOutput";
|
|
265
|
-
export * from "./
|
|
266
|
-
export * from "./
|
|
267
|
-
export * from "./
|
|
268
|
-
export * from "./
|
|
269
|
-
export * from "./
|
|
270
|
-
export * from "./
|
|
265
|
+
export * from "./PromptParameters";
|
|
266
|
+
export * from "./PromptRequestChatHistoryInput";
|
|
267
|
+
export * from "./PromptRequestInput";
|
|
268
|
+
export * from "./PromptRequestJsonInput";
|
|
269
|
+
export * from "./PromptRequestStringInput";
|
|
270
|
+
export * from "./PromptSettings";
|
|
271
271
|
export * from "./RawPromptExecutionOverridesRequest";
|
|
272
272
|
export * from "./ReductoChunkerConfig";
|
|
273
273
|
export * from "./ReductoChunkerConfigRequest";
|
|
@@ -281,8 +281,8 @@ export * from "./RejectedPromptExecutionMeta";
|
|
|
281
281
|
export * from "./RejectedWorkflowNodeResultEvent";
|
|
282
282
|
export * from "./ReleaseTagSource";
|
|
283
283
|
export * from "./ReplaceTestSuiteTestCaseRequest";
|
|
284
|
-
export * from "./
|
|
285
|
-
export * from "./
|
|
284
|
+
export * from "./RichTextChildBlock";
|
|
285
|
+
export * from "./RichTextPromptBlock";
|
|
286
286
|
export * from "./SandboxScenario";
|
|
287
287
|
export * from "./ScenarioInput";
|
|
288
288
|
export * from "./ScenarioInputChatHistoryVariableValue";
|
|
@@ -416,7 +416,7 @@ export * from "./TokenOverlappingWindowChunkingRequest";
|
|
|
416
416
|
export * from "./UnitEnum";
|
|
417
417
|
export * from "./UploadDocumentResponse";
|
|
418
418
|
export * from "./UpsertTestSuiteTestCaseRequest";
|
|
419
|
-
export * from "./
|
|
419
|
+
export * from "./VariablePromptBlock";
|
|
420
420
|
export * from "./VellumAudio";
|
|
421
421
|
export * from "./VellumAudioRequest";
|
|
422
422
|
export * from "./VellumError";
|
|
@@ -431,8 +431,6 @@ export * from "./VellumValueLogicalExpressionRequest";
|
|
|
431
431
|
export * from "./VellumValueRequest";
|
|
432
432
|
export * from "./VellumVariable";
|
|
433
433
|
export * from "./VellumVariableExtensions";
|
|
434
|
-
export * from "./VellumVariableExtensionsRequest";
|
|
435
|
-
export * from "./VellumVariableRequest";
|
|
436
434
|
export * from "./VellumVariableType";
|
|
437
435
|
export * from "./WorkflowDeploymentRead";
|
|
438
436
|
export * from "./WorkflowEventError";
|