@trymirai/uzu 0.3.0 → 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
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { AsyncBatchSize as NapiAsyncBatchSize } from "../napi/uzu.js";
|
|
2
|
-
import { ToNapi } from "./napi.js";
|
|
3
|
-
export declare class AsyncBatchSize implements ToNapi<NapiAsyncBatchSize> {
|
|
4
|
-
private readonly napiAsyncBatchSize;
|
|
5
|
-
private constructor();
|
|
6
|
-
static default(): AsyncBatchSize;
|
|
7
|
-
static custom(size: number): AsyncBatchSize;
|
|
8
|
-
toNapi(): NapiAsyncBatchSize;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=asyncBatchSize.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"asyncBatchSize.d.ts","sourceRoot":"","sources":["../src/bridging/asyncBatchSize.ts"],"names":[],"mappings":"OAAO,EAAE,cAAc,IAAI,kBAAkB,EAAE;OACxC,EAAE,MAAM,EAAE;AAEjB,qBAAa,cAAe,YAAW,MAAM,CAAC,kBAAkB,CAAC;IAC7D,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAqB;IAExD,OAAO;IAIP,MAAM,CAAC,OAAO,IAAI,cAAc;IAKhC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc;IAK3C,MAAM,IAAI,kBAAkB;CAG/B"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AsyncBatchSize = void 0;
|
|
4
|
-
class AsyncBatchSize {
|
|
5
|
-
constructor(napiAsyncBatchSize) {
|
|
6
|
-
this.napiAsyncBatchSize = napiAsyncBatchSize;
|
|
7
|
-
}
|
|
8
|
-
static default() {
|
|
9
|
-
const napiAsyncBatchSize = { type: 'Default' };
|
|
10
|
-
return new AsyncBatchSize(napiAsyncBatchSize);
|
|
11
|
-
}
|
|
12
|
-
static custom(size) {
|
|
13
|
-
const napiAsyncBatchSize = { type: 'Custom', size };
|
|
14
|
-
return new AsyncBatchSize(napiAsyncBatchSize);
|
|
15
|
-
}
|
|
16
|
-
toNapi() {
|
|
17
|
-
return this.napiAsyncBatchSize;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.AsyncBatchSize = AsyncBatchSize;
|
|
21
|
-
//# sourceMappingURL=asyncBatchSize.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"asyncBatchSize.js","sourceRoot":"","sources":["../src/bridging/asyncBatchSize.ts"],"names":[],"mappings":";;;AAGA,MAAa,cAAc;IAGvB,YAAoB,kBAAsC;QACtD,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;IACjD,CAAC;IAED,MAAM,CAAC,OAAO;QACV,MAAM,kBAAkB,GAAuB,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACnE,OAAO,IAAI,cAAc,CAAC,kBAAkB,CAAC,CAAC;IAClD,CAAC;IAED,MAAM,CAAC,MAAM,CAAC,IAAY;QACtB,MAAM,kBAAkB,GAAuB,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QACxE,OAAO,IAAI,cAAc,CAAC,kBAAkB,CAAC,CAAC;IAClD,CAAC;IAED,MAAM;QACF,OAAO,IAAI,CAAC,kBAAkB,CAAC;IACnC,CAAC;CACJ;AApBD,wCAoBC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export class AsyncBatchSize {
|
|
2
|
-
constructor(napiAsyncBatchSize) {
|
|
3
|
-
this.napiAsyncBatchSize = napiAsyncBatchSize;
|
|
4
|
-
}
|
|
5
|
-
static default() {
|
|
6
|
-
const napiAsyncBatchSize = { type: 'Default' };
|
|
7
|
-
return new AsyncBatchSize(napiAsyncBatchSize);
|
|
8
|
-
}
|
|
9
|
-
static custom(size) {
|
|
10
|
-
const napiAsyncBatchSize = { type: 'Custom', size };
|
|
11
|
-
return new AsyncBatchSize(napiAsyncBatchSize);
|
|
12
|
-
}
|
|
13
|
-
toNapi() {
|
|
14
|
-
return this.napiAsyncBatchSize;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=asyncBatchSize.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"asyncBatchSize.mjs","sourceRoot":"","sources":["../src/bridging/asyncBatchSize.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,cAAc;IAGvB,YAAoB,kBAAsC;QACtD,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;IACjD,CAAC;IAED,MAAM,CAAC,OAAO;QACV,MAAM,kBAAkB,GAAuB,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACnE,OAAO,IAAI,cAAc,CAAC,kBAAkB,CAAC,CAAC;IAClD,CAAC;IAED,MAAM,CAAC,MAAM,CAAC,IAAY;QACtB,MAAM,kBAAkB,GAAuB,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QACxE,OAAO,IAAI,cAAc,CAAC,kBAAkB,CAAC,CAAC;IAClD,CAAC;IAED,MAAM;QACF,OAAO,IAAI,CAAC,kBAAkB,CAAC;IACnC,CAAC;CACJ"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ChatSession as NapiChatSession } from "../napi/uzu.mjs";
|
|
2
|
-
import { Input } from "./input.mjs";
|
|
3
|
-
import { Output } from "./output.mjs";
|
|
4
|
-
import { RunConfig } from "./runConfig.mjs";
|
|
5
|
-
export declare class ChatSession {
|
|
6
|
-
private readonly napiChatSession;
|
|
7
|
-
constructor(napiChatSession: NapiChatSession);
|
|
8
|
-
run(input: Input, config?: RunConfig, progress?: (partialOutput: Output) => boolean): Output;
|
|
9
|
-
reset(): void;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=chatSession.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chatSession.d.mts","sourceRoot":"","sources":["../src/bridging/chatSession.ts"],"names":[],"mappings":"OAAO,EAAE,WAAW,IAAI,eAAe,EAAwB;OACxD,EAAE,KAAK,EAAE;OACT,EAAE,MAAM,EAAE;OACV,EAAE,SAAS,EAAE;AAEpB,qBAAa,WAAW;IACpB,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAkB;gBAEtC,eAAe,EAAE,eAAe;IAI5C,GAAG,CACC,KAAK,EAAE,KAAK,EACZ,MAAM,GAAE,SAA+B,EACvC,QAAQ,GAAE,CAAC,aAAa,EAAE,MAAM,KAAK,OAAoB,GAC1D,MAAM;IAQT,KAAK,IAAI,IAAI;CAGhB"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ChatSession as NapiChatSession } from "../napi/uzu.js";
|
|
2
|
-
import { Input } from "./input.js";
|
|
3
|
-
import { Output } from "./output.js";
|
|
4
|
-
import { RunConfig } from "./runConfig.js";
|
|
5
|
-
export declare class ChatSession {
|
|
6
|
-
private readonly napiChatSession;
|
|
7
|
-
constructor(napiChatSession: NapiChatSession);
|
|
8
|
-
run(input: Input, config?: RunConfig, progress?: (partialOutput: Output) => boolean): Output;
|
|
9
|
-
reset(): void;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=chatSession.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chatSession.d.ts","sourceRoot":"","sources":["../src/bridging/chatSession.ts"],"names":[],"mappings":"OAAO,EAAE,WAAW,IAAI,eAAe,EAAwB;OACxD,EAAE,KAAK,EAAE;OACT,EAAE,MAAM,EAAE;OACV,EAAE,SAAS,EAAE;AAEpB,qBAAa,WAAW;IACpB,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAkB;gBAEtC,eAAe,EAAE,eAAe;IAI5C,GAAG,CACC,KAAK,EAAE,KAAK,EACZ,MAAM,GAAE,SAA+B,EACvC,QAAQ,GAAE,CAAC,aAAa,EAAE,MAAM,KAAK,OAAoB,GAC1D,MAAM;IAQT,KAAK,IAAI,IAAI;CAGhB"}
|
package/bridging/chatSession.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ChatSession = void 0;
|
|
4
|
-
const output_1 = require("./output.js");
|
|
5
|
-
const runConfig_1 = require("./runConfig.js");
|
|
6
|
-
class ChatSession {
|
|
7
|
-
constructor(napiChatSession) {
|
|
8
|
-
this.napiChatSession = napiChatSession;
|
|
9
|
-
}
|
|
10
|
-
run(input, config = runConfig_1.RunConfig.default(), progress = () => true) {
|
|
11
|
-
const napiInput = input.toNapi();
|
|
12
|
-
const napiConfig = config.toNapi();
|
|
13
|
-
const napiProgress = (partialOutput) => progress(output_1.Output.fromNapi(partialOutput));
|
|
14
|
-
const napiOutput = this.napiChatSession.run(napiInput, napiConfig, napiProgress);
|
|
15
|
-
return output_1.Output.fromNapi(napiOutput);
|
|
16
|
-
}
|
|
17
|
-
reset() {
|
|
18
|
-
this.napiChatSession.reset();
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.ChatSession = ChatSession;
|
|
22
|
-
//# sourceMappingURL=chatSession.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chatSession.js","sourceRoot":"","sources":["../src/bridging/chatSession.ts"],"names":[],"mappings":";;;AAEA,wCAAkC;AAClC,8CAAwC;AAExC,MAAa,WAAW;IAGpB,YAAY,eAAgC;QACxC,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;IAC3C,CAAC;IAED,GAAG,CACC,KAAY,EACZ,SAAoB,qBAAS,CAAC,OAAO,EAAE,EACvC,WAA+C,GAAG,EAAE,CAAC,IAAI;QAEzD,MAAM,SAAS,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC;QACjC,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;QACnC,MAAM,YAAY,GAAG,CAAC,aAAyB,EAAE,EAAE,CAAC,QAAQ,CAAC,eAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC;QAC7F,MAAM,UAAU,GAAG,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,SAAS,EAAE,UAAU,EAAE,YAAY,CAAC,CAAC;QACjF,OAAO,eAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IACvC,CAAC;IAED,KAAK;QACD,IAAI,CAAC,eAAe,CAAC,KAAK,EAAE,CAAC;IACjC,CAAC;CACJ;AAtBD,kCAsBC"}
|
package/bridging/chatSession.mjs
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Output } from "./output.mjs";
|
|
2
|
-
import { RunConfig } from "./runConfig.mjs";
|
|
3
|
-
export class ChatSession {
|
|
4
|
-
constructor(napiChatSession) {
|
|
5
|
-
this.napiChatSession = napiChatSession;
|
|
6
|
-
}
|
|
7
|
-
run(input, config = RunConfig.default(), progress = () => true) {
|
|
8
|
-
const napiInput = input.toNapi();
|
|
9
|
-
const napiConfig = config.toNapi();
|
|
10
|
-
const napiProgress = (partialOutput) => progress(Output.fromNapi(partialOutput));
|
|
11
|
-
const napiOutput = this.napiChatSession.run(napiInput, napiConfig, napiProgress);
|
|
12
|
-
return Output.fromNapi(napiOutput);
|
|
13
|
-
}
|
|
14
|
-
reset() {
|
|
15
|
-
this.napiChatSession.reset();
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=chatSession.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chatSession.mjs","sourceRoot":"","sources":["../src/bridging/chatSession.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE;OACV,EAAE,SAAS,EAAE;AAEpB,MAAM,OAAO,WAAW;IAGpB,YAAY,eAAgC;QACxC,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;IAC3C,CAAC;IAED,GAAG,CACC,KAAY,EACZ,SAAoB,SAAS,CAAC,OAAO,EAAE,EACvC,WAA+C,GAAG,EAAE,CAAC,IAAI;QAEzD,MAAM,SAAS,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC;QACjC,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;QACnC,MAAM,YAAY,GAAG,CAAC,aAAyB,EAAE,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC;QAC7F,MAAM,UAAU,GAAG,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,SAAS,EAAE,UAAU,EAAE,YAAY,CAAC,CAAC;QACjF,OAAO,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IACvC,CAAC;IAED,KAAK;QACD,IAAI,CAAC,eAAe,CAAC,KAAK,EAAE,CAAC;IACjC,CAAC;CACJ"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ClassificationFeature as NapiClassificationFeature } from "../napi/uzu.mjs";
|
|
2
|
-
import { ToNapi } from "./napi.mjs";
|
|
3
|
-
export declare class ClassificationFeature implements ToNapi<NapiClassificationFeature> {
|
|
4
|
-
readonly name: string;
|
|
5
|
-
readonly values: string[];
|
|
6
|
-
constructor(name: string, values: string[]);
|
|
7
|
-
toNapi(): NapiClassificationFeature;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=classificationFeature.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"classificationFeature.d.mts","sourceRoot":"","sources":["../src/bridging/classificationFeature.ts"],"names":[],"mappings":"OAAO,EAAE,qBAAqB,IAAI,yBAAyB,EAAE;OACtD,EAAE,MAAM,EAAE;AAEjB,qBAAa,qBAAsB,YAAW,MAAM,CAAC,yBAAyB,CAAC;IAC3E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC;gBAEd,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE;IAK1C,MAAM,IAAI,yBAAyB;CAOtC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ClassificationFeature as NapiClassificationFeature } from "../napi/uzu.js";
|
|
2
|
-
import { ToNapi } from "./napi.js";
|
|
3
|
-
export declare class ClassificationFeature implements ToNapi<NapiClassificationFeature> {
|
|
4
|
-
readonly name: string;
|
|
5
|
-
readonly values: string[];
|
|
6
|
-
constructor(name: string, values: string[]);
|
|
7
|
-
toNapi(): NapiClassificationFeature;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=classificationFeature.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"classificationFeature.d.ts","sourceRoot":"","sources":["../src/bridging/classificationFeature.ts"],"names":[],"mappings":"OAAO,EAAE,qBAAqB,IAAI,yBAAyB,EAAE;OACtD,EAAE,MAAM,EAAE;AAEjB,qBAAa,qBAAsB,YAAW,MAAM,CAAC,yBAAyB,CAAC;IAC3E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC;gBAEd,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE;IAK1C,MAAM,IAAI,yBAAyB;CAOtC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ClassificationFeature = void 0;
|
|
4
|
-
class ClassificationFeature {
|
|
5
|
-
constructor(name, values) {
|
|
6
|
-
this.name = name;
|
|
7
|
-
this.values = values;
|
|
8
|
-
}
|
|
9
|
-
toNapi() {
|
|
10
|
-
const result = {
|
|
11
|
-
name: this.name,
|
|
12
|
-
values: this.values,
|
|
13
|
-
};
|
|
14
|
-
return result;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.ClassificationFeature = ClassificationFeature;
|
|
18
|
-
//# sourceMappingURL=classificationFeature.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"classificationFeature.js","sourceRoot":"","sources":["../src/bridging/classificationFeature.ts"],"names":[],"mappings":";;;AAGA,MAAa,qBAAqB;IAI9B,YAAY,IAAY,EAAE,MAAgB;QACtC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;IAED,MAAM;QACF,MAAM,MAAM,GAA8B;YACtC,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,MAAM,EAAE,IAAI,CAAC,MAAM;SACtB,CAAC;QACF,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AAhBD,sDAgBC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export class ClassificationFeature {
|
|
2
|
-
constructor(name, values) {
|
|
3
|
-
this.name = name;
|
|
4
|
-
this.values = values;
|
|
5
|
-
}
|
|
6
|
-
toNapi() {
|
|
7
|
-
const result = {
|
|
8
|
-
name: this.name,
|
|
9
|
-
values: this.values,
|
|
10
|
-
};
|
|
11
|
-
return result;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=classificationFeature.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"classificationFeature.mjs","sourceRoot":"","sources":["../src/bridging/classificationFeature.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,qBAAqB;IAI9B,YAAY,IAAY,EAAE,MAAgB;QACtC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;IAED,MAAM;QACF,MAAM,MAAM,GAA8B;YACtC,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,MAAM,EAAE,IAAI,CAAC,MAAM;SACtB,CAAC;QACF,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ClassificationLabel as NapiClassificationLabel } from "../napi/uzu.mjs";
|
|
2
|
-
export declare class ClassificationLabel {
|
|
3
|
-
readonly index: number;
|
|
4
|
-
readonly label: string;
|
|
5
|
-
readonly title: string;
|
|
6
|
-
readonly description: string;
|
|
7
|
-
readonly recommendedThreshold: number;
|
|
8
|
-
constructor(index: number, label: string, title: string, description: string, recommendedThreshold: number);
|
|
9
|
-
static fromNapi(napiEntity: NapiClassificationLabel): ClassificationLabel;
|
|
10
|
-
toNapi(): NapiClassificationLabel;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=classificationLabel.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"classificationLabel.d.mts","sourceRoot":"","sources":["../src/bridging/classificationLabel.ts"],"names":[],"mappings":"OAAO,EAAE,mBAAmB,IAAI,uBAAuB,EAAE;AAEzD,qBAAa,mBAAmB;IAC5B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,oBAAoB,EAAE,MAAM,CAAC;gBAGlC,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,MAAM,EACnB,oBAAoB,EAAE,MAAM;IAShC,MAAM,CAAC,QAAQ,CAAC,UAAU,EAAE,uBAAuB,GAAG,mBAAmB;IAUzE,MAAM,IAAI,uBAAuB;CASpC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ClassificationLabel as NapiClassificationLabel } from "../napi/uzu.js";
|
|
2
|
-
export declare class ClassificationLabel {
|
|
3
|
-
readonly index: number;
|
|
4
|
-
readonly label: string;
|
|
5
|
-
readonly title: string;
|
|
6
|
-
readonly description: string;
|
|
7
|
-
readonly recommendedThreshold: number;
|
|
8
|
-
constructor(index: number, label: string, title: string, description: string, recommendedThreshold: number);
|
|
9
|
-
static fromNapi(napiEntity: NapiClassificationLabel): ClassificationLabel;
|
|
10
|
-
toNapi(): NapiClassificationLabel;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=classificationLabel.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"classificationLabel.d.ts","sourceRoot":"","sources":["../src/bridging/classificationLabel.ts"],"names":[],"mappings":"OAAO,EAAE,mBAAmB,IAAI,uBAAuB,EAAE;AAEzD,qBAAa,mBAAmB;IAC5B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,oBAAoB,EAAE,MAAM,CAAC;gBAGlC,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,MAAM,EACnB,oBAAoB,EAAE,MAAM;IAShC,MAAM,CAAC,QAAQ,CAAC,UAAU,EAAE,uBAAuB,GAAG,mBAAmB;IAUzE,MAAM,IAAI,uBAAuB;CASpC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ClassificationLabel = void 0;
|
|
4
|
-
class ClassificationLabel {
|
|
5
|
-
constructor(index, label, title, description, recommendedThreshold) {
|
|
6
|
-
this.index = index;
|
|
7
|
-
this.label = label;
|
|
8
|
-
this.title = title;
|
|
9
|
-
this.description = description;
|
|
10
|
-
this.recommendedThreshold = recommendedThreshold;
|
|
11
|
-
}
|
|
12
|
-
static fromNapi(napiEntity) {
|
|
13
|
-
return new ClassificationLabel(napiEntity.index, napiEntity.label, napiEntity.title, napiEntity.description, napiEntity.recommendedThreshold);
|
|
14
|
-
}
|
|
15
|
-
toNapi() {
|
|
16
|
-
return {
|
|
17
|
-
index: this.index,
|
|
18
|
-
label: this.label,
|
|
19
|
-
title: this.title,
|
|
20
|
-
description: this.description,
|
|
21
|
-
recommendedThreshold: this.recommendedThreshold,
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
exports.ClassificationLabel = ClassificationLabel;
|
|
26
|
-
//# sourceMappingURL=classificationLabel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"classificationLabel.js","sourceRoot":"","sources":["../src/bridging/classificationLabel.ts"],"names":[],"mappings":";;;AAEA,MAAa,mBAAmB;IAO5B,YACI,KAAa,EACb,KAAa,EACb,KAAa,EACb,WAAmB,EACnB,oBAA4B;QAE5B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;IACrD,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC,UAAmC;QAC/C,OAAO,IAAI,mBAAmB,CAC1B,UAAU,CAAC,KAAK,EAChB,UAAU,CAAC,KAAK,EAChB,UAAU,CAAC,KAAK,EAChB,UAAU,CAAC,WAAW,EACtB,UAAU,CAAC,oBAAoB,CAClC,CAAC;IACN,CAAC;IAED,MAAM;QACF,OAAO;YACH,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,oBAAoB,EAAE,IAAI,CAAC,oBAAoB;SAClD,CAAC;IACN,CAAC;CACJ;AAxCD,kDAwCC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export class ClassificationLabel {
|
|
2
|
-
constructor(index, label, title, description, recommendedThreshold) {
|
|
3
|
-
this.index = index;
|
|
4
|
-
this.label = label;
|
|
5
|
-
this.title = title;
|
|
6
|
-
this.description = description;
|
|
7
|
-
this.recommendedThreshold = recommendedThreshold;
|
|
8
|
-
}
|
|
9
|
-
static fromNapi(napiEntity) {
|
|
10
|
-
return new ClassificationLabel(napiEntity.index, napiEntity.label, napiEntity.title, napiEntity.description, napiEntity.recommendedThreshold);
|
|
11
|
-
}
|
|
12
|
-
toNapi() {
|
|
13
|
-
return {
|
|
14
|
-
index: this.index,
|
|
15
|
-
label: this.label,
|
|
16
|
-
title: this.title,
|
|
17
|
-
description: this.description,
|
|
18
|
-
recommendedThreshold: this.recommendedThreshold,
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=classificationLabel.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"classificationLabel.mjs","sourceRoot":"","sources":["../src/bridging/classificationLabel.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,mBAAmB;IAO5B,YACI,KAAa,EACb,KAAa,EACb,KAAa,EACb,WAAmB,EACnB,oBAA4B;QAE5B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;IACrD,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC,UAAmC;QAC/C,OAAO,IAAI,mBAAmB,CAC1B,UAAU,CAAC,KAAK,EAChB,UAAU,CAAC,KAAK,EAChB,UAAU,CAAC,KAAK,EAChB,UAAU,CAAC,WAAW,EACtB,UAAU,CAAC,oBAAoB,CAClC,CAAC;IACN,CAAC;IAED,MAAM;QACF,OAAO;YACH,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,oBAAoB,EAAE,IAAI,CAAC,oBAAoB;SAClD,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ClassificationOutput as NapiClassificationOutput } from "../napi/uzu.mjs";
|
|
2
|
-
import { ClassificationStats } from "./classificationStats.mjs";
|
|
3
|
-
export declare class ClassificationOutput {
|
|
4
|
-
readonly logits: number[];
|
|
5
|
-
readonly probabilities: Record<string, number>;
|
|
6
|
-
readonly stats: ClassificationStats;
|
|
7
|
-
constructor(logits: number[], probabilities: Record<string, number>, stats: ClassificationStats);
|
|
8
|
-
static fromNapi(napiEntity: NapiClassificationOutput): ClassificationOutput;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=classificationOutput.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"classificationOutput.d.mts","sourceRoot":"","sources":["../src/bridging/classificationOutput.ts"],"names":[],"mappings":"OAAO,EAAE,oBAAoB,IAAI,wBAAwB,EAAE;OACpD,EAAE,mBAAmB,EAAE;AAE9B,qBAAa,oBAAoB;IAC7B,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC;IAC1B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/C,QAAQ,CAAC,KAAK,EAAE,mBAAmB,CAAC;gBAExB,MAAM,EAAE,MAAM,EAAE,EAAE,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,KAAK,EAAE,mBAAmB;IAM/F,MAAM,CAAC,QAAQ,CAAC,UAAU,EAAE,wBAAwB,GAAG,oBAAoB;CAO9E"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ClassificationOutput as NapiClassificationOutput } from "../napi/uzu.js";
|
|
2
|
-
import { ClassificationStats } from "./classificationStats.js";
|
|
3
|
-
export declare class ClassificationOutput {
|
|
4
|
-
readonly logits: number[];
|
|
5
|
-
readonly probabilities: Record<string, number>;
|
|
6
|
-
readonly stats: ClassificationStats;
|
|
7
|
-
constructor(logits: number[], probabilities: Record<string, number>, stats: ClassificationStats);
|
|
8
|
-
static fromNapi(napiEntity: NapiClassificationOutput): ClassificationOutput;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=classificationOutput.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"classificationOutput.d.ts","sourceRoot":"","sources":["../src/bridging/classificationOutput.ts"],"names":[],"mappings":"OAAO,EAAE,oBAAoB,IAAI,wBAAwB,EAAE;OACpD,EAAE,mBAAmB,EAAE;AAE9B,qBAAa,oBAAoB;IAC7B,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC;IAC1B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/C,QAAQ,CAAC,KAAK,EAAE,mBAAmB,CAAC;gBAExB,MAAM,EAAE,MAAM,EAAE,EAAE,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,KAAK,EAAE,mBAAmB;IAM/F,MAAM,CAAC,QAAQ,CAAC,UAAU,EAAE,wBAAwB,GAAG,oBAAoB;CAO9E"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ClassificationOutput = void 0;
|
|
4
|
-
const classificationStats_1 = require("./classificationStats.js");
|
|
5
|
-
class ClassificationOutput {
|
|
6
|
-
constructor(logits, probabilities, stats) {
|
|
7
|
-
this.logits = logits;
|
|
8
|
-
this.probabilities = probabilities;
|
|
9
|
-
this.stats = stats;
|
|
10
|
-
}
|
|
11
|
-
static fromNapi(napiEntity) {
|
|
12
|
-
return new ClassificationOutput(napiEntity.logits, napiEntity.probabilities, classificationStats_1.ClassificationStats.fromNapi(napiEntity.stats));
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.ClassificationOutput = ClassificationOutput;
|
|
16
|
-
//# sourceMappingURL=classificationOutput.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"classificationOutput.js","sourceRoot":"","sources":["../src/bridging/classificationOutput.ts"],"names":[],"mappings":";;;AACA,kEAA4D;AAE5D,MAAa,oBAAoB;IAK7B,YAAY,MAAgB,EAAE,aAAqC,EAAE,KAA0B;QAC3F,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC,UAAoC;QAChD,OAAO,IAAI,oBAAoB,CAC3B,UAAU,CAAC,MAAM,EACjB,UAAU,CAAC,aAAa,EACxB,yCAAmB,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,CACjD,CAAC;IACN,CAAC;CACJ;AAlBD,oDAkBC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ClassificationStats } from "./classificationStats.mjs";
|
|
2
|
-
export class ClassificationOutput {
|
|
3
|
-
constructor(logits, probabilities, stats) {
|
|
4
|
-
this.logits = logits;
|
|
5
|
-
this.probabilities = probabilities;
|
|
6
|
-
this.stats = stats;
|
|
7
|
-
}
|
|
8
|
-
static fromNapi(napiEntity) {
|
|
9
|
-
return new ClassificationOutput(napiEntity.logits, napiEntity.probabilities, ClassificationStats.fromNapi(napiEntity.stats));
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=classificationOutput.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"classificationOutput.mjs","sourceRoot":"","sources":["../src/bridging/classificationOutput.ts"],"names":[],"mappings":"OACO,EAAE,mBAAmB,EAAE;AAE9B,MAAM,OAAO,oBAAoB;IAK7B,YAAY,MAAgB,EAAE,aAAqC,EAAE,KAA0B;QAC3F,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC,UAAoC;QAChD,OAAO,IAAI,oBAAoB,CAC3B,UAAU,CAAC,MAAM,EACjB,UAAU,CAAC,aAAa,EACxB,mBAAmB,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,CACjD,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ClassificationSession as NapiClassificationSession } from "../napi/uzu.mjs";
|
|
2
|
-
import { ClassificationOutput } from "./classificationOutput.mjs";
|
|
3
|
-
import { Input } from "./input.mjs";
|
|
4
|
-
export declare class ClassificationSession {
|
|
5
|
-
private readonly napiClassificationSession;
|
|
6
|
-
constructor(napiClassificationSession: NapiClassificationSession);
|
|
7
|
-
run(input: Input): ClassificationOutput;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=classificationSession.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"classificationSession.d.mts","sourceRoot":"","sources":["../src/bridging/classificationSession.ts"],"names":[],"mappings":"OAAO,EAAE,qBAAqB,IAAI,yBAAyB,EAAE;OACtD,EAAE,oBAAoB,EAAE;OACxB,EAAE,KAAK,EAAE;AAEhB,qBAAa,qBAAqB;IAC9B,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAA4B;gBAE1D,yBAAyB,EAAE,yBAAyB;IAIhE,GAAG,CAAC,KAAK,EAAE,KAAK,GAAG,oBAAoB;CAK1C"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ClassificationSession as NapiClassificationSession } from "../napi/uzu.js";
|
|
2
|
-
import { ClassificationOutput } from "./classificationOutput.js";
|
|
3
|
-
import { Input } from "./input.js";
|
|
4
|
-
export declare class ClassificationSession {
|
|
5
|
-
private readonly napiClassificationSession;
|
|
6
|
-
constructor(napiClassificationSession: NapiClassificationSession);
|
|
7
|
-
run(input: Input): ClassificationOutput;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=classificationSession.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"classificationSession.d.ts","sourceRoot":"","sources":["../src/bridging/classificationSession.ts"],"names":[],"mappings":"OAAO,EAAE,qBAAqB,IAAI,yBAAyB,EAAE;OACtD,EAAE,oBAAoB,EAAE;OACxB,EAAE,KAAK,EAAE;AAEhB,qBAAa,qBAAqB;IAC9B,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAA4B;gBAE1D,yBAAyB,EAAE,yBAAyB;IAIhE,GAAG,CAAC,KAAK,EAAE,KAAK,GAAG,oBAAoB;CAK1C"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ClassificationSession = void 0;
|
|
4
|
-
const classificationOutput_1 = require("./classificationOutput.js");
|
|
5
|
-
class ClassificationSession {
|
|
6
|
-
constructor(napiClassificationSession) {
|
|
7
|
-
this.napiClassificationSession = napiClassificationSession;
|
|
8
|
-
}
|
|
9
|
-
run(input) {
|
|
10
|
-
const napiInput = input.toNapi();
|
|
11
|
-
const napiOutput = this.napiClassificationSession.run(napiInput);
|
|
12
|
-
return classificationOutput_1.ClassificationOutput.fromNapi(napiOutput);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.ClassificationSession = ClassificationSession;
|
|
16
|
-
//# sourceMappingURL=classificationSession.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"classificationSession.js","sourceRoot":"","sources":["../src/bridging/classificationSession.ts"],"names":[],"mappings":";;;AACA,oEAA8D;AAG9D,MAAa,qBAAqB;IAG9B,YAAY,yBAAoD;QAC5D,IAAI,CAAC,yBAAyB,GAAG,yBAAyB,CAAC;IAC/D,CAAC;IAED,GAAG,CAAC,KAAY;QACZ,MAAM,SAAS,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC;QACjC,MAAM,UAAU,GAAG,IAAI,CAAC,yBAAyB,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QACjE,OAAO,2CAAoB,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC;CACJ;AAZD,sDAYC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ClassificationOutput } from "./classificationOutput.mjs";
|
|
2
|
-
export class ClassificationSession {
|
|
3
|
-
constructor(napiClassificationSession) {
|
|
4
|
-
this.napiClassificationSession = napiClassificationSession;
|
|
5
|
-
}
|
|
6
|
-
run(input) {
|
|
7
|
-
const napiInput = input.toNapi();
|
|
8
|
-
const napiOutput = this.napiClassificationSession.run(napiInput);
|
|
9
|
-
return ClassificationOutput.fromNapi(napiOutput);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=classificationSession.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"classificationSession.mjs","sourceRoot":"","sources":["../src/bridging/classificationSession.ts"],"names":[],"mappings":"OACO,EAAE,oBAAoB,EAAE;AAG/B,MAAM,OAAO,qBAAqB;IAG9B,YAAY,yBAAoD;QAC5D,IAAI,CAAC,yBAAyB,GAAG,yBAAyB,CAAC;IAC/D,CAAC;IAED,GAAG,CAAC,KAAY;QACZ,MAAM,SAAS,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC;QACjC,MAAM,UAAU,GAAG,IAAI,CAAC,yBAAyB,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QACjE,OAAO,oBAAoB,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC;CACJ"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ClassificationStats as NapiClassificationStats } from "../napi/uzu.mjs";
|
|
2
|
-
export declare class ClassificationStats {
|
|
3
|
-
readonly preprocessingDuration: number;
|
|
4
|
-
readonly forwardPassDuration: number;
|
|
5
|
-
readonly postprocessingDuration: number;
|
|
6
|
-
readonly totalDuration: number;
|
|
7
|
-
readonly tokensCount: number;
|
|
8
|
-
readonly tokensPerSecond: number;
|
|
9
|
-
readonly predictedLabel: string;
|
|
10
|
-
readonly confidence: number;
|
|
11
|
-
constructor(preprocessingDuration: number, forwardPassDuration: number, postprocessingDuration: number, totalDuration: number, tokensCount: number, tokensPerSecond: number, predictedLabel: string, confidence: number);
|
|
12
|
-
static fromNapi(napiEntity: NapiClassificationStats): ClassificationStats;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=classificationStats.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"classificationStats.d.mts","sourceRoot":"","sources":["../src/bridging/classificationStats.ts"],"names":[],"mappings":"OAAO,EAAE,mBAAmB,IAAI,uBAAuB,EAAE;AAEzD,qBAAa,mBAAmB;IAC5B,QAAQ,CAAC,qBAAqB,EAAE,MAAM,CAAC;IACvC,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;IACrC,QAAQ,CAAC,sBAAsB,EAAE,MAAM,CAAC;IACxC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;gBAGxB,qBAAqB,EAAE,MAAM,EAC7B,mBAAmB,EAAE,MAAM,EAC3B,sBAAsB,EAAE,MAAM,EAC9B,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,EACvB,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM;IAYtB,MAAM,CAAC,QAAQ,CAAC,UAAU,EAAE,uBAAuB,GAAG,mBAAmB;CAY5E"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ClassificationStats as NapiClassificationStats } from "../napi/uzu.js";
|
|
2
|
-
export declare class ClassificationStats {
|
|
3
|
-
readonly preprocessingDuration: number;
|
|
4
|
-
readonly forwardPassDuration: number;
|
|
5
|
-
readonly postprocessingDuration: number;
|
|
6
|
-
readonly totalDuration: number;
|
|
7
|
-
readonly tokensCount: number;
|
|
8
|
-
readonly tokensPerSecond: number;
|
|
9
|
-
readonly predictedLabel: string;
|
|
10
|
-
readonly confidence: number;
|
|
11
|
-
constructor(preprocessingDuration: number, forwardPassDuration: number, postprocessingDuration: number, totalDuration: number, tokensCount: number, tokensPerSecond: number, predictedLabel: string, confidence: number);
|
|
12
|
-
static fromNapi(napiEntity: NapiClassificationStats): ClassificationStats;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=classificationStats.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"classificationStats.d.ts","sourceRoot":"","sources":["../src/bridging/classificationStats.ts"],"names":[],"mappings":"OAAO,EAAE,mBAAmB,IAAI,uBAAuB,EAAE;AAEzD,qBAAa,mBAAmB;IAC5B,QAAQ,CAAC,qBAAqB,EAAE,MAAM,CAAC;IACvC,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;IACrC,QAAQ,CAAC,sBAAsB,EAAE,MAAM,CAAC;IACxC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;gBAGxB,qBAAqB,EAAE,MAAM,EAC7B,mBAAmB,EAAE,MAAM,EAC3B,sBAAsB,EAAE,MAAM,EAC9B,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,EACvB,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM;IAYtB,MAAM,CAAC,QAAQ,CAAC,UAAU,EAAE,uBAAuB,GAAG,mBAAmB;CAY5E"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ClassificationStats = void 0;
|
|
4
|
-
class ClassificationStats {
|
|
5
|
-
constructor(preprocessingDuration, forwardPassDuration, postprocessingDuration, totalDuration, tokensCount, tokensPerSecond, predictedLabel, confidence) {
|
|
6
|
-
this.preprocessingDuration = preprocessingDuration;
|
|
7
|
-
this.forwardPassDuration = forwardPassDuration;
|
|
8
|
-
this.postprocessingDuration = postprocessingDuration;
|
|
9
|
-
this.totalDuration = totalDuration;
|
|
10
|
-
this.tokensCount = tokensCount;
|
|
11
|
-
this.tokensPerSecond = tokensPerSecond;
|
|
12
|
-
this.predictedLabel = predictedLabel;
|
|
13
|
-
this.confidence = confidence;
|
|
14
|
-
}
|
|
15
|
-
static fromNapi(napiEntity) {
|
|
16
|
-
return new ClassificationStats(napiEntity.preprocessingDuration, napiEntity.forwardPassDuration, napiEntity.postprocessingDuration, napiEntity.totalDuration, napiEntity.tokensCount, napiEntity.tokensPerSecond, napiEntity.predictedLabel, napiEntity.confidence);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
exports.ClassificationStats = ClassificationStats;
|
|
20
|
-
//# sourceMappingURL=classificationStats.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"classificationStats.js","sourceRoot":"","sources":["../src/bridging/classificationStats.ts"],"names":[],"mappings":";;;AAEA,MAAa,mBAAmB;IAU5B,YACI,qBAA6B,EAC7B,mBAA2B,EAC3B,sBAA8B,EAC9B,aAAqB,EACrB,WAAmB,EACnB,eAAuB,EACvB,cAAsB,EACtB,UAAkB;QAElB,IAAI,CAAC,qBAAqB,GAAG,qBAAqB,CAAC;QACnD,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;QAC/C,IAAI,CAAC,sBAAsB,GAAG,sBAAsB,CAAC;QACrD,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IACjC,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC,UAAmC;QAC/C,OAAO,IAAI,mBAAmB,CAC1B,UAAU,CAAC,qBAAqB,EAChC,UAAU,CAAC,mBAAmB,EAC9B,UAAU,CAAC,sBAAsB,EACjC,UAAU,CAAC,aAAa,EACxB,UAAU,CAAC,WAAW,EACtB,UAAU,CAAC,eAAe,EAC1B,UAAU,CAAC,cAAc,EACzB,UAAU,CAAC,UAAU,CACxB,CAAC;IACN,CAAC;CACJ;AA1CD,kDA0CC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export class ClassificationStats {
|
|
2
|
-
constructor(preprocessingDuration, forwardPassDuration, postprocessingDuration, totalDuration, tokensCount, tokensPerSecond, predictedLabel, confidence) {
|
|
3
|
-
this.preprocessingDuration = preprocessingDuration;
|
|
4
|
-
this.forwardPassDuration = forwardPassDuration;
|
|
5
|
-
this.postprocessingDuration = postprocessingDuration;
|
|
6
|
-
this.totalDuration = totalDuration;
|
|
7
|
-
this.tokensCount = tokensCount;
|
|
8
|
-
this.tokensPerSecond = tokensPerSecond;
|
|
9
|
-
this.predictedLabel = predictedLabel;
|
|
10
|
-
this.confidence = confidence;
|
|
11
|
-
}
|
|
12
|
-
static fromNapi(napiEntity) {
|
|
13
|
-
return new ClassificationStats(napiEntity.preprocessingDuration, napiEntity.forwardPassDuration, napiEntity.postprocessingDuration, napiEntity.totalDuration, napiEntity.tokensCount, napiEntity.tokensPerSecond, napiEntity.predictedLabel, napiEntity.confidence);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=classificationStats.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"classificationStats.mjs","sourceRoot":"","sources":["../src/bridging/classificationStats.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,mBAAmB;IAU5B,YACI,qBAA6B,EAC7B,mBAA2B,EAC3B,sBAA8B,EAC9B,aAAqB,EACrB,WAAmB,EACnB,eAAuB,EACvB,cAAsB,EACtB,UAAkB;QAElB,IAAI,CAAC,qBAAqB,GAAG,qBAAqB,CAAC;QACnD,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;QAC/C,IAAI,CAAC,sBAAsB,GAAG,sBAAsB,CAAC;QACrD,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IACjC,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC,UAAmC;QAC/C,OAAO,IAAI,mBAAmB,CAC1B,UAAU,CAAC,qBAAqB,EAChC,UAAU,CAAC,mBAAmB,EAC9B,UAAU,CAAC,sBAAsB,EACjC,UAAU,CAAC,aAAa,EACxB,UAAU,CAAC,WAAW,EACtB,UAAU,CAAC,eAAe,EAC1B,UAAU,CAAC,cAAc,EACzB,UAAU,CAAC,UAAU,CACxB,CAAC;IACN,CAAC;CACJ"}
|
package/bridging/config.d.mts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Config as NapiConfig } from "../napi/uzu.mjs";
|
|
2
|
-
import { AsyncBatchSize } from "./asyncBatchSize.mjs";
|
|
3
|
-
import { ContextLength } from "./contextLength.mjs";
|
|
4
|
-
import { ContextMode } from "./contextMode.mjs";
|
|
5
|
-
import { ToNapi } from "./napi.mjs";
|
|
6
|
-
import { PrefillStepSize } from "./prefillStepSize.mjs";
|
|
7
|
-
import { Preset } from "./preset.mjs";
|
|
8
|
-
import { SamplingSeed } from "./samplingSeed.mjs";
|
|
9
|
-
export declare class Config implements ToNapi<NapiConfig> {
|
|
10
|
-
readonly preset: Preset;
|
|
11
|
-
readonly contextMode: ContextMode;
|
|
12
|
-
readonly contextLength: ContextLength;
|
|
13
|
-
readonly prefillStepSize: PrefillStepSize;
|
|
14
|
-
readonly samplingSeed: SamplingSeed;
|
|
15
|
-
readonly asyncBatchSize: AsyncBatchSize;
|
|
16
|
-
constructor(preset: Preset, contextMode: ContextMode, contextLength: ContextLength, prefillStepSize: PrefillStepSize, samplingSeed: SamplingSeed, asyncBatchSize: AsyncBatchSize);
|
|
17
|
-
static default(): Config;
|
|
18
|
-
withPreset(preset: Preset): Config;
|
|
19
|
-
withContextMode(contextMode: ContextMode): Config;
|
|
20
|
-
withContextLength(contextLength: ContextLength): Config;
|
|
21
|
-
withPrefillStepSize(prefillStepSize: PrefillStepSize): Config;
|
|
22
|
-
withSamplingSeed(samplingSeed: SamplingSeed): Config;
|
|
23
|
-
withAsyncBatchSize(asyncBatchSize: AsyncBatchSize): Config;
|
|
24
|
-
toNapi(): NapiConfig;
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=config.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.mts","sourceRoot":"","sources":["../src/bridging/config.ts"],"names":[],"mappings":"OAAO,EAAE,MAAM,IAAI,UAAU,EAAE;OACxB,EAAE,cAAc,EAAE;OAClB,EAAE,aAAa,EAAE;OACjB,EAAE,WAAW,EAAE;OACf,EAAE,MAAM,EAAE;OACV,EAAE,eAAe,EAAE;OACnB,EAAE,MAAM,EAAE;OACV,EAAE,YAAY,EAAE;AAEvB,qBAAa,MAAO,YAAW,MAAM,CAAC,UAAU,CAAC;IAC7C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAClC,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IACtC,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAC;IAC1C,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IACpC,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAC;gBAGpC,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,aAAa,EAC5B,eAAe,EAAE,eAAe,EAChC,YAAY,EAAE,YAAY,EAC1B,cAAc,EAAE,cAAc;IAUlC,MAAM,CAAC,OAAO,IAAI,MAAM;IAWxB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAWlC,eAAe,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM;IAWjD,iBAAiB,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM;IAWvD,mBAAmB,CAAC,eAAe,EAAE,eAAe,GAAG,MAAM;IAW7D,gBAAgB,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM;IAWpD,kBAAkB,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM;IAW1D,MAAM,IAAI,UAAU;CAWvB"}
|
package/bridging/config.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Config as NapiConfig } from "../napi/uzu.js";
|
|
2
|
-
import { AsyncBatchSize } from "./asyncBatchSize.js";
|
|
3
|
-
import { ContextLength } from "./contextLength.js";
|
|
4
|
-
import { ContextMode } from "./contextMode.js";
|
|
5
|
-
import { ToNapi } from "./napi.js";
|
|
6
|
-
import { PrefillStepSize } from "./prefillStepSize.js";
|
|
7
|
-
import { Preset } from "./preset.js";
|
|
8
|
-
import { SamplingSeed } from "./samplingSeed.js";
|
|
9
|
-
export declare class Config implements ToNapi<NapiConfig> {
|
|
10
|
-
readonly preset: Preset;
|
|
11
|
-
readonly contextMode: ContextMode;
|
|
12
|
-
readonly contextLength: ContextLength;
|
|
13
|
-
readonly prefillStepSize: PrefillStepSize;
|
|
14
|
-
readonly samplingSeed: SamplingSeed;
|
|
15
|
-
readonly asyncBatchSize: AsyncBatchSize;
|
|
16
|
-
constructor(preset: Preset, contextMode: ContextMode, contextLength: ContextLength, prefillStepSize: PrefillStepSize, samplingSeed: SamplingSeed, asyncBatchSize: AsyncBatchSize);
|
|
17
|
-
static default(): Config;
|
|
18
|
-
withPreset(preset: Preset): Config;
|
|
19
|
-
withContextMode(contextMode: ContextMode): Config;
|
|
20
|
-
withContextLength(contextLength: ContextLength): Config;
|
|
21
|
-
withPrefillStepSize(prefillStepSize: PrefillStepSize): Config;
|
|
22
|
-
withSamplingSeed(samplingSeed: SamplingSeed): Config;
|
|
23
|
-
withAsyncBatchSize(asyncBatchSize: AsyncBatchSize): Config;
|
|
24
|
-
toNapi(): NapiConfig;
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=config.d.ts.map
|
package/bridging/config.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/bridging/config.ts"],"names":[],"mappings":"OAAO,EAAE,MAAM,IAAI,UAAU,EAAE;OACxB,EAAE,cAAc,EAAE;OAClB,EAAE,aAAa,EAAE;OACjB,EAAE,WAAW,EAAE;OACf,EAAE,MAAM,EAAE;OACV,EAAE,eAAe,EAAE;OACnB,EAAE,MAAM,EAAE;OACV,EAAE,YAAY,EAAE;AAEvB,qBAAa,MAAO,YAAW,MAAM,CAAC,UAAU,CAAC;IAC7C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAClC,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IACtC,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAC;IAC1C,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IACpC,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAC;gBAGpC,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,aAAa,EAC5B,eAAe,EAAE,eAAe,EAChC,YAAY,EAAE,YAAY,EAC1B,cAAc,EAAE,cAAc;IAUlC,MAAM,CAAC,OAAO,IAAI,MAAM;IAWxB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAWlC,eAAe,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM;IAWjD,iBAAiB,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM;IAWvD,mBAAmB,CAAC,eAAe,EAAE,eAAe,GAAG,MAAM;IAW7D,gBAAgB,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM;IAWpD,kBAAkB,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM;IAW1D,MAAM,IAAI,UAAU;CAWvB"}
|