@juspay/neurolink 11.13.0 → 11.13.2
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/CHANGELOG.md +2 -6
- package/dist/browser/neurolink.min.js +681 -842
- package/dist/cli/commands/agent.js +2 -2
- package/dist/cli/commands/auth.d.ts +1 -1
- package/dist/cli/commands/auth.js +11 -11
- package/dist/cli/commands/authProviders.d.ts +1 -1
- package/dist/cli/commands/authProviders.js +2 -2
- package/dist/cli/commands/autoresearch.js +5 -5
- package/dist/cli/commands/config.d.ts +1 -1
- package/dist/cli/commands/config.js +4 -4
- package/dist/cli/commands/docs.d.ts +1 -1
- package/dist/cli/commands/evaluate.d.ts +1 -1
- package/dist/cli/commands/evaluate.js +4 -4
- package/dist/cli/commands/mcp.js +14 -14
- package/dist/cli/commands/models.js +3 -3
- package/dist/cli/commands/observability.d.ts +1 -1
- package/dist/cli/commands/observability.js +3 -3
- package/dist/cli/commands/ollama.js +1 -1
- package/dist/cli/commands/proxy.d.ts +2 -2
- package/dist/cli/commands/proxy.js +45 -45
- package/dist/cli/commands/proxyAnalyze.d.ts +1 -1
- package/dist/cli/commands/proxyAnalyze.js +2 -2
- package/dist/cli/commands/proxyReplay.d.ts +1 -1
- package/dist/cli/commands/proxyReplay.js +2 -2
- package/dist/cli/commands/rag.js +10 -10
- package/dist/cli/commands/serve.js +7 -7
- package/dist/cli/commands/server.js +6 -6
- package/dist/cli/commands/setup-anthropic.d.ts +1 -1
- package/dist/cli/commands/setup-anthropic.js +3 -3
- package/dist/cli/commands/setup-azure.d.ts +1 -1
- package/dist/cli/commands/setup-azure.js +3 -3
- package/dist/cli/commands/setup-bedrock.d.ts +1 -1
- package/dist/cli/commands/setup-bedrock.js +3 -3
- package/dist/cli/commands/setup-gcp.d.ts +1 -1
- package/dist/cli/commands/setup-gcp.js +1 -1
- package/dist/cli/commands/setup-google-ai.d.ts +1 -1
- package/dist/cli/commands/setup-google-ai.js +4 -4
- package/dist/cli/commands/setup-huggingface.d.ts +1 -1
- package/dist/cli/commands/setup-huggingface.js +1 -1
- package/dist/cli/commands/setup-mistral.d.ts +1 -1
- package/dist/cli/commands/setup-mistral.js +3 -3
- package/dist/cli/commands/setup-openai.d.ts +1 -1
- package/dist/cli/commands/setup-openai.js +3 -3
- package/dist/cli/commands/setup.d.ts +1 -1
- package/dist/cli/commands/setup.js +4 -4
- package/dist/cli/commands/task.js +4 -4
- package/dist/cli/commands/telemetry.d.ts +1 -1
- package/dist/cli/commands/telemetry.js +4 -4
- package/dist/cli/commands/voiceServer.d.ts +1 -1
- package/dist/cli/commands/voiceServer.js +6 -2
- package/dist/cli/commands/workflow.js +5 -5
- package/dist/cli/errorHandler.js +3 -3
- package/dist/cli/factories/commandFactory.js +13 -13
- package/dist/cli/factories/ollamaCommandFactory.js +3 -3
- package/dist/cli/factories/sagemakerCommandFactory.js +5 -5
- package/dist/cli/index.js +1 -1
- package/dist/cli/loop/conversationSelector.d.ts +1 -1
- package/dist/cli/loop/conversationSelector.js +3 -3
- package/dist/cli/loop/optionsSchema.d.ts +1 -1
- package/dist/cli/loop/optionsSchema.js +1 -1
- package/dist/cli/loop/session.d.ts +1 -1
- package/dist/cli/loop/session.js +6 -6
- package/dist/cli/parser.js +10 -2
- package/dist/cli/proxy-clients/claudeCode.d.ts +1 -1
- package/dist/cli/proxy-clients/claudeCode.js +1 -1
- package/dist/cli/proxy-clients/codex.d.ts +1 -1
- package/dist/cli/proxy-clients/codex.js +1 -1
- package/dist/cli/proxy-clients/copilot.d.ts +1 -1
- package/dist/cli/proxy-clients/copilot.js +1 -1
- package/dist/cli/proxy-clients/openCode.d.ts +1 -1
- package/dist/cli/proxy-clients/openCode.js +1 -1
- package/dist/cli/proxy-clients/qwenCode.d.ts +1 -1
- package/dist/cli/proxy-clients/qwenCode.js +1 -1
- package/dist/cli/proxy-clients/registry.d.ts +1 -1
- package/dist/cli/proxy-clients/registry.js +1 -1
- package/dist/cli/utils/audioFileUtils.d.ts +1 -1
- package/dist/cli/utils/audioPlayer.d.ts +1 -1
- package/dist/cli/utils/classifierRouterFlags.d.ts +1 -1
- package/dist/cli/utils/classifierRouterFlags.js +1 -1
- package/dist/cli/utils/completeSetup.d.ts +1 -1
- package/dist/cli/utils/completeSetup.js +1 -1
- package/dist/cli/utils/envManager.d.ts +1 -1
- package/dist/cli/utils/envManager.js +1 -1
- package/dist/cli/utils/inputValidation.js +2 -2
- package/dist/cli/utils/interactiveSetup.d.ts +2 -2
- package/dist/cli/utils/interactiveSetup.js +3 -3
- package/dist/cli/utils/ollamaUtils.d.ts +1 -1
- package/dist/cli/utils/ollamaUtils.js +1 -1
- package/dist/cli/utils/skillsFlags.d.ts +1 -1
- package/dist/cli/utils/toolRoutingFlags.d.ts +1 -1
- package/dist/cli/utils/toolRoutingFlags.js +1 -1
- package/dist/cli/utils/videoFileUtils.d.ts +1 -1
- package/dist/processors/data/XmlProcessor.d.ts +14 -0
- package/dist/processors/data/XmlProcessor.js +14 -0
- package/dist/processors/document/PptxProcessor.d.ts +9 -0
- package/dist/processors/document/PptxProcessor.js +9 -0
- package/dist/processors/media/VideoProcessor.js +30 -2
- package/dist/providers/amazonBedrock/client.js +1 -2
- package/dist/providers/googleVertex/index.d.ts +0 -1
- package/dist/providers/googleVertex/index.js +0 -1
- package/dist/rag/document/loaders.js +49 -21
- package/dist/server/abstract/baseServerAdapter.d.ts +13 -0
- package/dist/server/abstract/baseServerAdapter.js +39 -1
- package/dist/server/adapters/expressAdapter.js +15 -5
- package/dist/server/adapters/fastifyAdapter.js +15 -5
- package/dist/server/adapters/koaAdapter.js +16 -6
- package/dist/types/generate.d.ts +7 -0
- package/dist/types/stream.d.ts +1 -1
- package/docs-site/mcp-server/search.js +20 -12
- package/docs-site/mcp-server/types.d.ts +12 -5
- package/docs-site/static/search-index.json +1 -0
- package/package.json +16 -16
- package/dist/lib/action/actionExecutor.d.ts +0 -29
- package/dist/lib/action/actionExecutor.js +0 -291
- package/dist/lib/action/actionInputs.d.ts +0 -25
- package/dist/lib/action/actionInputs.js +0 -294
- package/dist/lib/action/githubIntegration.d.ts +0 -21
- package/dist/lib/action/githubIntegration.js +0 -188
- package/dist/lib/action/index.d.ts +0 -7
- package/dist/lib/action/index.js +0 -13
- package/dist/lib/adapters/audioFormatSupport.d.ts +0 -53
- package/dist/lib/adapters/audioFormatSupport.js +0 -201
- package/dist/lib/adapters/imageFormatSupport.d.ts +0 -75
- package/dist/lib/adapters/imageFormatSupport.js +0 -284
- package/dist/lib/adapters/providerImageAdapter.d.ts +0 -51
- package/dist/lib/adapters/providerImageAdapter.js +0 -704
- package/dist/lib/adapters/replicate/auth.d.ts +0 -19
- package/dist/lib/adapters/replicate/auth.js +0 -33
- package/dist/lib/adapters/replicate/predictionLifecycle.d.ts +0 -46
- package/dist/lib/adapters/replicate/predictionLifecycle.js +0 -289
- package/dist/lib/adapters/tts/cartesiaHandler.d.ts +0 -12
- package/dist/lib/adapters/tts/cartesiaHandler.js +0 -131
- package/dist/lib/adapters/tts/googleTTSHandler.d.ts +0 -97
- package/dist/lib/adapters/tts/googleTTSHandler.js +0 -353
- package/dist/lib/adapters/video/directorPipeline.d.ts +0 -31
- package/dist/lib/adapters/video/directorPipeline.js +0 -523
- package/dist/lib/adapters/video/ffmpegAdapter.d.ts +0 -84
- package/dist/lib/adapters/video/ffmpegAdapter.js +0 -207
- package/dist/lib/adapters/video/frameExtractor.d.ts +0 -28
- package/dist/lib/adapters/video/frameExtractor.js +0 -144
- package/dist/lib/adapters/video/klingVideoHandler.d.ts +0 -37
- package/dist/lib/adapters/video/klingVideoHandler.js +0 -306
- package/dist/lib/adapters/video/replicateVideoHandler.d.ts +0 -29
- package/dist/lib/adapters/video/replicateVideoHandler.js +0 -168
- package/dist/lib/adapters/video/runwayVideoHandler.d.ts +0 -32
- package/dist/lib/adapters/video/runwayVideoHandler.js +0 -317
- package/dist/lib/adapters/video/vertexVideoHandler.d.ts +0 -119
- package/dist/lib/adapters/video/vertexVideoHandler.js +0 -804
- package/dist/lib/adapters/video/videoAnalyzer.d.ts +0 -26
- package/dist/lib/adapters/video/videoAnalyzer.js +0 -239
- package/dist/lib/adapters/video/videoMerger.d.ts +0 -22
- package/dist/lib/adapters/video/videoMerger.js +0 -172
- package/dist/lib/agent/agent.d.ts +0 -104
- package/dist/lib/agent/agent.js +0 -433
- package/dist/lib/agent/agentNetwork.d.ts +0 -87
- package/dist/lib/agent/agentNetwork.js +0 -501
- package/dist/lib/agent/agentToolRegistrar.d.ts +0 -48
- package/dist/lib/agent/agentToolRegistrar.js +0 -337
- package/dist/lib/agent/communication/index.d.ts +0 -9
- package/dist/lib/agent/communication/index.js +0 -10
- package/dist/lib/agent/communication/message-bus.d.ts +0 -113
- package/dist/lib/agent/communication/message-bus.js +0 -407
- package/dist/lib/agent/coordination/coordinator.d.ts +0 -83
- package/dist/lib/agent/coordination/coordinator.js +0 -599
- package/dist/lib/agent/coordination/index.d.ts +0 -10
- package/dist/lib/agent/coordination/index.js +0 -11
- package/dist/lib/agent/coordination/task-distributor.d.ts +0 -113
- package/dist/lib/agent/coordination/task-distributor.js +0 -586
- package/dist/lib/agent/directTools.d.ts +0 -306
- package/dist/lib/agent/directTools.js +0 -907
- package/dist/lib/agent/index.d.ts +0 -41
- package/dist/lib/agent/index.js +0 -49
- package/dist/lib/agent/isolatedAgentRunner.d.ts +0 -73
- package/dist/lib/agent/isolatedAgentRunner.js +0 -947
- package/dist/lib/agent/orchestration/index.d.ts +0 -10
- package/dist/lib/agent/orchestration/index.js +0 -11
- package/dist/lib/agent/orchestration/orchestrator.d.ts +0 -114
- package/dist/lib/agent/orchestration/orchestrator.js +0 -479
- package/dist/lib/agent/orchestration/topology.d.ts +0 -164
- package/dist/lib/agent/orchestration/topology.js +0 -521
- package/dist/lib/agent/prompts/routingPrompts.d.ts +0 -63
- package/dist/lib/agent/prompts/routingPrompts.js +0 -202
- package/dist/lib/agent/structuredRecovery.d.ts +0 -30
- package/dist/lib/agent/structuredRecovery.js +0 -105
- package/dist/lib/analytics/index.d.ts +0 -7
- package/dist/lib/analytics/index.js +0 -8
- package/dist/lib/analytics/parseQualityScore.d.ts +0 -9
- package/dist/lib/analytics/parseQualityScore.js +0 -30
- package/dist/lib/analytics/pricing.d.ts +0 -27
- package/dist/lib/analytics/pricing.js +0 -42
- package/dist/lib/analytics/service.d.ts +0 -36
- package/dist/lib/analytics/service.js +0 -394
- package/dist/lib/analytics/storage.d.ts +0 -19
- package/dist/lib/analytics/storage.js +0 -33
- package/dist/lib/artifacts/artifactStore.d.ts +0 -55
- package/dist/lib/artifacts/artifactStore.js +0 -145
- package/dist/lib/auth/AuthProviderFactory.d.ts +0 -69
- package/dist/lib/auth/AuthProviderFactory.js +0 -112
- package/dist/lib/auth/AuthProviderRegistry.d.ts +0 -33
- package/dist/lib/auth/AuthProviderRegistry.js +0 -191
- package/dist/lib/auth/RequestContext.d.ts +0 -23
- package/dist/lib/auth/RequestContext.js +0 -79
- package/dist/lib/auth/accountPool.d.ts +0 -68
- package/dist/lib/auth/accountPool.js +0 -179
- package/dist/lib/auth/anthropicOAuth.d.ts +0 -400
- package/dist/lib/auth/anthropicOAuth.js +0 -1143
- package/dist/lib/auth/authContext.d.ts +0 -198
- package/dist/lib/auth/authContext.js +0 -315
- package/dist/lib/auth/codexOAuth.d.ts +0 -67
- package/dist/lib/auth/codexOAuth.js +0 -203
- package/dist/lib/auth/errors.d.ts +0 -63
- package/dist/lib/auth/errors.js +0 -40
- package/dist/lib/auth/index.d.ts +0 -41
- package/dist/lib/auth/index.js +0 -86
- package/dist/lib/auth/middleware/AuthMiddleware.d.ts +0 -127
- package/dist/lib/auth/middleware/AuthMiddleware.js +0 -523
- package/dist/lib/auth/middleware/rateLimitByUser.d.ts +0 -193
- package/dist/lib/auth/middleware/rateLimitByUser.js +0 -559
- package/dist/lib/auth/providers/BaseAuthProvider.d.ts +0 -259
- package/dist/lib/auth/providers/BaseAuthProvider.js +0 -724
- package/dist/lib/auth/providers/CognitoProvider.d.ts +0 -61
- package/dist/lib/auth/providers/CognitoProvider.js +0 -308
- package/dist/lib/auth/providers/KeycloakProvider.d.ts +0 -61
- package/dist/lib/auth/providers/KeycloakProvider.js +0 -396
- package/dist/lib/auth/providers/auth0.d.ts +0 -59
- package/dist/lib/auth/providers/auth0.js +0 -275
- package/dist/lib/auth/providers/betterAuth.d.ts +0 -51
- package/dist/lib/auth/providers/betterAuth.js +0 -183
- package/dist/lib/auth/providers/clerk.d.ts +0 -65
- package/dist/lib/auth/providers/clerk.js +0 -318
- package/dist/lib/auth/providers/custom.d.ts +0 -64
- package/dist/lib/auth/providers/custom.js +0 -113
- package/dist/lib/auth/providers/firebase.d.ts +0 -63
- package/dist/lib/auth/providers/firebase.js +0 -231
- package/dist/lib/auth/providers/jwt.d.ts +0 -68
- package/dist/lib/auth/providers/jwt.js +0 -217
- package/dist/lib/auth/providers/oauth2.d.ts +0 -73
- package/dist/lib/auth/providers/oauth2.js +0 -304
- package/dist/lib/auth/providers/supabase.d.ts +0 -63
- package/dist/lib/auth/providers/supabase.js +0 -260
- package/dist/lib/auth/providers/workos.d.ts +0 -61
- package/dist/lib/auth/providers/workos.js +0 -289
- package/dist/lib/auth/serverBridge.d.ts +0 -14
- package/dist/lib/auth/serverBridge.js +0 -26
- package/dist/lib/auth/sessionManager.d.ts +0 -118
- package/dist/lib/auth/sessionManager.js +0 -511
- package/dist/lib/auth/tokenStore.d.ts +0 -283
- package/dist/lib/auth/tokenStore.js +0 -929
- package/dist/lib/autoresearch/config.d.ts +0 -11
- package/dist/lib/autoresearch/config.js +0 -109
- package/dist/lib/autoresearch/errors.d.ts +0 -40
- package/dist/lib/autoresearch/errors.js +0 -21
- package/dist/lib/autoresearch/index.d.ts +0 -23
- package/dist/lib/autoresearch/index.js +0 -35
- package/dist/lib/autoresearch/phasePolicy.d.ts +0 -9
- package/dist/lib/autoresearch/phasePolicy.js +0 -70
- package/dist/lib/autoresearch/promptCompiler.d.ts +0 -15
- package/dist/lib/autoresearch/promptCompiler.js +0 -121
- package/dist/lib/autoresearch/repoPolicy.d.ts +0 -32
- package/dist/lib/autoresearch/repoPolicy.js +0 -129
- package/dist/lib/autoresearch/resultRecorder.d.ts +0 -20
- package/dist/lib/autoresearch/resultRecorder.js +0 -131
- package/dist/lib/autoresearch/runner.d.ts +0 -10
- package/dist/lib/autoresearch/runner.js +0 -109
- package/dist/lib/autoresearch/stateStore.d.ts +0 -12
- package/dist/lib/autoresearch/stateStore.js +0 -164
- package/dist/lib/autoresearch/summaryParser.d.ts +0 -16
- package/dist/lib/autoresearch/summaryParser.js +0 -95
- package/dist/lib/autoresearch/tools.d.ts +0 -27
- package/dist/lib/autoresearch/tools.js +0 -618
- package/dist/lib/autoresearch/worker.d.ts +0 -71
- package/dist/lib/autoresearch/worker.js +0 -418
- package/dist/lib/avatar/index.d.ts +0 -26
- package/dist/lib/avatar/index.js +0 -86
- package/dist/lib/avatar/providers/DIDAvatar.d.ts +0 -49
- package/dist/lib/avatar/providers/DIDAvatar.js +0 -502
- package/dist/lib/avatar/providers/HeyGenAvatar.d.ts +0 -30
- package/dist/lib/avatar/providers/HeyGenAvatar.js +0 -338
- package/dist/lib/avatar/providers/ReplicateAvatar.d.ts +0 -36
- package/dist/lib/avatar/providers/ReplicateAvatar.js +0 -268
- package/dist/lib/client/aiSdkAdapter.d.ts +0 -196
- package/dist/lib/client/aiSdkAdapter.js +0 -498
- package/dist/lib/client/auth.d.ts +0 -248
- package/dist/lib/client/auth.js +0 -469
- package/dist/lib/client/errors.d.ts +0 -298
- package/dist/lib/client/errors.js +0 -553
- package/dist/lib/client/httpClient.d.ts +0 -296
- package/dist/lib/client/httpClient.js +0 -851
- package/dist/lib/client/index.d.ts +0 -103
- package/dist/lib/client/index.js +0 -174
- package/dist/lib/client/interceptors.d.ts +0 -207
- package/dist/lib/client/interceptors.js +0 -620
- package/dist/lib/client/reactHooks.d.ts +0 -238
- package/dist/lib/client/reactHooks.js +0 -1168
- package/dist/lib/client/sseClient.d.ts +0 -115
- package/dist/lib/client/sseClient.js +0 -575
- package/dist/lib/client/streamingClient.d.ts +0 -255
- package/dist/lib/client/streamingClient.js +0 -963
- package/dist/lib/client/wsClient.d.ts +0 -127
- package/dist/lib/client/wsClient.js +0 -450
- package/dist/lib/config/configManager.d.ts +0 -60
- package/dist/lib/config/configManager.js +0 -304
- package/dist/lib/config/conversationMemory.d.ts +0 -51
- package/dist/lib/config/conversationMemory.js +0 -87
- package/dist/lib/config/modelSpecificPrompts.d.ts +0 -9
- package/dist/lib/config/modelSpecificPrompts.js +0 -39
- package/dist/lib/config/taskClassificationConfig.d.ts +0 -51
- package/dist/lib/config/taskClassificationConfig.js +0 -149
- package/dist/lib/constants/contextWindows.d.ts +0 -89
- package/dist/lib/constants/contextWindows.js +0 -568
- package/dist/lib/constants/enums.d.ts +0 -979
- package/dist/lib/constants/enums.js +0 -1247
- package/dist/lib/constants/index.d.ts +0 -184
- package/dist/lib/constants/index.js +0 -209
- package/dist/lib/constants/networkErrorCodes.d.ts +0 -14
- package/dist/lib/constants/networkErrorCodes.js +0 -22
- package/dist/lib/constants/performance.d.ts +0 -366
- package/dist/lib/constants/performance.js +0 -390
- package/dist/lib/constants/retry.d.ts +0 -224
- package/dist/lib/constants/retry.js +0 -267
- package/dist/lib/constants/timeouts.d.ts +0 -225
- package/dist/lib/constants/timeouts.js +0 -183
- package/dist/lib/constants/tokens.d.ts +0 -294
- package/dist/lib/constants/tokens.js +0 -381
- package/dist/lib/constants/videoErrors.d.ts +0 -49
- package/dist/lib/constants/videoErrors.js +0 -51
- package/dist/lib/context/anthropicLoopGuard.d.ts +0 -47
- package/dist/lib/context/anthropicLoopGuard.js +0 -186
- package/dist/lib/context/budgetChecker.d.ts +0 -33
- package/dist/lib/context/budgetChecker.js +0 -132
- package/dist/lib/context/contextCompactor.d.ts +0 -19
- package/dist/lib/context/contextCompactor.js +0 -258
- package/dist/lib/context/effectiveHistory.d.ts +0 -52
- package/dist/lib/context/effectiveHistory.js +0 -106
- package/dist/lib/context/emergencyTruncation.d.ts +0 -21
- package/dist/lib/context/emergencyTruncation.js +0 -89
- package/dist/lib/context/errorDetection.d.ts +0 -36
- package/dist/lib/context/errorDetection.js +0 -190
- package/dist/lib/context/errors.d.ts +0 -19
- package/dist/lib/context/errors.js +0 -22
- package/dist/lib/context/fileSummarizationService.d.ts +0 -45
- package/dist/lib/context/fileSummarizationService.js +0 -256
- package/dist/lib/context/fileSummarizer.d.ts +0 -55
- package/dist/lib/context/fileSummarizer.js +0 -146
- package/dist/lib/context/fileTokenBudget.d.ts +0 -52
- package/dist/lib/context/fileTokenBudget.js +0 -128
- package/dist/lib/context/geminiLoopGuard.d.ts +0 -54
- package/dist/lib/context/geminiLoopGuard.js +0 -141
- package/dist/lib/context/loopGuardCore.d.ts +0 -43
- package/dist/lib/context/loopGuardCore.js +0 -146
- package/dist/lib/context/openaiCompatLoopGuard.d.ts +0 -42
- package/dist/lib/context/openaiCompatLoopGuard.js +0 -173
- package/dist/lib/context/prompts/summarizationPrompt.d.ts +0 -16
- package/dist/lib/context/prompts/summarizationPrompt.js +0 -118
- package/dist/lib/context/stages/fileReadDeduplicator.d.ts +0 -8
- package/dist/lib/context/stages/fileReadDeduplicator.js +0 -67
- package/dist/lib/context/stages/slidingWindowTruncator.d.ts +0 -15
- package/dist/lib/context/stages/slidingWindowTruncator.js +0 -237
- package/dist/lib/context/stages/structuredSummarizer.d.ts +0 -8
- package/dist/lib/context/stages/structuredSummarizer.js +0 -123
- package/dist/lib/context/stages/toolOutputPruner.d.ts +0 -8
- package/dist/lib/context/stages/toolOutputPruner.js +0 -53
- package/dist/lib/context/stepBudgetGuard.d.ts +0 -61
- package/dist/lib/context/stepBudgetGuard.js +0 -358
- package/dist/lib/context/summarizationEngine.d.ts +0 -45
- package/dist/lib/context/summarizationEngine.js +0 -162
- package/dist/lib/context/toolOutputLimits.d.ts +0 -36
- package/dist/lib/context/toolOutputLimits.js +0 -95
- package/dist/lib/context/toolPairRepair.d.ts +0 -43
- package/dist/lib/context/toolPairRepair.js +0 -242
- package/dist/lib/core/analytics.d.ts +0 -11
- package/dist/lib/core/analytics.js +0 -117
- package/dist/lib/core/baseProvider.d.ts +0 -500
- package/dist/lib/core/baseProvider.js +0 -2081
- package/dist/lib/core/constants.d.ts +0 -146
- package/dist/lib/core/constants.js +0 -278
- package/dist/lib/core/conversationMemoryFactory.d.ts +0 -19
- package/dist/lib/core/conversationMemoryFactory.js +0 -147
- package/dist/lib/core/conversationMemoryInitializer.d.ts +0 -14
- package/dist/lib/core/conversationMemoryInitializer.js +0 -129
- package/dist/lib/core/conversationMemoryManager.d.ts +0 -110
- package/dist/lib/core/conversationMemoryManager.js +0 -471
- package/dist/lib/core/dynamicModels.d.ts +0 -89
- package/dist/lib/core/dynamicModels.js +0 -337
- package/dist/lib/core/evaluation.d.ts +0 -18
- package/dist/lib/core/evaluation.js +0 -310
- package/dist/lib/core/evaluationProviders.d.ts +0 -60
- package/dist/lib/core/evaluationProviders.js +0 -249
- package/dist/lib/core/factory.d.ts +0 -54
- package/dist/lib/core/factory.js +0 -364
- package/dist/lib/core/geminiLoopAdapter.d.ts +0 -20
- package/dist/lib/core/geminiLoopAdapter.js +0 -171
- package/dist/lib/core/handlerRegistry.d.ts +0 -29
- package/dist/lib/core/handlerRegistry.js +0 -62
- package/dist/lib/core/infrastructure/baseError.d.ts +0 -21
- package/dist/lib/core/infrastructure/baseError.js +0 -23
- package/dist/lib/core/infrastructure/baseFactory.d.ts +0 -16
- package/dist/lib/core/infrastructure/baseFactory.js +0 -55
- package/dist/lib/core/infrastructure/baseRegistry.d.ts +0 -19
- package/dist/lib/core/infrastructure/baseRegistry.js +0 -54
- package/dist/lib/core/infrastructure/index.d.ts +0 -5
- package/dist/lib/core/infrastructure/index.js +0 -6
- package/dist/lib/core/infrastructure/retry.d.ts +0 -2
- package/dist/lib/core/infrastructure/retry.js +0 -21
- package/dist/lib/core/infrastructure/typedEventEmitter.d.ts +0 -8
- package/dist/lib/core/infrastructure/typedEventEmitter.js +0 -24
- package/dist/lib/core/loopEngine.d.ts +0 -21
- package/dist/lib/core/loopEngine.js +0 -272
- package/dist/lib/core/modelConfiguration.d.ts +0 -179
- package/dist/lib/core/modelConfiguration.js +0 -549
- package/dist/lib/core/modules/GenerationHandler.d.ts +0 -135
- package/dist/lib/core/modules/GenerationHandler.js +0 -1028
- package/dist/lib/core/modules/MessageBuilder.d.ts +0 -24
- package/dist/lib/core/modules/MessageBuilder.js +0 -311
- package/dist/lib/core/modules/StreamHandler.d.ts +0 -70
- package/dist/lib/core/modules/StreamHandler.js +0 -229
- package/dist/lib/core/modules/TelemetryHandler.d.ts +0 -70
- package/dist/lib/core/modules/TelemetryHandler.js +0 -229
- package/dist/lib/core/modules/ToolsManager.d.ts +0 -105
- package/dist/lib/core/modules/ToolsManager.js +0 -737
- package/dist/lib/core/modules/Utilities.d.ts +0 -90
- package/dist/lib/core/modules/Utilities.js +0 -347
- package/dist/lib/core/modules/structuredOutputPolicy.d.ts +0 -91
- package/dist/lib/core/modules/structuredOutputPolicy.js +0 -136
- package/dist/lib/core/nativeToolFormat.d.ts +0 -33
- package/dist/lib/core/nativeToolFormat.js +0 -31
- package/dist/lib/core/redisConversationMemoryManager.d.ts +0 -235
- package/dist/lib/core/redisConversationMemoryManager.js +0 -1724
- package/dist/lib/core/serviceRegistry.d.ts +0 -40
- package/dist/lib/core/serviceRegistry.js +0 -113
- package/dist/lib/core/streamAnalytics.d.ts +0 -27
- package/dist/lib/core/streamAnalytics.js +0 -132
- package/dist/lib/core/streamChannel.d.ts +0 -10
- package/dist/lib/core/streamChannel.js +0 -77
- package/dist/lib/core/toolDedup.d.ts +0 -51
- package/dist/lib/core/toolDedup.js +0 -197
- package/dist/lib/core/toolEvents.d.ts +0 -2
- package/dist/lib/core/toolEvents.js +0 -8
- package/dist/lib/core/toolExecutionRecorder.d.ts +0 -76
- package/dist/lib/core/toolExecutionRecorder.js +0 -261
- package/dist/lib/core/toolRouting.d.ts +0 -68
- package/dist/lib/core/toolRouting.js +0 -496
- package/dist/lib/core/toolRoutingCache.d.ts +0 -64
- package/dist/lib/core/toolRoutingCache.js +0 -155
- package/dist/lib/core/toolRoutingEmbedding.d.ts +0 -112
- package/dist/lib/core/toolRoutingEmbedding.js +0 -323
- package/dist/lib/dynamic/dynamicResolver.d.ts +0 -282
- package/dist/lib/dynamic/dynamicResolver.js +0 -634
- package/dist/lib/dynamic/index.d.ts +0 -10
- package/dist/lib/dynamic/index.js +0 -13
- package/dist/lib/dynamic/resolution.d.ts +0 -17
- package/dist/lib/dynamic/resolution.js +0 -22
- package/dist/lib/evaluation/BatchEvaluator.d.ts +0 -65
- package/dist/lib/evaluation/BatchEvaluator.js +0 -271
- package/dist/lib/evaluation/EvaluationAggregator.d.ts +0 -156
- package/dist/lib/evaluation/EvaluationAggregator.js +0 -378
- package/dist/lib/evaluation/EvaluatorFactory.d.ts +0 -102
- package/dist/lib/evaluation/EvaluatorFactory.js +0 -281
- package/dist/lib/evaluation/EvaluatorRegistry.d.ts +0 -111
- package/dist/lib/evaluation/EvaluatorRegistry.js +0 -185
- package/dist/lib/evaluation/contextBuilder.d.ts +0 -44
- package/dist/lib/evaluation/contextBuilder.js +0 -132
- package/dist/lib/evaluation/errors/EvaluationError.d.ts +0 -161
- package/dist/lib/evaluation/errors/EvaluationError.js +0 -207
- package/dist/lib/evaluation/errors/index.d.ts +0 -4
- package/dist/lib/evaluation/errors/index.js +0 -5
- package/dist/lib/evaluation/hooks/index.d.ts +0 -6
- package/dist/lib/evaluation/hooks/index.js +0 -7
- package/dist/lib/evaluation/hooks/langfuseAdapter.d.ts +0 -62
- package/dist/lib/evaluation/hooks/langfuseAdapter.js +0 -173
- package/dist/lib/evaluation/hooks/observabilityHooks.d.ts +0 -77
- package/dist/lib/evaluation/hooks/observabilityHooks.js +0 -187
- package/dist/lib/evaluation/index.d.ts +0 -41
- package/dist/lib/evaluation/index.js +0 -78
- package/dist/lib/evaluation/pipeline/evaluationPipeline.d.ts +0 -83
- package/dist/lib/evaluation/pipeline/evaluationPipeline.js +0 -397
- package/dist/lib/evaluation/pipeline/index.d.ts +0 -8
- package/dist/lib/evaluation/pipeline/index.js +0 -9
- package/dist/lib/evaluation/pipeline/pipelineBuilder.d.ts +0 -126
- package/dist/lib/evaluation/pipeline/pipelineBuilder.js +0 -261
- package/dist/lib/evaluation/pipeline/presets.d.ts +0 -66
- package/dist/lib/evaluation/pipeline/presets.js +0 -225
- package/dist/lib/evaluation/pipeline/strategies/batchStrategy.d.ts +0 -46
- package/dist/lib/evaluation/pipeline/strategies/batchStrategy.js +0 -242
- package/dist/lib/evaluation/pipeline/strategies/index.d.ts +0 -6
- package/dist/lib/evaluation/pipeline/strategies/index.js +0 -7
- package/dist/lib/evaluation/pipeline/strategies/samplingStrategy.d.ts +0 -76
- package/dist/lib/evaluation/pipeline/strategies/samplingStrategy.js +0 -247
- package/dist/lib/evaluation/prompts.d.ts +0 -22
- package/dist/lib/evaluation/prompts.js +0 -74
- package/dist/lib/evaluation/ragasEvaluator.d.ts +0 -28
- package/dist/lib/evaluation/ragasEvaluator.js +0 -127
- package/dist/lib/evaluation/reporting/index.d.ts +0 -6
- package/dist/lib/evaluation/reporting/index.js +0 -7
- package/dist/lib/evaluation/reporting/metricsCollector.d.ts +0 -88
- package/dist/lib/evaluation/reporting/metricsCollector.js +0 -286
- package/dist/lib/evaluation/reporting/reportGenerator.d.ts +0 -57
- package/dist/lib/evaluation/reporting/reportGenerator.js +0 -375
- package/dist/lib/evaluation/retryManager.d.ts +0 -39
- package/dist/lib/evaluation/retryManager.js +0 -79
- package/dist/lib/evaluation/scorers/baseScorer.d.ts +0 -82
- package/dist/lib/evaluation/scorers/baseScorer.js +0 -233
- package/dist/lib/evaluation/scorers/customScorerUtils.d.ts +0 -86
- package/dist/lib/evaluation/scorers/customScorerUtils.js +0 -382
- package/dist/lib/evaluation/scorers/index.d.ts +0 -10
- package/dist/lib/evaluation/scorers/index.js +0 -17
- package/dist/lib/evaluation/scorers/llm/answerRelevancyScorer.d.ts +0 -12
- package/dist/lib/evaluation/scorers/llm/answerRelevancyScorer.js +0 -100
- package/dist/lib/evaluation/scorers/llm/baseLLMScorer.d.ts +0 -69
- package/dist/lib/evaluation/scorers/llm/baseLLMScorer.js +0 -282
- package/dist/lib/evaluation/scorers/llm/biasDetectionScorer.d.ts +0 -12
- package/dist/lib/evaluation/scorers/llm/biasDetectionScorer.js +0 -128
- package/dist/lib/evaluation/scorers/llm/contextPrecisionScorer.d.ts +0 -12
- package/dist/lib/evaluation/scorers/llm/contextPrecisionScorer.js +0 -93
- package/dist/lib/evaluation/scorers/llm/contextRelevancyScorer.d.ts +0 -12
- package/dist/lib/evaluation/scorers/llm/contextRelevancyScorer.js +0 -108
- package/dist/lib/evaluation/scorers/llm/faithfulnessScorer.d.ts +0 -12
- package/dist/lib/evaluation/scorers/llm/faithfulnessScorer.js +0 -122
- package/dist/lib/evaluation/scorers/llm/hallucinationScorer.d.ts +0 -12
- package/dist/lib/evaluation/scorers/llm/hallucinationScorer.js +0 -141
- package/dist/lib/evaluation/scorers/llm/index.d.ts +0 -15
- package/dist/lib/evaluation/scorers/llm/index.js +0 -17
- package/dist/lib/evaluation/scorers/llm/promptAlignmentScorer.d.ts +0 -12
- package/dist/lib/evaluation/scorers/llm/promptAlignmentScorer.js +0 -107
- package/dist/lib/evaluation/scorers/llm/summarizationScorer.d.ts +0 -12
- package/dist/lib/evaluation/scorers/llm/summarizationScorer.js +0 -115
- package/dist/lib/evaluation/scorers/llm/toneConsistencyScorer.d.ts +0 -12
- package/dist/lib/evaluation/scorers/llm/toneConsistencyScorer.js +0 -107
- package/dist/lib/evaluation/scorers/llm/toxicityScorer.d.ts +0 -12
- package/dist/lib/evaluation/scorers/llm/toxicityScorer.js +0 -122
- package/dist/lib/evaluation/scorers/rule/baseRuleScorer.d.ts +0 -77
- package/dist/lib/evaluation/scorers/rule/baseRuleScorer.js +0 -234
- package/dist/lib/evaluation/scorers/rule/contentSimilarityScorer.d.ts +0 -81
- package/dist/lib/evaluation/scorers/rule/contentSimilarityScorer.js +0 -353
- package/dist/lib/evaluation/scorers/rule/formatScorer.d.ts +0 -107
- package/dist/lib/evaluation/scorers/rule/formatScorer.js +0 -471
- package/dist/lib/evaluation/scorers/rule/index.d.ts +0 -9
- package/dist/lib/evaluation/scorers/rule/index.js +0 -11
- package/dist/lib/evaluation/scorers/rule/keywordCoverageScorer.d.ts +0 -66
- package/dist/lib/evaluation/scorers/rule/keywordCoverageScorer.js +0 -348
- package/dist/lib/evaluation/scorers/rule/lengthScorer.d.ts +0 -74
- package/dist/lib/evaluation/scorers/rule/lengthScorer.js +0 -352
- package/dist/lib/evaluation/scorers/scorerBuilder.d.ts +0 -160
- package/dist/lib/evaluation/scorers/scorerBuilder.js +0 -421
- package/dist/lib/evaluation/scorers/scorerRegistry.d.ts +0 -65
- package/dist/lib/evaluation/scorers/scorerRegistry.js +0 -540
- package/dist/lib/evaluation/scoring.d.ts +0 -15
- package/dist/lib/evaluation/scoring.js +0 -61
- package/dist/lib/factories/providerDescriptors.d.ts +0 -18
- package/dist/lib/factories/providerDescriptors.js +0 -547
- package/dist/lib/factories/providerFactory.d.ts +0 -87
- package/dist/lib/factories/providerFactory.js +0 -199
- package/dist/lib/factories/providerRegistry.d.ts +0 -58
- package/dist/lib/factories/providerRegistry.js +0 -549
- package/dist/lib/features/ppt/constants.d.ts +0 -121
- package/dist/lib/features/ppt/constants.js +0 -897
- package/dist/lib/features/ppt/contentPlanner.d.ts +0 -47
- package/dist/lib/features/ppt/contentPlanner.js +0 -558
- package/dist/lib/features/ppt/index.d.ts +0 -11
- package/dist/lib/features/ppt/index.js +0 -33
- package/dist/lib/features/ppt/pptError.d.ts +0 -38
- package/dist/lib/features/ppt/pptError.js +0 -54
- package/dist/lib/features/ppt/presentationOrchestrator.d.ts +0 -37
- package/dist/lib/features/ppt/presentationOrchestrator.js +0 -231
- package/dist/lib/features/ppt/slideGenerator.d.ts +0 -56
- package/dist/lib/features/ppt/slideGenerator.js +0 -542
- package/dist/lib/features/ppt/slideRenderers.d.ts +0 -347
- package/dist/lib/features/ppt/slideRenderers.js +0 -2384
- package/dist/lib/features/ppt/slideTypeInference.d.ts +0 -91
- package/dist/lib/features/ppt/slideTypeInference.js +0 -406
- package/dist/lib/features/ppt/utils.d.ts +0 -103
- package/dist/lib/features/ppt/utils.js +0 -446
- package/dist/lib/files/fileReferenceRegistry.d.ts +0 -275
- package/dist/lib/files/fileReferenceRegistry.js +0 -1559
- package/dist/lib/files/fileTools.d.ts +0 -176
- package/dist/lib/files/fileTools.js +0 -435
- package/dist/lib/files/index.d.ts +0 -13
- package/dist/lib/files/index.js +0 -14
- package/dist/lib/files/streamingReader.d.ts +0 -93
- package/dist/lib/files/streamingReader.js +0 -322
- package/dist/lib/hitl/hitlErrors.d.ts +0 -38
- package/dist/lib/hitl/hitlErrors.js +0 -55
- package/dist/lib/hitl/hitlManager.d.ts +0 -100
- package/dist/lib/hitl/hitlManager.js +0 -461
- package/dist/lib/hitl/index.d.ts +0 -7
- package/dist/lib/hitl/index.js +0 -10
- package/dist/lib/image-gen/ImageGenService.d.ts +0 -146
- package/dist/lib/image-gen/ImageGenService.js +0 -349
- package/dist/lib/image-gen/imageGenTools.d.ts +0 -109
- package/dist/lib/image-gen/imageGenTools.js +0 -305
- package/dist/lib/image-gen/index.d.ts +0 -45
- package/dist/lib/image-gen/index.js +0 -49
- package/dist/lib/index.d.ts +0 -447
- package/dist/lib/index.js +0 -748
- package/dist/lib/knowledge/context.d.ts +0 -18
- package/dist/lib/knowledge/context.js +0 -92
- package/dist/lib/knowledge/defaults.d.ts +0 -24
- package/dist/lib/knowledge/defaults.js +0 -30
- package/dist/lib/knowledge/engine.d.ts +0 -35
- package/dist/lib/knowledge/engine.js +0 -180
- package/dist/lib/knowledge/index.d.ts +0 -15
- package/dist/lib/knowledge/index.js +0 -16
- package/dist/lib/knowledge/indexCache.d.ts +0 -19
- package/dist/lib/knowledge/indexCache.js +0 -110
- package/dist/lib/knowledge/knowledgeIndex.d.ts +0 -41
- package/dist/lib/knowledge/knowledgeIndex.js +0 -205
- package/dist/lib/knowledge/normalize.d.ts +0 -32
- package/dist/lib/knowledge/normalize.js +0 -75
- package/dist/lib/knowledge/resolve.d.ts +0 -18
- package/dist/lib/knowledge/resolve.js +0 -157
- package/dist/lib/knowledge/retrieval.d.ts +0 -16
- package/dist/lib/knowledge/retrieval.js +0 -222
- package/dist/lib/mcp/agentExposure.d.ts +0 -83
- package/dist/lib/mcp/agentExposure.js +0 -357
- package/dist/lib/mcp/auth/index.d.ts +0 -6
- package/dist/lib/mcp/auth/index.js +0 -12
- package/dist/lib/mcp/auth/oauthClientProvider.d.ts +0 -93
- package/dist/lib/mcp/auth/oauthClientProvider.js +0 -331
- package/dist/lib/mcp/auth/tokenStorage.d.ts +0 -56
- package/dist/lib/mcp/auth/tokenStorage.js +0 -135
- package/dist/lib/mcp/batching/index.d.ts +0 -1
- package/dist/lib/mcp/batching/index.js +0 -2
- package/dist/lib/mcp/batching/requestBatcher.d.ts +0 -130
- package/dist/lib/mcp/batching/requestBatcher.js +0 -468
- package/dist/lib/mcp/caching/index.d.ts +0 -1
- package/dist/lib/mcp/caching/index.js +0 -2
- package/dist/lib/mcp/caching/toolCache.d.ts +0 -154
- package/dist/lib/mcp/caching/toolCache.js +0 -434
- package/dist/lib/mcp/elicitation/elicitationManager.d.ts +0 -169
- package/dist/lib/mcp/elicitation/elicitationManager.js +0 -377
- package/dist/lib/mcp/elicitation/index.d.ts +0 -1
- package/dist/lib/mcp/elicitation/index.js +0 -3
- package/dist/lib/mcp/elicitationProtocol.d.ts +0 -139
- package/dist/lib/mcp/elicitationProtocol.js +0 -376
- package/dist/lib/mcp/enhancedToolDiscovery.d.ts +0 -125
- package/dist/lib/mcp/enhancedToolDiscovery.js +0 -482
- package/dist/lib/mcp/externalServerManager.d.ts +0 -189
- package/dist/lib/mcp/externalServerManager.js +0 -1525
- package/dist/lib/mcp/factory.d.ts +0 -60
- package/dist/lib/mcp/factory.js +0 -162
- package/dist/lib/mcp/flexibleToolValidator.d.ts +0 -46
- package/dist/lib/mcp/flexibleToolValidator.js +0 -162
- package/dist/lib/mcp/httpRateLimiter.d.ts +0 -152
- package/dist/lib/mcp/httpRateLimiter.js +0 -386
- package/dist/lib/mcp/httpRetryHandler.d.ts +0 -62
- package/dist/lib/mcp/httpRetryHandler.js +0 -180
- package/dist/lib/mcp/index.d.ts +0 -60
- package/dist/lib/mcp/index.js +0 -82
- package/dist/lib/mcp/mcpCircuitBreaker.d.ts +0 -123
- package/dist/lib/mcp/mcpCircuitBreaker.js +0 -428
- package/dist/lib/mcp/mcpClientFactory.d.ts +0 -109
- package/dist/lib/mcp/mcpClientFactory.js +0 -714
- package/dist/lib/mcp/mcpOutputNormalizer.d.ts +0 -47
- package/dist/lib/mcp/mcpOutputNormalizer.js +0 -183
- package/dist/lib/mcp/mcpRegistryClient.d.ts +0 -129
- package/dist/lib/mcp/mcpRegistryClient.js +0 -489
- package/dist/lib/mcp/mcpServerBase.d.ts +0 -162
- package/dist/lib/mcp/mcpServerBase.js +0 -377
- package/dist/lib/mcp/multiServerManager.d.ts +0 -182
- package/dist/lib/mcp/multiServerManager.js +0 -580
- package/dist/lib/mcp/registry.d.ts +0 -94
- package/dist/lib/mcp/registry.js +0 -159
- package/dist/lib/mcp/routing/index.d.ts +0 -1
- package/dist/lib/mcp/routing/index.js +0 -2
- package/dist/lib/mcp/routing/toolRouter.d.ts +0 -110
- package/dist/lib/mcp/routing/toolRouter.js +0 -417
- package/dist/lib/mcp/serverCapabilities.d.ts +0 -175
- package/dist/lib/mcp/serverCapabilities.js +0 -503
- package/dist/lib/mcp/servers/agent/directToolsServer.d.ts +0 -8
- package/dist/lib/mcp/servers/agent/directToolsServer.js +0 -152
- package/dist/lib/mcp/servers/aiProviders/aiAnalysisTools.d.ts +0 -6
- package/dist/lib/mcp/servers/aiProviders/aiAnalysisTools.js +0 -364
- package/dist/lib/mcp/servers/aiProviders/aiCoreServer.d.ts +0 -10
- package/dist/lib/mcp/servers/aiProviders/aiCoreServer.js +0 -232
- package/dist/lib/mcp/servers/aiProviders/aiWorkflowTools.d.ts +0 -5
- package/dist/lib/mcp/servers/aiProviders/aiWorkflowTools.js +0 -584
- package/dist/lib/mcp/servers/utilities/utilityServer.d.ts +0 -8
- package/dist/lib/mcp/servers/utilities/utilityServer.js +0 -327
- package/dist/lib/mcp/toolAnnotations.d.ts +0 -57
- package/dist/lib/mcp/toolAnnotations.js +0 -240
- package/dist/lib/mcp/toolConverter.d.ts +0 -87
- package/dist/lib/mcp/toolConverter.js +0 -259
- package/dist/lib/mcp/toolDiscoveryService.d.ts +0 -144
- package/dist/lib/mcp/toolDiscoveryService.js +0 -978
- package/dist/lib/mcp/toolIntegration.d.ts +0 -92
- package/dist/lib/mcp/toolIntegration.js +0 -335
- package/dist/lib/mcp/toolRegistry.d.ts +0 -151
- package/dist/lib/mcp/toolRegistry.js +0 -755
- package/dist/lib/memory/hippocampusInitializer.d.ts +0 -2
- package/dist/lib/memory/hippocampusInitializer.js +0 -50
- package/dist/lib/memory/memoryRetrievalTools.d.ts +0 -13
- package/dist/lib/memory/memoryRetrievalTools.js +0 -267
- package/dist/lib/middleware/builtin/analytics.d.ts +0 -16
- package/dist/lib/middleware/builtin/analytics.js +0 -133
- package/dist/lib/middleware/builtin/autoEvaluation.d.ts +0 -11
- package/dist/lib/middleware/builtin/autoEvaluation.js +0 -201
- package/dist/lib/middleware/builtin/guardrails.d.ts +0 -7
- package/dist/lib/middleware/builtin/guardrails.js +0 -110
- package/dist/lib/middleware/builtin/lifecycle.d.ts +0 -2
- package/dist/lib/middleware/builtin/lifecycle.js +0 -161
- package/dist/lib/middleware/factory.d.ts +0 -69
- package/dist/lib/middleware/factory.js +0 -328
- package/dist/lib/middleware/index.d.ts +0 -11
- package/dist/lib/middleware/index.js +0 -17
- package/dist/lib/middleware/registry.d.ts +0 -76
- package/dist/lib/middleware/registry.js +0 -296
- package/dist/lib/middleware/utils/guardrailsUtils.d.ts +0 -50
- package/dist/lib/middleware/utils/guardrailsUtils.js +0 -397
- package/dist/lib/models/anthropicModels.d.ts +0 -261
- package/dist/lib/models/anthropicModels.js +0 -556
- package/dist/lib/models/manifestRegistry.d.ts +0 -33
- package/dist/lib/models/manifestRegistry.js +0 -174
- package/dist/lib/models/manifests/anthropic.d.ts +0 -9
- package/dist/lib/models/manifests/anthropic.js +0 -346
- package/dist/lib/models/manifests/azure.d.ts +0 -2
- package/dist/lib/models/manifests/azure.js +0 -87
- package/dist/lib/models/manifests/bedrock.d.ts +0 -2
- package/dist/lib/models/manifests/bedrock.js +0 -75
- package/dist/lib/models/manifests/cloudflare.d.ts +0 -8
- package/dist/lib/models/manifests/cloudflare.js +0 -19
- package/dist/lib/models/manifests/cohere.d.ts +0 -8
- package/dist/lib/models/manifests/cohere.js +0 -19
- package/dist/lib/models/manifests/deepseek.d.ts +0 -8
- package/dist/lib/models/manifests/deepseek.js +0 -19
- package/dist/lib/models/manifests/fireworks.d.ts +0 -8
- package/dist/lib/models/manifests/fireworks.js +0 -19
- package/dist/lib/models/manifests/google-ai.d.ts +0 -2
- package/dist/lib/models/manifests/google-ai.js +0 -28
- package/dist/lib/models/manifests/groq.d.ts +0 -8
- package/dist/lib/models/manifests/groq.js +0 -19
- package/dist/lib/models/manifests/huggingface.d.ts +0 -8
- package/dist/lib/models/manifests/huggingface.js +0 -19
- package/dist/lib/models/manifests/ideogram.d.ts +0 -8
- package/dist/lib/models/manifests/ideogram.js +0 -19
- package/dist/lib/models/manifests/jina.d.ts +0 -8
- package/dist/lib/models/manifests/jina.js +0 -19
- package/dist/lib/models/manifests/litellm.d.ts +0 -8
- package/dist/lib/models/manifests/litellm.js +0 -19
- package/dist/lib/models/manifests/llamacpp.d.ts +0 -8
- package/dist/lib/models/manifests/llamacpp.js +0 -19
- package/dist/lib/models/manifests/lm-studio.d.ts +0 -8
- package/dist/lib/models/manifests/lm-studio.js +0 -19
- package/dist/lib/models/manifests/mistral.d.ts +0 -2
- package/dist/lib/models/manifests/mistral.js +0 -50
- package/dist/lib/models/manifests/nvidia-nim.d.ts +0 -8
- package/dist/lib/models/manifests/nvidia-nim.js +0 -19
- package/dist/lib/models/manifests/ollama.d.ts +0 -2
- package/dist/lib/models/manifests/ollama.js +0 -72
- package/dist/lib/models/manifests/openai-compatible.d.ts +0 -8
- package/dist/lib/models/manifests/openai-compatible.js +0 -19
- package/dist/lib/models/manifests/openai.d.ts +0 -11
- package/dist/lib/models/manifests/openai.js +0 -560
- package/dist/lib/models/manifests/openrouter.d.ts +0 -8
- package/dist/lib/models/manifests/openrouter.js +0 -19
- package/dist/lib/models/manifests/perplexity.d.ts +0 -8
- package/dist/lib/models/manifests/perplexity.js +0 -19
- package/dist/lib/models/manifests/recraft.d.ts +0 -8
- package/dist/lib/models/manifests/recraft.js +0 -19
- package/dist/lib/models/manifests/replicate.d.ts +0 -8
- package/dist/lib/models/manifests/replicate.js +0 -19
- package/dist/lib/models/manifests/sagemaker.d.ts +0 -8
- package/dist/lib/models/manifests/sagemaker.js +0 -19
- package/dist/lib/models/manifests/stability.d.ts +0 -8
- package/dist/lib/models/manifests/stability.js +0 -19
- package/dist/lib/models/manifests/together-ai.d.ts +0 -8
- package/dist/lib/models/manifests/together-ai.js +0 -19
- package/dist/lib/models/manifests/vertex.d.ts +0 -8
- package/dist/lib/models/manifests/vertex.js +0 -19
- package/dist/lib/models/manifests/voyage.d.ts +0 -8
- package/dist/lib/models/manifests/voyage.js +0 -19
- package/dist/lib/models/manifests/xai.d.ts +0 -8
- package/dist/lib/models/manifests/xai.js +0 -19
- package/dist/lib/models/modelRegistry.d.ts +0 -74
- package/dist/lib/models/modelRegistry.js +0 -2695
- package/dist/lib/models/modelResolver.d.ts +0 -74
- package/dist/lib/models/modelResolver.js +0 -470
- package/dist/lib/music/index.d.ts +0 -27
- package/dist/lib/music/index.js +0 -94
- package/dist/lib/music/providers/BeatovenMusic.d.ts +0 -31
- package/dist/lib/music/providers/BeatovenMusic.js +0 -334
- package/dist/lib/music/providers/ElevenLabsMusic.d.ts +0 -30
- package/dist/lib/music/providers/ElevenLabsMusic.js +0 -169
- package/dist/lib/music/providers/LyriaMusic.d.ts +0 -29
- package/dist/lib/music/providers/LyriaMusic.js +0 -173
- package/dist/lib/music/providers/ReplicateMusic.d.ts +0 -31
- package/dist/lib/music/providers/ReplicateMusic.js +0 -262
- package/dist/lib/neurolink.d.ts +0 -2662
- package/dist/lib/neurolink.js +0 -12946
- package/dist/lib/observability/exporterRegistry.d.ts +0 -133
- package/dist/lib/observability/exporterRegistry.js +0 -414
- package/dist/lib/observability/exporters/arizeExporter.d.ts +0 -32
- package/dist/lib/observability/exporters/arizeExporter.js +0 -139
- package/dist/lib/observability/exporters/baseExporter.d.ts +0 -117
- package/dist/lib/observability/exporters/baseExporter.js +0 -191
- package/dist/lib/observability/exporters/braintrustExporter.d.ts +0 -30
- package/dist/lib/observability/exporters/braintrustExporter.js +0 -155
- package/dist/lib/observability/exporters/datadogExporter.d.ts +0 -37
- package/dist/lib/observability/exporters/datadogExporter.js +0 -197
- package/dist/lib/observability/exporters/index.d.ts +0 -13
- package/dist/lib/observability/exporters/index.js +0 -14
- package/dist/lib/observability/exporters/laminarExporter.d.ts +0 -48
- package/dist/lib/observability/exporters/laminarExporter.js +0 -304
- package/dist/lib/observability/exporters/langfuseExporter.d.ts +0 -48
- package/dist/lib/observability/exporters/langfuseExporter.js +0 -210
- package/dist/lib/observability/exporters/langsmithExporter.d.ts +0 -26
- package/dist/lib/observability/exporters/langsmithExporter.js +0 -144
- package/dist/lib/observability/exporters/otelExporter.d.ts +0 -39
- package/dist/lib/observability/exporters/otelExporter.js +0 -165
- package/dist/lib/observability/exporters/posthogExporter.d.ts +0 -48
- package/dist/lib/observability/exporters/posthogExporter.js +0 -289
- package/dist/lib/observability/exporters/sentryExporter.d.ts +0 -32
- package/dist/lib/observability/exporters/sentryExporter.js +0 -167
- package/dist/lib/observability/index.d.ts +0 -23
- package/dist/lib/observability/index.js +0 -32
- package/dist/lib/observability/metricsAggregator.d.ts +0 -126
- package/dist/lib/observability/metricsAggregator.js +0 -553
- package/dist/lib/observability/otelBridge.d.ts +0 -49
- package/dist/lib/observability/otelBridge.js +0 -141
- package/dist/lib/observability/retryPolicy.d.ts +0 -154
- package/dist/lib/observability/retryPolicy.js +0 -384
- package/dist/lib/observability/sampling/index.d.ts +0 -4
- package/dist/lib/observability/sampling/index.js +0 -5
- package/dist/lib/observability/sampling/samplers.d.ts +0 -104
- package/dist/lib/observability/sampling/samplers.js +0 -217
- package/dist/lib/observability/spanProcessor.d.ts +0 -115
- package/dist/lib/observability/spanProcessor.js +0 -304
- package/dist/lib/observability/tokenTracker.d.ts +0 -109
- package/dist/lib/observability/tokenTracker.js +0 -416
- package/dist/lib/observability/utils/index.d.ts +0 -4
- package/dist/lib/observability/utils/index.js +0 -5
- package/dist/lib/observability/utils/safeMetadata.d.ts +0 -10
- package/dist/lib/observability/utils/safeMetadata.js +0 -26
- package/dist/lib/observability/utils/spanSerializer.d.ts +0 -119
- package/dist/lib/observability/utils/spanSerializer.js +0 -314
- package/dist/lib/processors/archive/ArchiveProcessor.d.ts +0 -323
- package/dist/lib/processors/archive/ArchiveProcessor.js +0 -1662
- package/dist/lib/processors/archive/index.d.ts +0 -33
- package/dist/lib/processors/archive/index.js +0 -44
- package/dist/lib/processors/archive/zipEntryReader.d.ts +0 -51
- package/dist/lib/processors/archive/zipEntryReader.js +0 -81
- package/dist/lib/processors/base/BaseFileProcessor.d.ts +0 -309
- package/dist/lib/processors/base/BaseFileProcessor.js +0 -769
- package/dist/lib/processors/base/index.d.ts +0 -13
- package/dist/lib/processors/base/index.js +0 -23
- package/dist/lib/processors/cli/fileProcessorCli.d.ts +0 -124
- package/dist/lib/processors/cli/fileProcessorCli.js +0 -392
- package/dist/lib/processors/cli/index.d.ts +0 -36
- package/dist/lib/processors/cli/index.js +0 -53
- package/dist/lib/processors/code/ConfigProcessor.d.ts +0 -169
- package/dist/lib/processors/code/ConfigProcessor.js +0 -405
- package/dist/lib/processors/code/SourceCodeProcessor.d.ts +0 -172
- package/dist/lib/processors/code/SourceCodeProcessor.js +0 -309
- package/dist/lib/processors/code/index.d.ts +0 -44
- package/dist/lib/processors/code/index.js +0 -65
- package/dist/lib/processors/config/fileExtensions.d.ts +0 -280
- package/dist/lib/processors/config/fileExtensions.js +0 -485
- package/dist/lib/processors/config/fileTypeRegistry.d.ts +0 -106
- package/dist/lib/processors/config/fileTypeRegistry.js +0 -702
- package/dist/lib/processors/config/index.d.ts +0 -33
- package/dist/lib/processors/config/index.js +0 -104
- package/dist/lib/processors/config/languageMap.d.ts +0 -62
- package/dist/lib/processors/config/languageMap.js +0 -414
- package/dist/lib/processors/config/mimeConstants.d.ts +0 -373
- package/dist/lib/processors/config/mimeConstants.js +0 -348
- package/dist/lib/processors/config/sizeLimits.d.ts +0 -198
- package/dist/lib/processors/config/sizeLimits.js +0 -262
- package/dist/lib/processors/data/JsonProcessor.d.ts +0 -120
- package/dist/lib/processors/data/JsonProcessor.js +0 -206
- package/dist/lib/processors/data/XmlProcessor.d.ts +0 -158
- package/dist/lib/processors/data/XmlProcessor.js +0 -288
- package/dist/lib/processors/data/YamlProcessor.d.ts +0 -161
- package/dist/lib/processors/data/YamlProcessor.js +0 -297
- package/dist/lib/processors/data/index.d.ts +0 -49
- package/dist/lib/processors/data/index.js +0 -83
- package/dist/lib/processors/document/ExcelProcessor.d.ts +0 -250
- package/dist/lib/processors/document/ExcelProcessor.js +0 -615
- package/dist/lib/processors/document/OpenDocumentProcessor.d.ts +0 -67
- package/dist/lib/processors/document/OpenDocumentProcessor.js +0 -236
- package/dist/lib/processors/document/PptxProcessor.d.ts +0 -77
- package/dist/lib/processors/document/PptxProcessor.js +0 -262
- package/dist/lib/processors/document/RtfProcessor.d.ts +0 -150
- package/dist/lib/processors/document/RtfProcessor.js +0 -364
- package/dist/lib/processors/document/WordProcessor.d.ts +0 -166
- package/dist/lib/processors/document/WordProcessor.js +0 -365
- package/dist/lib/processors/document/index.d.ts +0 -55
- package/dist/lib/processors/document/index.js +0 -100
- package/dist/lib/processors/errors/FileErrorCode.d.ts +0 -86
- package/dist/lib/processors/errors/FileErrorCode.js +0 -256
- package/dist/lib/processors/errors/errorHelpers.d.ts +0 -121
- package/dist/lib/processors/errors/errorHelpers.js +0 -387
- package/dist/lib/processors/errors/errorSerializer.d.ts +0 -96
- package/dist/lib/processors/errors/errorSerializer.js +0 -508
- package/dist/lib/processors/errors/index.d.ts +0 -46
- package/dist/lib/processors/errors/index.js +0 -50
- package/dist/lib/processors/index.d.ts +0 -79
- package/dist/lib/processors/index.js +0 -133
- package/dist/lib/processors/integration/FileProcessorIntegration.d.ts +0 -176
- package/dist/lib/processors/integration/FileProcessorIntegration.js +0 -279
- package/dist/lib/processors/integration/index.d.ts +0 -41
- package/dist/lib/processors/integration/index.js +0 -48
- package/dist/lib/processors/markup/HtmlProcessor.d.ts +0 -167
- package/dist/lib/processors/markup/HtmlProcessor.js +0 -252
- package/dist/lib/processors/markup/MarkdownProcessor.d.ts +0 -163
- package/dist/lib/processors/markup/MarkdownProcessor.js +0 -249
- package/dist/lib/processors/markup/SvgProcessor.d.ts +0 -154
- package/dist/lib/processors/markup/SvgProcessor.js +0 -245
- package/dist/lib/processors/markup/TextProcessor.d.ts +0 -133
- package/dist/lib/processors/markup/TextProcessor.js +0 -191
- package/dist/lib/processors/markup/index.d.ts +0 -66
- package/dist/lib/processors/markup/index.js +0 -111
- package/dist/lib/processors/media/AudioProcessor.d.ts +0 -266
- package/dist/lib/processors/media/AudioProcessor.js +0 -712
- package/dist/lib/processors/media/VideoProcessor.d.ts +0 -337
- package/dist/lib/processors/media/VideoProcessor.js +0 -1154
- package/dist/lib/processors/media/index.d.ts +0 -26
- package/dist/lib/processors/media/index.js +0 -30
- package/dist/lib/processors/registry/ProcessorRegistry.d.ts +0 -347
- package/dist/lib/processors/registry/ProcessorRegistry.js +0 -715
- package/dist/lib/processors/registry/index.d.ts +0 -2
- package/dist/lib/processors/registry/index.js +0 -10
- package/dist/lib/providers/amazonBedrock/client.d.ts +0 -93
- package/dist/lib/providers/amazonBedrock/client.js +0 -1178
- package/dist/lib/providers/amazonBedrock/constants.d.ts +0 -1
- package/dist/lib/providers/amazonBedrock/constants.js +0 -3
- package/dist/lib/providers/amazonBedrock/index.d.ts +0 -3
- package/dist/lib/providers/amazonBedrock/index.js +0 -4
- package/dist/lib/providers/amazonBedrock/inferenceProfile.d.ts +0 -72
- package/dist/lib/providers/amazonBedrock/inferenceProfile.js +0 -186
- package/dist/lib/providers/amazonBedrock/loopAdapter.d.ts +0 -36
- package/dist/lib/providers/amazonBedrock/loopAdapter.js +0 -278
- package/dist/lib/providers/amazonBedrock/utils.d.ts +0 -1
- package/dist/lib/providers/amazonBedrock/utils.js +0 -4
- package/dist/lib/providers/amazonSagemaker.d.ts +0 -108
- package/dist/lib/providers/amazonSagemaker.js +0 -292
- package/dist/lib/providers/anthropic/cacheControl.d.ts +0 -12
- package/dist/lib/providers/anthropic/cacheControl.js +0 -15
- package/dist/lib/providers/anthropic/client.d.ts +0 -149
- package/dist/lib/providers/anthropic/client.js +0 -1862
- package/dist/lib/providers/anthropic/constants.d.ts +0 -3
- package/dist/lib/providers/anthropic/constants.js +0 -7
- package/dist/lib/providers/anthropic/index.d.ts +0 -2
- package/dist/lib/providers/anthropic/index.js +0 -3
- package/dist/lib/providers/anthropic/loopAdapter.d.ts +0 -26
- package/dist/lib/providers/anthropic/loopAdapter.js +0 -326
- package/dist/lib/providers/anthropic/rateLimitCapture.d.ts +0 -82
- package/dist/lib/providers/anthropic/rateLimitCapture.js +0 -375
- package/dist/lib/providers/anthropic/structuredOutput.d.ts +0 -58
- package/dist/lib/providers/anthropic/structuredOutput.js +0 -98
- package/dist/lib/providers/anthropic/toolOutput.d.ts +0 -9
- package/dist/lib/providers/anthropic/toolOutput.js +0 -39
- package/dist/lib/providers/anthropicImageBlocks.d.ts +0 -47
- package/dist/lib/providers/anthropicImageBlocks.js +0 -223
- package/dist/lib/providers/azureOpenai.d.ts +0 -67
- package/dist/lib/providers/azureOpenai.js +0 -230
- package/dist/lib/providers/cohere.d.ts +0 -54
- package/dist/lib/providers/cohere.js +0 -183
- package/dist/lib/providers/configuredOpenAICompat.d.ts +0 -24
- package/dist/lib/providers/configuredOpenAICompat.js +0 -67
- package/dist/lib/providers/deepseek.d.ts +0 -47
- package/dist/lib/providers/deepseek.js +0 -121
- package/dist/lib/providers/googleAiStudio/client.d.ts +0 -92
- package/dist/lib/providers/googleAiStudio/client.js +0 -1661
- package/dist/lib/providers/googleAiStudio/index.d.ts +0 -1
- package/dist/lib/providers/googleAiStudio/index.js +0 -2
- package/dist/lib/providers/googleNativeGemini3/index.d.ts +0 -1
- package/dist/lib/providers/googleNativeGemini3/index.js +0 -2
- package/dist/lib/providers/googleNativeGemini3/utils.d.ts +0 -482
- package/dist/lib/providers/googleNativeGemini3/utils.js +0 -1527
- package/dist/lib/providers/googleVertex/client.d.ts +0 -415
- package/dist/lib/providers/googleVertex/client.js +0 -7018
- package/dist/lib/providers/googleVertex/constants.d.ts +0 -5
- package/dist/lib/providers/googleVertex/constants.js +0 -27
- package/dist/lib/providers/googleVertex/index.d.ts +0 -3
- package/dist/lib/providers/googleVertex/index.js +0 -4
- package/dist/lib/providers/googleVertex/utils.d.ts +0 -12
- package/dist/lib/providers/googleVertex/utils.js +0 -287
- package/dist/lib/providers/huggingFace/client.d.ts +0 -31
- package/dist/lib/providers/huggingFace/client.js +0 -103
- package/dist/lib/providers/huggingFace/index.d.ts +0 -1
- package/dist/lib/providers/huggingFace/index.js +0 -2
- package/dist/lib/providers/ideogram.d.ts +0 -34
- package/dist/lib/providers/ideogram.js +0 -184
- package/dist/lib/providers/jina.d.ts +0 -58
- package/dist/lib/providers/jina.js +0 -217
- package/dist/lib/providers/litellm/client.d.ts +0 -84
- package/dist/lib/providers/litellm/client.js +0 -504
- package/dist/lib/providers/litellm/index.d.ts +0 -1
- package/dist/lib/providers/litellm/index.js +0 -2
- package/dist/lib/providers/llamaCpp.d.ts +0 -24
- package/dist/lib/providers/llamaCpp.js +0 -80
- package/dist/lib/providers/lmStudio.d.ts +0 -29
- package/dist/lib/providers/lmStudio.js +0 -88
- package/dist/lib/providers/nvidiaNim/client.d.ts +0 -60
- package/dist/lib/providers/nvidiaNim/client.js +0 -291
- package/dist/lib/providers/nvidiaNim/constants.d.ts +0 -1
- package/dist/lib/providers/nvidiaNim/constants.js +0 -2
- package/dist/lib/providers/nvidiaNim/index.d.ts +0 -2
- package/dist/lib/providers/nvidiaNim/index.js +0 -3
- package/dist/lib/providers/ollama/client.d.ts +0 -71
- package/dist/lib/providers/ollama/client.js +0 -283
- package/dist/lib/providers/ollama/constants.d.ts +0 -4
- package/dist/lib/providers/ollama/constants.js +0 -6
- package/dist/lib/providers/ollama/index.d.ts +0 -2
- package/dist/lib/providers/ollama/index.js +0 -3
- package/dist/lib/providers/openAI/client.d.ts +0 -76
- package/dist/lib/providers/openAI/client.js +0 -503
- package/dist/lib/providers/openAI/index.d.ts +0 -1
- package/dist/lib/providers/openAI/index.js +0 -2
- package/dist/lib/providers/openRouter/client.d.ts +0 -75
- package/dist/lib/providers/openRouter/client.js +0 -402
- package/dist/lib/providers/openRouter/constants.d.ts +0 -1
- package/dist/lib/providers/openRouter/constants.js +0 -2
- package/dist/lib/providers/openRouter/index.d.ts +0 -3
- package/dist/lib/providers/openRouter/index.js +0 -4
- package/dist/lib/providers/openRouter/utils.d.ts +0 -1
- package/dist/lib/providers/openRouter/utils.js +0 -6
- package/dist/lib/providers/openaiChatCompletionsBase.d.ts +0 -212
- package/dist/lib/providers/openaiChatCompletionsBase.js +0 -1154
- package/dist/lib/providers/openaiChatCompletionsClient.d.ts +0 -70
- package/dist/lib/providers/openaiChatCompletionsClient.js +0 -684
- package/dist/lib/providers/openaiCompatCatalog.d.ts +0 -24
- package/dist/lib/providers/openaiCompatCatalog.js +0 -270
- package/dist/lib/providers/openaiCompatible/client.d.ts +0 -21
- package/dist/lib/providers/openaiCompatible/client.js +0 -91
- package/dist/lib/providers/openaiCompatible/constants.d.ts +0 -1
- package/dist/lib/providers/openaiCompatible/constants.js +0 -2
- package/dist/lib/providers/openaiCompatible/index.d.ts +0 -3
- package/dist/lib/providers/openaiCompatible/index.js +0 -4
- package/dist/lib/providers/openaiCompatible/utils.d.ts +0 -5
- package/dist/lib/providers/openaiCompatible/utils.js +0 -17
- package/dist/lib/providers/providerTypeUtils.d.ts +0 -23
- package/dist/lib/providers/providerTypeUtils.js +0 -41
- package/dist/lib/providers/recraft.d.ts +0 -34
- package/dist/lib/providers/recraft.js +0 -197
- package/dist/lib/providers/replicate.d.ts +0 -74
- package/dist/lib/providers/replicate.js +0 -416
- package/dist/lib/providers/sagemaker/adaptive-semaphore.d.ts +0 -74
- package/dist/lib/providers/sagemaker/adaptive-semaphore.js +0 -216
- package/dist/lib/providers/sagemaker/client.d.ts +0 -161
- package/dist/lib/providers/sagemaker/client.js +0 -509
- package/dist/lib/providers/sagemaker/config.d.ts +0 -87
- package/dist/lib/providers/sagemaker/config.js +0 -355
- package/dist/lib/providers/sagemaker/detection.d.ts +0 -121
- package/dist/lib/providers/sagemaker/detection.js +0 -607
- package/dist/lib/providers/sagemaker/diagnostics.d.ts +0 -14
- package/dist/lib/providers/sagemaker/diagnostics.js +0 -138
- package/dist/lib/providers/sagemaker/error-constants.d.ts +0 -78
- package/dist/lib/providers/sagemaker/error-constants.js +0 -228
- package/dist/lib/providers/sagemaker/errors.d.ts +0 -90
- package/dist/lib/providers/sagemaker/errors.js +0 -301
- package/dist/lib/providers/sagemaker/index.d.ts +0 -34
- package/dist/lib/providers/sagemaker/index.js +0 -69
- package/dist/lib/providers/sagemaker/language-model.d.ts +0 -207
- package/dist/lib/providers/sagemaker/language-model.js +0 -805
- package/dist/lib/providers/sagemaker/parsers.d.ts +0 -111
- package/dist/lib/providers/sagemaker/parsers.js +0 -644
- package/dist/lib/providers/sagemaker/streaming.d.ts +0 -48
- package/dist/lib/providers/sagemaker/streaming.js +0 -390
- package/dist/lib/providers/sagemaker/structured-parser.d.ts +0 -117
- package/dist/lib/providers/sagemaker/structured-parser.js +0 -626
- package/dist/lib/providers/stability.d.ts +0 -37
- package/dist/lib/providers/stability.js +0 -191
- package/dist/lib/providers/voyage.d.ts +0 -46
- package/dist/lib/providers/voyage.js +0 -176
- package/dist/lib/proxy/accountCooldown.d.ts +0 -5
- package/dist/lib/proxy/accountCooldown.js +0 -121
- package/dist/lib/proxy/accountQuota.d.ts +0 -84
- package/dist/lib/proxy/accountQuota.js +0 -459
- package/dist/lib/proxy/accountQuotaRefreshCoordinator.d.ts +0 -19
- package/dist/lib/proxy/accountQuotaRefreshCoordinator.js +0 -105
- package/dist/lib/proxy/accountSelection.d.ts +0 -8
- package/dist/lib/proxy/accountSelection.js +0 -26
- package/dist/lib/proxy/accountUsage.d.ts +0 -45
- package/dist/lib/proxy/accountUsage.js +0 -302
- package/dist/lib/proxy/awsProxyIntegration.d.ts +0 -23
- package/dist/lib/proxy/awsProxyIntegration.js +0 -286
- package/dist/lib/proxy/claudeFormat.d.ts +0 -129
- package/dist/lib/proxy/claudeFormat.js +0 -600
- package/dist/lib/proxy/cloaking/index.d.ts +0 -43
- package/dist/lib/proxy/cloaking/index.js +0 -88
- package/dist/lib/proxy/cloaking/plugins/headerScrubber.d.ts +0 -9
- package/dist/lib/proxy/cloaking/plugins/headerScrubber.js +0 -87
- package/dist/lib/proxy/cloaking/plugins/sessionIdentity.d.ts +0 -11
- package/dist/lib/proxy/cloaking/plugins/sessionIdentity.js +0 -42
- package/dist/lib/proxy/cloaking/plugins/systemPromptInjector.d.ts +0 -11
- package/dist/lib/proxy/cloaking/plugins/systemPromptInjector.js +0 -84
- package/dist/lib/proxy/cloaking/plugins/tlsFingerprint.d.ts +0 -14
- package/dist/lib/proxy/cloaking/plugins/tlsFingerprint.js +0 -39
- package/dist/lib/proxy/cloaking/plugins/wordObfuscator.d.ts +0 -9
- package/dist/lib/proxy/cloaking/plugins/wordObfuscator.js +0 -122
- package/dist/lib/proxy/codexAccountUsage.d.ts +0 -26
- package/dist/lib/proxy/codexAccountUsage.js +0 -174
- package/dist/lib/proxy/codexUsage.d.ts +0 -68
- package/dist/lib/proxy/codexUsage.js +0 -247
- package/dist/lib/proxy/globalInstaller.d.ts +0 -19
- package/dist/lib/proxy/globalInstaller.js +0 -242
- package/dist/lib/proxy/logCleanupScheduler.d.ts +0 -12
- package/dist/lib/proxy/logCleanupScheduler.js +0 -74
- package/dist/lib/proxy/logCleanupWorkerEntry.d.ts +0 -1
- package/dist/lib/proxy/logCleanupWorkerEntry.js +0 -15
- package/dist/lib/proxy/modelRouter.d.ts +0 -34
- package/dist/lib/proxy/modelRouter.js +0 -74
- package/dist/lib/proxy/oauthFetch.d.ts +0 -36
- package/dist/lib/proxy/oauthFetch.js +0 -353
- package/dist/lib/proxy/openaiFormat.d.ts +0 -139
- package/dist/lib/proxy/openaiFormat.js +0 -817
- package/dist/lib/proxy/providerTransportCoordinator.d.ts +0 -17
- package/dist/lib/proxy/providerTransportCoordinator.js +0 -156
- package/dist/lib/proxy/proxyActivity.d.ts +0 -8
- package/dist/lib/proxy/proxyActivity.js +0 -117
- package/dist/lib/proxy/proxyAnalysis.d.ts +0 -3
- package/dist/lib/proxy/proxyAnalysis.js +0 -985
- package/dist/lib/proxy/proxyConfig.d.ts +0 -42
- package/dist/lib/proxy/proxyConfig.js +0 -700
- package/dist/lib/proxy/proxyDispatcher.d.ts +0 -5
- package/dist/lib/proxy/proxyDispatcher.js +0 -61
- package/dist/lib/proxy/proxyEnv.d.ts +0 -3
- package/dist/lib/proxy/proxyEnv.js +0 -73
- package/dist/lib/proxy/proxyFetch.d.ts +0 -50
- package/dist/lib/proxy/proxyFetch.js +0 -729
- package/dist/lib/proxy/proxyHealth.d.ts +0 -20
- package/dist/lib/proxy/proxyHealth.js +0 -76
- package/dist/lib/proxy/proxyLifecycle.d.ts +0 -13
- package/dist/lib/proxy/proxyLifecycle.js +0 -383
- package/dist/lib/proxy/proxyPaths.d.ts +0 -17
- package/dist/lib/proxy/proxyPaths.js +0 -42
- package/dist/lib/proxy/proxyReplay.d.ts +0 -10
- package/dist/lib/proxy/proxyReplay.js +0 -765
- package/dist/lib/proxy/proxyTracer.d.ts +0 -128
- package/dist/lib/proxy/proxyTracer.js +0 -748
- package/dist/lib/proxy/proxyTranslationEngine.d.ts +0 -125
- package/dist/lib/proxy/proxyTranslationEngine.js +0 -740
- package/dist/lib/proxy/quietDetector.d.ts +0 -17
- package/dist/lib/proxy/quietDetector.js +0 -125
- package/dist/lib/proxy/quotaHeaders.d.ts +0 -73
- package/dist/lib/proxy/quotaHeaders.js +0 -189
- package/dist/lib/proxy/rawStreamCapture.d.ts +0 -2
- package/dist/lib/proxy/rawStreamCapture.js +0 -129
- package/dist/lib/proxy/requestLogger.d.ts +0 -78
- package/dist/lib/proxy/requestLogger.js +0 -770
- package/dist/lib/proxy/rollingProxyServer.d.ts +0 -3
- package/dist/lib/proxy/rollingProxyServer.js +0 -220
- package/dist/lib/proxy/rollingWorkerProcess.d.ts +0 -2
- package/dist/lib/proxy/rollingWorkerProcess.js +0 -199
- package/dist/lib/proxy/rollingWorkerProtocol.d.ts +0 -5
- package/dist/lib/proxy/rollingWorkerProtocol.js +0 -46
- package/dist/lib/proxy/rollingWorkerSupervisor.d.ts +0 -44
- package/dist/lib/proxy/rollingWorkerSupervisor.js +0 -530
- package/dist/lib/proxy/routingEvidence.d.ts +0 -17
- package/dist/lib/proxy/routingEvidence.js +0 -59
- package/dist/lib/proxy/routingPolicy.d.ts +0 -19
- package/dist/lib/proxy/routingPolicy.js +0 -75
- package/dist/lib/proxy/runtimeConfig.d.ts +0 -27
- package/dist/lib/proxy/runtimeConfig.js +0 -448
- package/dist/lib/proxy/snapshotPersistence.d.ts +0 -2
- package/dist/lib/proxy/snapshotPersistence.js +0 -41
- package/dist/lib/proxy/socketWorkerRuntime.d.ts +0 -14
- package/dist/lib/proxy/socketWorkerRuntime.js +0 -322
- package/dist/lib/proxy/sseInterceptor.d.ts +0 -41
- package/dist/lib/proxy/sseInterceptor.js +0 -496
- package/dist/lib/proxy/streamOutcome.d.ts +0 -5
- package/dist/lib/proxy/streamOutcome.js +0 -104
- package/dist/lib/proxy/systemRelocation.d.ts +0 -21
- package/dist/lib/proxy/systemRelocation.js +0 -51
- package/dist/lib/proxy/tokenRefresh.d.ts +0 -18
- package/dist/lib/proxy/tokenRefresh.js +0 -257
- package/dist/lib/proxy/updateChecker.d.ts +0 -17
- package/dist/lib/proxy/updateChecker.js +0 -98
- package/dist/lib/proxy/updateCoordinator.d.ts +0 -7
- package/dist/lib/proxy/updateCoordinator.js +0 -60
- package/dist/lib/proxy/updateState.d.ts +0 -69
- package/dist/lib/proxy/updateState.js +0 -309
- package/dist/lib/proxy/updaterSupervisor.d.ts +0 -3
- package/dist/lib/proxy/updaterSupervisor.js +0 -58
- package/dist/lib/proxy/usageStats.d.ts +0 -91
- package/dist/lib/proxy/usageStats.js +0 -1154
- package/dist/lib/proxy/utils/noProxyUtils.d.ts +0 -39
- package/dist/lib/proxy/utils/noProxyUtils.js +0 -150
- package/dist/lib/proxy/workerLog.d.ts +0 -6
- package/dist/lib/proxy/workerLog.js +0 -42
- package/dist/lib/rag/ChunkerFactory.d.ts +0 -91
- package/dist/lib/rag/ChunkerFactory.js +0 -321
- package/dist/lib/rag/ChunkerRegistry.d.ts +0 -91
- package/dist/lib/rag/ChunkerRegistry.js +0 -422
- package/dist/lib/rag/chunkers/BaseChunker.d.ts +0 -53
- package/dist/lib/rag/chunkers/BaseChunker.js +0 -158
- package/dist/lib/rag/chunkers/CharacterChunker.d.ts +0 -18
- package/dist/lib/rag/chunkers/CharacterChunker.js +0 -29
- package/dist/lib/rag/chunkers/HTMLChunker.d.ts +0 -19
- package/dist/lib/rag/chunkers/HTMLChunker.js +0 -39
- package/dist/lib/rag/chunkers/JSONChunker.d.ts +0 -19
- package/dist/lib/rag/chunkers/JSONChunker.js +0 -69
- package/dist/lib/rag/chunkers/LaTeXChunker.d.ts +0 -15
- package/dist/lib/rag/chunkers/LaTeXChunker.js +0 -64
- package/dist/lib/rag/chunkers/MarkdownChunker.d.ts +0 -37
- package/dist/lib/rag/chunkers/MarkdownChunker.js +0 -315
- package/dist/lib/rag/chunkers/RecursiveChunker.d.ts +0 -27
- package/dist/lib/rag/chunkers/RecursiveChunker.js +0 -140
- package/dist/lib/rag/chunkers/SemanticMarkdownChunker.d.ts +0 -22
- package/dist/lib/rag/chunkers/SemanticMarkdownChunker.js +0 -139
- package/dist/lib/rag/chunkers/SentenceChunker.d.ts +0 -19
- package/dist/lib/rag/chunkers/SentenceChunker.js +0 -67
- package/dist/lib/rag/chunkers/TokenChunker.d.ts +0 -19
- package/dist/lib/rag/chunkers/TokenChunker.js +0 -62
- package/dist/lib/rag/chunkers/index.d.ts +0 -15
- package/dist/lib/rag/chunkers/index.js +0 -16
- package/dist/lib/rag/chunking/characterChunker.d.ts +0 -16
- package/dist/lib/rag/chunking/characterChunker.js +0 -143
- package/dist/lib/rag/chunking/chunkerRegistry.d.ts +0 -67
- package/dist/lib/rag/chunking/chunkerRegistry.js +0 -195
- package/dist/lib/rag/chunking/htmlChunker.d.ts +0 -34
- package/dist/lib/rag/chunking/htmlChunker.js +0 -248
- package/dist/lib/rag/chunking/index.d.ts +0 -15
- package/dist/lib/rag/chunking/index.js +0 -18
- package/dist/lib/rag/chunking/jsonChunker.d.ts +0 -20
- package/dist/lib/rag/chunking/jsonChunker.js +0 -282
- package/dist/lib/rag/chunking/latexChunker.d.ts +0 -26
- package/dist/lib/rag/chunking/latexChunker.js +0 -252
- package/dist/lib/rag/chunking/markdownChunker.d.ts +0 -35
- package/dist/lib/rag/chunking/markdownChunker.js +0 -383
- package/dist/lib/rag/chunking/recursiveChunker.d.ts +0 -19
- package/dist/lib/rag/chunking/recursiveChunker.js +0 -149
- package/dist/lib/rag/chunking/semanticChunker.d.ts +0 -41
- package/dist/lib/rag/chunking/semanticChunker.js +0 -306
- package/dist/lib/rag/chunking/sentenceChunker.d.ts +0 -25
- package/dist/lib/rag/chunking/sentenceChunker.js +0 -231
- package/dist/lib/rag/chunking/tokenChunker.d.ts +0 -36
- package/dist/lib/rag/chunking/tokenChunker.js +0 -184
- package/dist/lib/rag/document/MDocument.d.ts +0 -198
- package/dist/lib/rag/document/MDocument.js +0 -392
- package/dist/lib/rag/document/index.d.ts +0 -5
- package/dist/lib/rag/document/index.js +0 -6
- package/dist/lib/rag/document/loaders.d.ts +0 -142
- package/dist/lib/rag/document/loaders.js +0 -544
- package/dist/lib/rag/errors/RAGError.d.ts +0 -244
- package/dist/lib/rag/errors/RAGError.js +0 -275
- package/dist/lib/rag/errors/index.d.ts +0 -6
- package/dist/lib/rag/errors/index.js +0 -7
- package/dist/lib/rag/graphRag/graphRAG.d.ts +0 -115
- package/dist/lib/rag/graphRag/graphRAG.js +0 -402
- package/dist/lib/rag/graphRag/index.d.ts +0 -4
- package/dist/lib/rag/graphRag/index.js +0 -5
- package/dist/lib/rag/index.d.ts +0 -104
- package/dist/lib/rag/index.js +0 -144
- package/dist/lib/rag/metadata/MetadataExtractorFactory.d.ts +0 -103
- package/dist/lib/rag/metadata/MetadataExtractorFactory.js +0 -419
- package/dist/lib/rag/metadata/MetadataExtractorRegistry.d.ts +0 -99
- package/dist/lib/rag/metadata/MetadataExtractorRegistry.js +0 -363
- package/dist/lib/rag/metadata/index.d.ts +0 -6
- package/dist/lib/rag/metadata/index.js +0 -10
- package/dist/lib/rag/metadata/metadataExtractor.d.ts +0 -69
- package/dist/lib/rag/metadata/metadataExtractor.js +0 -281
- package/dist/lib/rag/pipeline/RAGPipeline.d.ts +0 -105
- package/dist/lib/rag/pipeline/RAGPipeline.js +0 -436
- package/dist/lib/rag/pipeline/contextAssembly.d.ts +0 -80
- package/dist/lib/rag/pipeline/contextAssembly.js +0 -342
- package/dist/lib/rag/pipeline/index.d.ts +0 -5
- package/dist/lib/rag/pipeline/index.js +0 -6
- package/dist/lib/rag/ragIntegration.d.ts +0 -30
- package/dist/lib/rag/ragIntegration.js +0 -327
- package/dist/lib/rag/reranker/RerankerFactory.d.ts +0 -124
- package/dist/lib/rag/reranker/RerankerFactory.js +0 -431
- package/dist/lib/rag/reranker/RerankerRegistry.d.ts +0 -119
- package/dist/lib/rag/reranker/RerankerRegistry.js +0 -403
- package/dist/lib/rag/reranker/index.d.ts +0 -6
- package/dist/lib/rag/reranker/index.js +0 -10
- package/dist/lib/rag/reranker/reranker.d.ts +0 -70
- package/dist/lib/rag/reranker/reranker.js +0 -307
- package/dist/lib/rag/resilience/CircuitBreaker.d.ts +0 -142
- package/dist/lib/rag/resilience/CircuitBreaker.js +0 -432
- package/dist/lib/rag/resilience/RetryHandler.d.ts +0 -95
- package/dist/lib/rag/resilience/RetryHandler.js +0 -305
- package/dist/lib/rag/resilience/index.d.ts +0 -7
- package/dist/lib/rag/resilience/index.js +0 -8
- package/dist/lib/rag/retrieval/hybridSearch.d.ts +0 -53
- package/dist/lib/rag/retrieval/hybridSearch.js +0 -339
- package/dist/lib/rag/retrieval/index.d.ts +0 -5
- package/dist/lib/rag/retrieval/index.js +0 -6
- package/dist/lib/rag/retrieval/vectorQueryTool.d.ts +0 -72
- package/dist/lib/rag/retrieval/vectorQueryTool.js +0 -325
- package/dist/lib/rag/stores/chroma.d.ts +0 -90
- package/dist/lib/rag/stores/chroma.js +0 -281
- package/dist/lib/rag/stores/index.d.ts +0 -21
- package/dist/lib/rag/stores/index.js +0 -22
- package/dist/lib/rag/stores/pgvector.d.ts +0 -95
- package/dist/lib/rag/stores/pgvector.js +0 -400
- package/dist/lib/rag/stores/pinecone.d.ts +0 -85
- package/dist/lib/rag/stores/pinecone.js +0 -159
- package/dist/lib/routing/classifierRouter.d.ts +0 -52
- package/dist/lib/routing/classifierRouter.js +0 -269
- package/dist/lib/routing/classifierStrategies.d.ts +0 -23
- package/dist/lib/routing/classifierStrategies.js +0 -156
- package/dist/lib/routing/index.d.ts +0 -9
- package/dist/lib/routing/index.js +0 -10
- package/dist/lib/routing/modelPool.d.ts +0 -83
- package/dist/lib/routing/modelPool.js +0 -243
- package/dist/lib/routing/requestRouter.d.ts +0 -30
- package/dist/lib/routing/requestRouter.js +0 -81
- package/dist/lib/sdk/toolRegistration.d.ts +0 -74
- package/dist/lib/sdk/toolRegistration.js +0 -383
- package/dist/lib/server/abstract/baseServerAdapter.d.ts +0 -171
- package/dist/lib/server/abstract/baseServerAdapter.js +0 -575
- package/dist/lib/server/adapters/expressAdapter.d.ts +0 -70
- package/dist/lib/server/adapters/expressAdapter.js +0 -487
- package/dist/lib/server/adapters/fastifyAdapter.d.ts +0 -70
- package/dist/lib/server/adapters/fastifyAdapter.js +0 -473
- package/dist/lib/server/adapters/honoAdapter.d.ts +0 -77
- package/dist/lib/server/adapters/honoAdapter.js +0 -633
- package/dist/lib/server/adapters/index.d.ts +0 -7
- package/dist/lib/server/adapters/index.js +0 -8
- package/dist/lib/server/adapters/koaAdapter.d.ts +0 -79
- package/dist/lib/server/adapters/koaAdapter.js +0 -511
- package/dist/lib/server/errors.d.ts +0 -193
- package/dist/lib/server/errors.js +0 -487
- package/dist/lib/server/factory/serverAdapterFactory.d.ts +0 -73
- package/dist/lib/server/factory/serverAdapterFactory.js +0 -161
- package/dist/lib/server/index.d.ts +0 -46
- package/dist/lib/server/index.js +0 -122
- package/dist/lib/server/middleware/abortSignal.d.ts +0 -52
- package/dist/lib/server/middleware/abortSignal.js +0 -112
- package/dist/lib/server/middleware/auth.d.ts +0 -166
- package/dist/lib/server/middleware/auth.js +0 -404
- package/dist/lib/server/middleware/cache.d.ts +0 -161
- package/dist/lib/server/middleware/cache.js +0 -370
- package/dist/lib/server/middleware/common.d.ts +0 -108
- package/dist/lib/server/middleware/common.js +0 -297
- package/dist/lib/server/middleware/deprecation.d.ts +0 -40
- package/dist/lib/server/middleware/deprecation.js +0 -191
- package/dist/lib/server/middleware/index.d.ts +0 -12
- package/dist/lib/server/middleware/index.js +0 -13
- package/dist/lib/server/middleware/mcpBodyAttachment.d.ts +0 -42
- package/dist/lib/server/middleware/mcpBodyAttachment.js +0 -64
- package/dist/lib/server/middleware/rateLimit.d.ts +0 -70
- package/dist/lib/server/middleware/rateLimit.js +0 -224
- package/dist/lib/server/middleware/validation.d.ts +0 -69
- package/dist/lib/server/middleware/validation.js +0 -393
- package/dist/lib/server/openapi/generator.d.ts +0 -61
- package/dist/lib/server/openapi/generator.js +0 -399
- package/dist/lib/server/openapi/index.d.ts +0 -7
- package/dist/lib/server/openapi/index.js +0 -37
- package/dist/lib/server/openapi/schemas.d.ts +0 -94
- package/dist/lib/server/openapi/schemas.js +0 -696
- package/dist/lib/server/openapi/templates.d.ts +0 -108
- package/dist/lib/server/openapi/templates.js +0 -375
- package/dist/lib/server/routes/agentRoutes.d.ts +0 -9
- package/dist/lib/server/routes/agentRoutes.js +0 -423
- package/dist/lib/server/routes/claudeProxyRoutes.d.ts +0 -491
- package/dist/lib/server/routes/claudeProxyRoutes.js +0 -6455
- package/dist/lib/server/routes/codexProxyRoutes.d.ts +0 -64
- package/dist/lib/server/routes/codexProxyRoutes.js +0 -482
- package/dist/lib/server/routes/healthRoutes.d.ts +0 -9
- package/dist/lib/server/routes/healthRoutes.js +0 -234
- package/dist/lib/server/routes/index.d.ts +0 -25
- package/dist/lib/server/routes/index.js +0 -66
- package/dist/lib/server/routes/mcpRoutes.d.ts +0 -9
- package/dist/lib/server/routes/mcpRoutes.js +0 -376
- package/dist/lib/server/routes/memoryRoutes.d.ts +0 -11
- package/dist/lib/server/routes/memoryRoutes.js +0 -366
- package/dist/lib/server/routes/openApiRoutes.d.ts +0 -34
- package/dist/lib/server/routes/openApiRoutes.js +0 -151
- package/dist/lib/server/routes/openaiProxyRoutes.d.ts +0 -38
- package/dist/lib/server/routes/openaiProxyRoutes.js +0 -404
- package/dist/lib/server/routes/toolRoutes.d.ts +0 -9
- package/dist/lib/server/routes/toolRoutes.js +0 -272
- package/dist/lib/server/streaming/dataStream.d.ts +0 -212
- package/dist/lib/server/streaming/dataStream.js +0 -502
- package/dist/lib/server/streaming/index.d.ts +0 -5
- package/dist/lib/server/streaming/index.js +0 -17
- package/dist/lib/server/utils/redaction.d.ts +0 -68
- package/dist/lib/server/utils/redaction.js +0 -321
- package/dist/lib/server/utils/validation.d.ts +0 -153
- package/dist/lib/server/utils/validation.js +0 -265
- package/dist/lib/server/voice/frameBus.d.ts +0 -8
- package/dist/lib/server/voice/frameBus.js +0 -25
- package/dist/lib/server/voice/tokenCompare.d.ts +0 -14
- package/dist/lib/server/voice/tokenCompare.js +0 -23
- package/dist/lib/server/voice/turnManager.d.ts +0 -15
- package/dist/lib/server/voice/turnManager.js +0 -36
- package/dist/lib/server/voice/voiceServerApp.d.ts +0 -1
- package/dist/lib/server/voice/voiceServerApp.js +0 -177
- package/dist/lib/server/voice/voiceWebSocketHandler.d.ts +0 -24
- package/dist/lib/server/voice/voiceWebSocketHandler.js +0 -669
- package/dist/lib/server/websocket/WebSocketHandler.d.ts +0 -107
- package/dist/lib/server/websocket/WebSocketHandler.js +0 -384
- package/dist/lib/server/websocket/index.d.ts +0 -4
- package/dist/lib/server/websocket/index.js +0 -5
- package/dist/lib/services/server/ai/observability/instrumentation.d.ts +0 -229
- package/dist/lib/services/server/ai/observability/instrumentation.js +0 -1244
- package/dist/lib/session/globalSessionState.d.ts +0 -71
- package/dist/lib/session/globalSessionState.js +0 -235
- package/dist/lib/skills/skillMatcher.d.ts +0 -55
- package/dist/lib/skills/skillMatcher.js +0 -170
- package/dist/lib/skills/skillSessionTracker.d.ts +0 -52
- package/dist/lib/skills/skillSessionTracker.js +0 -150
- package/dist/lib/skills/skillStoreRedis.d.ts +0 -30
- package/dist/lib/skills/skillStoreRedis.js +0 -114
- package/dist/lib/skills/skillStoreS3.d.ts +0 -56
- package/dist/lib/skills/skillStoreS3.js +0 -305
- package/dist/lib/skills/skillStores.d.ts +0 -58
- package/dist/lib/skills/skillStores.js +0 -341
- package/dist/lib/skills/skillTools.d.ts +0 -35
- package/dist/lib/skills/skillTools.js +0 -451
- package/dist/lib/skills/skillsManager.d.ts +0 -78
- package/dist/lib/skills/skillsManager.js +0 -281
- package/dist/lib/tasks/autoresearchTaskExecutor.d.ts +0 -31
- package/dist/lib/tasks/autoresearchTaskExecutor.js +0 -304
- package/dist/lib/tasks/backends/bullmqBackend.d.ts +0 -33
- package/dist/lib/tasks/backends/bullmqBackend.js +0 -206
- package/dist/lib/tasks/backends/nodeTimeoutBackend.d.ts +0 -27
- package/dist/lib/tasks/backends/nodeTimeoutBackend.js +0 -141
- package/dist/lib/tasks/backends/taskBackendRegistry.d.ts +0 -31
- package/dist/lib/tasks/backends/taskBackendRegistry.js +0 -66
- package/dist/lib/tasks/errors.d.ts +0 -33
- package/dist/lib/tasks/errors.js +0 -19
- package/dist/lib/tasks/store/fileTaskStore.d.ts +0 -43
- package/dist/lib/tasks/store/fileTaskStore.js +0 -179
- package/dist/lib/tasks/store/redisTaskStore.d.ts +0 -43
- package/dist/lib/tasks/store/redisTaskStore.js +0 -222
- package/dist/lib/tasks/taskExecutor.d.ts +0 -22
- package/dist/lib/tasks/taskExecutor.js +0 -170
- package/dist/lib/tasks/taskManager.d.ts +0 -65
- package/dist/lib/tasks/taskManager.js +0 -545
- package/dist/lib/tasks/tools/taskTools.d.ts +0 -20
- package/dist/lib/tasks/tools/taskTools.js +0 -265
- package/dist/lib/telemetry/attributes.d.ts +0 -136
- package/dist/lib/telemetry/attributes.js +0 -165
- package/dist/lib/telemetry/index.d.ts +0 -20
- package/dist/lib/telemetry/index.js +0 -28
- package/dist/lib/telemetry/telemetryService.d.ts +0 -58
- package/dist/lib/telemetry/telemetryService.js +0 -387
- package/dist/lib/telemetry/traceContext.d.ts +0 -9
- package/dist/lib/telemetry/traceContext.js +0 -19
- package/dist/lib/telemetry/tracers.d.ts +0 -38
- package/dist/lib/telemetry/tracers.js +0 -40
- package/dist/lib/telemetry/withSpan.d.ts +0 -39
- package/dist/lib/telemetry/withSpan.js +0 -138
- package/dist/lib/tools/toolDiscovery.d.ts +0 -70
- package/dist/lib/tools/toolDiscovery.js +0 -303
- package/dist/lib/tools/toolGate.d.ts +0 -16
- package/dist/lib/tools/toolGate.js +0 -51
- package/dist/lib/tools/toolPolicy.d.ts +0 -40
- package/dist/lib/tools/toolPolicy.js +0 -194
- package/dist/lib/types/action.d.ts +0 -207
- package/dist/lib/types/action.js +0 -7
- package/dist/lib/types/agentNetwork.d.ts +0 -1199
- package/dist/lib/types/agentNetwork.js +0 -8
- package/dist/lib/types/aliases.d.ts +0 -368
- package/dist/lib/types/aliases.js +0 -50
- package/dist/lib/types/analytics.d.ts +0 -215
- package/dist/lib/types/analytics.js +0 -6
- package/dist/lib/types/artifact.d.ts +0 -70
- package/dist/lib/types/artifact.js +0 -11
- package/dist/lib/types/auth.d.ts +0 -1140
- package/dist/lib/types/auth.js +0 -10
- package/dist/lib/types/autoresearch.d.ts +0 -206
- package/dist/lib/types/autoresearch.js +0 -18
- package/dist/lib/types/avatar.d.ts +0 -150
- package/dist/lib/types/avatar.js +0 -20
- package/dist/lib/types/circuitBreakerErrors.d.ts +0 -30
- package/dist/lib/types/circuitBreakerErrors.js +0 -35
- package/dist/lib/types/classifierRouter.d.ts +0 -194
- package/dist/lib/types/classifierRouter.js +0 -17
- package/dist/lib/types/cli.d.ts +0 -1734
- package/dist/lib/types/cli.js +0 -22
- package/dist/lib/types/client.d.ts +0 -1287
- package/dist/lib/types/client.js +0 -11
- package/dist/lib/types/codex.d.ts +0 -95
- package/dist/lib/types/codex.js +0 -15
- package/dist/lib/types/common.d.ts +0 -434
- package/dist/lib/types/common.js +0 -52
- package/dist/lib/types/config.d.ts +0 -506
- package/dist/lib/types/config.js +0 -54
- package/dist/lib/types/content.d.ts +0 -18
- package/dist/lib/types/content.js +0 -20
- package/dist/lib/types/context.d.ts +0 -587
- package/dist/lib/types/context.js +0 -401
- package/dist/lib/types/conversation.d.ts +0 -637
- package/dist/lib/types/conversation.js +0 -48
- package/dist/lib/types/conversationMemoryInterface.d.ts +0 -59
- package/dist/lib/types/conversationMemoryInterface.js +0 -7
- package/dist/lib/types/domain.d.ts +0 -62
- package/dist/lib/types/domain.js +0 -6
- package/dist/lib/types/dynamic.d.ts +0 -110
- package/dist/lib/types/dynamic.js +0 -10
- package/dist/lib/types/elicitation.d.ts +0 -278
- package/dist/lib/types/elicitation.js +0 -11
- package/dist/lib/types/enums.d.ts +0 -9
- package/dist/lib/types/enums.js +0 -10
- package/dist/lib/types/errors.d.ts +0 -188
- package/dist/lib/types/errors.js +0 -262
- package/dist/lib/types/evaluation.d.ts +0 -647
- package/dist/lib/types/evaluation.js +0 -2
- package/dist/lib/types/evaluationProviders.d.ts +0 -104
- package/dist/lib/types/evaluationProviders.js +0 -6
- package/dist/lib/types/exporter.d.ts +0 -257
- package/dist/lib/types/exporter.js +0 -6
- package/dist/lib/types/externalMcp.d.ts +0 -349
- package/dist/lib/types/externalMcp.js +0 -7
- package/dist/lib/types/file.d.ts +0 -616
- package/dist/lib/types/file.js +0 -5
- package/dist/lib/types/fileReference.d.ts +0 -243
- package/dist/lib/types/fileReference.js +0 -22
- package/dist/lib/types/generate.d.ts +0 -1520
- package/dist/lib/types/generate.js +0 -2
- package/dist/lib/types/grounding.d.ts +0 -231
- package/dist/lib/types/grounding.js +0 -12
- package/dist/lib/types/guardrails.d.ts +0 -116
- package/dist/lib/types/guardrails.js +0 -2
- package/dist/lib/types/hitl.d.ts +0 -237
- package/dist/lib/types/hitl.js +0 -9
- package/dist/lib/types/imageGen.d.ts +0 -255
- package/dist/lib/types/imageGen.js +0 -25
- package/dist/lib/types/index.d.ts +0 -86
- package/dist/lib/types/index.js +0 -98
- package/dist/lib/types/ioProcessor.d.ts +0 -119
- package/dist/lib/types/ioProcessor.js +0 -10
- package/dist/lib/types/isolatedAgent.d.ts +0 -365
- package/dist/lib/types/isolatedAgent.js +0 -12
- package/dist/lib/types/knowledge.d.ts +0 -342
- package/dist/lib/types/knowledge.js +0 -30
- package/dist/lib/types/livekit.d.ts +0 -512
- package/dist/lib/types/livekit.js +0 -13
- package/dist/lib/types/loopEngine.d.ts +0 -306
- package/dist/lib/types/loopEngine.js +0 -2
- package/dist/lib/types/mcp.d.ts +0 -2135
- package/dist/lib/types/mcp.js +0 -6
- package/dist/lib/types/mcpOutput.d.ts +0 -40
- package/dist/lib/types/mcpOutput.js +0 -9
- package/dist/lib/types/memory.d.ts +0 -96
- package/dist/lib/types/memory.js +0 -23
- package/dist/lib/types/middleware.d.ts +0 -435
- package/dist/lib/types/middleware.js +0 -2
- package/dist/lib/types/model.d.ts +0 -342
- package/dist/lib/types/model.js +0 -32
- package/dist/lib/types/modelPool.d.ts +0 -47
- package/dist/lib/types/modelPool.js +0 -11
- package/dist/lib/types/multimodal.d.ts +0 -614
- package/dist/lib/types/multimodal.js +0 -144
- package/dist/lib/types/music.d.ts +0 -172
- package/dist/lib/types/music.js +0 -21
- package/dist/lib/types/nativeTools.d.ts +0 -16
- package/dist/lib/types/nativeTools.js +0 -2
- package/dist/lib/types/noOutputSentinel.d.ts +0 -26
- package/dist/lib/types/noOutputSentinel.js +0 -2
- package/dist/lib/types/observability.d.ts +0 -502
- package/dist/lib/types/observability.js +0 -7
- package/dist/lib/types/openaiCompatible.d.ts +0 -287
- package/dist/lib/types/openaiCompatible.js +0 -2
- package/dist/lib/types/ppt.d.ts +0 -1093
- package/dist/lib/types/ppt.js +0 -37
- package/dist/lib/types/processor.d.ts +0 -993
- package/dist/lib/types/processor.js +0 -91
- package/dist/lib/types/providers.d.ts +0 -2155
- package/dist/lib/types/providers.js +0 -112
- package/dist/lib/types/proxy.d.ts +0 -2789
- package/dist/lib/types/proxy.js +0 -17
- package/dist/lib/types/proxyClient.d.ts +0 -54
- package/dist/lib/types/proxyClient.js +0 -2
- package/dist/lib/types/rag.d.ts +0 -1332
- package/dist/lib/types/rag.js +0 -2
- package/dist/lib/types/realtime.d.ts +0 -243
- package/dist/lib/types/realtime.js +0 -70
- package/dist/lib/types/replicate.d.ts +0 -67
- package/dist/lib/types/replicate.js +0 -10
- package/dist/lib/types/requestRouter.d.ts +0 -75
- package/dist/lib/types/requestRouter.js +0 -16
- package/dist/lib/types/safeFetch.d.ts +0 -24
- package/dist/lib/types/safeFetch.js +0 -7
- package/dist/lib/types/scorer.d.ts +0 -564
- package/dist/lib/types/scorer.js +0 -6
- package/dist/lib/types/sdk.d.ts +0 -23
- package/dist/lib/types/sdk.js +0 -9
- package/dist/lib/types/server.d.ts +0 -1192
- package/dist/lib/types/server.js +0 -68
- package/dist/lib/types/service.d.ts +0 -79
- package/dist/lib/types/service.js +0 -6
- package/dist/lib/types/skills.d.ts +0 -427
- package/dist/lib/types/skills.js +0 -17
- package/dist/lib/types/span.d.ts +0 -247
- package/dist/lib/types/span.js +0 -96
- package/dist/lib/types/stream.d.ts +0 -771
- package/dist/lib/types/stream.js +0 -2
- package/dist/lib/types/streamDedup.d.ts +0 -14
- package/dist/lib/types/streamDedup.js +0 -2
- package/dist/lib/types/streaming.d.ts +0 -15
- package/dist/lib/types/streaming.js +0 -2
- package/dist/lib/types/stt.d.ts +0 -585
- package/dist/lib/types/stt.js +0 -90
- package/dist/lib/types/subscription.d.ts +0 -1064
- package/dist/lib/types/subscription.js +0 -10
- package/dist/lib/types/task.d.ts +0 -313
- package/dist/lib/types/task.js +0 -37
- package/dist/lib/types/taskClassification.d.ts +0 -52
- package/dist/lib/types/taskClassification.js +0 -6
- package/dist/lib/types/toolDedup.d.ts +0 -45
- package/dist/lib/types/toolDedup.js +0 -14
- package/dist/lib/types/toolResolution.d.ts +0 -83
- package/dist/lib/types/toolResolution.js +0 -11
- package/dist/lib/types/toolRouting.d.ts +0 -350
- package/dist/lib/types/toolRouting.js +0 -19
- package/dist/lib/types/tools.d.ts +0 -531
- package/dist/lib/types/tools.js +0 -26
- package/dist/lib/types/tts.d.ts +0 -195
- package/dist/lib/types/tts.js +0 -65
- package/dist/lib/types/utilities.d.ts +0 -310
- package/dist/lib/types/utilities.js +0 -5
- package/dist/lib/types/vectorStoreChroma.d.ts +0 -67
- package/dist/lib/types/vectorStoreChroma.js +0 -12
- package/dist/lib/types/vectorStorePinecone.d.ts +0 -48
- package/dist/lib/types/vectorStorePinecone.js +0 -12
- package/dist/lib/types/video.d.ts +0 -89
- package/dist/lib/types/video.js +0 -15
- package/dist/lib/types/voice.d.ts +0 -272
- package/dist/lib/types/voice.js +0 -137
- package/dist/lib/types/workflow.d.ts +0 -598
- package/dist/lib/types/workflow.js +0 -24
- package/dist/lib/utils/analyticsUtils.d.ts +0 -37
- package/dist/lib/utils/analyticsUtils.js +0 -110
- package/dist/lib/utils/anthropicCacheBreakpoints.d.ts +0 -43
- package/dist/lib/utils/anthropicCacheBreakpoints.js +0 -151
- package/dist/lib/utils/anthropicTraceSanitizer.d.ts +0 -7
- package/dist/lib/utils/anthropicTraceSanitizer.js +0 -26
- package/dist/lib/utils/async/delay.d.ts +0 -40
- package/dist/lib/utils/async/delay.js +0 -43
- package/dist/lib/utils/async/index.d.ts +0 -23
- package/dist/lib/utils/async/index.js +0 -24
- package/dist/lib/utils/async/retry.d.ts +0 -107
- package/dist/lib/utils/async/retry.js +0 -172
- package/dist/lib/utils/async/withTimeout.d.ts +0 -85
- package/dist/lib/utils/async/withTimeout.js +0 -144
- package/dist/lib/utils/asyncMutex.d.ts +0 -14
- package/dist/lib/utils/asyncMutex.js +0 -61
- package/dist/lib/utils/audioFormatDetector.d.ts +0 -15
- package/dist/lib/utils/audioFormatDetector.js +0 -34
- package/dist/lib/utils/avatarProcessor.d.ts +0 -78
- package/dist/lib/utils/avatarProcessor.js +0 -173
- package/dist/lib/utils/cloneOptions.d.ts +0 -36
- package/dist/lib/utils/cloneOptions.js +0 -62
- package/dist/lib/utils/conversationMemory.d.ts +0 -80
- package/dist/lib/utils/conversationMemory.js +0 -670
- package/dist/lib/utils/csvProcessor.d.ts +0 -221
- package/dist/lib/utils/csvProcessor.js +0 -1527
- package/dist/lib/utils/csvUtils.d.ts +0 -26
- package/dist/lib/utils/csvUtils.js +0 -85
- package/dist/lib/utils/errorClassifier.d.ts +0 -30
- package/dist/lib/utils/errorClassifier.js +0 -183
- package/dist/lib/utils/errorHandling.d.ts +0 -398
- package/dist/lib/utils/errorHandling.js +0 -1282
- package/dist/lib/utils/evaluationUtils.d.ts +0 -27
- package/dist/lib/utils/evaluationUtils.js +0 -132
- package/dist/lib/utils/factoryProcessing.d.ts +0 -71
- package/dist/lib/utils/factoryProcessing.js +0 -590
- package/dist/lib/utils/fileDetector.d.ts +0 -198
- package/dist/lib/utils/fileDetector.js +0 -2806
- package/dist/lib/utils/generation.d.ts +0 -8
- package/dist/lib/utils/generation.js +0 -9
- package/dist/lib/utils/generationErrors.d.ts +0 -10
- package/dist/lib/utils/generationErrors.js +0 -11
- package/dist/lib/utils/imageCache.d.ts +0 -124
- package/dist/lib/utils/imageCache.js +0 -437
- package/dist/lib/utils/imageDetection.d.ts +0 -15
- package/dist/lib/utils/imageDetection.js +0 -53
- package/dist/lib/utils/imageProcessor.d.ts +0 -296
- package/dist/lib/utils/imageProcessor.js +0 -1158
- package/dist/lib/utils/isoBmff.d.ts +0 -24
- package/dist/lib/utils/isoBmff.js +0 -83
- package/dist/lib/utils/json/coerce.d.ts +0 -30
- package/dist/lib/utils/json/coerce.js +0 -412
- package/dist/lib/utils/json/extract.d.ts +0 -112
- package/dist/lib/utils/json/extract.js +0 -299
- package/dist/lib/utils/json/index.d.ts +0 -36
- package/dist/lib/utils/json/index.js +0 -37
- package/dist/lib/utils/json/safeParse.d.ts +0 -130
- package/dist/lib/utils/json/safeParse.js +0 -191
- package/dist/lib/utils/lifecycleCallbacks.d.ts +0 -56
- package/dist/lib/utils/lifecycleCallbacks.js +0 -100
- package/dist/lib/utils/lifecycleTimeout.d.ts +0 -25
- package/dist/lib/utils/lifecycleTimeout.js +0 -39
- package/dist/lib/utils/logSanitize.d.ts +0 -285
- package/dist/lib/utils/logSanitize.js +0 -555
- package/dist/lib/utils/logger.d.ts +0 -273
- package/dist/lib/utils/logger.js +0 -516
- package/dist/lib/utils/loggingFetch.d.ts +0 -29
- package/dist/lib/utils/loggingFetch.js +0 -60
- package/dist/lib/utils/loopUtils.d.ts +0 -70
- package/dist/lib/utils/loopUtils.js +0 -263
- package/dist/lib/utils/markupSniff.d.ts +0 -37
- package/dist/lib/utils/markupSniff.js +0 -125
- package/dist/lib/utils/mcpDefaults.d.ts +0 -54
- package/dist/lib/utils/mcpDefaults.js +0 -135
- package/dist/lib/utils/mcpErrorText.d.ts +0 -37
- package/dist/lib/utils/mcpErrorText.js +0 -95
- package/dist/lib/utils/mediaDuration.d.ts +0 -23
- package/dist/lib/utils/mediaDuration.js +0 -45
- package/dist/lib/utils/messageBuilder.d.ts +0 -59
- package/dist/lib/utils/messageBuilder.js +0 -2716
- package/dist/lib/utils/mimeTypeHints.d.ts +0 -40
- package/dist/lib/utils/mimeTypeHints.js +0 -122
- package/dist/lib/utils/modelAliasResolver.d.ts +0 -17
- package/dist/lib/utils/modelAliasResolver.js +0 -55
- package/dist/lib/utils/modelChoices.d.ts +0 -75
- package/dist/lib/utils/modelChoices.js +0 -698
- package/dist/lib/utils/modelDetection.d.ts +0 -37
- package/dist/lib/utils/modelDetection.js +0 -131
- package/dist/lib/utils/modelRouter.d.ts +0 -91
- package/dist/lib/utils/modelRouter.js +0 -293
- package/dist/lib/utils/multimodalOptionsBuilder.d.ts +0 -74
- package/dist/lib/utils/multimodalOptionsBuilder.js +0 -74
- package/dist/lib/utils/musicProcessor.d.ts +0 -77
- package/dist/lib/utils/musicProcessor.js +0 -190
- package/dist/lib/utils/noOutputSentinel.d.ts +0 -67
- package/dist/lib/utils/noOutputSentinel.js +0 -180
- package/dist/lib/utils/observabilityHelpers.d.ts +0 -27
- package/dist/lib/utils/observabilityHelpers.js +0 -48
- package/dist/lib/utils/optionsConversion.d.ts +0 -47
- package/dist/lib/utils/optionsConversion.js +0 -128
- package/dist/lib/utils/optionsUtils.d.ts +0 -175
- package/dist/lib/utils/optionsUtils.js +0 -970
- package/dist/lib/utils/parameterValidation.d.ts +0 -200
- package/dist/lib/utils/parameterValidation.js +0 -981
- package/dist/lib/utils/pdfProcessor.d.ts +0 -137
- package/dist/lib/utils/pdfProcessor.js +0 -689
- package/dist/lib/utils/performance.d.ts +0 -93
- package/dist/lib/utils/performance.js +0 -223
- package/dist/lib/utils/piiDetector.d.ts +0 -24
- package/dist/lib/utils/piiDetector.js +0 -221
- package/dist/lib/utils/pricing.d.ts +0 -26
- package/dist/lib/utils/pricing.js +0 -890
- package/dist/lib/utils/promptRedaction.d.ts +0 -22
- package/dist/lib/utils/promptRedaction.js +0 -63
- package/dist/lib/utils/providerConfig.d.ts +0 -393
- package/dist/lib/utils/providerConfig.js +0 -1363
- package/dist/lib/utils/providerErrorClassification.d.ts +0 -58
- package/dist/lib/utils/providerErrorClassification.js +0 -149
- package/dist/lib/utils/providerHealth.d.ts +0 -253
- package/dist/lib/utils/providerHealth.js +0 -1479
- package/dist/lib/utils/providerRetry.d.ts +0 -68
- package/dist/lib/utils/providerRetry.js +0 -230
- package/dist/lib/utils/providerSetupMessages.d.ts +0 -8
- package/dist/lib/utils/providerSetupMessages.js +0 -122
- package/dist/lib/utils/providerUtils.d.ts +0 -38
- package/dist/lib/utils/providerUtils.js +0 -366
- package/dist/lib/utils/rateLimiter.d.ts +0 -75
- package/dist/lib/utils/rateLimiter.js +0 -201
- package/dist/lib/utils/redis.d.ts +0 -119
- package/dist/lib/utils/redis.js +0 -530
- package/dist/lib/utils/responseValidator.d.ts +0 -21
- package/dist/lib/utils/responseValidator.js +0 -354
- package/dist/lib/utils/retryAfter.d.ts +0 -7
- package/dist/lib/utils/retryAfter.js +0 -44
- package/dist/lib/utils/retryHandler.d.ts +0 -82
- package/dist/lib/utils/retryHandler.js +0 -270
- package/dist/lib/utils/retryability.d.ts +0 -27
- package/dist/lib/utils/retryability.js +0 -45
- package/dist/lib/utils/safeFetch.d.ts +0 -26
- package/dist/lib/utils/safeFetch.js +0 -121
- package/dist/lib/utils/sanitizers/filename.d.ts +0 -116
- package/dist/lib/utils/sanitizers/filename.js +0 -366
- package/dist/lib/utils/sanitizers/html.d.ts +0 -170
- package/dist/lib/utils/sanitizers/html.js +0 -326
- package/dist/lib/utils/sanitizers/index.d.ts +0 -26
- package/dist/lib/utils/sanitizers/index.js +0 -30
- package/dist/lib/utils/sanitizers/svg.d.ts +0 -71
- package/dist/lib/utils/sanitizers/svg.js +0 -482
- package/dist/lib/utils/schemaConversion.d.ts +0 -56
- package/dist/lib/utils/schemaConversion.js +0 -656
- package/dist/lib/utils/sizeGuard.d.ts +0 -34
- package/dist/lib/utils/sizeGuard.js +0 -45
- package/dist/lib/utils/ssrfGuard.d.ts +0 -60
- package/dist/lib/utils/ssrfGuard.js +0 -446
- package/dist/lib/utils/sttProcessor.d.ts +0 -125
- package/dist/lib/utils/sttProcessor.js +0 -301
- package/dist/lib/utils/systemMessages.d.ts +0 -29
- package/dist/lib/utils/systemMessages.js +0 -45
- package/dist/lib/utils/taskClassificationUtils.d.ts +0 -55
- package/dist/lib/utils/taskClassificationUtils.js +0 -150
- package/dist/lib/utils/taskClassifier.d.ts +0 -23
- package/dist/lib/utils/taskClassifier.js +0 -95
- package/dist/lib/utils/textEncoding.d.ts +0 -25
- package/dist/lib/utils/textEncoding.js +0 -141
- package/dist/lib/utils/thinkingConfig.d.ts +0 -76
- package/dist/lib/utils/thinkingConfig.js +0 -105
- package/dist/lib/utils/timeout.d.ts +0 -158
- package/dist/lib/utils/timeout.js +0 -427
- package/dist/lib/utils/tokenEstimation.d.ts +0 -90
- package/dist/lib/utils/tokenEstimation.js +0 -187
- package/dist/lib/utils/tokenLimits.d.ts +0 -53
- package/dist/lib/utils/tokenLimits.js +0 -236
- package/dist/lib/utils/tokenUtils.d.ts +0 -101
- package/dist/lib/utils/tokenUtils.js +0 -323
- package/dist/lib/utils/tool.d.ts +0 -8
- package/dist/lib/utils/tool.js +0 -9
- package/dist/lib/utils/toolCallRepair.d.ts +0 -14
- package/dist/lib/utils/toolCallRepair.js +0 -286
- package/dist/lib/utils/toolChoice.d.ts +0 -4
- package/dist/lib/utils/toolChoice.js +0 -7
- package/dist/lib/utils/toolEndEmitter.d.ts +0 -25
- package/dist/lib/utils/toolEndEmitter.js +0 -65
- package/dist/lib/utils/toolUtils.d.ts +0 -40
- package/dist/lib/utils/toolUtils.js +0 -76
- package/dist/lib/utils/transformationUtils.d.ts +0 -218
- package/dist/lib/utils/transformationUtils.js +0 -578
- package/dist/lib/utils/tripwireEvaluator.d.ts +0 -73
- package/dist/lib/utils/tripwireEvaluator.js +0 -285
- package/dist/lib/utils/tryImport.d.ts +0 -35
- package/dist/lib/utils/tryImport.js +0 -95
- package/dist/lib/utils/ttsProcessor.d.ts +0 -159
- package/dist/lib/utils/ttsProcessor.js +0 -293
- package/dist/lib/utils/typeUtils.d.ts +0 -77
- package/dist/lib/utils/typeUtils.js +0 -98
- package/dist/lib/utils/videoAnalysisProcessor.d.ts +0 -24
- package/dist/lib/utils/videoAnalysisProcessor.js +0 -61
- package/dist/lib/utils/videoProcessor.d.ts +0 -64
- package/dist/lib/utils/videoProcessor.js +0 -196
- package/dist/lib/voice/RealtimeVoiceAPI.d.ts +0 -186
- package/dist/lib/voice/RealtimeVoiceAPI.js +0 -431
- package/dist/lib/voice/audio-utils.d.ts +0 -135
- package/dist/lib/voice/audio-utils.js +0 -435
- package/dist/lib/voice/errors.d.ts +0 -123
- package/dist/lib/voice/errors.js +0 -386
- package/dist/lib/voice/index.d.ts +0 -49
- package/dist/lib/voice/index.js +0 -177
- package/dist/lib/voice/livekit/brain.d.ts +0 -21
- package/dist/lib/voice/livekit/brain.js +0 -75
- package/dist/lib/voice/livekit/config.d.ts +0 -52
- package/dist/lib/voice/livekit/config.js +0 -134
- package/dist/lib/voice/livekit/eventBridge.d.ts +0 -27
- package/dist/lib/voice/livekit/eventBridge.js +0 -360
- package/dist/lib/voice/livekit/index.d.ts +0 -22
- package/dist/lib/voice/livekit/index.js +0 -23
- package/dist/lib/voice/livekit/realtimeEventBridge.d.ts +0 -14
- package/dist/lib/voice/livekit/realtimeEventBridge.js +0 -161
- package/dist/lib/voice/livekit/realtimeMcpTools.d.ts +0 -31
- package/dist/lib/voice/livekit/realtimeMcpTools.js +0 -206
- package/dist/lib/voice/livekit/realtimeVoiceAgent.d.ts +0 -26
- package/dist/lib/voice/livekit/realtimeVoiceAgent.js +0 -365
- package/dist/lib/voice/livekit/roomContext.d.ts +0 -23
- package/dist/lib/voice/livekit/roomContext.js +0 -57
- package/dist/lib/voice/livekit/roomDispatch.d.ts +0 -24
- package/dist/lib/voice/livekit/roomDispatch.js +0 -31
- package/dist/lib/voice/livekit/schemaSanitizer.d.ts +0 -26
- package/dist/lib/voice/livekit/schemaSanitizer.js +0 -144
- package/dist/lib/voice/livekit/tokens.d.ts +0 -19
- package/dist/lib/voice/livekit/tokens.js +0 -51
- package/dist/lib/voice/livekit/vertexAuth.d.ts +0 -30
- package/dist/lib/voice/livekit/vertexAuth.js +0 -73
- package/dist/lib/voice/livekit/voiceAgent.d.ts +0 -32
- package/dist/lib/voice/livekit/voiceAgent.js +0 -425
- package/dist/lib/voice/livekit/voiceAgentWorker.d.ts +0 -29
- package/dist/lib/voice/livekit/voiceAgentWorker.js +0 -122
- package/dist/lib/voice/providers/AzureSTT.d.ts +0 -47
- package/dist/lib/voice/providers/AzureSTT.js +0 -345
- package/dist/lib/voice/providers/AzureTTS.d.ts +0 -59
- package/dist/lib/voice/providers/AzureTTS.js +0 -349
- package/dist/lib/voice/providers/CartesiaTTS.d.ts +0 -31
- package/dist/lib/voice/providers/CartesiaTTS.js +0 -189
- package/dist/lib/voice/providers/DeepgramSTT.d.ts +0 -40
- package/dist/lib/voice/providers/DeepgramSTT.js +0 -550
- package/dist/lib/voice/providers/ElevenLabsTTS.d.ts +0 -53
- package/dist/lib/voice/providers/ElevenLabsTTS.js +0 -311
- package/dist/lib/voice/providers/FishAudioTTS.d.ts +0 -27
- package/dist/lib/voice/providers/FishAudioTTS.js +0 -183
- package/dist/lib/voice/providers/GeminiLive.d.ts +0 -52
- package/dist/lib/voice/providers/GeminiLive.js +0 -372
- package/dist/lib/voice/providers/GoogleSTT.d.ts +0 -60
- package/dist/lib/voice/providers/GoogleSTT.js +0 -454
- package/dist/lib/voice/providers/OpenAIRealtime.d.ts +0 -47
- package/dist/lib/voice/providers/OpenAIRealtime.js +0 -412
- package/dist/lib/voice/providers/OpenAISTT.d.ts +0 -41
- package/dist/lib/voice/providers/OpenAISTT.js +0 -286
- package/dist/lib/voice/providers/OpenAITTS.d.ts +0 -55
- package/dist/lib/voice/providers/OpenAITTS.js +0 -285
- package/dist/lib/voice/stream-handler.d.ts +0 -166
- package/dist/lib/voice/stream-handler.js +0 -514
- package/dist/lib/workflow/LAYER-EXAMPLES.d.ts +0 -13
- package/dist/lib/workflow/LAYER-EXAMPLES.js +0 -312
- package/dist/lib/workflow/PROMPT-EXAMPLES.d.ts +0 -117
- package/dist/lib/workflow/PROMPT-EXAMPLES.js +0 -246
- package/dist/lib/workflow/config.d.ts +0 -376
- package/dist/lib/workflow/config.js +0 -399
- package/dist/lib/workflow/core/ensembleExecutor.d.ts +0 -55
- package/dist/lib/workflow/core/ensembleExecutor.js +0 -451
- package/dist/lib/workflow/core/judgeScorer.d.ts +0 -25
- package/dist/lib/workflow/core/judgeScorer.js +0 -568
- package/dist/lib/workflow/core/responseConditioner.d.ts +0 -21
- package/dist/lib/workflow/core/responseConditioner.js +0 -243
- package/dist/lib/workflow/core/workflowRegistry.d.ts +0 -72
- package/dist/lib/workflow/core/workflowRegistry.js +0 -305
- package/dist/lib/workflow/core/workflowRunner.d.ts +0 -61
- package/dist/lib/workflow/core/workflowRunner.js +0 -642
- package/dist/lib/workflow/index.d.ts +0 -21
- package/dist/lib/workflow/index.js +0 -46
- package/dist/lib/workflow/utils/workflowMetrics.d.ts +0 -74
- package/dist/lib/workflow/utils/workflowMetrics.js +0 -312
- package/dist/lib/workflow/utils/workflowValidation.d.ts +0 -29
- package/dist/lib/workflow/utils/workflowValidation.js +0 -421
- package/dist/lib/workflow/workflows/adaptiveWorkflow.d.ts +0 -72
- package/dist/lib/workflow/workflows/adaptiveWorkflow.js +0 -367
- package/dist/lib/workflow/workflows/consensusWorkflow.d.ts +0 -69
- package/dist/lib/workflow/workflows/consensusWorkflow.js +0 -193
- package/dist/lib/workflow/workflows/fallbackWorkflow.d.ts +0 -49
- package/dist/lib/workflow/workflows/fallbackWorkflow.js +0 -226
- package/dist/lib/workflow/workflows/multiJudgeWorkflow.d.ts +0 -70
- package/dist/lib/workflow/workflows/multiJudgeWorkflow.js +0 -352
- package/dist/providers/googleVertex/utils.d.ts +0 -12
- package/dist/providers/googleVertex/utils.js +0 -286
|
@@ -1,1520 +0,0 @@
|
|
|
1
|
-
import type { AIProviderName } from "../constants/enums.js";
|
|
2
|
-
import type { RAGConfig } from "./rag.js";
|
|
3
|
-
import type { KnowledgeGroundingMetadata, KnowledgeRequestScope } from "./knowledge.js";
|
|
4
|
-
import type { SkillsCallOptions } from "./skills.js";
|
|
5
|
-
import type { AnalyticsData, TokenUsage } from "./analytics.js";
|
|
6
|
-
import type { ClaudeLimitSnapshot } from "./subscription.js";
|
|
7
|
-
import type { JsonValue } from "./common.js";
|
|
8
|
-
import type { Content, ImageWithAltText } from "./content.js";
|
|
9
|
-
import type { ChatMessage, ConversationMemoryConfig } from "./conversation.js";
|
|
10
|
-
import type { EvaluationData } from "./evaluation.js";
|
|
11
|
-
import type { MiddlewareFactoryOptions, OnFinishCallback, OnErrorCallback } from "./middleware.js";
|
|
12
|
-
import type { DirectorModeOptions, DirectorSegment, VideoGenerationResult, VideoOutputOptions } from "./multimodal.js";
|
|
13
|
-
import type { PPTGenerationResult, PPTOutputOptions } from "./ppt.js";
|
|
14
|
-
import type { TTSOptions, TTSResult } from "./tts.js";
|
|
15
|
-
import type { STTOptions, STTResult } from "./stt.js";
|
|
16
|
-
import type { AvatarOptions, AvatarResult } from "./avatar.js";
|
|
17
|
-
import type { MusicOptions, MusicResult } from "./music.js";
|
|
18
|
-
import type { StandardRecord, ValidationSchema, ZodUnknownSchema } from "./aliases.js";
|
|
19
|
-
import type { NeurolinkCredentials } from "./providers.js";
|
|
20
|
-
import type { CSVProcessorOptions, FileWithMetadata, MultimodalAudioEntry } from "./file.js";
|
|
21
|
-
import type { WorkflowConfig } from "./workflow.js";
|
|
22
|
-
import type { Schema, Tool, ToolChoice } from "./tools.js";
|
|
23
|
-
import type { StepResult, LanguageModel } from "./providers.js";
|
|
24
|
-
import type { ProcessorPipelineConfig } from "./ioProcessor.js";
|
|
25
|
-
/**
|
|
26
|
-
* Generate function options type - Primary method for content generation
|
|
27
|
-
* Supports multimodal content while maintaining backward compatibility
|
|
28
|
-
*/
|
|
29
|
-
export type GenerateOptions = {
|
|
30
|
-
/**
|
|
31
|
-
* Input content for generation. Optional for media-only modes (avatar, music,
|
|
32
|
-
* video) where all configuration lives in `output`; the SDK synthesises an
|
|
33
|
-
* empty `input` automatically when this field is omitted.
|
|
34
|
-
*/
|
|
35
|
-
input?: {
|
|
36
|
-
/** Prompt text. Optional for media-only modes (avatar, music) that are driven by uploaded files rather than a prompt. */
|
|
37
|
-
text?: string;
|
|
38
|
-
/**
|
|
39
|
-
* Images to include in the request.
|
|
40
|
-
* Supports simple image data (Buffer, string) or objects with alt text for accessibility.
|
|
41
|
-
*
|
|
42
|
-
* @example Simple usage
|
|
43
|
-
* ```typescript
|
|
44
|
-
* images: [imageBuffer, "https://example.com/image.jpg"]
|
|
45
|
-
* ```
|
|
46
|
-
*
|
|
47
|
-
* @example With alt text for accessibility
|
|
48
|
-
* ```typescript
|
|
49
|
-
* images: [
|
|
50
|
-
* { data: imageBuffer, altText: "Product screenshot showing main dashboard" },
|
|
51
|
-
* { data: "https://example.com/chart.png", altText: "Sales chart for Q3 2024" }
|
|
52
|
-
* ]
|
|
53
|
-
* ```
|
|
54
|
-
*/
|
|
55
|
-
images?: Array<Buffer | string | ImageWithAltText>;
|
|
56
|
-
csvFiles?: Array<Buffer | string>;
|
|
57
|
-
pdfFiles?: Array<Buffer | string>;
|
|
58
|
-
audioFiles?: Array<Buffer | string>;
|
|
59
|
-
/**
|
|
60
|
-
* Audio whose bytes should be delivered to the provider, populated during
|
|
61
|
-
* detection rather than by callers.
|
|
62
|
-
*
|
|
63
|
-
* Separate from `audioFiles` above, which is the caller-facing input that
|
|
64
|
-
* yields a metadata summary. This one carries the decoded bytes forward so
|
|
65
|
-
* a provider that can actually listen receives the audio instead of a
|
|
66
|
-
* description of it; providers that cannot fall back to the summary and
|
|
67
|
-
* this is ignored.
|
|
68
|
-
*/
|
|
69
|
-
nativeAudioFiles?: MultimodalAudioEntry[];
|
|
70
|
-
videoFiles?: Array<Buffer | string>;
|
|
71
|
-
files?: Array<Buffer | string | FileWithMetadata>;
|
|
72
|
-
content?: Content[];
|
|
73
|
-
/**
|
|
74
|
-
* Director Mode segments. When provided, Director Mode is activated automatically.
|
|
75
|
-
* Each segment contains its own prompt and image.
|
|
76
|
-
* Must contain 2-10 segments.
|
|
77
|
-
*/
|
|
78
|
-
segments?: DirectorSegment[];
|
|
79
|
-
};
|
|
80
|
-
/**
|
|
81
|
-
* Output configuration options
|
|
82
|
-
*
|
|
83
|
-
* @example Text output (default)
|
|
84
|
-
* ```typescript
|
|
85
|
-
* output: { format: "text" }
|
|
86
|
-
* ```
|
|
87
|
-
*
|
|
88
|
-
* @example Video generation with Veo 3.1
|
|
89
|
-
* ```typescript
|
|
90
|
-
* output: {
|
|
91
|
-
* mode: "video",
|
|
92
|
-
* video: {
|
|
93
|
-
* resolution: "1080p",
|
|
94
|
-
* length: 8,
|
|
95
|
-
* aspectRatio: "16:9",
|
|
96
|
-
* audio: true
|
|
97
|
-
* }
|
|
98
|
-
* }
|
|
99
|
-
* ```
|
|
100
|
-
*/
|
|
101
|
-
output?: {
|
|
102
|
-
/** Output format for text generation */
|
|
103
|
-
format?: "text" | "structured" | "json";
|
|
104
|
-
/**
|
|
105
|
-
* Output mode - determines the type of content generated
|
|
106
|
-
* - "text": Standard text generation (default)
|
|
107
|
-
* - "video": Video generation using models like Veo 3.1
|
|
108
|
-
* - "ppt": PowerPoint presentation generation
|
|
109
|
-
* - "avatar": Talking-head / lip-sync video (D-ID, HeyGen, Replicate-MuseTalk)
|
|
110
|
-
* - "music": Music / sound generation (Beatoven, ElevenLabs Music, Lyria, Replicate)
|
|
111
|
-
*/
|
|
112
|
-
mode?: "text" | "video" | "ppt" | "avatar" | "music";
|
|
113
|
-
/**
|
|
114
|
-
* Video generation configuration (used when mode is "video")
|
|
115
|
-
* Requires an input image and text prompt
|
|
116
|
-
*/
|
|
117
|
-
video?: VideoOutputOptions;
|
|
118
|
-
/**
|
|
119
|
-
* PowerPoint generation configuration (used when mode is "ppt")
|
|
120
|
-
* Generates slides based on text prompt
|
|
121
|
-
*/
|
|
122
|
-
ppt?: PPTOutputOptions;
|
|
123
|
-
/**
|
|
124
|
-
* Director Mode configuration (only used when input.segments is provided)
|
|
125
|
-
* Controls transition prompts, durations, and concurrency.
|
|
126
|
-
*/
|
|
127
|
-
director?: DirectorModeOptions;
|
|
128
|
-
/**
|
|
129
|
-
* Avatar generation configuration (used when mode is "avatar")
|
|
130
|
-
* Combines a portrait image with audio (or text via TTS) to produce
|
|
131
|
-
* a lip-synced talking-head video.
|
|
132
|
-
*/
|
|
133
|
-
avatar?: AvatarOptions;
|
|
134
|
-
/**
|
|
135
|
-
* Music generation configuration (used when mode is "music")
|
|
136
|
-
* Generates music / sound from a text prompt.
|
|
137
|
-
*/
|
|
138
|
-
music?: MusicOptions;
|
|
139
|
-
};
|
|
140
|
-
csvOptions?: CSVProcessorOptions;
|
|
141
|
-
/** PDF processing options (#258). */
|
|
142
|
-
pdfOptions?: {
|
|
143
|
-
/** Password for an encrypted PDF (image-conversion fallback path). */
|
|
144
|
-
password?: string;
|
|
145
|
-
/** Max rendered-canvas pixels per page (#260 memory guard); oversized pages auto-downscale. */
|
|
146
|
-
maxCanvasPixels?: number;
|
|
147
|
-
/**
|
|
148
|
-
* Render scale for the image fallback used by providers without native PDF
|
|
149
|
-
* support (#297). Higher is sharper but costs roughly the square in memory
|
|
150
|
-
* and tokens. Range 0.1-10; defaults to PDF_LIMITS.DEFAULT_SCALE (1.5).
|
|
151
|
-
*/
|
|
152
|
-
scale?: number;
|
|
153
|
-
/**
|
|
154
|
-
* Max pages converted by the image fallback (#297). Pages beyond this are
|
|
155
|
-
* not sent to the model at all. Defaults to PDF_LIMITS.DEFAULT_MAX_PAGES (20).
|
|
156
|
-
*/
|
|
157
|
-
maxPages?: number;
|
|
158
|
-
};
|
|
159
|
-
videoOptions?: {
|
|
160
|
-
/** Frames to extract. Unset lets VideoProcessor pick from the clip's duration; clamped to 100. */
|
|
161
|
-
frames?: number;
|
|
162
|
-
/** Frame encoder quality, clamped to 1-100. Default 80. */
|
|
163
|
-
quality?: number;
|
|
164
|
-
/** Frame encoding. Default jpeg. */
|
|
165
|
-
format?: "jpeg" | "png";
|
|
166
|
-
/** Not implemented yet (#433) — warns rather than silently doing nothing. */
|
|
167
|
-
transcribeAudio?: boolean;
|
|
168
|
-
};
|
|
169
|
-
/**
|
|
170
|
-
* Text-to-Speech (TTS) configuration
|
|
171
|
-
*
|
|
172
|
-
* Enable audio generation from the text response. The generated audio will be
|
|
173
|
-
* returned in the result's `audio` field as a TTSResult object.
|
|
174
|
-
*
|
|
175
|
-
* @example Basic TTS
|
|
176
|
-
* ```typescript
|
|
177
|
-
* const result = await neurolink.generate({
|
|
178
|
-
* input: { text: "Tell me a story" },
|
|
179
|
-
* provider: "google-ai",
|
|
180
|
-
* tts: { enabled: true, voice: "en-US-Neural2-C" }
|
|
181
|
-
* });
|
|
182
|
-
* console.log(result.audio?.buffer); // Audio Buffer
|
|
183
|
-
* ```
|
|
184
|
-
*
|
|
185
|
-
* @example Advanced TTS with options
|
|
186
|
-
* ```typescript
|
|
187
|
-
* const result = await neurolink.generate({
|
|
188
|
-
* input: { text: "Speak slowly and clearly" },
|
|
189
|
-
* provider: "google-ai",
|
|
190
|
-
* tts: {
|
|
191
|
-
* enabled: true,
|
|
192
|
-
* voice: "en-US-Neural2-D",
|
|
193
|
-
* speed: 0.8,
|
|
194
|
-
* pitch: 2.0,
|
|
195
|
-
* format: "mp3",
|
|
196
|
-
* quality: "standard"
|
|
197
|
-
* }
|
|
198
|
-
* });
|
|
199
|
-
* ```
|
|
200
|
-
*/
|
|
201
|
-
tts?: TTSOptions;
|
|
202
|
-
/**
|
|
203
|
-
* Speech-to-Text (STT) configuration
|
|
204
|
-
*
|
|
205
|
-
* Enable audio transcription. When enabled, the audio provided via `stt.audio`
|
|
206
|
-
* will be transcribed to text and used as the prompt.
|
|
207
|
-
*
|
|
208
|
-
* @example
|
|
209
|
-
* ```typescript
|
|
210
|
-
* const neurolink = new NeuroLink();
|
|
211
|
-
* const result = await neurolink.generate({
|
|
212
|
-
* input: { text: "" },
|
|
213
|
-
* provider: "openai",
|
|
214
|
-
* stt: { enabled: true, provider: "whisper", language: "en-US", audio: audioBuffer }
|
|
215
|
-
* });
|
|
216
|
-
* // STT transcribes the audio, result.transcription contains the transcription
|
|
217
|
-
* ```
|
|
218
|
-
*/
|
|
219
|
-
stt?: STTOptions & {
|
|
220
|
-
provider?: string;
|
|
221
|
-
audio?: Buffer | ArrayBuffer;
|
|
222
|
-
};
|
|
223
|
-
/**
|
|
224
|
-
* Thinking/reasoning configuration for extended thinking models
|
|
225
|
-
*
|
|
226
|
-
* Enables extended thinking capabilities for supported models.
|
|
227
|
-
*
|
|
228
|
-
* **Gemini 3 Models** (gemini-3.1-pro-preview, gemini-3-flash-preview):
|
|
229
|
-
* Use `thinkingLevel` to control reasoning depth:
|
|
230
|
-
* - `minimal` - Near-zero thinking (Flash only)
|
|
231
|
-
* - `low` - Fast reasoning for simple tasks
|
|
232
|
-
* - `medium` - Balanced reasoning/latency
|
|
233
|
-
* - `high` - Maximum reasoning depth (default for Pro)
|
|
234
|
-
*
|
|
235
|
-
* **Anthropic Claude** (claude-3-7-sonnet, etc.):
|
|
236
|
-
* Use `budgetTokens` to set token budget for thinking.
|
|
237
|
-
*
|
|
238
|
-
* @example Gemini 3 with thinking level
|
|
239
|
-
* ```typescript
|
|
240
|
-
* const result = await neurolink.generate({
|
|
241
|
-
* input: { text: "Solve this complex problem..." },
|
|
242
|
-
* provider: "google-ai",
|
|
243
|
-
* model: "gemini-3.1-pro-preview",
|
|
244
|
-
* thinkingConfig: {
|
|
245
|
-
* thinkingLevel: "high"
|
|
246
|
-
* }
|
|
247
|
-
* });
|
|
248
|
-
* ```
|
|
249
|
-
*
|
|
250
|
-
* @example Anthropic with budget tokens
|
|
251
|
-
* ```typescript
|
|
252
|
-
* const result = await neurolink.generate({
|
|
253
|
-
* input: { text: "Solve this complex math problem..." },
|
|
254
|
-
* provider: "anthropic",
|
|
255
|
-
* model: "claude-3-7-sonnet-20250219",
|
|
256
|
-
* thinkingConfig: {
|
|
257
|
-
* enabled: true,
|
|
258
|
-
* budgetTokens: 10000
|
|
259
|
-
* }
|
|
260
|
-
* });
|
|
261
|
-
* ```
|
|
262
|
-
*/
|
|
263
|
-
thinkingConfig?: {
|
|
264
|
-
enabled?: boolean;
|
|
265
|
-
type?: "enabled" | "disabled";
|
|
266
|
-
/** Token budget for thinking (Anthropic models) */
|
|
267
|
-
budgetTokens?: number;
|
|
268
|
-
/** Thinking level for Gemini 3 models: minimal, low, medium, high */
|
|
269
|
-
thinkingLevel?: "minimal" | "low" | "medium" | "high";
|
|
270
|
-
};
|
|
271
|
-
provider?: AIProviderName | string;
|
|
272
|
-
model?: string;
|
|
273
|
-
region?: string;
|
|
274
|
-
temperature?: number;
|
|
275
|
-
maxTokens?: number;
|
|
276
|
-
/** Top-p (nucleus) sampling parameter. Controls diversity of generated tokens. */
|
|
277
|
-
topP?: number;
|
|
278
|
-
/** Top-k sampling parameter. Limits the number of tokens considered. (Google/Gemini models only) */
|
|
279
|
-
topK?: number;
|
|
280
|
-
/** Stop sequences that will halt generation when encountered. */
|
|
281
|
-
stopSequences?: string[];
|
|
282
|
-
systemPrompt?: string;
|
|
283
|
-
/**
|
|
284
|
-
* Zod schema for structured output validation
|
|
285
|
-
*
|
|
286
|
-
* @important Google GEMINI limitation (Gemini models only)
|
|
287
|
-
* Gemini models (Google AI Studio, and Vertex GEMINI models) cannot combine
|
|
288
|
-
* function calling with schema-enforced structured output — a Gemini API
|
|
289
|
-
* limitation ("Function calling with a response mime type:
|
|
290
|
-
* 'application/json' is unsupported"). Vertex CLAUDE models and all other
|
|
291
|
-
* providers support tools + schema simultaneously.
|
|
292
|
-
*
|
|
293
|
-
* You do NOT need to set `disableTools` yourself: when the combination is
|
|
294
|
-
* impossible, NeuroLink automatically falls back to text-mode JSON coercion
|
|
295
|
-
* (see `coerceJsonToSchema`), and `disableTools: true` remains available as
|
|
296
|
-
* an explicit override.
|
|
297
|
-
*
|
|
298
|
-
* On the native Anthropic Messages surface (provider "anthropic", including
|
|
299
|
-
* via a proxy) tools + schema are honored through an internal `final_result`
|
|
300
|
-
* tool the model calls with the structured answer — invisible to callers: it
|
|
301
|
-
* never appears in `toolCalls` / `toolExecutions`.
|
|
302
|
-
*
|
|
303
|
-
* @example
|
|
304
|
-
* ```typescript
|
|
305
|
-
* // ✅ Vertex + Claude: tools AND schema together are fully supported
|
|
306
|
-
* const result = await neurolink.generate({
|
|
307
|
-
* schema: MySchema,
|
|
308
|
-
* provider: "vertex",
|
|
309
|
-
* model: "claude-sonnet-4-6",
|
|
310
|
-
* });
|
|
311
|
-
*
|
|
312
|
-
* // ✅ Direct Anthropic + tools: schema honored via the final_result tool
|
|
313
|
-
* const result = await neurolink.generate({
|
|
314
|
-
* schema: MySchema,
|
|
315
|
-
* provider: "anthropic",
|
|
316
|
-
* });
|
|
317
|
-
*
|
|
318
|
-
* // ✅ Gemini + tools: SDK auto-falls back to coerced text-mode JSON
|
|
319
|
-
* const result = await neurolink.generate({
|
|
320
|
-
* schema: MySchema,
|
|
321
|
-
* provider: "google-ai",
|
|
322
|
-
* model: "gemini-2.5-pro",
|
|
323
|
-
* });
|
|
324
|
-
* ```
|
|
325
|
-
*
|
|
326
|
-
* @see https://ai.google.dev/gemini-api/docs/function-calling
|
|
327
|
-
*/
|
|
328
|
-
schema?: ValidationSchema;
|
|
329
|
-
tools?: Record<string, Tool>;
|
|
330
|
-
/**
|
|
331
|
-
* Filter available tools by name.
|
|
332
|
-
* Only tools with names in this array will be made available.
|
|
333
|
-
* Used by dynamic arguments to dynamically select which tools to enable.
|
|
334
|
-
*
|
|
335
|
-
* @example
|
|
336
|
-
* ```typescript
|
|
337
|
-
* await neurolink.generate({
|
|
338
|
-
* input: { text: "Search for information" },
|
|
339
|
-
* enabledToolNames: ["websearchGrounding", "readFile"]
|
|
340
|
-
* });
|
|
341
|
-
* ```
|
|
342
|
-
*/
|
|
343
|
-
enabledToolNames?: string[];
|
|
344
|
-
/**
|
|
345
|
-
* Request timeout (e.g. 30000, '30s', '2m').
|
|
346
|
-
*
|
|
347
|
-
* PER-STEP semantics in agentic loops: on providers that run a native
|
|
348
|
-
* multi-step tool loop (Vertex Gemini / Vertex Claude), this bounds EACH
|
|
349
|
-
* model call in the loop, not the whole turn — a tool-heavy turn may run
|
|
350
|
-
* far longer than this value in total. Size it for the slowest single
|
|
351
|
-
* step (default 300s), and use `abortSignal` for a total-turn deadline.
|
|
352
|
-
*
|
|
353
|
-
* When set explicitly, a step timeout is surfaced immediately instead of
|
|
354
|
-
* burning internal retries/fallbacks that would re-run the same
|
|
355
|
-
* provider+model with the same doomed budget.
|
|
356
|
-
*/
|
|
357
|
-
timeout?: number | string;
|
|
358
|
-
/**
|
|
359
|
-
* Hard wall-clock cap for the WHOLE agentic turn (all model calls + tool
|
|
360
|
-
* executions), in milliseconds. When the deadline passes the turn ends
|
|
361
|
-
* gracefully with `stopReason: "time-limit"` and an honest time message —
|
|
362
|
-
* never the step-cap text. Unset = no turn-level deadline (the library
|
|
363
|
-
* imposes no product policy).
|
|
364
|
-
*
|
|
365
|
-
* Enforced by the native Vertex loops (Gemini + Claude) AND the AI-SDK
|
|
366
|
-
* loop path (litellm and other OpenAI-compatible providers). On the AI-SDK
|
|
367
|
-
* path, an explicit `timeout` also engages the same wrap-up when
|
|
368
|
-
* `turnTimeoutMs` is unset. Once the wrap-up window begins (see
|
|
369
|
-
* `wrapupTimeLeadMs`), the loop forcibly sets `toolChoice: "none"` for the
|
|
370
|
-
* remaining steps — overriding any caller-supplied `toolChoice` or
|
|
371
|
-
* `prepareStep` tool selection — and appends an honest time message that a
|
|
372
|
-
* caller's `prepareStep` callback does not observe (it runs before the
|
|
373
|
-
* wrap-up nudge is applied). An honest partial beats a discarded turn.
|
|
374
|
-
*/
|
|
375
|
-
turnTimeoutMs?: number;
|
|
376
|
-
/**
|
|
377
|
-
* Maximum time with NO progress — no stream chunk received, no tool
|
|
378
|
-
* execution started or finished, no step started — before the turn ends
|
|
379
|
-
* with `stopReason: "stalled"`. Catches wedged tools and hung model calls
|
|
380
|
-
* that a whole-turn deadline would let run to the bitter end.
|
|
381
|
-
* Unset = disabled.
|
|
382
|
-
*/
|
|
383
|
-
stallTimeoutMs?: number;
|
|
384
|
-
/**
|
|
385
|
-
* When the remaining turn time drops below this, a wrap-up nudge rides the
|
|
386
|
-
* next tool-result turn telling the model to consolidate what it has and
|
|
387
|
-
* produce its final answer. Defaults to 120_000 when `turnTimeoutMs` is
|
|
388
|
-
* set; ignored when it is not.
|
|
389
|
-
*
|
|
390
|
-
* On the AI-SDK loop path the lead is clamped to a quarter of the turn
|
|
391
|
-
* budget (so short budgets don't wrap up on step one) and wrap-up steps
|
|
392
|
-
* run with a forced `toolChoice: "none"` — see `turnTimeoutMs` for the
|
|
393
|
-
* exact override semantics.
|
|
394
|
-
*/
|
|
395
|
-
wrapupTimeLeadMs?: number;
|
|
396
|
-
/**
|
|
397
|
-
* Per-tool-execution timeout in milliseconds (default 300_000). A tool
|
|
398
|
-
* that exceeds it fails with an error tool_result and costs one step —
|
|
399
|
-
* the turn continues instead of hanging on a wedged tool.
|
|
400
|
-
*/
|
|
401
|
-
toolTimeoutMs?: number;
|
|
402
|
-
/** AbortSignal for external cancellation of the AI call */
|
|
403
|
-
abortSignal?: AbortSignal;
|
|
404
|
-
/**
|
|
405
|
-
* Bounds for the per-call tool execution records surfaced on
|
|
406
|
-
* `GenerateResult.toolExecutions`. Capture is on by default
|
|
407
|
-
* (maxResultChars 8192, maxRecords 500); pass larger caps when the caller
|
|
408
|
-
* needs full result texts.
|
|
409
|
-
*/
|
|
410
|
-
toolExecutionCapture?: ToolExecutionCaptureOptions;
|
|
411
|
-
/** Disable the schema-driven tool call repair mechanism (BZ-665). Default: false (repair enabled). */
|
|
412
|
-
disableToolCallRepair?: boolean;
|
|
413
|
-
/**
|
|
414
|
-
* Disable tool execution (including built-in tools)
|
|
415
|
-
*
|
|
416
|
-
* Optional with schemas: the tools↔schema exclusion applies only to Google
|
|
417
|
-
* GEMINI models (Google AI Studio / Vertex Gemini — a Gemini API
|
|
418
|
-
* limitation), and NeuroLink handles it automatically by falling back to
|
|
419
|
-
* text-mode JSON coercion. Vertex CLAUDE models support tools + schema
|
|
420
|
-
* together. Set this only when you explicitly want a tool-free call.
|
|
421
|
-
*
|
|
422
|
-
* @example
|
|
423
|
-
* ```typescript
|
|
424
|
-
* // Explicit override: schema-only call with no tools at all
|
|
425
|
-
* await neurolink.generate({
|
|
426
|
-
* schema: MySchema,
|
|
427
|
-
* provider: "google-ai",
|
|
428
|
-
* disableTools: true
|
|
429
|
-
* });
|
|
430
|
-
* ```
|
|
431
|
-
*/
|
|
432
|
-
disableTools?: boolean;
|
|
433
|
-
/** Include only these tools by name (whitelist). If set, only matching tools are available. */
|
|
434
|
-
toolFilter?: string[];
|
|
435
|
-
/** Exclude these tools by name (blacklist). Applied after toolFilter. */
|
|
436
|
-
excludeTools?: string[];
|
|
437
|
-
/**
|
|
438
|
-
* Skip injecting tool schemas into the system prompt.
|
|
439
|
-
* When true, tools are ONLY passed natively via the provider's `tools` parameter,
|
|
440
|
-
* avoiding duplicate tool definitions (~30K tokens savings per call).
|
|
441
|
-
* Default: false (backward compatible — tool schemas are injected into system prompt).
|
|
442
|
-
*/
|
|
443
|
-
skipToolPromptInjection?: boolean;
|
|
444
|
-
/** Disable tool result caching for this request (overrides global mcp.cache.enabled) */
|
|
445
|
-
disableToolCache?: boolean;
|
|
446
|
-
/** Maximum number of tool execution steps (default: 200) */
|
|
447
|
-
maxSteps?: number;
|
|
448
|
-
/**
|
|
449
|
-
* Tool choice configuration for the generation.
|
|
450
|
-
* Controls whether and which tools the model must call.
|
|
451
|
-
*
|
|
452
|
-
* - `"auto"` (default): the model can choose whether and which tools to call
|
|
453
|
-
* - `"none"`: no tool calls allowed
|
|
454
|
-
* - `"required"`: the model must call at least one tool
|
|
455
|
-
* - `{ type: "tool", toolName: string }`: the model must call the specified tool
|
|
456
|
-
*
|
|
457
|
-
* Note: When used without `prepareStep`, this applies to **every step** in the
|
|
458
|
-
* `maxSteps` loop. Using `"required"` or `{ type: "tool" }` without `prepareStep`
|
|
459
|
-
* will cause infinite tool calls until `maxSteps` is exhausted.
|
|
460
|
-
*/
|
|
461
|
-
toolChoice?: ToolChoice<Record<string, Tool>>;
|
|
462
|
-
/**
|
|
463
|
-
* Optional callback that runs before each step in a multi-step generation.
|
|
464
|
-
* Allows dynamically changing `toolChoice` and available tools per step.
|
|
465
|
-
*
|
|
466
|
-
* This is the recommended way to enforce specific tool calls on certain steps
|
|
467
|
-
* while allowing the model freedom on others.
|
|
468
|
-
*
|
|
469
|
-
* Maps to Vercel AI SDK's `experimental_prepareStep`.
|
|
470
|
-
*
|
|
471
|
-
* @example Force a specific tool on step 0, then switch to auto:
|
|
472
|
-
* ```typescript
|
|
473
|
-
* prepareStep: ({ stepNumber, steps }) => {
|
|
474
|
-
* if (stepNumber === 0) {
|
|
475
|
-
* return {
|
|
476
|
-
* toolChoice: { type: 'tool', toolName: 'myTool' }
|
|
477
|
-
* };
|
|
478
|
-
* }
|
|
479
|
-
* return { toolChoice: 'auto' };
|
|
480
|
-
* }
|
|
481
|
-
* ```
|
|
482
|
-
*
|
|
483
|
-
* @see https://ai-sdk.dev/docs/reference/ai-sdk-core/generate-text#parameters
|
|
484
|
-
*/
|
|
485
|
-
prepareStep?: (options: {
|
|
486
|
-
steps: StepResult<Record<string, Tool>>[];
|
|
487
|
-
stepNumber: number;
|
|
488
|
-
maxSteps: number;
|
|
489
|
-
model: LanguageModel;
|
|
490
|
-
}) => PromiseLike<{
|
|
491
|
-
model?: LanguageModel;
|
|
492
|
-
toolChoice?: ToolChoice<Record<string, Tool>>;
|
|
493
|
-
experimental_activeTools?: string[];
|
|
494
|
-
} | undefined>;
|
|
495
|
-
enableEvaluation?: boolean;
|
|
496
|
-
enableAnalytics?: boolean;
|
|
497
|
-
context?: StandardRecord;
|
|
498
|
-
evaluationDomain?: string;
|
|
499
|
-
toolUsageContext?: string;
|
|
500
|
-
/**
|
|
501
|
-
* @deprecated Use `conversationMessages` instead. This field uses a simple `{role, content}` shape
|
|
502
|
-
* that is not consumed by `buildMessagesArray()` — messages passed here will NOT reach the AI model
|
|
503
|
-
* as proper conversation turns. `conversationMessages` uses the full `ChatMessage` type and is
|
|
504
|
-
* correctly wired through the entire generate pipeline.
|
|
505
|
-
*/
|
|
506
|
-
conversationHistory?: Array<{
|
|
507
|
-
role: string;
|
|
508
|
-
content: string;
|
|
509
|
-
}>;
|
|
510
|
-
/**
|
|
511
|
-
* Previous conversation as a ChatMessage array.
|
|
512
|
-
* Messages are injected as proper multi-turn conversation history before the current prompt,
|
|
513
|
-
* so the AI model sees them as real prior exchanges (not text dumped into the prompt).
|
|
514
|
-
* Used by task continuation mode and available to external callers.
|
|
515
|
-
*/
|
|
516
|
-
conversationMessages?: ChatMessage[];
|
|
517
|
-
factoryConfig?: {
|
|
518
|
-
domainType?: string;
|
|
519
|
-
domainConfig?: StandardRecord;
|
|
520
|
-
enhancementType?: "domain-configuration" | "streaming-optimization" | "mcp-integration" | "legacy-migration" | "context-conversion";
|
|
521
|
-
preserveLegacyFields?: boolean;
|
|
522
|
-
validateDomainData?: boolean;
|
|
523
|
-
};
|
|
524
|
-
streaming?: {
|
|
525
|
-
enabled?: boolean;
|
|
526
|
-
chunkSize?: number;
|
|
527
|
-
bufferSize?: number;
|
|
528
|
-
enableProgress?: boolean;
|
|
529
|
-
fallbackToGenerate?: boolean;
|
|
530
|
-
};
|
|
531
|
-
workflow?: string;
|
|
532
|
-
workflowConfig?: WorkflowConfig;
|
|
533
|
-
/**
|
|
534
|
-
* RAG (Retrieval-Augmented Generation) configuration.
|
|
535
|
-
*
|
|
536
|
-
* When provided, NeuroLink automatically loads the specified files, chunks them,
|
|
537
|
-
* generates embeddings, and creates a search tool that the AI model can invoke
|
|
538
|
-
* on demand to find relevant context before answering.
|
|
539
|
-
*
|
|
540
|
-
* @example Basic RAG
|
|
541
|
-
* ```typescript
|
|
542
|
-
* const result = await neurolink.generate({
|
|
543
|
-
* input: { text: "What is RAG?" },
|
|
544
|
-
* provider: "vertex",
|
|
545
|
-
* rag: {
|
|
546
|
-
* files: ["./docs/guide.md"],
|
|
547
|
-
* }
|
|
548
|
-
* });
|
|
549
|
-
* ```
|
|
550
|
-
*
|
|
551
|
-
* @example Advanced RAG with options
|
|
552
|
-
* ```typescript
|
|
553
|
-
* const result = await neurolink.generate({
|
|
554
|
-
* input: { text: "Explain chunking strategies" },
|
|
555
|
-
* provider: "vertex",
|
|
556
|
-
* rag: {
|
|
557
|
-
* files: ["./docs/guide.md", "./docs/api.md"],
|
|
558
|
-
* strategy: "markdown",
|
|
559
|
-
* chunkSize: 512,
|
|
560
|
-
* topK: 5,
|
|
561
|
-
* }
|
|
562
|
-
* });
|
|
563
|
-
* ```
|
|
564
|
-
*/
|
|
565
|
-
rag?: RAGConfig;
|
|
566
|
-
/**
|
|
567
|
-
* Maximum budget in USD for this session. When the accumulated cost of all
|
|
568
|
-
* generate() calls on this NeuroLink instance exceeds this value, subsequent
|
|
569
|
-
* calls will throw a budget-exceeded error before making the API request.
|
|
570
|
-
*
|
|
571
|
-
* @example
|
|
572
|
-
* ```typescript
|
|
573
|
-
* const result = await neurolink.generate({
|
|
574
|
-
* input: { text: "Summarize this" },
|
|
575
|
-
* maxBudgetUsd: 1.00
|
|
576
|
-
* });
|
|
577
|
-
* ```
|
|
578
|
-
*/
|
|
579
|
-
maxBudgetUsd?: number;
|
|
580
|
-
/**
|
|
581
|
-
* Optional request identifier for observability and log correlation.
|
|
582
|
-
* When provided, this ID is forwarded to spans, logs, and telemetry so
|
|
583
|
-
* callers can correlate generation traces back to their own request lifecycle.
|
|
584
|
-
*/
|
|
585
|
-
requestId?: string;
|
|
586
|
-
/** Per-call middleware configuration. */
|
|
587
|
-
middleware?: MiddlewareFactoryOptions;
|
|
588
|
-
/** Callback invoked when generation completes successfully. */
|
|
589
|
-
onFinish?: OnFinishCallback;
|
|
590
|
-
/** Callback invoked when generation encounters an error. */
|
|
591
|
-
onError?: OnErrorCallback;
|
|
592
|
-
/** Pre-validated user context for the request */
|
|
593
|
-
requestContext?: Record<string, unknown>;
|
|
594
|
-
/**
|
|
595
|
-
* Opt this generation call into the knowledge grounding configured on the
|
|
596
|
-
* NeuroLink instance. Defaults to `false` when omitted.
|
|
597
|
-
*/
|
|
598
|
-
useKnowledgeGrounding?: boolean;
|
|
599
|
-
/**
|
|
600
|
-
* Enabled integrations used to scope knowledge retrieval for this turn.
|
|
601
|
-
* Used only when `useKnowledgeGrounding` is true and knowledge grounding is
|
|
602
|
-
* enabled on the NeuroLink instance.
|
|
603
|
-
*/
|
|
604
|
-
knowledgeContext?: KnowledgeRequestScope;
|
|
605
|
-
/** Raw auth token — validated by configured auth provider */
|
|
606
|
-
auth?: {
|
|
607
|
-
token: string;
|
|
608
|
-
};
|
|
609
|
-
/**
|
|
610
|
-
* Per-provider credential overrides for this request.
|
|
611
|
-
* Overrides instance-level credentials set in `new NeuroLink({ credentials })`.
|
|
612
|
-
* Unset providers fall through to instance credentials, then environment variables.
|
|
613
|
-
*/
|
|
614
|
-
credentials?: NeurolinkCredentials;
|
|
615
|
-
/**
|
|
616
|
-
* Curator P2-3: per-call fallback callback. Overrides any
|
|
617
|
-
* instance-level `providerFallback` set on `new NeuroLink({...})`.
|
|
618
|
-
* Invoked for any error except a genuine caller cancel — i.e. this
|
|
619
|
-
* call's `abortSignal` fired (network errors, 5xx, timeouts, auth
|
|
620
|
-
* failures, model-access-denied, and internal watchdog aborts all invoke
|
|
621
|
-
* it); receives the error unmodified. Return `{ provider, model }` to
|
|
622
|
-
* retry, `null` to bubble.
|
|
623
|
-
*/
|
|
624
|
-
providerFallback?: (error: unknown) => Promise<{
|
|
625
|
-
provider?: string;
|
|
626
|
-
model?: string;
|
|
627
|
-
} | null>;
|
|
628
|
-
/**
|
|
629
|
-
* Curator P2-3: per-call ordered model chain. Overrides any
|
|
630
|
-
* instance-level `modelChain`. Without an explicit `providerFallback`
|
|
631
|
-
* callback the chain only advances on model-access-denied errors —
|
|
632
|
-
* other failures (network, 5xx, timeouts) bubble immediately.
|
|
633
|
-
*/
|
|
634
|
-
modelChain?: string[];
|
|
635
|
-
/**
|
|
636
|
-
* Per-call memory control.
|
|
637
|
-
*
|
|
638
|
-
* Override the global memory SDK behavior for this specific call.
|
|
639
|
-
* All flags default to `true` when the global memory SDK is enabled.
|
|
640
|
-
* If the global memory SDK is disabled, these flags have no effect.
|
|
641
|
-
*
|
|
642
|
-
*/
|
|
643
|
-
memory?: {
|
|
644
|
-
/** Master toggle for this call. When false, both read and write are skipped. Defaults to true. */
|
|
645
|
-
enabled?: boolean;
|
|
646
|
-
/** Whether to read condensed memory and prepend to prompt. Defaults to true. */
|
|
647
|
-
read?: boolean;
|
|
648
|
-
/** Whether to write (add/condense) the conversation into memory after completion. Defaults to true. */
|
|
649
|
-
write?: boolean;
|
|
650
|
-
/**
|
|
651
|
-
* Additional users whose memory should be retrieved/stored alongside the primary user.
|
|
652
|
-
* Each entry can override the condensation prompt and maxWords for that user.
|
|
653
|
-
* Primary user is still determined by context.userId.
|
|
654
|
-
*/
|
|
655
|
-
additionalUsers?: AdditionalMemoryUser[];
|
|
656
|
-
};
|
|
657
|
-
/**
|
|
658
|
-
* PII detection — scans and optionally redacts PII from input before the LLM call.
|
|
659
|
-
* @example { enabled: true, action: "redact", detectTypes: ["ssn", "email"] }
|
|
660
|
-
*/
|
|
661
|
-
piiDetection?: {
|
|
662
|
-
enabled?: boolean;
|
|
663
|
-
action?: "redact" | "abort" | "warn";
|
|
664
|
-
detectTypes?: Array<"email" | "phone" | "ssn" | "creditCard" | "ipAddress" | "address" | "name" | "dateOfBirth" | "passport" | "driversLicense">;
|
|
665
|
-
customPatterns?: RegExp[];
|
|
666
|
-
allowList?: string[];
|
|
667
|
-
redactionText?: string;
|
|
668
|
-
};
|
|
669
|
-
/**
|
|
670
|
-
* Response validation — validates and optionally transforms the LLM response.
|
|
671
|
-
* Supports retry-with-feedback when `retryOnFailure: true`.
|
|
672
|
-
* @example { maxLength: 5000, truncationAction: "truncate", retryOnFailure: true }
|
|
673
|
-
*/
|
|
674
|
-
responseValidation?: {
|
|
675
|
-
minLength?: number;
|
|
676
|
-
maxLength?: number;
|
|
677
|
-
requiredPhrases?: string[];
|
|
678
|
-
forbiddenPhrases?: string[];
|
|
679
|
-
jsonSchema?: Record<string, unknown>;
|
|
680
|
-
customValidator?: (text: string) => {
|
|
681
|
-
category: string;
|
|
682
|
-
severity: "error" | "warning" | "info";
|
|
683
|
-
message: string;
|
|
684
|
-
} | null;
|
|
685
|
-
truncationAction?: "abort" | "retry" | "truncate" | "warn";
|
|
686
|
-
truncationSuffix?: string;
|
|
687
|
-
retryOnFailure?: boolean;
|
|
688
|
-
maxRetries?: number;
|
|
689
|
-
};
|
|
690
|
-
/** Input validation — validates input text before any processing. */
|
|
691
|
-
inputValidation?: {
|
|
692
|
-
trimWhitespace?: boolean;
|
|
693
|
-
minLength?: number;
|
|
694
|
-
maxLength?: number;
|
|
695
|
-
requireContent?: boolean;
|
|
696
|
-
};
|
|
697
|
-
/**
|
|
698
|
-
* @deprecated Use `piiDetection`, `responseValidation`, and `inputValidation` instead.
|
|
699
|
-
*/
|
|
700
|
-
processors?: ProcessorPipelineConfig;
|
|
701
|
-
/**
|
|
702
|
-
* Per-call skills control. Only effective when the instance was
|
|
703
|
-
* constructed with `skills.enabled: true`. Lets a call disable the
|
|
704
|
-
* prompt index, or narrow it by scope/tags. Per-call wins over
|
|
705
|
-
* instance config.
|
|
706
|
-
*/
|
|
707
|
-
skills?: SkillsCallOptions;
|
|
708
|
-
};
|
|
709
|
-
/**
|
|
710
|
-
* Represents an additional user whose memory should be included in a generate/stream call.
|
|
711
|
-
* Allows per-user prompt overrides for different memory condensation strategies
|
|
712
|
-
* (e.g. personal preferences vs org-level policies).
|
|
713
|
-
*/
|
|
714
|
-
export type AdditionalMemoryUser = {
|
|
715
|
-
/** The user/owner ID to retrieve or store memory for. */
|
|
716
|
-
userId: string;
|
|
717
|
-
/**
|
|
718
|
-
* Human-readable label used in the formatted memory context.
|
|
719
|
-
* E.g. "Organization Policy", "Team Context", "User Preferences".
|
|
720
|
-
* If not provided, defaults to userId.
|
|
721
|
-
*/
|
|
722
|
-
label?: string;
|
|
723
|
-
/** Whether to read this user's memory and include in context. Defaults to true. */
|
|
724
|
-
read?: boolean;
|
|
725
|
-
/** Whether to write conversation into this user's memory. Defaults to true. */
|
|
726
|
-
write?: boolean;
|
|
727
|
-
/** Custom condensation prompt for this user. Overrides the default Hippocampus prompt. */
|
|
728
|
-
prompt?: string;
|
|
729
|
-
/** Max words for this user's condensed memory. Overrides the default maxWords. */
|
|
730
|
-
maxWords?: number;
|
|
731
|
-
};
|
|
732
|
-
/**
|
|
733
|
-
* One real tool invocation captured during an agentic turn.
|
|
734
|
-
*
|
|
735
|
-
* Replaces the historical `{name, input, output}` stub on `GenerateResult`:
|
|
736
|
-
* every record is produced at the actual execution site (AI-SDK loop and the
|
|
737
|
-
* native Gemini/Anthropic loops alike), so `params`, timing, and error status
|
|
738
|
-
* reflect what really ran — consumers no longer need proxy "recorder" tools
|
|
739
|
-
* to observe their own tool traffic.
|
|
740
|
-
*/
|
|
741
|
-
export type ToolExecutionRecord = {
|
|
742
|
-
/** Tool name as the model called it. */
|
|
743
|
-
toolName: string;
|
|
744
|
-
/** Parameters the tool was invoked with, as parsed by the loop. */
|
|
745
|
-
params: unknown;
|
|
746
|
-
/**
|
|
747
|
-
* Serialized tool result (JSON when serializable, else String()), bounded
|
|
748
|
-
* by `toolExecutionCapture.maxResultChars` (default ~8KB). Truncated text
|
|
749
|
-
* ends with a `…[truncated N chars]` marker.
|
|
750
|
-
*/
|
|
751
|
-
resultText: string;
|
|
752
|
-
/** True when the execution threw or returned an error-shaped result. */
|
|
753
|
-
isError: boolean;
|
|
754
|
-
/** Epoch milliseconds when the execution started. */
|
|
755
|
-
startedAt: number;
|
|
756
|
-
/** Wall-clock duration of the execution in milliseconds. */
|
|
757
|
-
durationMs: number;
|
|
758
|
-
};
|
|
759
|
-
/**
|
|
760
|
-
* Bounds for per-call tool execution capture (see `ToolExecutionRecord`).
|
|
761
|
-
* Capture is ON by default with these caps; raise them when a caller needs
|
|
762
|
-
* full result texts (e.g. caller-side evidence verification).
|
|
763
|
-
*/
|
|
764
|
-
export type ToolExecutionCaptureOptions = {
|
|
765
|
-
/** Max serialized result characters kept per record (default 8192). */
|
|
766
|
-
maxResultChars?: number;
|
|
767
|
-
/** Max records kept per turn; oldest are dropped first (default 500). */
|
|
768
|
-
maxRecords?: number;
|
|
769
|
-
/**
|
|
770
|
-
* Fire-and-forget per-record callback, invoked as each tool execution
|
|
771
|
-
* completes. Listener errors — synchronous throws AND async rejections —
|
|
772
|
-
* are swallowed; they never break the turn. Used by supervisors (e.g. the
|
|
773
|
-
* isolated-agent runner's waste detection) and callers that stream
|
|
774
|
-
* evidence as it is gathered.
|
|
775
|
-
*/
|
|
776
|
-
onRecord?: (record: ToolExecutionRecord) => void | Promise<void>;
|
|
777
|
-
};
|
|
778
|
-
/**
|
|
779
|
-
* Why an agentic turn ended — the discriminator consumers should branch on
|
|
780
|
-
* instead of sniffing the provider-shaped `finishReason` (whose values are
|
|
781
|
-
* overloaded: e.g. "tool-calls" historically covered both step-cap exits and
|
|
782
|
-
* Gemini MALFORMED_FUNCTION_CALL provider errors).
|
|
783
|
-
*
|
|
784
|
-
* - `completed` — the model finished on its own (text answer or final_result)
|
|
785
|
-
* - `step-cap` — the `maxSteps` budget ran out while the model still wanted tools
|
|
786
|
-
* - `context-cap` — the in-loop context guard stopped the tool loop because the
|
|
787
|
-
* accumulated conversation approached the model's context window (and the
|
|
788
|
-
* terminal synthesis could not produce an answer); without the guard these
|
|
789
|
-
* turns died mid-loop on a provider 400 "prompt is too long"
|
|
790
|
-
* - `time-limit` — the `turnTimeoutMs` wall-clock deadline passed
|
|
791
|
-
* - `stalled` — no progress (no chunk, no tool start/finish) for `stallTimeoutMs`
|
|
792
|
-
* - `aborted` — the caller's `abortSignal` ended the turn
|
|
793
|
-
* - `provider-error` — the provider/model failed the turn (e.g. persistent
|
|
794
|
-
* MALFORMED_FUNCTION_CALL after retry); usually worth a caller-side retry
|
|
795
|
-
*/
|
|
796
|
-
export type GenerateStopReason = "completed" | "step-cap" | "context-cap" | "time-limit" | "stalled" | "aborted" | "provider-error";
|
|
797
|
-
/**
|
|
798
|
-
* Generate function result type - Primary output format
|
|
799
|
-
* Future-ready for multi-modal outputs while maintaining text focus
|
|
800
|
-
*/
|
|
801
|
-
export type GenerateResult = {
|
|
802
|
-
content: string;
|
|
803
|
-
/** Knowledge-grounding diagnostics for this turn (present only when grounding ran). */
|
|
804
|
-
knowledge?: KnowledgeGroundingMetadata;
|
|
805
|
-
/**
|
|
806
|
-
* Parsed structured object when a `schema` was requested. Populated from
|
|
807
|
-
* AI-SDK experimental_output, or from text-mode coercion (balanced-scan +
|
|
808
|
-
* jsonrepair). Prefer this over JSON.parse(content) — it never requires the
|
|
809
|
-
* caller to re-parse hand-escaped model text.
|
|
810
|
-
*/
|
|
811
|
-
structuredData?: unknown;
|
|
812
|
-
outputs?: {
|
|
813
|
-
text: string;
|
|
814
|
-
};
|
|
815
|
-
/**
|
|
816
|
-
* Text-to-Speech audio result
|
|
817
|
-
*
|
|
818
|
-
* Contains the generated audio buffer and metadata when TTS is enabled.
|
|
819
|
-
* Generated by TTSProcessor.synthesize() using the specified provider.
|
|
820
|
-
*
|
|
821
|
-
* @example Accessing TTS audio
|
|
822
|
-
* ```typescript
|
|
823
|
-
* const result = await neurolink.generate({
|
|
824
|
-
* input: { text: "Hello world" },
|
|
825
|
-
* provider: "google-ai",
|
|
826
|
-
* tts: { enabled: true, voice: "en-US-Neural2-C" }
|
|
827
|
-
* });
|
|
828
|
-
*
|
|
829
|
-
* if (result.audio) {
|
|
830
|
-
* console.log(`Audio size: ${result.audio.size} bytes`);
|
|
831
|
-
* console.log(`Format: ${result.audio.format}`);
|
|
832
|
-
* if (result.audio.duration) {
|
|
833
|
-
* console.log(`Duration: ${result.audio.duration}s`);
|
|
834
|
-
* }
|
|
835
|
-
* if (result.audio.voice) {
|
|
836
|
-
* console.log(`Voice: ${result.audio.voice}`);
|
|
837
|
-
* }
|
|
838
|
-
* // Save or play the audio buffer
|
|
839
|
-
* fs.writeFileSync('output.mp3', result.audio.buffer);
|
|
840
|
-
* }
|
|
841
|
-
* ```
|
|
842
|
-
*/
|
|
843
|
-
audio?: TTSResult;
|
|
844
|
-
/**
|
|
845
|
-
* Video generation result
|
|
846
|
-
*
|
|
847
|
-
* Contains the generated video buffer and metadata when video mode is enabled.
|
|
848
|
-
* Present when `output.mode` is set to "video" in GenerateOptions.
|
|
849
|
-
*
|
|
850
|
-
* @example Accessing generated video
|
|
851
|
-
* ```typescript
|
|
852
|
-
* const result = await neurolink.generate({
|
|
853
|
-
* input: { text: "Product showcase", images: [imageBuffer] },
|
|
854
|
-
* provider: "vertex",
|
|
855
|
-
* model: "veo-3.1",
|
|
856
|
-
* output: { mode: "video", video: { resolution: "1080p" } }
|
|
857
|
-
* });
|
|
858
|
-
*
|
|
859
|
-
* if (result.video) {
|
|
860
|
-
* fs.writeFileSync('output.mp4', result.video.data);
|
|
861
|
-
* console.log(`Duration: ${result.video.metadata?.duration}s`);
|
|
862
|
-
* console.log(`Dimensions: ${result.video.metadata?.dimensions?.width}x${result.video.metadata?.dimensions?.height}`);
|
|
863
|
-
* }
|
|
864
|
-
* ```
|
|
865
|
-
*/
|
|
866
|
-
video?: VideoGenerationResult;
|
|
867
|
-
/**
|
|
868
|
-
* Avatar (talking-head) generation result (present when output.mode is "avatar")
|
|
869
|
-
*/
|
|
870
|
-
avatar?: AvatarResult;
|
|
871
|
-
/**
|
|
872
|
-
* Music generation result (present when output.mode is "music")
|
|
873
|
-
*/
|
|
874
|
-
music?: MusicResult;
|
|
875
|
-
/**
|
|
876
|
-
* PowerPoint generation result (present when output.mode is "ppt")
|
|
877
|
-
*
|
|
878
|
-
* @example
|
|
879
|
-
* ```typescript
|
|
880
|
-
* const result = await neurolink.generate({
|
|
881
|
-
* input: { text: "Introducing Our New Product" },
|
|
882
|
-
* model: "gemini-pro",
|
|
883
|
-
* output: { mode: "ppt", ppt: { pages: 10, theme: "modern" } }
|
|
884
|
-
* });
|
|
885
|
-
*
|
|
886
|
-
* if (result.ppt) {
|
|
887
|
-
* console.log(`Generated ${result.ppt.totalSlides} slides`);
|
|
888
|
-
* console.log(`Saved at: ${result.ppt.filePath}`);
|
|
889
|
-
* }
|
|
890
|
-
* ```
|
|
891
|
-
*/
|
|
892
|
-
ppt?: PPTGenerationResult;
|
|
893
|
-
imageOutput?: {
|
|
894
|
-
base64: string;
|
|
895
|
-
} | null;
|
|
896
|
-
provider?: string;
|
|
897
|
-
model?: string;
|
|
898
|
-
finishReason?: string;
|
|
899
|
-
/**
|
|
900
|
-
* Why the agentic turn ended, independent of the provider-shaped
|
|
901
|
-
* `finishReason`. Populated by the native Vertex loops (Gemini + Claude);
|
|
902
|
-
* undefined on providers that don't run a native loop — fall back to
|
|
903
|
-
* `finishReason` heuristics there.
|
|
904
|
-
*/
|
|
905
|
-
stopReason?: GenerateStopReason;
|
|
906
|
-
/**
|
|
907
|
-
* Verbatim provider finish/stop reason for the turn's terminal model call
|
|
908
|
-
* (e.g. "MALFORMED_FUNCTION_CALL", "MAX_TOKENS", "max_tokens", "tool_use").
|
|
909
|
-
*/
|
|
910
|
-
rawFinishReason?: string;
|
|
911
|
-
/** Number of agentic steps (model calls) the turn used. */
|
|
912
|
-
stepsUsed?: number;
|
|
913
|
-
/**
|
|
914
|
-
* True when the schema JSON in `content`/`structuredData` was repaired from
|
|
915
|
-
* malformed model text (jsonrepair ran). The result is still valid JSON.
|
|
916
|
-
*/
|
|
917
|
-
jsonRepaired?: boolean;
|
|
918
|
-
/**
|
|
919
|
-
* True when the schema JSON appears truncated — the model hit the output
|
|
920
|
-
* token cap (finishReason="length") or the recovered object came from an
|
|
921
|
-
* unclosed span. `structuredData` may be incomplete; raise `maxTokens`.
|
|
922
|
-
*/
|
|
923
|
-
jsonTruncated?: boolean;
|
|
924
|
-
usage?: TokenUsage;
|
|
925
|
-
responseTime?: number;
|
|
926
|
-
toolCalls?: Array<{
|
|
927
|
-
toolCallId: string;
|
|
928
|
-
toolName: string;
|
|
929
|
-
args: StandardRecord;
|
|
930
|
-
}>;
|
|
931
|
-
toolResults?: unknown[];
|
|
932
|
-
toolsUsed?: string[];
|
|
933
|
-
/**
|
|
934
|
-
* Real per-call tool execution records captured in the tool loop —
|
|
935
|
-
* params, bounded serialized result, error flag, and timing per call.
|
|
936
|
-
* Populated on the AI-SDK loop and the native agentic loops alike.
|
|
937
|
-
* Bounded by `toolExecutionCapture` (default on, ~8KB per result).
|
|
938
|
-
*/
|
|
939
|
-
toolExecutions?: ToolExecutionRecord[];
|
|
940
|
-
enhancedWithTools?: boolean;
|
|
941
|
-
availableTools?: Array<{
|
|
942
|
-
name: string;
|
|
943
|
-
description: string;
|
|
944
|
-
parameters: StandardRecord;
|
|
945
|
-
}>;
|
|
946
|
-
analytics?: AnalyticsData;
|
|
947
|
-
evaluation?: EvaluationData;
|
|
948
|
-
factoryMetadata?: {
|
|
949
|
-
enhancementApplied: boolean;
|
|
950
|
-
enhancementType?: string;
|
|
951
|
-
domainType?: string;
|
|
952
|
-
processingTime?: number;
|
|
953
|
-
configurationUsed?: StandardRecord;
|
|
954
|
-
migrationPerformed?: boolean;
|
|
955
|
-
legacyFieldsPreserved?: boolean;
|
|
956
|
-
};
|
|
957
|
-
streamingMetadata?: {
|
|
958
|
-
streamingUsed: boolean;
|
|
959
|
-
fallbackToGenerate?: boolean;
|
|
960
|
-
chunkCount?: number;
|
|
961
|
-
streamingDuration?: number;
|
|
962
|
-
streamId?: string;
|
|
963
|
-
bufferOptimization?: boolean;
|
|
964
|
-
};
|
|
965
|
-
workflow?: {
|
|
966
|
-
originalResponse: string;
|
|
967
|
-
processedResponse: string;
|
|
968
|
-
ensembleResponses: Array<{
|
|
969
|
-
provider: string;
|
|
970
|
-
model: string;
|
|
971
|
-
content: string;
|
|
972
|
-
responseTime: number;
|
|
973
|
-
status: "success" | "failure" | "timeout" | "partial";
|
|
974
|
-
error?: string;
|
|
975
|
-
}>;
|
|
976
|
-
judgeScores?: {
|
|
977
|
-
scores: Record<string, number>;
|
|
978
|
-
reasoning?: string;
|
|
979
|
-
selectedModel: string;
|
|
980
|
-
};
|
|
981
|
-
selectedModel: string;
|
|
982
|
-
metrics: {
|
|
983
|
-
totalTime: number;
|
|
984
|
-
ensembleTime: number;
|
|
985
|
-
judgeTime?: number;
|
|
986
|
-
conditioningTime?: number;
|
|
987
|
-
};
|
|
988
|
-
workflowId: string;
|
|
989
|
-
workflowName: string;
|
|
990
|
-
};
|
|
991
|
-
/** Thinking/reasoning text from provider (Anthropic thinking blocks, Gemini thought parts) */
|
|
992
|
-
reasoning?: string;
|
|
993
|
-
/** Token count for reasoning content */
|
|
994
|
-
reasoningTokens?: number;
|
|
995
|
-
/** STT transcription result (present when stt.enabled is true and audio input was provided) */
|
|
996
|
-
transcription?: STTResult;
|
|
997
|
-
retries?: {
|
|
998
|
-
count: number;
|
|
999
|
-
errors: Array<{
|
|
1000
|
-
code: string;
|
|
1001
|
-
message: string;
|
|
1002
|
-
}>;
|
|
1003
|
-
};
|
|
1004
|
-
/**
|
|
1005
|
-
* Account limit state for this request, parsed from Anthropic's
|
|
1006
|
-
* `anthropic-ratelimit-*` response headers (plus the NeuroLink Claude
|
|
1007
|
-
* proxy's `x-neurolink-*` additions when routed through it).
|
|
1008
|
-
*
|
|
1009
|
-
* Subscription windows report utilization, so headroom is a percentage
|
|
1010
|
-
* (`sessionLeftPct`) rather than an absolute count — Anthropic publishes no
|
|
1011
|
-
* remaining message or token figure for them. API-key accounts do carry
|
|
1012
|
-
* absolute `requestsRemaining` / `tokensRemaining`.
|
|
1013
|
-
*/
|
|
1014
|
-
limits?: ClaudeLimitSnapshot;
|
|
1015
|
-
};
|
|
1016
|
-
/**
|
|
1017
|
-
* Unified options for both generation and streaming
|
|
1018
|
-
* Supports factory patterns and domain configuration
|
|
1019
|
-
*/
|
|
1020
|
-
export type UnifiedGenerationOptions = GenerateOptions & {
|
|
1021
|
-
preferStreaming?: boolean;
|
|
1022
|
-
streamingFallback?: boolean;
|
|
1023
|
-
};
|
|
1024
|
-
/**
|
|
1025
|
-
* Enhanced provider type with generate method
|
|
1026
|
-
*/
|
|
1027
|
-
export type EnhancedProvider = {
|
|
1028
|
-
generate(options: GenerateOptions): Promise<GenerateResult>;
|
|
1029
|
-
getName(): string;
|
|
1030
|
-
isAvailable(): Promise<boolean>;
|
|
1031
|
-
};
|
|
1032
|
-
/**
|
|
1033
|
-
* Factory-enhanced provider type
|
|
1034
|
-
* Supports domain configuration and streaming optimizations
|
|
1035
|
-
*/
|
|
1036
|
-
export type FactoryEnhancedProvider = EnhancedProvider & {
|
|
1037
|
-
generateWithFactory(options: UnifiedGenerationOptions): Promise<GenerateResult>;
|
|
1038
|
-
getDomainSupport(): string[];
|
|
1039
|
-
getStreamingCapabilities(): {
|
|
1040
|
-
supportsStreaming: boolean;
|
|
1041
|
-
maxChunkSize: number;
|
|
1042
|
-
bufferOptimizations: boolean;
|
|
1043
|
-
};
|
|
1044
|
-
};
|
|
1045
|
-
/**
|
|
1046
|
-
* Text generation options type (consolidated from core types)
|
|
1047
|
-
* Extended to support video generation mode
|
|
1048
|
-
*/
|
|
1049
|
-
export type TextGenerationOptions = {
|
|
1050
|
-
prompt?: string;
|
|
1051
|
-
/**
|
|
1052
|
-
* Alternative input format for multimodal SDK operations.
|
|
1053
|
-
*
|
|
1054
|
-
* NOTE: This field is only used by the higher-level `generate()` API
|
|
1055
|
-
* (NeuroLink.generate, BaseProvider.generate). Legacy `generateText()`
|
|
1056
|
-
* callers must still use the `prompt` field directly.
|
|
1057
|
-
*
|
|
1058
|
-
* Supports text, images, and other multimodal inputs.
|
|
1059
|
-
*/
|
|
1060
|
-
input?: {
|
|
1061
|
-
/** Prompt text. Optional for media-only modes (avatar, music) that are driven by uploaded files rather than a prompt. */
|
|
1062
|
-
text?: string;
|
|
1063
|
-
/**
|
|
1064
|
-
* Images to include in the request.
|
|
1065
|
-
* For video generation, the first image is used as the source frame.
|
|
1066
|
-
*/
|
|
1067
|
-
images?: Array<Buffer | string | ImageWithAltText>;
|
|
1068
|
-
pdfFiles?: Array<Buffer | string>;
|
|
1069
|
-
files?: Array<Buffer | string | FileWithMetadata>;
|
|
1070
|
-
/** Director Mode segments (2-10). When provided, Director Mode is activated. */
|
|
1071
|
-
segments?: DirectorSegment[];
|
|
1072
|
-
};
|
|
1073
|
-
provider?: AIProviderName;
|
|
1074
|
-
model?: string;
|
|
1075
|
-
region?: string;
|
|
1076
|
-
temperature?: number;
|
|
1077
|
-
maxTokens?: number;
|
|
1078
|
-
/** Top-p (nucleus) sampling parameter. Controls diversity of generated tokens. */
|
|
1079
|
-
topP?: number;
|
|
1080
|
-
/** Top-k sampling parameter. Limits the number of tokens considered. (Google/Gemini models only) */
|
|
1081
|
-
topK?: number;
|
|
1082
|
-
/** Stop sequences that will halt generation when encountered. */
|
|
1083
|
-
stopSequences?: string[];
|
|
1084
|
-
systemPrompt?: string;
|
|
1085
|
-
schema?: ZodUnknownSchema | Schema<unknown>;
|
|
1086
|
-
/**
|
|
1087
|
-
* Output configuration options
|
|
1088
|
-
*
|
|
1089
|
-
* @example Video generation
|
|
1090
|
-
* ```typescript
|
|
1091
|
-
* output: {
|
|
1092
|
-
* mode: "video",
|
|
1093
|
-
* video: { resolution: "1080p", length: 8 }
|
|
1094
|
-
* }
|
|
1095
|
-
* ```
|
|
1096
|
-
*/
|
|
1097
|
-
output?: {
|
|
1098
|
-
format?: "text" | "structured" | "json";
|
|
1099
|
-
/**
|
|
1100
|
-
* Output mode - determines the type of content generated
|
|
1101
|
-
* - "text": Standard text generation (default)
|
|
1102
|
-
* - "video": Video generation using models like Veo 3.1
|
|
1103
|
-
* - "ppt": PowerPoint presentation generation
|
|
1104
|
-
* - "avatar": Talking-head / lip-sync video (D-ID, HeyGen, Replicate-MuseTalk)
|
|
1105
|
-
* - "music": Music / sound generation (Beatoven, ElevenLabs Music, Lyria, Replicate)
|
|
1106
|
-
*/
|
|
1107
|
-
mode?: "text" | "video" | "ppt" | "avatar" | "music";
|
|
1108
|
-
/**
|
|
1109
|
-
* Video generation configuration (used when mode is "video")
|
|
1110
|
-
*/
|
|
1111
|
-
video?: VideoOutputOptions;
|
|
1112
|
-
/**
|
|
1113
|
-
* PowerPoint generation configuration (used when mode is "ppt")
|
|
1114
|
-
*/
|
|
1115
|
-
ppt?: PPTOutputOptions;
|
|
1116
|
-
/**
|
|
1117
|
-
* Director Mode configuration (only used when input.segments is provided)
|
|
1118
|
-
*/
|
|
1119
|
-
director?: DirectorModeOptions;
|
|
1120
|
-
/**
|
|
1121
|
-
* Avatar generation configuration (used when mode is "avatar")
|
|
1122
|
-
*/
|
|
1123
|
-
avatar?: AvatarOptions;
|
|
1124
|
-
/**
|
|
1125
|
-
* Music generation configuration (used when mode is "music")
|
|
1126
|
-
*/
|
|
1127
|
-
music?: MusicOptions;
|
|
1128
|
-
};
|
|
1129
|
-
tools?: Record<string, Tool>;
|
|
1130
|
-
/**
|
|
1131
|
-
* Filter available tools by name.
|
|
1132
|
-
* Only tools with names in this array will be made available.
|
|
1133
|
-
* Used by dynamic arguments to dynamically select which tools to enable.
|
|
1134
|
-
* Merged into `toolFilter` before tool filtering runs.
|
|
1135
|
-
*
|
|
1136
|
-
* @example
|
|
1137
|
-
* ```typescript
|
|
1138
|
-
* await neurolink.generate({
|
|
1139
|
-
* input: { text: "Search for information" },
|
|
1140
|
-
* enabledToolNames: ["websearchGrounding", "readFile"]
|
|
1141
|
-
* });
|
|
1142
|
-
* ```
|
|
1143
|
-
*/
|
|
1144
|
-
enabledToolNames?: string[];
|
|
1145
|
-
timeout?: number | string;
|
|
1146
|
-
/** Wall-clock cap for the whole agentic turn (ms). See GenerateOptions.turnTimeoutMs. */
|
|
1147
|
-
turnTimeoutMs?: number;
|
|
1148
|
-
/** Max time with no progress before the turn ends as "stalled" (ms). See GenerateOptions.stallTimeoutMs. */
|
|
1149
|
-
stallTimeoutMs?: number;
|
|
1150
|
-
/** Remaining-time threshold that triggers the wrap-up nudge (ms). See GenerateOptions.wrapupTimeLeadMs. */
|
|
1151
|
-
wrapupTimeLeadMs?: number;
|
|
1152
|
-
/** Per-tool-execution timeout (ms, default 300_000). See GenerateOptions.toolTimeoutMs. */
|
|
1153
|
-
toolTimeoutMs?: number;
|
|
1154
|
-
/** AbortSignal for external cancellation of the AI call */
|
|
1155
|
-
abortSignal?: AbortSignal;
|
|
1156
|
-
/** Bounds for tool execution capture. See GenerateOptions.toolExecutionCapture. */
|
|
1157
|
-
toolExecutionCapture?: ToolExecutionCaptureOptions;
|
|
1158
|
-
disableTools?: boolean;
|
|
1159
|
-
/** Disable the schema-driven tool call repair mechanism (BZ-665). Default: false (repair enabled). */
|
|
1160
|
-
disableToolCallRepair?: boolean;
|
|
1161
|
-
maxSteps?: number;
|
|
1162
|
-
/** Include only these tools by name (whitelist). If set, only matching tools are available. */
|
|
1163
|
-
toolFilter?: string[];
|
|
1164
|
-
/** Exclude these tools by name (blacklist). Applied after toolFilter. */
|
|
1165
|
-
excludeTools?: string[];
|
|
1166
|
-
/** Disable tool result caching for this request (overrides global mcp.cache.enabled) */
|
|
1167
|
-
disableToolCache?: boolean;
|
|
1168
|
-
/**
|
|
1169
|
-
* Tool choice configuration for the generation.
|
|
1170
|
-
* Controls whether and which tools the model must call.
|
|
1171
|
-
*
|
|
1172
|
-
* - `"auto"` (default): the model can choose whether and which tools to call
|
|
1173
|
-
* - `"none"`: no tool calls allowed
|
|
1174
|
-
* - `"required"`: the model must call at least one tool
|
|
1175
|
-
* - `{ type: "tool", toolName: string }`: the model must call the specified tool
|
|
1176
|
-
*
|
|
1177
|
-
* Note: When used without `prepareStep`, this applies to **every step** in the
|
|
1178
|
-
* `maxSteps` loop. Using `"required"` or `{ type: "tool" }` without `prepareStep`
|
|
1179
|
-
* will cause infinite tool calls until `maxSteps` is exhausted.
|
|
1180
|
-
*/
|
|
1181
|
-
toolChoice?: ToolChoice<Record<string, Tool>>;
|
|
1182
|
-
/**
|
|
1183
|
-
* Optional callback that runs before each step in a multi-step generation.
|
|
1184
|
-
* Allows dynamically changing `toolChoice` and available tools per step.
|
|
1185
|
-
*
|
|
1186
|
-
* This is the recommended way to enforce specific tool calls on certain steps
|
|
1187
|
-
* while allowing the model freedom on others.
|
|
1188
|
-
*
|
|
1189
|
-
* Maps to Vercel AI SDK's `experimental_prepareStep`.
|
|
1190
|
-
*
|
|
1191
|
-
* @example Force a specific tool on step 0, then switch to auto:
|
|
1192
|
-
* ```typescript
|
|
1193
|
-
* prepareStep: ({ stepNumber, steps }) => {
|
|
1194
|
-
* if (stepNumber === 0) {
|
|
1195
|
-
* return {
|
|
1196
|
-
* toolChoice: { type: 'tool', toolName: 'myTool' }
|
|
1197
|
-
* };
|
|
1198
|
-
* }
|
|
1199
|
-
* return { toolChoice: 'auto' };
|
|
1200
|
-
* }
|
|
1201
|
-
* ```
|
|
1202
|
-
*
|
|
1203
|
-
* @see https://ai-sdk.dev/docs/reference/ai-sdk-core/generate-text#parameters
|
|
1204
|
-
*/
|
|
1205
|
-
prepareStep?: (options: {
|
|
1206
|
-
steps: StepResult<Record<string, Tool>>[];
|
|
1207
|
-
stepNumber: number;
|
|
1208
|
-
maxSteps: number;
|
|
1209
|
-
model: LanguageModel;
|
|
1210
|
-
}) => PromiseLike<{
|
|
1211
|
-
model?: LanguageModel;
|
|
1212
|
-
toolChoice?: ToolChoice<Record<string, Tool>>;
|
|
1213
|
-
experimental_activeTools?: string[];
|
|
1214
|
-
} | undefined>;
|
|
1215
|
-
/**
|
|
1216
|
-
* Text-to-Speech (TTS) configuration
|
|
1217
|
-
*
|
|
1218
|
-
* Enable audio generation from text. Behavior depends on useAiResponse flag:
|
|
1219
|
-
* - When useAiResponse is false/undefined (default): TTS synthesizes the input text directly
|
|
1220
|
-
* - When useAiResponse is true: TTS synthesizes the AI-generated response
|
|
1221
|
-
*
|
|
1222
|
-
* @example Using input text (default)
|
|
1223
|
-
* ```typescript
|
|
1224
|
-
* const neurolink = new NeuroLink();
|
|
1225
|
-
* const result = await neurolink.generate({
|
|
1226
|
-
* input: { text: "Hello world" },
|
|
1227
|
-
* provider: "google-ai",
|
|
1228
|
-
* tts: { enabled: true, voice: "en-US-Neural2-C" }
|
|
1229
|
-
* });
|
|
1230
|
-
* // TTS synthesizes "Hello world" directly, no AI generation
|
|
1231
|
-
* ```
|
|
1232
|
-
*
|
|
1233
|
-
* @example Using AI response
|
|
1234
|
-
* ```typescript
|
|
1235
|
-
* const neurolink = new NeuroLink();
|
|
1236
|
-
* const result = await neurolink.generate({
|
|
1237
|
-
* input: { text: "Tell me a joke" },
|
|
1238
|
-
* provider: "google-ai",
|
|
1239
|
-
* tts: { enabled: true, useAiResponse: true, voice: "en-US-Neural2-C" }
|
|
1240
|
-
* });
|
|
1241
|
-
* // AI generates the joke, then TTS synthesizes the AI's response
|
|
1242
|
-
* ```
|
|
1243
|
-
*/
|
|
1244
|
-
tts?: TTSOptions;
|
|
1245
|
-
/**
|
|
1246
|
-
* Speech-to-Text (STT) configuration
|
|
1247
|
-
*
|
|
1248
|
-
* Enable audio transcription. When enabled, the audio provided via `stt.audio`
|
|
1249
|
-
* will be transcribed to text and used as the prompt.
|
|
1250
|
-
*
|
|
1251
|
-
* @example
|
|
1252
|
-
* ```typescript
|
|
1253
|
-
* const neurolink = new NeuroLink();
|
|
1254
|
-
* const result = await neurolink.generate({
|
|
1255
|
-
* input: { text: "" },
|
|
1256
|
-
* provider: "openai",
|
|
1257
|
-
* stt: { enabled: true, provider: "whisper", language: "en-US", audio: audioBuffer }
|
|
1258
|
-
* });
|
|
1259
|
-
* // STT transcribes the audio, result.transcription contains the transcription
|
|
1260
|
-
* ```
|
|
1261
|
-
*/
|
|
1262
|
-
stt?: STTOptions & {
|
|
1263
|
-
provider?: string;
|
|
1264
|
-
audio?: Buffer | ArrayBuffer;
|
|
1265
|
-
};
|
|
1266
|
-
enableEvaluation?: boolean;
|
|
1267
|
-
enableAnalytics?: boolean;
|
|
1268
|
-
context?: Record<string, JsonValue>;
|
|
1269
|
-
evaluationDomain?: string;
|
|
1270
|
-
toolUsageContext?: string;
|
|
1271
|
-
conversationHistory?: Array<{
|
|
1272
|
-
role: string;
|
|
1273
|
-
content: string;
|
|
1274
|
-
}>;
|
|
1275
|
-
conversationMessages?: ChatMessage[];
|
|
1276
|
-
conversationMemoryConfig?: Partial<ConversationMemoryConfig>;
|
|
1277
|
-
originalPrompt?: string;
|
|
1278
|
-
middleware?: MiddlewareFactoryOptions;
|
|
1279
|
-
onFinish?: OnFinishCallback;
|
|
1280
|
-
onError?: OnErrorCallback;
|
|
1281
|
-
expectedOutcome?: string;
|
|
1282
|
-
evaluationCriteria?: string[];
|
|
1283
|
-
csvOptions?: CSVProcessorOptions;
|
|
1284
|
-
/** PDF processing options (#258). */
|
|
1285
|
-
pdfOptions?: {
|
|
1286
|
-
/** Password for an encrypted PDF (image-conversion fallback path). */
|
|
1287
|
-
password?: string;
|
|
1288
|
-
/** Max rendered-canvas pixels per page (#260 memory guard); oversized pages auto-downscale. */
|
|
1289
|
-
maxCanvasPixels?: number;
|
|
1290
|
-
/** Render scale for the image fallback (#297); defaults to PDF_LIMITS.DEFAULT_SCALE. */
|
|
1291
|
-
scale?: number;
|
|
1292
|
-
/** Max pages converted by the image fallback (#297); defaults to PDF_LIMITS.DEFAULT_MAX_PAGES. */
|
|
1293
|
-
maxPages?: number;
|
|
1294
|
-
};
|
|
1295
|
-
enableSummarization?: boolean;
|
|
1296
|
-
/**
|
|
1297
|
-
* Skip injecting tool schemas into the system prompt.
|
|
1298
|
-
* When true, tools are ONLY passed natively via the provider's `tools` parameter,
|
|
1299
|
-
* avoiding duplicate tool definitions (~30K tokens savings per call).
|
|
1300
|
-
* Default: false (backward compatible — tool schemas are injected into system prompt).
|
|
1301
|
-
*/
|
|
1302
|
-
skipToolPromptInjection?: boolean;
|
|
1303
|
-
/**
|
|
1304
|
-
* ## Extended Thinking Options
|
|
1305
|
-
*
|
|
1306
|
-
* NeuroLink provides multiple ways to configure extended thinking/reasoning.
|
|
1307
|
-
* These options interact as follows:
|
|
1308
|
-
*
|
|
1309
|
-
* ### Option Hierarchy (Priority: thinkingConfig > individual options)
|
|
1310
|
-
*
|
|
1311
|
-
* 1. **`thinkingConfig`** (recommended) - Full configuration object, highest priority
|
|
1312
|
-
* 2. **`thinking`**, **`thinkingBudget`**, **`thinkingLevel`** - Simplified CLI-friendly options
|
|
1313
|
-
*
|
|
1314
|
-
* When both are provided, `thinkingConfig` takes precedence. The simplified options
|
|
1315
|
-
* are automatically merged into `thinkingConfig` internally.
|
|
1316
|
-
*
|
|
1317
|
-
* ### Provider-Specific Behavior
|
|
1318
|
-
*
|
|
1319
|
-
* **Anthropic Claude (claude-3-7-sonnet, etc.):**
|
|
1320
|
-
* - Use `thinkingConfig.budgetTokens` or `thinkingBudget`
|
|
1321
|
-
* - Range: 5000-100000 tokens
|
|
1322
|
-
* - `thinkingLevel` is ignored for Anthropic
|
|
1323
|
-
*
|
|
1324
|
-
* **Google Gemini 3 (gemini-3.1-pro-preview, gemini-3-flash-preview):**
|
|
1325
|
-
* - Use `thinkingConfig.thinkingLevel` or `thinkingLevel`
|
|
1326
|
-
* - Levels: minimal, low, medium, high
|
|
1327
|
-
* - `budgetTokens` is ignored for Gemini (uses level-based allocation)
|
|
1328
|
-
*
|
|
1329
|
-
* ### Option Compatibility Matrix
|
|
1330
|
-
*
|
|
1331
|
-
* | Option | Anthropic | Gemini 3 | Other Providers |
|
|
1332
|
-
* |----------------|-----------|----------|-----------------|
|
|
1333
|
-
* | thinking | Yes | Yes | Ignored |
|
|
1334
|
-
* | thinkingBudget | Yes | Ignored | Ignored |
|
|
1335
|
-
* | thinkingLevel | Ignored | Yes | Ignored |
|
|
1336
|
-
* | thinkingConfig | Yes | Yes | Ignored |
|
|
1337
|
-
*
|
|
1338
|
-
* ### Examples
|
|
1339
|
-
*
|
|
1340
|
-
* ```typescript
|
|
1341
|
-
* // Simplified (CLI-friendly) - Anthropic
|
|
1342
|
-
* { thinking: true, thinkingBudget: 10000 }
|
|
1343
|
-
*
|
|
1344
|
-
* // Simplified (CLI-friendly) - Gemini 3
|
|
1345
|
-
* { thinking: true, thinkingLevel: "high" }
|
|
1346
|
-
*
|
|
1347
|
-
* // Full config (recommended for SDK)
|
|
1348
|
-
* { thinkingConfig: { enabled: true, budgetTokens: 10000 } } // Anthropic
|
|
1349
|
-
* { thinkingConfig: { thinkingLevel: "high" } } // Gemini 3
|
|
1350
|
-
* ```
|
|
1351
|
-
*/
|
|
1352
|
-
/**
|
|
1353
|
-
* Enable extended thinking capability (simplified option).
|
|
1354
|
-
* Equivalent to `thinkingConfig.enabled = true`.
|
|
1355
|
-
* Works with both Anthropic and Gemini 3 models.
|
|
1356
|
-
*/
|
|
1357
|
-
thinking?: boolean;
|
|
1358
|
-
/**
|
|
1359
|
-
* Token budget for thinking (Anthropic models only).
|
|
1360
|
-
* Equivalent to `thinkingConfig.budgetTokens`.
|
|
1361
|
-
* Range: 5000-100000 tokens. Ignored for Gemini models.
|
|
1362
|
-
*/
|
|
1363
|
-
thinkingBudget?: number;
|
|
1364
|
-
/**
|
|
1365
|
-
* Thinking level for Gemini 3 models only.
|
|
1366
|
-
* Equivalent to `thinkingConfig.thinkingLevel`.
|
|
1367
|
-
* - `minimal` - Near-zero thinking (Flash only)
|
|
1368
|
-
* - `low` - Light reasoning
|
|
1369
|
-
* - `medium` - Balanced reasoning/latency
|
|
1370
|
-
* - `high` - Deep reasoning (Pro default)
|
|
1371
|
-
* Ignored for Anthropic models.
|
|
1372
|
-
*/
|
|
1373
|
-
thinkingLevel?: "minimal" | "low" | "medium" | "high";
|
|
1374
|
-
/**
|
|
1375
|
-
* Full thinking/reasoning configuration (recommended for SDK usage).
|
|
1376
|
-
* Takes precedence over simplified options (thinking, thinkingBudget, thinkingLevel).
|
|
1377
|
-
*
|
|
1378
|
-
* @see Above documentation for provider-specific behavior and option compatibility.
|
|
1379
|
-
*/
|
|
1380
|
-
thinkingConfig?: {
|
|
1381
|
-
/** Enable extended thinking. Default: false */
|
|
1382
|
-
enabled?: boolean;
|
|
1383
|
-
/** Explicit enable/disable type. Alternative to `enabled` boolean. */
|
|
1384
|
-
type?: "enabled" | "disabled";
|
|
1385
|
-
/** Token budget for thinking (Anthropic: 5000-100000). Ignored for Gemini. */
|
|
1386
|
-
budgetTokens?: number;
|
|
1387
|
-
/** Thinking level (Gemini 3: minimal|low|medium|high). Ignored for Anthropic. */
|
|
1388
|
-
thinkingLevel?: "minimal" | "low" | "medium" | "high";
|
|
1389
|
-
};
|
|
1390
|
-
/**
|
|
1391
|
-
* Per-provider credential overrides for this request.
|
|
1392
|
-
* Overrides instance-level credentials set in `new NeuroLink({ credentials })`.
|
|
1393
|
-
* Unset providers fall through to instance credentials, then environment variables.
|
|
1394
|
-
*/
|
|
1395
|
-
credentials?: NeurolinkCredentials;
|
|
1396
|
-
/**
|
|
1397
|
-
* Optional request identifier for observability and log correlation.
|
|
1398
|
-
* When provided, this ID is forwarded to spans, logs, and telemetry so
|
|
1399
|
-
* callers can correlate generation traces back to their own request lifecycle.
|
|
1400
|
-
*/
|
|
1401
|
-
requestId?: string;
|
|
1402
|
-
/** PII detection config — forwarded from GenerateOptions/StreamOptions. */
|
|
1403
|
-
piiDetection?: GenerateOptions["piiDetection"];
|
|
1404
|
-
/** Response validation config — forwarded from GenerateOptions/StreamOptions. */
|
|
1405
|
-
responseValidation?: GenerateOptions["responseValidation"];
|
|
1406
|
-
/** Input validation config — forwarded from GenerateOptions/StreamOptions. */
|
|
1407
|
-
inputValidation?: GenerateOptions["inputValidation"];
|
|
1408
|
-
/** @deprecated Use `piiDetection`, `responseValidation`, `inputValidation` instead. */
|
|
1409
|
-
processors?: ProcessorPipelineConfig;
|
|
1410
|
-
};
|
|
1411
|
-
/**
|
|
1412
|
-
* Text generation result (consolidated from core types)
|
|
1413
|
-
*/
|
|
1414
|
-
export type TextGenerationResult = {
|
|
1415
|
-
content: string;
|
|
1416
|
-
/** Parsed structured object when a `schema` was requested (see GenerateResult.structuredData). */
|
|
1417
|
-
structuredData?: unknown;
|
|
1418
|
-
finishReason?: string;
|
|
1419
|
-
/** Turn-exit discriminator from native agentic loops (see GenerateStopReason). */
|
|
1420
|
-
stopReason?: GenerateStopReason;
|
|
1421
|
-
/** Verbatim provider finish/stop reason for the turn's terminal model call. */
|
|
1422
|
-
rawFinishReason?: string;
|
|
1423
|
-
/** Number of agentic steps (model calls) the turn used. */
|
|
1424
|
-
stepsUsed?: number;
|
|
1425
|
-
/** True when the schema JSON was repaired from malformed model text. */
|
|
1426
|
-
jsonRepaired?: boolean;
|
|
1427
|
-
/** True when the schema JSON appears truncated (output hit the token cap). */
|
|
1428
|
-
jsonTruncated?: boolean;
|
|
1429
|
-
provider?: string;
|
|
1430
|
-
model?: string;
|
|
1431
|
-
usage?: TokenUsage;
|
|
1432
|
-
responseTime?: number;
|
|
1433
|
-
toolsUsed?: string[];
|
|
1434
|
-
toolExecutions?: Array<{
|
|
1435
|
-
toolName: string;
|
|
1436
|
-
executionTime: number;
|
|
1437
|
-
success: boolean;
|
|
1438
|
-
serverId?: string;
|
|
1439
|
-
}>;
|
|
1440
|
-
enhancedWithTools?: boolean;
|
|
1441
|
-
availableTools?: Array<{
|
|
1442
|
-
name: string;
|
|
1443
|
-
description: string;
|
|
1444
|
-
server: string;
|
|
1445
|
-
category?: string;
|
|
1446
|
-
}>;
|
|
1447
|
-
analytics?: AnalyticsData;
|
|
1448
|
-
evaluation?: EvaluationData;
|
|
1449
|
-
audio?: TTSResult;
|
|
1450
|
-
/** STT transcription result (present when stt input was processed) */
|
|
1451
|
-
transcription?: STTResult;
|
|
1452
|
-
/** Video generation result */
|
|
1453
|
-
video?: VideoGenerationResult;
|
|
1454
|
-
/** Avatar (talking-head) generation result */
|
|
1455
|
-
avatar?: AvatarResult;
|
|
1456
|
-
/** Music generation result */
|
|
1457
|
-
music?: MusicResult;
|
|
1458
|
-
/** PowerPoint generation result */
|
|
1459
|
-
ppt?: PPTGenerationResult;
|
|
1460
|
-
/** Image generation output */
|
|
1461
|
-
imageOutput?: {
|
|
1462
|
-
base64: string;
|
|
1463
|
-
} | null;
|
|
1464
|
-
/** Gemini 3 thought signature for reasoning continuity across turns */
|
|
1465
|
-
thoughtSignature?: string;
|
|
1466
|
-
/** Thinking/reasoning text from provider (Anthropic thinking blocks, Gemini thought parts, DeepSeek/NIM reasoning_content) */
|
|
1467
|
-
reasoning?: string;
|
|
1468
|
-
/** Token count for reasoning content */
|
|
1469
|
-
reasoningTokens?: number;
|
|
1470
|
-
retries?: {
|
|
1471
|
-
count: number;
|
|
1472
|
-
errors: Array<{
|
|
1473
|
-
code: string;
|
|
1474
|
-
message: string;
|
|
1475
|
-
}>;
|
|
1476
|
-
};
|
|
1477
|
-
};
|
|
1478
|
-
/**
|
|
1479
|
-
* Enhanced result type with optional analytics/evaluation
|
|
1480
|
-
*/
|
|
1481
|
-
export type TTSMetadata = {
|
|
1482
|
-
/** Whether TTS synthesis was invoked. False indicates TTS was skipped. */
|
|
1483
|
-
attempted: boolean;
|
|
1484
|
-
/** Whether TTS synthesis completed successfully. */
|
|
1485
|
-
success: boolean;
|
|
1486
|
-
/** Structured synthesis error details, present only when synthesis failed. */
|
|
1487
|
-
error?: {
|
|
1488
|
-
code: string;
|
|
1489
|
-
message: string;
|
|
1490
|
-
retriable?: boolean;
|
|
1491
|
-
};
|
|
1492
|
-
/** TTS synthesis time in milliseconds. */
|
|
1493
|
-
latency?: number;
|
|
1494
|
-
};
|
|
1495
|
-
export type EnhancedGenerateResult = GenerateResult & {
|
|
1496
|
-
analytics?: AnalyticsData;
|
|
1497
|
-
evaluation?: EvaluationData;
|
|
1498
|
-
/** Outcome metadata when TTS was enabled for this generation. */
|
|
1499
|
-
ttsMetadata?: TTSMetadata;
|
|
1500
|
-
};
|
|
1501
|
-
/**
|
|
1502
|
-
* NL-004: Model alias/deprecation configuration.
|
|
1503
|
-
* Allows mapping deprecated model names to their replacements.
|
|
1504
|
-
*/
|
|
1505
|
-
export type ModelAliasConfig = {
|
|
1506
|
-
aliases: Record<string, {
|
|
1507
|
-
target: string;
|
|
1508
|
-
action: "warn" | "redirect" | "block";
|
|
1509
|
-
reason?: string;
|
|
1510
|
-
}>;
|
|
1511
|
-
};
|
|
1512
|
-
/**
|
|
1513
|
-
* Internal alias used by messageBuilder helpers after the entry-point
|
|
1514
|
-
* (`buildMultimodalMessagesArray`) has guaranteed that `input` is non-null.
|
|
1515
|
-
* All private helper functions that receive post-normalised options should
|
|
1516
|
-
* accept this type to avoid repetitive null checks on every `input.*` access.
|
|
1517
|
-
*/
|
|
1518
|
-
export type GenerateOptionsNormalized = GenerateOptions & {
|
|
1519
|
-
input: NonNullable<GenerateOptions["input"]>;
|
|
1520
|
-
};
|