@trymirai/uzu 0.3.1 → 0.4.0
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/LICENSE +1 -1
- package/README.md +253 -245
- package/index.d.mts +1 -43
- package/index.d.mts.map +1 -1
- package/index.d.ts +1 -43
- package/index.d.ts.map +1 -1
- package/index.js +2 -88
- package/index.js.map +1 -1
- package/index.mjs +1 -43
- package/index.mjs.map +1 -1
- package/internal/tslib.js +6 -33
- package/napi/index.d.ts +975 -0
- package/napi/index.js +626 -0
- package/napi/index.mjs +3 -0
- package/napi/{uzu.node → uzu.darwin-arm64.node} +0 -0
- package/package.json +26 -63
- package/src/index.ts +1 -43
- package/src/napi/index.d.ts +975 -0
- package/src/napi/index.js +626 -0
- package/src/napi/index.mjs +3 -0
- package/src/napi/{uzu.node → uzu.darwin-arm64.node} +0 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/bridging/asyncBatchSize.d.mts +0 -10
- package/bridging/asyncBatchSize.d.mts.map +0 -1
- package/bridging/asyncBatchSize.d.ts +0 -10
- package/bridging/asyncBatchSize.d.ts.map +0 -1
- package/bridging/asyncBatchSize.js +0 -21
- package/bridging/asyncBatchSize.js.map +0 -1
- package/bridging/asyncBatchSize.mjs +0 -17
- package/bridging/asyncBatchSize.mjs.map +0 -1
- package/bridging/chatSession.d.mts +0 -11
- package/bridging/chatSession.d.mts.map +0 -1
- package/bridging/chatSession.d.ts +0 -11
- package/bridging/chatSession.d.ts.map +0 -1
- package/bridging/chatSession.js +0 -22
- package/bridging/chatSession.js.map +0 -1
- package/bridging/chatSession.mjs +0 -18
- package/bridging/chatSession.mjs.map +0 -1
- package/bridging/classificationFeature.d.mts +0 -9
- package/bridging/classificationFeature.d.mts.map +0 -1
- package/bridging/classificationFeature.d.ts +0 -9
- package/bridging/classificationFeature.d.ts.map +0 -1
- package/bridging/classificationFeature.js +0 -18
- package/bridging/classificationFeature.js.map +0 -1
- package/bridging/classificationFeature.mjs +0 -14
- package/bridging/classificationFeature.mjs.map +0 -1
- package/bridging/classificationLabel.d.mts +0 -12
- package/bridging/classificationLabel.d.mts.map +0 -1
- package/bridging/classificationLabel.d.ts +0 -12
- package/bridging/classificationLabel.d.ts.map +0 -1
- package/bridging/classificationLabel.js +0 -26
- package/bridging/classificationLabel.js.map +0 -1
- package/bridging/classificationLabel.mjs +0 -22
- package/bridging/classificationLabel.mjs.map +0 -1
- package/bridging/classificationOutput.d.mts +0 -10
- package/bridging/classificationOutput.d.mts.map +0 -1
- package/bridging/classificationOutput.d.ts +0 -10
- package/bridging/classificationOutput.d.ts.map +0 -1
- package/bridging/classificationOutput.js +0 -16
- package/bridging/classificationOutput.js.map +0 -1
- package/bridging/classificationOutput.mjs +0 -12
- package/bridging/classificationOutput.mjs.map +0 -1
- package/bridging/classificationSession.d.mts +0 -9
- package/bridging/classificationSession.d.mts.map +0 -1
- package/bridging/classificationSession.d.ts +0 -9
- package/bridging/classificationSession.d.ts.map +0 -1
- package/bridging/classificationSession.js +0 -16
- package/bridging/classificationSession.js.map +0 -1
- package/bridging/classificationSession.mjs +0 -12
- package/bridging/classificationSession.mjs.map +0 -1
- package/bridging/classificationStats.d.mts +0 -14
- package/bridging/classificationStats.d.mts.map +0 -1
- package/bridging/classificationStats.d.ts +0 -14
- package/bridging/classificationStats.d.ts.map +0 -1
- package/bridging/classificationStats.js +0 -20
- package/bridging/classificationStats.js.map +0 -1
- package/bridging/classificationStats.mjs +0 -16
- package/bridging/classificationStats.mjs.map +0 -1
- package/bridging/config.d.mts +0 -26
- package/bridging/config.d.mts.map +0 -1
- package/bridging/config.d.ts +0 -26
- package/bridging/config.d.ts.map +0 -1
- package/bridging/config.js +0 -53
- package/bridging/config.js.map +0 -1
- package/bridging/config.mjs +0 -49
- package/bridging/config.mjs.map +0 -1
- package/bridging/contextLength.d.mts +0 -11
- package/bridging/contextLength.d.mts.map +0 -1
- package/bridging/contextLength.d.ts +0 -11
- package/bridging/contextLength.d.ts.map +0 -1
- package/bridging/contextLength.js +0 -25
- package/bridging/contextLength.js.map +0 -1
- package/bridging/contextLength.mjs +0 -21
- package/bridging/contextLength.mjs.map +0 -1
- package/bridging/contextMode.d.mts +0 -12
- package/bridging/contextMode.d.mts.map +0 -1
- package/bridging/contextMode.d.ts +0 -12
- package/bridging/contextMode.d.ts.map +0 -1
- package/bridging/contextMode.js +0 -26
- package/bridging/contextMode.js.map +0 -1
- package/bridging/contextMode.mjs +0 -22
- package/bridging/contextMode.mjs.map +0 -1
- package/bridging/downloadHandle.d.mts +0 -14
- package/bridging/downloadHandle.d.mts.map +0 -1
- package/bridging/downloadHandle.d.ts +0 -14
- package/bridging/downloadHandle.d.ts.map +0 -1
- package/bridging/downloadHandle.js +0 -36
- package/bridging/downloadHandle.js.map +0 -1
- package/bridging/downloadHandle.mjs +0 -32
- package/bridging/downloadHandle.mjs.map +0 -1
- package/bridging/downloadProgressUpdate.d.mts +0 -9
- package/bridging/downloadProgressUpdate.d.mts.map +0 -1
- package/bridging/downloadProgressUpdate.d.ts +0 -9
- package/bridging/downloadProgressUpdate.d.ts.map +0 -1
- package/bridging/downloadProgressUpdate.js +0 -15
- package/bridging/downloadProgressUpdate.js.map +0 -1
- package/bridging/downloadProgressUpdate.mjs +0 -11
- package/bridging/downloadProgressUpdate.mjs.map +0 -1
- package/bridging/downloadState.d.mts +0 -19
- package/bridging/downloadState.d.mts.map +0 -1
- package/bridging/downloadState.d.ts +0 -19
- package/bridging/downloadState.d.ts.map +0 -1
- package/bridging/downloadState.js +0 -45
- package/bridging/downloadState.js.map +0 -1
- package/bridging/downloadState.mjs +0 -41
- package/bridging/downloadState.mjs.map +0 -1
- package/bridging/engine.d.mts +0 -29
- package/bridging/engine.d.mts.map +0 -1
- package/bridging/engine.d.ts +0 -29
- package/bridging/engine.d.ts.map +0 -1
- package/bridging/engine.js +0 -117
- package/bridging/engine.js.map +0 -1
- package/bridging/engine.mjs +0 -113
- package/bridging/engine.mjs.map +0 -1
- package/bridging/finishReason.d.mts +0 -7
- package/bridging/finishReason.d.mts.map +0 -1
- package/bridging/finishReason.d.ts +0 -7
- package/bridging/finishReason.d.ts.map +0 -1
- package/bridging/finishReason.js +0 -11
- package/bridging/finishReason.js.map +0 -1
- package/bridging/finishReason.mjs +0 -8
- package/bridging/finishReason.mjs.map +0 -1
- package/bridging/grammarConfig.d.mts +0 -13
- package/bridging/grammarConfig.d.mts.map +0 -1
- package/bridging/grammarConfig.d.ts +0 -13
- package/bridging/grammarConfig.d.ts.map +0 -1
- package/bridging/grammarConfig.js +0 -36
- package/bridging/grammarConfig.js.map +0 -1
- package/bridging/grammarConfig.mjs +0 -31
- package/bridging/grammarConfig.mjs.map +0 -1
- package/bridging/input.d.mts +0 -11
- package/bridging/input.d.mts.map +0 -1
- package/bridging/input.d.ts +0 -11
- package/bridging/input.d.ts.map +0 -1
- package/bridging/input.js +0 -25
- package/bridging/input.js.map +0 -1
- package/bridging/input.mjs +0 -21
- package/bridging/input.mjs.map +0 -1
- package/bridging/licenseStatus.d.mts +0 -14
- package/bridging/licenseStatus.d.mts.map +0 -1
- package/bridging/licenseStatus.d.ts +0 -14
- package/bridging/licenseStatus.d.ts.map +0 -1
- package/bridging/licenseStatus.js +0 -42
- package/bridging/licenseStatus.js.map +0 -1
- package/bridging/licenseStatus.mjs +0 -38
- package/bridging/licenseStatus.mjs.map +0 -1
- package/bridging/message.d.mts +0 -15
- package/bridging/message.d.mts.map +0 -1
- package/bridging/message.d.ts +0 -15
- package/bridging/message.d.ts.map +0 -1
- package/bridging/message.js +0 -43
- package/bridging/message.js.map +0 -1
- package/bridging/message.mjs +0 -39
- package/bridging/message.mjs.map +0 -1
- package/bridging/model.d.mts +0 -19
- package/bridging/model.d.mts.map +0 -1
- package/bridging/model.d.ts +0 -19
- package/bridging/model.d.ts.map +0 -1
- package/bridging/model.js +0 -39
- package/bridging/model.js.map +0 -1
- package/bridging/model.mjs +0 -35
- package/bridging/model.mjs.map +0 -1
- package/bridging/modelKind.d.mts +0 -8
- package/bridging/modelKind.d.mts.map +0 -1
- package/bridging/modelKind.d.ts +0 -8
- package/bridging/modelKind.d.ts.map +0 -1
- package/bridging/modelKind.js +0 -30
- package/bridging/modelKind.js.map +0 -1
- package/bridging/modelKind.mjs +0 -25
- package/bridging/modelKind.mjs.map +0 -1
- package/bridging/modelType.d.mts +0 -9
- package/bridging/modelType.d.mts.map +0 -1
- package/bridging/modelType.d.ts +0 -9
- package/bridging/modelType.d.ts.map +0 -1
- package/bridging/modelType.js +0 -35
- package/bridging/modelType.js.map +0 -1
- package/bridging/modelType.mjs +0 -30
- package/bridging/modelType.mjs.map +0 -1
- package/bridging/napi.d.mts +0 -4
- package/bridging/napi.d.mts.map +0 -1
- package/bridging/napi.d.ts +0 -4
- package/bridging/napi.d.ts.map +0 -1
- package/bridging/napi.js +0 -3
- package/bridging/napi.js.map +0 -1
- package/bridging/napi.mjs +0 -2
- package/bridging/napi.mjs.map +0 -1
- package/bridging/output.d.mts +0 -13
- package/bridging/output.d.mts.map +0 -1
- package/bridging/output.d.ts +0 -13
- package/bridging/output.d.ts.map +0 -1
- package/bridging/output.js +0 -36
- package/bridging/output.js.map +0 -1
- package/bridging/output.mjs +0 -32
- package/bridging/output.mjs.map +0 -1
- package/bridging/parsedText.d.mts +0 -10
- package/bridging/parsedText.d.mts.map +0 -1
- package/bridging/parsedText.d.ts +0 -10
- package/bridging/parsedText.d.ts.map +0 -1
- package/bridging/parsedText.js +0 -24
- package/bridging/parsedText.js.map +0 -1
- package/bridging/parsedText.mjs +0 -20
- package/bridging/parsedText.mjs.map +0 -1
- package/bridging/prefillStepSize.d.mts +0 -11
- package/bridging/prefillStepSize.d.mts.map +0 -1
- package/bridging/prefillStepSize.d.ts +0 -11
- package/bridging/prefillStepSize.d.ts.map +0 -1
- package/bridging/prefillStepSize.js +0 -28
- package/bridging/prefillStepSize.js.map +0 -1
- package/bridging/prefillStepSize.mjs +0 -24
- package/bridging/prefillStepSize.mjs.map +0 -1
- package/bridging/preset.d.mts +0 -14
- package/bridging/preset.d.mts.map +0 -1
- package/bridging/preset.d.ts +0 -14
- package/bridging/preset.d.ts.map +0 -1
- package/bridging/preset.js +0 -41
- package/bridging/preset.js.map +0 -1
- package/bridging/preset.mjs +0 -37
- package/bridging/preset.mjs.map +0 -1
- package/bridging/role.d.mts +0 -6
- package/bridging/role.d.mts.map +0 -1
- package/bridging/role.d.ts +0 -6
- package/bridging/role.d.ts.map +0 -1
- package/bridging/role.js +0 -10
- package/bridging/role.js.map +0 -1
- package/bridging/role.mjs +0 -7
- package/bridging/role.mjs.map +0 -1
- package/bridging/runConfig.d.mts +0 -18
- package/bridging/runConfig.d.mts.map +0 -1
- package/bridging/runConfig.d.ts +0 -18
- package/bridging/runConfig.d.ts.map +0 -1
- package/bridging/runConfig.js +0 -42
- package/bridging/runConfig.js.map +0 -1
- package/bridging/runConfig.mjs +0 -38
- package/bridging/runConfig.mjs.map +0 -1
- package/bridging/runStats.d.mts +0 -8
- package/bridging/runStats.d.mts.map +0 -1
- package/bridging/runStats.d.ts +0 -8
- package/bridging/runStats.d.ts.map +0 -1
- package/bridging/runStats.js +0 -16
- package/bridging/runStats.js.map +0 -1
- package/bridging/runStats.mjs +0 -12
- package/bridging/runStats.mjs.map +0 -1
- package/bridging/samplingMethod.d.mts +0 -11
- package/bridging/samplingMethod.d.mts.map +0 -1
- package/bridging/samplingMethod.d.ts +0 -11
- package/bridging/samplingMethod.d.ts.map +0 -1
- package/bridging/samplingMethod.js +0 -37
- package/bridging/samplingMethod.js.map +0 -1
- package/bridging/samplingMethod.mjs +0 -33
- package/bridging/samplingMethod.mjs.map +0 -1
- package/bridging/samplingPolicy.d.mts +0 -11
- package/bridging/samplingPolicy.d.mts.map +0 -1
- package/bridging/samplingPolicy.d.ts +0 -11
- package/bridging/samplingPolicy.d.ts.map +0 -1
- package/bridging/samplingPolicy.js +0 -25
- package/bridging/samplingPolicy.js.map +0 -1
- package/bridging/samplingPolicy.mjs +0 -21
- package/bridging/samplingPolicy.mjs.map +0 -1
- package/bridging/samplingProcessingOrder.d.mts +0 -8
- package/bridging/samplingProcessingOrder.d.mts.map +0 -1
- package/bridging/samplingProcessingOrder.d.ts +0 -8
- package/bridging/samplingProcessingOrder.d.ts.map +0 -1
- package/bridging/samplingProcessingOrder.js +0 -30
- package/bridging/samplingProcessingOrder.js.map +0 -1
- package/bridging/samplingProcessingOrder.mjs +0 -25
- package/bridging/samplingProcessingOrder.mjs.map +0 -1
- package/bridging/samplingSeed.d.mts +0 -10
- package/bridging/samplingSeed.d.mts.map +0 -1
- package/bridging/samplingSeed.d.ts +0 -10
- package/bridging/samplingSeed.d.ts.map +0 -1
- package/bridging/samplingSeed.js +0 -21
- package/bridging/samplingSeed.js.map +0 -1
- package/bridging/samplingSeed.mjs +0 -17
- package/bridging/samplingSeed.mjs.map +0 -1
- package/bridging/stats.d.mts +0 -11
- package/bridging/stats.d.mts.map +0 -1
- package/bridging/stats.d.ts +0 -11
- package/bridging/stats.d.ts.map +0 -1
- package/bridging/stats.js +0 -20
- package/bridging/stats.js.map +0 -1
- package/bridging/stats.mjs +0 -16
- package/bridging/stats.mjs.map +0 -1
- package/bridging/stepStats.d.mts +0 -14
- package/bridging/stepStats.d.mts.map +0 -1
- package/bridging/stepStats.d.ts +0 -14
- package/bridging/stepStats.d.ts.map +0 -1
- package/bridging/stepStats.js +0 -27
- package/bridging/stepStats.js.map +0 -1
- package/bridging/stepStats.mjs +0 -23
- package/bridging/stepStats.mjs.map +0 -1
- package/bridging/text.d.mts +0 -9
- package/bridging/text.d.mts.map +0 -1
- package/bridging/text.d.ts +0 -9
- package/bridging/text.d.ts.map +0 -1
- package/bridging/text.js +0 -17
- package/bridging/text.js.map +0 -1
- package/bridging/text.mjs +0 -13
- package/bridging/text.mjs.map +0 -1
- package/bridging/textToSpeechSession.d.mts +0 -8
- package/bridging/textToSpeechSession.d.mts.map +0 -1
- package/bridging/textToSpeechSession.d.ts +0 -8
- package/bridging/textToSpeechSession.d.ts.map +0 -1
- package/bridging/textToSpeechSession.js +0 -14
- package/bridging/textToSpeechSession.js.map +0 -1
- package/bridging/textToSpeechSession.mjs +0 -10
- package/bridging/textToSpeechSession.mjs.map +0 -1
- package/bridging/totalStats.d.mts +0 -9
- package/bridging/totalStats.d.mts.map +0 -1
- package/bridging/totalStats.d.ts +0 -9
- package/bridging/totalStats.d.ts.map +0 -1
- package/bridging/totalStats.js +0 -18
- package/bridging/totalStats.js.map +0 -1
- package/bridging/totalStats.mjs +0 -14
- package/bridging/totalStats.mjs.map +0 -1
- package/error.d.mts +0 -18
- package/error.d.mts.map +0 -1
- package/error.d.ts +0 -18
- package/error.d.ts.map +0 -1
- package/error.js +0 -46
- package/error.js.map +0 -1
- package/error.mjs +0 -41
- package/error.mjs.map +0 -1
- package/interactors/chatModelInteractor.d.mts +0 -34
- package/interactors/chatModelInteractor.d.mts.map +0 -1
- package/interactors/chatModelInteractor.d.ts +0 -34
- package/interactors/chatModelInteractor.d.ts.map +0 -1
- package/interactors/chatModelInteractor.js +0 -93
- package/interactors/chatModelInteractor.js.map +0 -1
- package/interactors/chatModelInteractor.mjs +0 -89
- package/interactors/chatModelInteractor.mjs.map +0 -1
- package/interactors/chatModelsInteractor.d.mts +0 -12
- package/interactors/chatModelsInteractor.d.mts.map +0 -1
- package/interactors/chatModelsInteractor.d.ts +0 -12
- package/interactors/chatModelsInteractor.d.ts.map +0 -1
- package/interactors/chatModelsInteractor.js +0 -25
- package/interactors/chatModelsInteractor.js.map +0 -1
- package/interactors/chatModelsInteractor.mjs +0 -21
- package/interactors/chatModelsInteractor.mjs.map +0 -1
- package/interactors/chatSessionInteractor.d.mts +0 -26
- package/interactors/chatSessionInteractor.d.mts.map +0 -1
- package/interactors/chatSessionInteractor.d.ts +0 -26
- package/interactors/chatSessionInteractor.d.ts.map +0 -1
- package/interactors/chatSessionInteractor.js +0 -54
- package/interactors/chatSessionInteractor.js.map +0 -1
- package/interactors/chatSessionInteractor.mjs +0 -50
- package/interactors/chatSessionInteractor.mjs.map +0 -1
- package/interactors/downloadInteractor.d.mts +0 -16
- package/interactors/downloadInteractor.d.mts.map +0 -1
- package/interactors/downloadInteractor.d.ts +0 -16
- package/interactors/downloadInteractor.d.ts.map +0 -1
- package/interactors/downloadInteractor.js +0 -38
- package/interactors/downloadInteractor.js.map +0 -1
- package/interactors/downloadInteractor.mjs +0 -34
- package/interactors/downloadInteractor.mjs.map +0 -1
- package/interactors/engineInteractor.d.mts +0 -15
- package/interactors/engineInteractor.d.mts.map +0 -1
- package/interactors/engineInteractor.d.ts +0 -15
- package/interactors/engineInteractor.d.ts.map +0 -1
- package/interactors/engineInteractor.js +0 -30
- package/interactors/engineInteractor.js.map +0 -1
- package/interactors/engineInteractor.mjs +0 -26
- package/interactors/engineInteractor.mjs.map +0 -1
- package/interactors/interactor.d.mts +0 -6
- package/interactors/interactor.d.mts.map +0 -1
- package/interactors/interactor.d.ts +0 -6
- package/interactors/interactor.d.ts.map +0 -1
- package/interactors/interactor.js +0 -3
- package/interactors/interactor.js.map +0 -1
- package/interactors/interactor.mjs +0 -2
- package/interactors/interactor.mjs.map +0 -1
- package/napi/uzu.d.ts +0 -325
- package/napi/uzu.js +0 -121
- package/napi/uzu.mjs +0 -74
- package/src/bridging/asyncBatchSize.ts +0 -24
- package/src/bridging/chatSession.ts +0 -28
- package/src/bridging/classificationFeature.ts +0 -20
- package/src/bridging/classificationLabel.ts +0 -43
- package/src/bridging/classificationOutput.ts +0 -22
- package/src/bridging/classificationSession.ts +0 -17
- package/src/bridging/classificationStats.ts +0 -45
- package/src/bridging/config.ts +0 -122
- package/src/bridging/contextLength.ts +0 -29
- package/src/bridging/contextMode.ts +0 -31
- package/src/bridging/downloadHandle.ts +0 -41
- package/src/bridging/downloadProgressUpdate.ts +0 -21
- package/src/bridging/downloadState.ts +0 -62
- package/src/bridging/engine.ts +0 -141
- package/src/bridging/finishReason.ts +0 -6
- package/src/bridging/grammarConfig.ts +0 -40
- package/src/bridging/input.ts +0 -29
- package/src/bridging/licenseStatus.ts +0 -39
- package/src/bridging/message.ts +0 -50
- package/src/bridging/model.ts +0 -68
- package/src/bridging/modelKind.ts +0 -27
- package/src/bridging/modelType.ts +0 -32
- package/src/bridging/napi.ts +0 -3
- package/src/bridging/output.ts +0 -40
- package/src/bridging/parsedText.ts +0 -27
- package/src/bridging/prefillStepSize.ts +0 -32
- package/src/bridging/preset.ts +0 -48
- package/src/bridging/role.ts +0 -5
- package/src/bridging/runConfig.ts +0 -57
- package/src/bridging/runStats.ts +0 -17
- package/src/bridging/samplingMethod.ts +0 -49
- package/src/bridging/samplingPolicy.ts +0 -29
- package/src/bridging/samplingProcessingOrder.ts +0 -31
- package/src/bridging/samplingSeed.ts +0 -24
- package/src/bridging/stats.ts +0 -22
- package/src/bridging/stepStats.ts +0 -49
- package/src/bridging/text.ts +0 -18
- package/src/bridging/textToSpeechSession.ts +0 -15
- package/src/bridging/totalStats.ts +0 -20
- package/src/error.ts +0 -42
- package/src/interactors/chatModelInteractor.ts +0 -126
- package/src/interactors/chatModelsInteractor.ts +0 -29
- package/src/interactors/chatSessionInteractor.ts +0 -80
- package/src/interactors/downloadInteractor.ts +0 -47
- package/src/interactors/engineInteractor.ts +0 -38
- package/src/interactors/interactor.ts +0 -7
- package/src/napi/uzu.d.ts +0 -325
- package/src/napi/uzu.js +0 -121
- package/src/napi/uzu.mjs +0 -74
- package/src/utilities/env.ts +0 -9
- package/utilities/env.d.mts +0 -2
- package/utilities/env.d.mts.map +0 -1
- package/utilities/env.d.ts +0 -2
- package/utilities/env.d.ts.map +0 -1
- package/utilities/env.js +0 -14
- package/utilities/env.js.map +0 -1
- package/utilities/env.mjs +0 -10
- package/utilities/env.mjs.map +0 -1
package/bridging/output.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../src/bridging/output.ts"],"names":[],"mappings":"OACO,EAAoC,MAAM,IAAI,UAAU,EAAE;OAC1D,EAAE,YAAY,EAAE;OAChB,EAAE,KAAK,EAAE;OACT,EAAE,IAAI,EAAE;AAEf,qBAAa,MAAM;IACf,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;IACpB,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;IACtB,QAAQ,CAAC,YAAY,EAAE,YAAY,GAAG,IAAI,CAAC;IAE3C,OAAO;IAMP,OAAO,CAAC,MAAM,CAAC,8BAA8B;IAe7C,MAAM,CAAC,QAAQ,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM;CAOlD"}
|
package/bridging/output.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Output = void 0;
|
|
4
|
-
const error_1 = require("../error.js");
|
|
5
|
-
const finishReason_1 = require("./finishReason.js");
|
|
6
|
-
const stats_1 = require("./stats.js");
|
|
7
|
-
const text_1 = require("./text.js");
|
|
8
|
-
class Output {
|
|
9
|
-
constructor(text, stats, finishReason) {
|
|
10
|
-
this.text = text;
|
|
11
|
-
this.stats = stats;
|
|
12
|
-
this.finishReason = finishReason;
|
|
13
|
-
}
|
|
14
|
-
static napiFinishReasonToFinishReason(napiFinishReason) {
|
|
15
|
-
switch (napiFinishReason) {
|
|
16
|
-
case 0:
|
|
17
|
-
return finishReason_1.FinishReason.Stop;
|
|
18
|
-
case 1:
|
|
19
|
-
return finishReason_1.FinishReason.Length;
|
|
20
|
-
case 2:
|
|
21
|
-
return finishReason_1.FinishReason.Cancelled;
|
|
22
|
-
case 3:
|
|
23
|
-
return finishReason_1.FinishReason.ContextLimitReached;
|
|
24
|
-
default:
|
|
25
|
-
throw new error_1.EngineError(error_1.EngineErrorCode.UnexpectedFinishReason);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
static fromNapi(napiEntity) {
|
|
29
|
-
const text = text_1.Text.fromNapi(napiEntity.text);
|
|
30
|
-
const stats = stats_1.Stats.fromNapi(napiEntity.stats);
|
|
31
|
-
const finishReason = napiEntity.finishReason ? Output.napiFinishReasonToFinishReason(napiEntity.finishReason) : null;
|
|
32
|
-
return new Output(text, stats, finishReason);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
exports.Output = Output;
|
|
36
|
-
//# sourceMappingURL=output.js.map
|
package/bridging/output.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"output.js","sourceRoot":"","sources":["../src/bridging/output.ts"],"names":[],"mappings":";;;AAAA,uCAAwD;AAExD,oDAA8C;AAC9C,sCAAgC;AAChC,oCAA8B;AAE9B,MAAa,MAAM;IAKf,YAAoB,IAAU,EAAE,KAAY,EAAE,YAAiC;QAC3E,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACrC,CAAC;IAEO,MAAM,CAAC,8BAA8B,CAAC,gBAAkC;QAC5E,QAAQ,gBAAgB,EAAE,CAAC;YACvB,KAAK,CAAC;gBACF,OAAO,2BAAY,CAAC,IAAI,CAAC;YAC7B,KAAK,CAAC;gBACF,OAAO,2BAAY,CAAC,MAAM,CAAC;YAC/B,KAAK,CAAC;gBACF,OAAO,2BAAY,CAAC,SAAS,CAAC;YAClC,KAAK,CAAC;gBACF,OAAO,2BAAY,CAAC,mBAAmB,CAAC;YAC5C;gBACI,MAAM,IAAI,mBAAW,CAAC,uBAAe,CAAC,sBAAsB,CAAC,CAAC;QACtE,CAAC;IACL,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC,UAAsB;QAClC,MAAM,IAAI,GAAG,WAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QAC5C,MAAM,KAAK,GAAG,aAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QAC/C,MAAM,YAAY,GACd,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,8BAA8B,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QACpG,OAAO,IAAI,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,YAAY,CAAC,CAAC;IACjD,CAAC;CACJ;AAjCD,wBAiCC"}
|
package/bridging/output.mjs
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { EngineError, EngineErrorCode } from "../error.mjs";
|
|
2
|
-
import { FinishReason } from "./finishReason.mjs";
|
|
3
|
-
import { Stats } from "./stats.mjs";
|
|
4
|
-
import { Text } from "./text.mjs";
|
|
5
|
-
export class Output {
|
|
6
|
-
constructor(text, stats, finishReason) {
|
|
7
|
-
this.text = text;
|
|
8
|
-
this.stats = stats;
|
|
9
|
-
this.finishReason = finishReason;
|
|
10
|
-
}
|
|
11
|
-
static napiFinishReasonToFinishReason(napiFinishReason) {
|
|
12
|
-
switch (napiFinishReason) {
|
|
13
|
-
case 0:
|
|
14
|
-
return FinishReason.Stop;
|
|
15
|
-
case 1:
|
|
16
|
-
return FinishReason.Length;
|
|
17
|
-
case 2:
|
|
18
|
-
return FinishReason.Cancelled;
|
|
19
|
-
case 3:
|
|
20
|
-
return FinishReason.ContextLimitReached;
|
|
21
|
-
default:
|
|
22
|
-
throw new EngineError(EngineErrorCode.UnexpectedFinishReason);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
static fromNapi(napiEntity) {
|
|
26
|
-
const text = Text.fromNapi(napiEntity.text);
|
|
27
|
-
const stats = Stats.fromNapi(napiEntity.stats);
|
|
28
|
-
const finishReason = napiEntity.finishReason ? Output.napiFinishReasonToFinishReason(napiEntity.finishReason) : null;
|
|
29
|
-
return new Output(text, stats, finishReason);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
//# sourceMappingURL=output.mjs.map
|
package/bridging/output.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"output.mjs","sourceRoot":"","sources":["../src/bridging/output.ts"],"names":[],"mappings":"OAAO,EAAE,WAAW,EAAE,eAAe,EAAE;OAEhC,EAAE,YAAY,EAAE;OAChB,EAAE,KAAK,EAAE;OACT,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,MAAM;IAKf,YAAoB,IAAU,EAAE,KAAY,EAAE,YAAiC;QAC3E,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACrC,CAAC;IAEO,MAAM,CAAC,8BAA8B,CAAC,gBAAkC;QAC5E,QAAQ,gBAAgB,EAAE,CAAC;YACvB,KAAK,CAAC;gBACF,OAAO,YAAY,CAAC,IAAI,CAAC;YAC7B,KAAK,CAAC;gBACF,OAAO,YAAY,CAAC,MAAM,CAAC;YAC/B,KAAK,CAAC;gBACF,OAAO,YAAY,CAAC,SAAS,CAAC;YAClC,KAAK,CAAC;gBACF,OAAO,YAAY,CAAC,mBAAmB,CAAC;YAC5C;gBACI,MAAM,IAAI,WAAW,CAAC,eAAe,CAAC,sBAAsB,CAAC,CAAC;QACtE,CAAC;IACL,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC,UAAsB;QAClC,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QAC5C,MAAM,KAAK,GAAG,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QAC/C,MAAM,YAAY,GACd,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,8BAA8B,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QACpG,OAAO,IAAI,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,YAAY,CAAC,CAAC;IACjD,CAAC;CACJ"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as z from 'zod';
|
|
2
|
-
import { ParsedText as NapiParsedText } from "../napi/uzu.mjs";
|
|
3
|
-
export declare class ParsedText {
|
|
4
|
-
readonly chainOfThought: string | null;
|
|
5
|
-
readonly response: string | null;
|
|
6
|
-
private constructor();
|
|
7
|
-
static fromNapi(napiEntity: NapiParsedText): ParsedText;
|
|
8
|
-
structuredResponse<T extends z.ZodType>(type: T): z.infer<T> | null;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=parsedText.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parsedText.d.mts","sourceRoot":"","sources":["../src/bridging/parsedText.ts"],"names":[],"mappings":"OAAO,KAAK,CAAC,MAAM,KAAK;OACjB,EAAE,UAAU,IAAI,cAAc,EAAE;AAEvC,qBAAa,UAAU;IACnB,QAAQ,CAAC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAEjC,OAAO;IAKP,MAAM,CAAC,QAAQ,CAAC,UAAU,EAAE,cAAc,GAAG,UAAU;IAMvD,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI;CAQtE"}
|
package/bridging/parsedText.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as z from 'zod';
|
|
2
|
-
import { ParsedText as NapiParsedText } from "../napi/uzu.js";
|
|
3
|
-
export declare class ParsedText {
|
|
4
|
-
readonly chainOfThought: string | null;
|
|
5
|
-
readonly response: string | null;
|
|
6
|
-
private constructor();
|
|
7
|
-
static fromNapi(napiEntity: NapiParsedText): ParsedText;
|
|
8
|
-
structuredResponse<T extends z.ZodType>(type: T): z.infer<T> | null;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=parsedText.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parsedText.d.ts","sourceRoot":"","sources":["../src/bridging/parsedText.ts"],"names":[],"mappings":"OAAO,KAAK,CAAC,MAAM,KAAK;OACjB,EAAE,UAAU,IAAI,cAAc,EAAE;AAEvC,qBAAa,UAAU;IACnB,QAAQ,CAAC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAEjC,OAAO;IAKP,MAAM,CAAC,QAAQ,CAAC,UAAU,EAAE,cAAc,GAAG,UAAU;IAMvD,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI;CAQtE"}
|
package/bridging/parsedText.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ParsedText = void 0;
|
|
4
|
-
class ParsedText {
|
|
5
|
-
constructor(chainOfThought, response) {
|
|
6
|
-
this.chainOfThought = chainOfThought;
|
|
7
|
-
this.response = response;
|
|
8
|
-
}
|
|
9
|
-
static fromNapi(napiEntity) {
|
|
10
|
-
const chainOfThought = napiEntity.chainOfThought ?? null;
|
|
11
|
-
const response = napiEntity.response ?? null;
|
|
12
|
-
return new ParsedText(chainOfThought, response);
|
|
13
|
-
}
|
|
14
|
-
structuredResponse(type) {
|
|
15
|
-
if (this.response === null) {
|
|
16
|
-
return null;
|
|
17
|
-
}
|
|
18
|
-
const data = JSON.parse(this.response);
|
|
19
|
-
const result = type.parse(data);
|
|
20
|
-
return result;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
exports.ParsedText = ParsedText;
|
|
24
|
-
//# sourceMappingURL=parsedText.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parsedText.js","sourceRoot":"","sources":["../src/bridging/parsedText.ts"],"names":[],"mappings":";;;AAGA,MAAa,UAAU;IAInB,YAAoB,cAA6B,EAAE,QAAuB;QACtE,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC,UAA0B;QACtC,MAAM,cAAc,GAAG,UAAU,CAAC,cAAc,IAAI,IAAI,CAAC;QACzD,MAAM,QAAQ,GAAG,UAAU,CAAC,QAAQ,IAAI,IAAI,CAAC;QAC7C,OAAO,IAAI,UAAU,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC;IACpD,CAAC;IAED,kBAAkB,CAAsB,IAAO;QAC3C,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,EAAE,CAAC;YACzB,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACvC,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAChC,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AAvBD,gCAuBC"}
|
package/bridging/parsedText.mjs
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export class ParsedText {
|
|
2
|
-
constructor(chainOfThought, response) {
|
|
3
|
-
this.chainOfThought = chainOfThought;
|
|
4
|
-
this.response = response;
|
|
5
|
-
}
|
|
6
|
-
static fromNapi(napiEntity) {
|
|
7
|
-
const chainOfThought = napiEntity.chainOfThought ?? null;
|
|
8
|
-
const response = napiEntity.response ?? null;
|
|
9
|
-
return new ParsedText(chainOfThought, response);
|
|
10
|
-
}
|
|
11
|
-
structuredResponse(type) {
|
|
12
|
-
if (this.response === null) {
|
|
13
|
-
return null;
|
|
14
|
-
}
|
|
15
|
-
const data = JSON.parse(this.response);
|
|
16
|
-
const result = type.parse(data);
|
|
17
|
-
return result;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=parsedText.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parsedText.mjs","sourceRoot":"","sources":["../src/bridging/parsedText.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,UAAU;IAInB,YAAoB,cAA6B,EAAE,QAAuB;QACtE,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC,UAA0B;QACtC,MAAM,cAAc,GAAG,UAAU,CAAC,cAAc,IAAI,IAAI,CAAC;QACzD,MAAM,QAAQ,GAAG,UAAU,CAAC,QAAQ,IAAI,IAAI,CAAC;QAC7C,OAAO,IAAI,UAAU,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC;IACpD,CAAC;IAED,kBAAkB,CAAsB,IAAO;QAC3C,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,EAAE,CAAC;YACzB,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACvC,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAChC,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { PrefillStepSize as NapiPrefillStepSize } from "../napi/uzu.mjs";
|
|
2
|
-
import { ToNapi } from "./napi.mjs";
|
|
3
|
-
export declare class PrefillStepSize implements ToNapi<NapiPrefillStepSize> {
|
|
4
|
-
private readonly napiPrefillStepSize;
|
|
5
|
-
private constructor();
|
|
6
|
-
static default(): PrefillStepSize;
|
|
7
|
-
static maximal(): PrefillStepSize;
|
|
8
|
-
static custom(length: number): PrefillStepSize;
|
|
9
|
-
toNapi(): NapiPrefillStepSize;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=prefillStepSize.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prefillStepSize.d.mts","sourceRoot":"","sources":["../src/bridging/prefillStepSize.ts"],"names":[],"mappings":"OAAO,EAAE,eAAe,IAAI,mBAAmB,EAAE;OAC1C,EAAE,MAAM,EAAE;AAEjB,qBAAa,eAAgB,YAAW,MAAM,CAAC,mBAAmB,CAAC;IAC/D,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAsB;IAE1D,OAAO;IAIP,MAAM,CAAC,OAAO,IAAI,eAAe;IAKjC,MAAM,CAAC,OAAO,IAAI,eAAe;IAKjC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,eAAe;IAQ9C,MAAM,IAAI,mBAAmB;CAGhC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { PrefillStepSize as NapiPrefillStepSize } from "../napi/uzu.js";
|
|
2
|
-
import { ToNapi } from "./napi.js";
|
|
3
|
-
export declare class PrefillStepSize implements ToNapi<NapiPrefillStepSize> {
|
|
4
|
-
private readonly napiPrefillStepSize;
|
|
5
|
-
private constructor();
|
|
6
|
-
static default(): PrefillStepSize;
|
|
7
|
-
static maximal(): PrefillStepSize;
|
|
8
|
-
static custom(length: number): PrefillStepSize;
|
|
9
|
-
toNapi(): NapiPrefillStepSize;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=prefillStepSize.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prefillStepSize.d.ts","sourceRoot":"","sources":["../src/bridging/prefillStepSize.ts"],"names":[],"mappings":"OAAO,EAAE,eAAe,IAAI,mBAAmB,EAAE;OAC1C,EAAE,MAAM,EAAE;AAEjB,qBAAa,eAAgB,YAAW,MAAM,CAAC,mBAAmB,CAAC;IAC/D,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAsB;IAE1D,OAAO;IAIP,MAAM,CAAC,OAAO,IAAI,eAAe;IAKjC,MAAM,CAAC,OAAO,IAAI,eAAe;IAKjC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,eAAe;IAQ9C,MAAM,IAAI,mBAAmB;CAGhC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PrefillStepSize = void 0;
|
|
4
|
-
class PrefillStepSize {
|
|
5
|
-
constructor(napiPrefillStepSize) {
|
|
6
|
-
this.napiPrefillStepSize = napiPrefillStepSize;
|
|
7
|
-
}
|
|
8
|
-
static default() {
|
|
9
|
-
const napiPrefillStepSize = { type: 'Default' };
|
|
10
|
-
return new PrefillStepSize(napiPrefillStepSize);
|
|
11
|
-
}
|
|
12
|
-
static maximal() {
|
|
13
|
-
const napiPrefillStepSize = { type: 'Maximal' };
|
|
14
|
-
return new PrefillStepSize(napiPrefillStepSize);
|
|
15
|
-
}
|
|
16
|
-
static custom(length) {
|
|
17
|
-
const napiPrefillStepSize = {
|
|
18
|
-
type: 'Custom',
|
|
19
|
-
length,
|
|
20
|
-
};
|
|
21
|
-
return new PrefillStepSize(napiPrefillStepSize);
|
|
22
|
-
}
|
|
23
|
-
toNapi() {
|
|
24
|
-
return this.napiPrefillStepSize;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.PrefillStepSize = PrefillStepSize;
|
|
28
|
-
//# sourceMappingURL=prefillStepSize.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prefillStepSize.js","sourceRoot":"","sources":["../src/bridging/prefillStepSize.ts"],"names":[],"mappings":";;;AAGA,MAAa,eAAe;IAGxB,YAAoB,mBAAwC;QACxD,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;IACnD,CAAC;IAED,MAAM,CAAC,OAAO;QACV,MAAM,mBAAmB,GAAwB,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACrE,OAAO,IAAI,eAAe,CAAC,mBAAmB,CAAC,CAAC;IACpD,CAAC;IAED,MAAM,CAAC,OAAO;QACV,MAAM,mBAAmB,GAAwB,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACrE,OAAO,IAAI,eAAe,CAAC,mBAAmB,CAAC,CAAC;IACpD,CAAC;IAED,MAAM,CAAC,MAAM,CAAC,MAAc;QACxB,MAAM,mBAAmB,GAAwB;YAC7C,IAAI,EAAE,QAAQ;YACd,MAAM;SACT,CAAC;QACF,OAAO,IAAI,eAAe,CAAC,mBAAmB,CAAC,CAAC;IACpD,CAAC;IAED,MAAM;QACF,OAAO,IAAI,CAAC,mBAAmB,CAAC;IACpC,CAAC;CACJ;AA5BD,0CA4BC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export class PrefillStepSize {
|
|
2
|
-
constructor(napiPrefillStepSize) {
|
|
3
|
-
this.napiPrefillStepSize = napiPrefillStepSize;
|
|
4
|
-
}
|
|
5
|
-
static default() {
|
|
6
|
-
const napiPrefillStepSize = { type: 'Default' };
|
|
7
|
-
return new PrefillStepSize(napiPrefillStepSize);
|
|
8
|
-
}
|
|
9
|
-
static maximal() {
|
|
10
|
-
const napiPrefillStepSize = { type: 'Maximal' };
|
|
11
|
-
return new PrefillStepSize(napiPrefillStepSize);
|
|
12
|
-
}
|
|
13
|
-
static custom(length) {
|
|
14
|
-
const napiPrefillStepSize = {
|
|
15
|
-
type: 'Custom',
|
|
16
|
-
length,
|
|
17
|
-
};
|
|
18
|
-
return new PrefillStepSize(napiPrefillStepSize);
|
|
19
|
-
}
|
|
20
|
-
toNapi() {
|
|
21
|
-
return this.napiPrefillStepSize;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=prefillStepSize.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prefillStepSize.mjs","sourceRoot":"","sources":["../src/bridging/prefillStepSize.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,eAAe;IAGxB,YAAoB,mBAAwC;QACxD,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;IACnD,CAAC;IAED,MAAM,CAAC,OAAO;QACV,MAAM,mBAAmB,GAAwB,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACrE,OAAO,IAAI,eAAe,CAAC,mBAAmB,CAAC,CAAC;IACpD,CAAC;IAED,MAAM,CAAC,OAAO;QACV,MAAM,mBAAmB,GAAwB,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACrE,OAAO,IAAI,eAAe,CAAC,mBAAmB,CAAC,CAAC;IACpD,CAAC;IAED,MAAM,CAAC,MAAM,CAAC,MAAc;QACxB,MAAM,mBAAmB,GAAwB;YAC7C,IAAI,EAAE,QAAQ;YACd,MAAM;SACT,CAAC;QACF,OAAO,IAAI,eAAe,CAAC,mBAAmB,CAAC,CAAC;IACpD,CAAC;IAED,MAAM;QACF,OAAO,IAAI,CAAC,mBAAmB,CAAC;IACpC,CAAC;CACJ"}
|
package/bridging/preset.d.mts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Preset as NapiPreset } from "../napi/uzu.mjs";
|
|
2
|
-
import { ClassificationFeature } from "./classificationFeature.mjs";
|
|
3
|
-
import { ToNapi } from "./napi.mjs";
|
|
4
|
-
export declare class Preset implements ToNapi<NapiPreset> {
|
|
5
|
-
private readonly napiPreset;
|
|
6
|
-
private constructor();
|
|
7
|
-
static general(): Preset;
|
|
8
|
-
static classification(feature: ClassificationFeature): Preset;
|
|
9
|
-
static summarization(): Preset;
|
|
10
|
-
static nGramSpeculator(useCase: string, numberOfSpeculatedTokens: number): Preset;
|
|
11
|
-
static chat(): Preset;
|
|
12
|
-
toNapi(): NapiPreset;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=preset.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"preset.d.mts","sourceRoot":"","sources":["../src/bridging/preset.ts"],"names":[],"mappings":"OAAO,EAAE,MAAM,IAAI,UAAU,EAAE;OACxB,EAAE,qBAAqB,EAAE;OACzB,EAAE,MAAM,EAAE;AAEjB,qBAAa,MAAO,YAAW,MAAM,CAAC,UAAU,CAAC;IAC7C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAa;IAExC,OAAO;IAIP,MAAM,CAAC,OAAO,IAAI,MAAM;IAKxB,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,qBAAqB,GAAG,MAAM;IAS7D,MAAM,CAAC,aAAa,IAAI,MAAM;IAK9B,MAAM,CAAC,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,wBAAwB,EAAE,MAAM,GAAG,MAAM;IASjF,MAAM,CAAC,IAAI,IAAI,MAAM;IAKrB,MAAM,IAAI,UAAU;CAGvB"}
|
package/bridging/preset.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Preset as NapiPreset } from "../napi/uzu.js";
|
|
2
|
-
import { ClassificationFeature } from "./classificationFeature.js";
|
|
3
|
-
import { ToNapi } from "./napi.js";
|
|
4
|
-
export declare class Preset implements ToNapi<NapiPreset> {
|
|
5
|
-
private readonly napiPreset;
|
|
6
|
-
private constructor();
|
|
7
|
-
static general(): Preset;
|
|
8
|
-
static classification(feature: ClassificationFeature): Preset;
|
|
9
|
-
static summarization(): Preset;
|
|
10
|
-
static nGramSpeculator(useCase: string, numberOfSpeculatedTokens: number): Preset;
|
|
11
|
-
static chat(): Preset;
|
|
12
|
-
toNapi(): NapiPreset;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=preset.d.ts.map
|
package/bridging/preset.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"preset.d.ts","sourceRoot":"","sources":["../src/bridging/preset.ts"],"names":[],"mappings":"OAAO,EAAE,MAAM,IAAI,UAAU,EAAE;OACxB,EAAE,qBAAqB,EAAE;OACzB,EAAE,MAAM,EAAE;AAEjB,qBAAa,MAAO,YAAW,MAAM,CAAC,UAAU,CAAC;IAC7C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAa;IAExC,OAAO;IAIP,MAAM,CAAC,OAAO,IAAI,MAAM;IAKxB,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,qBAAqB,GAAG,MAAM;IAS7D,MAAM,CAAC,aAAa,IAAI,MAAM;IAK9B,MAAM,CAAC,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,wBAAwB,EAAE,MAAM,GAAG,MAAM;IASjF,MAAM,CAAC,IAAI,IAAI,MAAM;IAKrB,MAAM,IAAI,UAAU;CAGvB"}
|
package/bridging/preset.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Preset = void 0;
|
|
4
|
-
class Preset {
|
|
5
|
-
constructor(napiPreset) {
|
|
6
|
-
this.napiPreset = napiPreset;
|
|
7
|
-
}
|
|
8
|
-
static general() {
|
|
9
|
-
const napiPreset = { type: 'General' };
|
|
10
|
-
return new Preset(napiPreset);
|
|
11
|
-
}
|
|
12
|
-
static classification(feature) {
|
|
13
|
-
const napiClassificationFeature = feature.toNapi();
|
|
14
|
-
const napiPreset = {
|
|
15
|
-
type: 'Classification',
|
|
16
|
-
feature: napiClassificationFeature,
|
|
17
|
-
};
|
|
18
|
-
return new Preset(napiPreset);
|
|
19
|
-
}
|
|
20
|
-
static summarization() {
|
|
21
|
-
const napiPreset = { type: 'Summarization' };
|
|
22
|
-
return new Preset(napiPreset);
|
|
23
|
-
}
|
|
24
|
-
static nGramSpeculator(useCase, numberOfSpeculatedTokens) {
|
|
25
|
-
const napiPreset = {
|
|
26
|
-
type: 'NGramSpeculator',
|
|
27
|
-
useCase,
|
|
28
|
-
numberOfSpeculatedTokens,
|
|
29
|
-
};
|
|
30
|
-
return new Preset(napiPreset);
|
|
31
|
-
}
|
|
32
|
-
static chat() {
|
|
33
|
-
const napiPreset = { type: 'Chat' };
|
|
34
|
-
return new Preset(napiPreset);
|
|
35
|
-
}
|
|
36
|
-
toNapi() {
|
|
37
|
-
return this.napiPreset;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
exports.Preset = Preset;
|
|
41
|
-
//# sourceMappingURL=preset.js.map
|
package/bridging/preset.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"preset.js","sourceRoot":"","sources":["../src/bridging/preset.ts"],"names":[],"mappings":";;;AAIA,MAAa,MAAM;IAGf,YAAoB,UAAsB;QACtC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IACjC,CAAC;IAED,MAAM,CAAC,OAAO;QACV,MAAM,UAAU,GAAe,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACnD,OAAO,IAAI,MAAM,CAAC,UAAU,CAAC,CAAC;IAClC,CAAC;IAED,MAAM,CAAC,cAAc,CAAC,OAA8B;QAChD,MAAM,yBAAyB,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;QACnD,MAAM,UAAU,GAAe;YAC3B,IAAI,EAAE,gBAAgB;YACtB,OAAO,EAAE,yBAAyB;SACrC,CAAC;QACF,OAAO,IAAI,MAAM,CAAC,UAAU,CAAC,CAAC;IAClC,CAAC;IAED,MAAM,CAAC,aAAa;QAChB,MAAM,UAAU,GAAe,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;QACzD,OAAO,IAAI,MAAM,CAAC,UAAU,CAAC,CAAC;IAClC,CAAC;IAED,MAAM,CAAC,eAAe,CAAC,OAAe,EAAE,wBAAgC;QACpE,MAAM,UAAU,GAAe;YAC3B,IAAI,EAAE,iBAAiB;YACvB,OAAO;YACP,wBAAwB;SAC3B,CAAC;QACF,OAAO,IAAI,MAAM,CAAC,UAAU,CAAC,CAAC;IAClC,CAAC;IAED,MAAM,CAAC,IAAI;QACP,MAAM,UAAU,GAAe,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;QAChD,OAAO,IAAI,MAAM,CAAC,UAAU,CAAC,CAAC;IAClC,CAAC;IAED,MAAM;QACF,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;CACJ;AA3CD,wBA2CC"}
|
package/bridging/preset.mjs
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export class Preset {
|
|
2
|
-
constructor(napiPreset) {
|
|
3
|
-
this.napiPreset = napiPreset;
|
|
4
|
-
}
|
|
5
|
-
static general() {
|
|
6
|
-
const napiPreset = { type: 'General' };
|
|
7
|
-
return new Preset(napiPreset);
|
|
8
|
-
}
|
|
9
|
-
static classification(feature) {
|
|
10
|
-
const napiClassificationFeature = feature.toNapi();
|
|
11
|
-
const napiPreset = {
|
|
12
|
-
type: 'Classification',
|
|
13
|
-
feature: napiClassificationFeature,
|
|
14
|
-
};
|
|
15
|
-
return new Preset(napiPreset);
|
|
16
|
-
}
|
|
17
|
-
static summarization() {
|
|
18
|
-
const napiPreset = { type: 'Summarization' };
|
|
19
|
-
return new Preset(napiPreset);
|
|
20
|
-
}
|
|
21
|
-
static nGramSpeculator(useCase, numberOfSpeculatedTokens) {
|
|
22
|
-
const napiPreset = {
|
|
23
|
-
type: 'NGramSpeculator',
|
|
24
|
-
useCase,
|
|
25
|
-
numberOfSpeculatedTokens,
|
|
26
|
-
};
|
|
27
|
-
return new Preset(napiPreset);
|
|
28
|
-
}
|
|
29
|
-
static chat() {
|
|
30
|
-
const napiPreset = { type: 'Chat' };
|
|
31
|
-
return new Preset(napiPreset);
|
|
32
|
-
}
|
|
33
|
-
toNapi() {
|
|
34
|
-
return this.napiPreset;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
//# sourceMappingURL=preset.mjs.map
|
package/bridging/preset.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"preset.mjs","sourceRoot":"","sources":["../src/bridging/preset.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,MAAM;IAGf,YAAoB,UAAsB;QACtC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IACjC,CAAC;IAED,MAAM,CAAC,OAAO;QACV,MAAM,UAAU,GAAe,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACnD,OAAO,IAAI,MAAM,CAAC,UAAU,CAAC,CAAC;IAClC,CAAC;IAED,MAAM,CAAC,cAAc,CAAC,OAA8B;QAChD,MAAM,yBAAyB,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;QACnD,MAAM,UAAU,GAAe;YAC3B,IAAI,EAAE,gBAAgB;YACtB,OAAO,EAAE,yBAAyB;SACrC,CAAC;QACF,OAAO,IAAI,MAAM,CAAC,UAAU,CAAC,CAAC;IAClC,CAAC;IAED,MAAM,CAAC,aAAa;QAChB,MAAM,UAAU,GAAe,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;QACzD,OAAO,IAAI,MAAM,CAAC,UAAU,CAAC,CAAC;IAClC,CAAC;IAED,MAAM,CAAC,eAAe,CAAC,OAAe,EAAE,wBAAgC;QACpE,MAAM,UAAU,GAAe;YAC3B,IAAI,EAAE,iBAAiB;YACvB,OAAO;YACP,wBAAwB;SAC3B,CAAC;QACF,OAAO,IAAI,MAAM,CAAC,UAAU,CAAC,CAAC;IAClC,CAAC;IAED,MAAM,CAAC,IAAI;QACP,MAAM,UAAU,GAAe,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;QAChD,OAAO,IAAI,MAAM,CAAC,UAAU,CAAC,CAAC;IAClC,CAAC;IAED,MAAM;QACF,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;CACJ"}
|
package/bridging/role.d.mts
DELETED
package/bridging/role.d.mts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"role.d.mts","sourceRoot":"","sources":["../src/bridging/role.ts"],"names":[],"mappings":"AAAA,oBAAY,IAAI;IACZ,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,SAAS,cAAc;CAC1B"}
|
package/bridging/role.d.ts
DELETED
package/bridging/role.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"role.d.ts","sourceRoot":"","sources":["../src/bridging/role.ts"],"names":[],"mappings":"AAAA,oBAAY,IAAI;IACZ,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,SAAS,cAAc;CAC1B"}
|
package/bridging/role.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Role = void 0;
|
|
4
|
-
var Role;
|
|
5
|
-
(function (Role) {
|
|
6
|
-
Role["System"] = "system";
|
|
7
|
-
Role["User"] = "user";
|
|
8
|
-
Role["Assistant"] = "assistant";
|
|
9
|
-
})(Role || (exports.Role = Role = {}));
|
|
10
|
-
//# sourceMappingURL=role.js.map
|
package/bridging/role.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"role.js","sourceRoot":"","sources":["../src/bridging/role.ts"],"names":[],"mappings":";;;AAAA,IAAY,IAIX;AAJD,WAAY,IAAI;IACZ,yBAAiB,CAAA;IACjB,qBAAa,CAAA;IACb,+BAAuB,CAAA;AAC3B,CAAC,EAJW,IAAI,oBAAJ,IAAI,QAIf"}
|
package/bridging/role.mjs
DELETED
package/bridging/role.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"role.mjs","sourceRoot":"","sources":["../src/bridging/role.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,IAIX;AAJD,WAAY,IAAI;IACZ,yBAAiB,CAAA;IACjB,qBAAa,CAAA;IACb,+BAAuB,CAAA;AAC3B,CAAC,EAJW,IAAI,KAAJ,IAAI,QAIf"}
|
package/bridging/runConfig.d.mts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { RunConfig as NapiRunConfig } from "../napi/uzu.mjs";
|
|
2
|
-
import { GrammarConfig } from "./grammarConfig.mjs";
|
|
3
|
-
import { ToNapi } from "./napi.mjs";
|
|
4
|
-
import { SamplingPolicy } from "./samplingPolicy.mjs";
|
|
5
|
-
export declare class RunConfig implements ToNapi<NapiRunConfig> {
|
|
6
|
-
readonly tokensLimit: number;
|
|
7
|
-
readonly enableThinking: boolean;
|
|
8
|
-
readonly samplingPolicy: SamplingPolicy;
|
|
9
|
-
readonly grammarConfig: GrammarConfig | null;
|
|
10
|
-
private constructor();
|
|
11
|
-
static default(): RunConfig;
|
|
12
|
-
withTokensLimit(tokensLimit: number): RunConfig;
|
|
13
|
-
withEnableThinking(enableThinking: boolean): RunConfig;
|
|
14
|
-
withSamplingPolicy(samplingPolicy: SamplingPolicy): RunConfig;
|
|
15
|
-
withGrammarConfig(grammarConfig: GrammarConfig | null): RunConfig;
|
|
16
|
-
toNapi(): NapiRunConfig;
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=runConfig.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runConfig.d.mts","sourceRoot":"","sources":["../src/bridging/runConfig.ts"],"names":[],"mappings":"OAAO,EAAE,SAAS,IAAI,aAAa,EAAE;OAC9B,EAAE,aAAa,EAAE;OACjB,EAAE,MAAM,EAAE;OACV,EAAE,cAAc,EAAE;AAEzB,qBAAa,SAAU,YAAW,MAAM,CAAC,aAAa,CAAC;IACnD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAC;IACjC,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAC;IACxC,QAAQ,CAAC,aAAa,EAAE,aAAa,GAAG,IAAI,CAAC;IAE7C,OAAO;IAYP,MAAM,CAAC,OAAO,IAAI,SAAS;IAI3B,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS;IAI/C,kBAAkB,CAAC,cAAc,EAAE,OAAO,GAAG,SAAS;IAItD,kBAAkB,CAAC,cAAc,EAAE,cAAc,GAAG,SAAS;IAI7D,iBAAiB,CAAC,aAAa,EAAE,aAAa,GAAG,IAAI,GAAG,SAAS;IAIjE,MAAM,IAAI,aAAa;CAa1B"}
|
package/bridging/runConfig.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { RunConfig as NapiRunConfig } from "../napi/uzu.js";
|
|
2
|
-
import { GrammarConfig } from "./grammarConfig.js";
|
|
3
|
-
import { ToNapi } from "./napi.js";
|
|
4
|
-
import { SamplingPolicy } from "./samplingPolicy.js";
|
|
5
|
-
export declare class RunConfig implements ToNapi<NapiRunConfig> {
|
|
6
|
-
readonly tokensLimit: number;
|
|
7
|
-
readonly enableThinking: boolean;
|
|
8
|
-
readonly samplingPolicy: SamplingPolicy;
|
|
9
|
-
readonly grammarConfig: GrammarConfig | null;
|
|
10
|
-
private constructor();
|
|
11
|
-
static default(): RunConfig;
|
|
12
|
-
withTokensLimit(tokensLimit: number): RunConfig;
|
|
13
|
-
withEnableThinking(enableThinking: boolean): RunConfig;
|
|
14
|
-
withSamplingPolicy(samplingPolicy: SamplingPolicy): RunConfig;
|
|
15
|
-
withGrammarConfig(grammarConfig: GrammarConfig | null): RunConfig;
|
|
16
|
-
toNapi(): NapiRunConfig;
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=runConfig.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runConfig.d.ts","sourceRoot":"","sources":["../src/bridging/runConfig.ts"],"names":[],"mappings":"OAAO,EAAE,SAAS,IAAI,aAAa,EAAE;OAC9B,EAAE,aAAa,EAAE;OACjB,EAAE,MAAM,EAAE;OACV,EAAE,cAAc,EAAE;AAEzB,qBAAa,SAAU,YAAW,MAAM,CAAC,aAAa,CAAC;IACnD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAC;IACjC,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAC;IACxC,QAAQ,CAAC,aAAa,EAAE,aAAa,GAAG,IAAI,CAAC;IAE7C,OAAO;IAYP,MAAM,CAAC,OAAO,IAAI,SAAS;IAI3B,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS;IAI/C,kBAAkB,CAAC,cAAc,EAAE,OAAO,GAAG,SAAS;IAItD,kBAAkB,CAAC,cAAc,EAAE,cAAc,GAAG,SAAS;IAI7D,iBAAiB,CAAC,aAAa,EAAE,aAAa,GAAG,IAAI,GAAG,SAAS;IAIjE,MAAM,IAAI,aAAa;CAa1B"}
|
package/bridging/runConfig.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RunConfig = void 0;
|
|
4
|
-
const samplingPolicy_1 = require("./samplingPolicy.js");
|
|
5
|
-
class RunConfig {
|
|
6
|
-
constructor(tokensLimit, enableThinking, samplingPolicy, grammarConfig) {
|
|
7
|
-
this.tokensLimit = tokensLimit;
|
|
8
|
-
this.enableThinking = enableThinking;
|
|
9
|
-
this.samplingPolicy = samplingPolicy;
|
|
10
|
-
this.grammarConfig = grammarConfig;
|
|
11
|
-
}
|
|
12
|
-
static default() {
|
|
13
|
-
return new RunConfig(1024, true, samplingPolicy_1.SamplingPolicy.default(), null);
|
|
14
|
-
}
|
|
15
|
-
withTokensLimit(tokensLimit) {
|
|
16
|
-
return new RunConfig(tokensLimit, this.enableThinking, this.samplingPolicy, this.grammarConfig);
|
|
17
|
-
}
|
|
18
|
-
withEnableThinking(enableThinking) {
|
|
19
|
-
return new RunConfig(this.tokensLimit, enableThinking, this.samplingPolicy, this.grammarConfig);
|
|
20
|
-
}
|
|
21
|
-
withSamplingPolicy(samplingPolicy) {
|
|
22
|
-
return new RunConfig(this.tokensLimit, this.enableThinking, samplingPolicy, this.grammarConfig);
|
|
23
|
-
}
|
|
24
|
-
withGrammarConfig(grammarConfig) {
|
|
25
|
-
return new RunConfig(this.tokensLimit, this.enableThinking, this.samplingPolicy, grammarConfig);
|
|
26
|
-
}
|
|
27
|
-
toNapi() {
|
|
28
|
-
const napiSamplingPolicy = this.samplingPolicy.toNapi();
|
|
29
|
-
let napiRunConfig = {
|
|
30
|
-
tokensLimit: this.tokensLimit,
|
|
31
|
-
enableThinking: this.enableThinking,
|
|
32
|
-
samplingPolicy: napiSamplingPolicy,
|
|
33
|
-
};
|
|
34
|
-
if (this.grammarConfig !== null) {
|
|
35
|
-
let napiGrammarConfig = this.grammarConfig.toNapi();
|
|
36
|
-
napiRunConfig.grammarConfig = napiGrammarConfig;
|
|
37
|
-
}
|
|
38
|
-
return napiRunConfig;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
exports.RunConfig = RunConfig;
|
|
42
|
-
//# sourceMappingURL=runConfig.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runConfig.js","sourceRoot":"","sources":["../src/bridging/runConfig.ts"],"names":[],"mappings":";;;AAGA,wDAAkD;AAElD,MAAa,SAAS;IAMlB,YACI,WAAmB,EACnB,cAAuB,EACvB,cAA8B,EAC9B,aAAmC;QAEnC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAED,MAAM,CAAC,OAAO;QACV,OAAO,IAAI,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,+BAAc,CAAC,OAAO,EAAE,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;IAED,eAAe,CAAC,WAAmB;QAC/B,OAAO,IAAI,SAAS,CAAC,WAAW,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;IACpG,CAAC;IAED,kBAAkB,CAAC,cAAuB;QACtC,OAAO,IAAI,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,cAAc,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;IACpG,CAAC;IAED,kBAAkB,CAAC,cAA8B;QAC7C,OAAO,IAAI,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,cAAc,EAAE,cAAc,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;IACpG,CAAC;IAED,iBAAiB,CAAC,aAAmC;QACjD,OAAO,IAAI,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,cAAc,EAAE,aAAa,CAAC,CAAC;IACpG,CAAC;IAED,MAAM;QACF,MAAM,kBAAkB,GAAG,IAAI,CAAC,cAAc,CAAC,MAAM,EAAE,CAAC;QACxD,IAAI,aAAa,GAAkB;YAC/B,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,cAAc,EAAE,kBAAkB;SACrC,CAAC;QACF,IAAI,IAAI,CAAC,aAAa,KAAK,IAAI,EAAE,CAAC;YAC9B,IAAI,iBAAiB,GAAG,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC;YACpD,aAAa,CAAC,aAAa,GAAG,iBAAiB,CAAC;QACpD,CAAC;QACD,OAAO,aAAa,CAAC;IACzB,CAAC;CACJ;AAnDD,8BAmDC"}
|
package/bridging/runConfig.mjs
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { SamplingPolicy } from "./samplingPolicy.mjs";
|
|
2
|
-
export class RunConfig {
|
|
3
|
-
constructor(tokensLimit, enableThinking, samplingPolicy, grammarConfig) {
|
|
4
|
-
this.tokensLimit = tokensLimit;
|
|
5
|
-
this.enableThinking = enableThinking;
|
|
6
|
-
this.samplingPolicy = samplingPolicy;
|
|
7
|
-
this.grammarConfig = grammarConfig;
|
|
8
|
-
}
|
|
9
|
-
static default() {
|
|
10
|
-
return new RunConfig(1024, true, SamplingPolicy.default(), null);
|
|
11
|
-
}
|
|
12
|
-
withTokensLimit(tokensLimit) {
|
|
13
|
-
return new RunConfig(tokensLimit, this.enableThinking, this.samplingPolicy, this.grammarConfig);
|
|
14
|
-
}
|
|
15
|
-
withEnableThinking(enableThinking) {
|
|
16
|
-
return new RunConfig(this.tokensLimit, enableThinking, this.samplingPolicy, this.grammarConfig);
|
|
17
|
-
}
|
|
18
|
-
withSamplingPolicy(samplingPolicy) {
|
|
19
|
-
return new RunConfig(this.tokensLimit, this.enableThinking, samplingPolicy, this.grammarConfig);
|
|
20
|
-
}
|
|
21
|
-
withGrammarConfig(grammarConfig) {
|
|
22
|
-
return new RunConfig(this.tokensLimit, this.enableThinking, this.samplingPolicy, grammarConfig);
|
|
23
|
-
}
|
|
24
|
-
toNapi() {
|
|
25
|
-
const napiSamplingPolicy = this.samplingPolicy.toNapi();
|
|
26
|
-
let napiRunConfig = {
|
|
27
|
-
tokensLimit: this.tokensLimit,
|
|
28
|
-
enableThinking: this.enableThinking,
|
|
29
|
-
samplingPolicy: napiSamplingPolicy,
|
|
30
|
-
};
|
|
31
|
-
if (this.grammarConfig !== null) {
|
|
32
|
-
let napiGrammarConfig = this.grammarConfig.toNapi();
|
|
33
|
-
napiRunConfig.grammarConfig = napiGrammarConfig;
|
|
34
|
-
}
|
|
35
|
-
return napiRunConfig;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=runConfig.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runConfig.mjs","sourceRoot":"","sources":["../src/bridging/runConfig.ts"],"names":[],"mappings":"OAGO,EAAE,cAAc,EAAE;AAEzB,MAAM,OAAO,SAAS;IAMlB,YACI,WAAmB,EACnB,cAAuB,EACvB,cAA8B,EAC9B,aAAmC;QAEnC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAED,MAAM,CAAC,OAAO;QACV,OAAO,IAAI,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,cAAc,CAAC,OAAO,EAAE,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;IAED,eAAe,CAAC,WAAmB;QAC/B,OAAO,IAAI,SAAS,CAAC,WAAW,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;IACpG,CAAC;IAED,kBAAkB,CAAC,cAAuB;QACtC,OAAO,IAAI,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,cAAc,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;IACpG,CAAC;IAED,kBAAkB,CAAC,cAA8B;QAC7C,OAAO,IAAI,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,cAAc,EAAE,cAAc,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;IACpG,CAAC;IAED,iBAAiB,CAAC,aAAmC;QACjD,OAAO,IAAI,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,cAAc,EAAE,aAAa,CAAC,CAAC;IACpG,CAAC;IAED,MAAM;QACF,MAAM,kBAAkB,GAAG,IAAI,CAAC,cAAc,CAAC,MAAM,EAAE,CAAC;QACxD,IAAI,aAAa,GAAkB;YAC/B,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,cAAc,EAAE,kBAAkB;SACrC,CAAC;QACF,IAAI,IAAI,CAAC,aAAa,KAAK,IAAI,EAAE,CAAC;YAC9B,IAAI,iBAAiB,GAAG,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC;YACpD,aAAa,CAAC,aAAa,GAAG,iBAAiB,CAAC;QACpD,CAAC;QACD,OAAO,aAAa,CAAC;IACzB,CAAC;CACJ"}
|
package/bridging/runStats.d.mts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { RunStats as NapiRunStats } from "../napi/uzu.mjs";
|
|
2
|
-
export declare class RunStats {
|
|
3
|
-
readonly count: number;
|
|
4
|
-
readonly averageDuration: number;
|
|
5
|
-
private constructor();
|
|
6
|
-
static fromNapi(napiEntity: NapiRunStats): RunStats;
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=runStats.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runStats.d.mts","sourceRoot":"","sources":["../src/bridging/runStats.ts"],"names":[],"mappings":"OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE;AAEnC,qBAAa,QAAQ;IACjB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IAEjC,OAAO;IAKP,MAAM,CAAC,QAAQ,CAAC,UAAU,EAAE,YAAY,GAAG,QAAQ;CAKtD"}
|
package/bridging/runStats.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { RunStats as NapiRunStats } from "../napi/uzu.js";
|
|
2
|
-
export declare class RunStats {
|
|
3
|
-
readonly count: number;
|
|
4
|
-
readonly averageDuration: number;
|
|
5
|
-
private constructor();
|
|
6
|
-
static fromNapi(napiEntity: NapiRunStats): RunStats;
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=runStats.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runStats.d.ts","sourceRoot":"","sources":["../src/bridging/runStats.ts"],"names":[],"mappings":"OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE;AAEnC,qBAAa,QAAQ;IACjB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IAEjC,OAAO;IAKP,MAAM,CAAC,QAAQ,CAAC,UAAU,EAAE,YAAY,GAAG,QAAQ;CAKtD"}
|