@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,2155 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Provider-specific type definitions for NeuroLink
|
|
3
|
-
*/
|
|
4
|
-
import type { UnknownRecord, JsonValue, StreamingCapability } from "./common.js";
|
|
5
|
-
import type { NeuroLink } from "../neurolink.js";
|
|
6
|
-
import { AIProviderName, AnthropicModels, BedrockModels, DeepSeekModels, GoogleAIModels, LlamaCppModels, LMStudioModels, NvidiaNimModels, OpenAIModels, VertexModels } from "../constants/enums.js";
|
|
7
|
-
import type { ValidationSchema } from "./aliases.js";
|
|
8
|
-
import type { EnhancedGenerateResult, GenerateResult, TextGenerationOptions } from "./generate.js";
|
|
9
|
-
import type { MultimodalAudioEntry } from "./file.js";
|
|
10
|
-
import type { StreamOptions, StreamResult } from "./stream.js";
|
|
11
|
-
import type { ProviderError, ProviderErrorRule } from "./errors.js";
|
|
12
|
-
import type { ExternalMCPToolInfo } from "./externalMcp.js";
|
|
13
|
-
import type { ClaudeSubscriptionTier, AnthropicAuthMethod, AnthropicAuthConfig, SubscriptionInfo, OAuthToken } from "./subscription.js";
|
|
14
|
-
import type { Tool } from "./tools.js";
|
|
15
|
-
export type { LanguageModel, EmbeddingModel, ImageModel, GenerateTextResult, StepResult, ToolCallRepairFunction, PrepareStepFunction, PrepareStepResult, FinishReason, LanguageModelUsage, LanguageModelRequestMetadata, LanguageModelResponseMetadata, } from "ai";
|
|
16
|
-
export type { ClaudeSubscriptionTier, AnthropicAuthMethod, AnthropicAuthConfig, SubscriptionInfo, } from "./subscription.js";
|
|
17
|
-
/**
|
|
18
|
-
* Generic AI SDK model interface
|
|
19
|
-
*/
|
|
20
|
-
export type AISDKModel = {
|
|
21
|
-
[key: string]: unknown;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* Union type of all supported model names
|
|
25
|
-
*/
|
|
26
|
-
export type SupportedModelName = BedrockModels | DeepSeekModels | OpenAIModels | VertexModels | GoogleAIModels | AnthropicModels | NvidiaNimModels | LMStudioModels | LlamaCppModels;
|
|
27
|
-
/**
|
|
28
|
-
* Extract provider names from enum
|
|
29
|
-
*/
|
|
30
|
-
export type ProviderName = (typeof AIProviderName)[keyof typeof AIProviderName];
|
|
31
|
-
/**
|
|
32
|
-
* Provider status information
|
|
33
|
-
*/
|
|
34
|
-
export type ProviderStatus = {
|
|
35
|
-
provider: string;
|
|
36
|
-
status: "working" | "failed" | "not-configured";
|
|
37
|
-
configured: boolean;
|
|
38
|
-
authenticated: boolean;
|
|
39
|
-
error?: string;
|
|
40
|
-
responseTime?: number;
|
|
41
|
-
model?: string;
|
|
42
|
-
/**
|
|
43
|
-
* Subscription information for providers that support subscription tiers
|
|
44
|
-
* (e.g., Anthropic Claude with Pro/Max/Team/Enterprise subscriptions)
|
|
45
|
-
*/
|
|
46
|
-
subscription?: SubscriptionInfo;
|
|
47
|
-
/**
|
|
48
|
-
* The authentication method currently in use for this provider
|
|
49
|
-
*/
|
|
50
|
-
authMethod?: AnthropicAuthMethod;
|
|
51
|
-
};
|
|
52
|
-
/**
|
|
53
|
-
* Structural type for provider errors from external sources.
|
|
54
|
-
* For throwing errors, use the ProviderError class from errors.ts.
|
|
55
|
-
*/
|
|
56
|
-
export type ProviderErrorLike = Error & {
|
|
57
|
-
code?: string | number;
|
|
58
|
-
statusCode?: number;
|
|
59
|
-
provider?: string;
|
|
60
|
-
originalError?: unknown;
|
|
61
|
-
};
|
|
62
|
-
/**
|
|
63
|
-
* AWS Credential Configuration for Bedrock provider
|
|
64
|
-
*/
|
|
65
|
-
export type AWSCredentialConfig = {
|
|
66
|
-
region?: string;
|
|
67
|
-
profile?: string;
|
|
68
|
-
roleArn?: string;
|
|
69
|
-
roleSessionName?: string;
|
|
70
|
-
timeout?: number;
|
|
71
|
-
/** @deprecated Prefer maxAttempts to match AWS SDK v3 config */
|
|
72
|
-
maxRetries?: number;
|
|
73
|
-
/** Number of attempts as per AWS SDK v3 ("retry-mode") */
|
|
74
|
-
maxAttempts?: number;
|
|
75
|
-
enableDebugLogging?: boolean;
|
|
76
|
-
/** Optional service endpoint override (e.g., VPC/Gov endpoints) */
|
|
77
|
-
endpoint?: string;
|
|
78
|
-
};
|
|
79
|
-
/**
|
|
80
|
-
* Per-provider credential overrides for generate() / stream() calls.
|
|
81
|
-
*
|
|
82
|
-
* When set on `NeurolinkConstructorConfig.credentials`, applies as the default
|
|
83
|
-
* for all calls from that NeuroLink instance. When set on
|
|
84
|
-
* `GenerateOptions.credentials` or `StreamOptions.credentials`, overrides the
|
|
85
|
-
* instance default for that single call.
|
|
86
|
-
*
|
|
87
|
-
* Unset providers fall through to environment variables (existing behaviour).
|
|
88
|
-
*/
|
|
89
|
-
export type NeurolinkCredentials = {
|
|
90
|
-
openai?: {
|
|
91
|
-
apiKey?: string;
|
|
92
|
-
baseURL?: string;
|
|
93
|
-
};
|
|
94
|
-
anthropic?: {
|
|
95
|
-
apiKey?: string;
|
|
96
|
-
oauthToken?: string;
|
|
97
|
-
};
|
|
98
|
-
googleAiStudio?: {
|
|
99
|
-
apiKey?: string;
|
|
100
|
-
baseURL?: string;
|
|
101
|
-
};
|
|
102
|
-
vertex?: {
|
|
103
|
-
projectId?: string;
|
|
104
|
-
location?: string;
|
|
105
|
-
/** Vertex Express Mode — simplified API-key auth */
|
|
106
|
-
apiKey?: string;
|
|
107
|
-
/** Full service-account JSON string */
|
|
108
|
-
serviceAccountKey?: string;
|
|
109
|
-
/** Inline service-account fields (alternative to serviceAccountKey) */
|
|
110
|
-
clientEmail?: string;
|
|
111
|
-
privateKey?: string;
|
|
112
|
-
};
|
|
113
|
-
bedrock?: {
|
|
114
|
-
accessKeyId?: string;
|
|
115
|
-
secretAccessKey?: string;
|
|
116
|
-
sessionToken?: string;
|
|
117
|
-
region?: string;
|
|
118
|
-
};
|
|
119
|
-
sagemaker?: {
|
|
120
|
-
accessKeyId?: string;
|
|
121
|
-
secretAccessKey?: string;
|
|
122
|
-
sessionToken?: string;
|
|
123
|
-
region?: string;
|
|
124
|
-
endpoint?: string;
|
|
125
|
-
};
|
|
126
|
-
azure?: {
|
|
127
|
-
apiKey?: string;
|
|
128
|
-
resourceName?: string;
|
|
129
|
-
deploymentName?: string;
|
|
130
|
-
apiVersion?: string;
|
|
131
|
-
useMaxCompletionTokens?: boolean;
|
|
132
|
-
};
|
|
133
|
-
mistral?: {
|
|
134
|
-
apiKey?: string;
|
|
135
|
-
baseURL?: string;
|
|
136
|
-
};
|
|
137
|
-
huggingFace?: {
|
|
138
|
-
apiKey?: string;
|
|
139
|
-
baseURL?: string;
|
|
140
|
-
};
|
|
141
|
-
openrouter?: {
|
|
142
|
-
apiKey?: string;
|
|
143
|
-
baseURL?: string;
|
|
144
|
-
};
|
|
145
|
-
litellm?: {
|
|
146
|
-
apiKey?: string;
|
|
147
|
-
baseURL?: string;
|
|
148
|
-
};
|
|
149
|
-
openaiCompatible?: {
|
|
150
|
-
apiKey?: string;
|
|
151
|
-
baseURL?: string;
|
|
152
|
-
};
|
|
153
|
-
ollama?: {
|
|
154
|
-
baseURL?: string;
|
|
155
|
-
apiKey?: string;
|
|
156
|
-
};
|
|
157
|
-
deepseek?: {
|
|
158
|
-
apiKey?: string;
|
|
159
|
-
baseURL?: string;
|
|
160
|
-
};
|
|
161
|
-
nvidiaNim?: {
|
|
162
|
-
apiKey?: string;
|
|
163
|
-
baseURL?: string;
|
|
164
|
-
};
|
|
165
|
-
lmStudio?: {
|
|
166
|
-
apiKey?: string;
|
|
167
|
-
baseURL?: string;
|
|
168
|
-
};
|
|
169
|
-
llamacpp?: {
|
|
170
|
-
apiKey?: string;
|
|
171
|
-
baseURL?: string;
|
|
172
|
-
};
|
|
173
|
-
xai?: {
|
|
174
|
-
apiKey?: string;
|
|
175
|
-
baseURL?: string;
|
|
176
|
-
};
|
|
177
|
-
groq?: {
|
|
178
|
-
apiKey?: string;
|
|
179
|
-
baseURL?: string;
|
|
180
|
-
};
|
|
181
|
-
cohere?: {
|
|
182
|
-
apiKey?: string;
|
|
183
|
-
baseURL?: string;
|
|
184
|
-
};
|
|
185
|
-
together?: {
|
|
186
|
-
apiKey?: string;
|
|
187
|
-
baseURL?: string;
|
|
188
|
-
};
|
|
189
|
-
fireworks?: {
|
|
190
|
-
apiKey?: string;
|
|
191
|
-
baseURL?: string;
|
|
192
|
-
};
|
|
193
|
-
perplexity?: {
|
|
194
|
-
apiKey?: string;
|
|
195
|
-
baseURL?: string;
|
|
196
|
-
};
|
|
197
|
-
cloudflare?: {
|
|
198
|
-
apiKey?: string;
|
|
199
|
-
accountId?: string;
|
|
200
|
-
baseURL?: string;
|
|
201
|
-
};
|
|
202
|
-
replicate?: {
|
|
203
|
-
apiToken?: string;
|
|
204
|
-
baseUrl?: string;
|
|
205
|
-
apiKey?: string;
|
|
206
|
-
baseURL?: string;
|
|
207
|
-
};
|
|
208
|
-
voyage?: {
|
|
209
|
-
apiKey?: string;
|
|
210
|
-
baseURL?: string;
|
|
211
|
-
};
|
|
212
|
-
jina?: {
|
|
213
|
-
apiKey?: string;
|
|
214
|
-
baseURL?: string;
|
|
215
|
-
};
|
|
216
|
-
stability?: {
|
|
217
|
-
apiKey?: string;
|
|
218
|
-
baseURL?: string;
|
|
219
|
-
};
|
|
220
|
-
ideogram?: {
|
|
221
|
-
apiKey?: string;
|
|
222
|
-
baseURL?: string;
|
|
223
|
-
};
|
|
224
|
-
recraft?: {
|
|
225
|
-
apiKey?: string;
|
|
226
|
-
baseURL?: string;
|
|
227
|
-
};
|
|
228
|
-
};
|
|
229
|
-
/**
|
|
230
|
-
* Voyage AI /embeddings response shape.
|
|
231
|
-
*/
|
|
232
|
-
export type VoyageEmbeddingsResponse = {
|
|
233
|
-
object: "list";
|
|
234
|
-
data: {
|
|
235
|
-
object: "embedding";
|
|
236
|
-
embedding: number[];
|
|
237
|
-
index: number;
|
|
238
|
-
}[];
|
|
239
|
-
model: string;
|
|
240
|
-
usage?: {
|
|
241
|
-
total_tokens?: number;
|
|
242
|
-
};
|
|
243
|
-
};
|
|
244
|
-
/**
|
|
245
|
-
* Jina AI /embeddings response shape (compatible with OpenAI's shape).
|
|
246
|
-
*/
|
|
247
|
-
export type JinaEmbeddingsResponse = {
|
|
248
|
-
object?: string;
|
|
249
|
-
data: {
|
|
250
|
-
object?: string;
|
|
251
|
-
embedding: number[];
|
|
252
|
-
index: number;
|
|
253
|
-
}[];
|
|
254
|
-
model?: string;
|
|
255
|
-
usage?: {
|
|
256
|
-
total_tokens?: number;
|
|
257
|
-
prompt_tokens?: number;
|
|
258
|
-
};
|
|
259
|
-
};
|
|
260
|
-
/**
|
|
261
|
-
* Jina AI /rerank response shape.
|
|
262
|
-
*/
|
|
263
|
-
export type JinaRerankResponse = {
|
|
264
|
-
model?: string;
|
|
265
|
-
results: {
|
|
266
|
-
index: number;
|
|
267
|
-
relevance_score: number;
|
|
268
|
-
document?: {
|
|
269
|
-
text?: string;
|
|
270
|
-
};
|
|
271
|
-
}[];
|
|
272
|
-
usage?: {
|
|
273
|
-
total_tokens?: number;
|
|
274
|
-
};
|
|
275
|
-
};
|
|
276
|
-
/**
|
|
277
|
-
* Stability AI /v2beta/stable-image/generate/{model} response shape
|
|
278
|
-
* (returns either binary directly, or JSON with base64 when Accept is set
|
|
279
|
-
* to application/json). We always request JSON for uniformity.
|
|
280
|
-
*/
|
|
281
|
-
export type StabilityImageResponse = {
|
|
282
|
-
image?: string;
|
|
283
|
-
finish_reason?: "SUCCESS" | "ERROR" | "CONTENT_FILTERED";
|
|
284
|
-
seed?: number;
|
|
285
|
-
};
|
|
286
|
-
/**
|
|
287
|
-
* Ideogram /api/v1/ideogram-v3/generate response shape.
|
|
288
|
-
*/
|
|
289
|
-
export type IdeogramImageResponse = {
|
|
290
|
-
created?: string;
|
|
291
|
-
data: {
|
|
292
|
-
prompt?: string;
|
|
293
|
-
resolution?: string;
|
|
294
|
-
is_image_safe?: boolean;
|
|
295
|
-
seed?: number;
|
|
296
|
-
url?: string;
|
|
297
|
-
style_type?: string;
|
|
298
|
-
}[];
|
|
299
|
-
};
|
|
300
|
-
/**
|
|
301
|
-
* Recraft /v1/images/generations response shape.
|
|
302
|
-
*/
|
|
303
|
-
export type RecraftImageResponse = {
|
|
304
|
-
created?: number;
|
|
305
|
-
data: {
|
|
306
|
-
url?: string;
|
|
307
|
-
b64_json?: string;
|
|
308
|
-
image_id?: string;
|
|
309
|
-
}[];
|
|
310
|
-
};
|
|
311
|
-
/**
|
|
312
|
-
* NVIDIA NIM extra request body parameters passed via `providerOptions.openai.body`.
|
|
313
|
-
* Lives here (not in providers/nvidiaNim.ts) per CLAUDE.md rule 2.
|
|
314
|
-
*/
|
|
315
|
-
export type NvidiaNimExtraBody = {
|
|
316
|
-
top_k?: number;
|
|
317
|
-
min_p?: number;
|
|
318
|
-
repetition_penalty?: number;
|
|
319
|
-
min_tokens?: number;
|
|
320
|
-
chat_template?: string;
|
|
321
|
-
request_id?: string;
|
|
322
|
-
ignore_eos?: boolean;
|
|
323
|
-
chat_template_kwargs?: {
|
|
324
|
-
thinking?: boolean;
|
|
325
|
-
enable_thinking?: boolean;
|
|
326
|
-
reasoning_budget?: number;
|
|
327
|
-
};
|
|
328
|
-
};
|
|
329
|
-
/**
|
|
330
|
-
* AWS Credential Validation Result
|
|
331
|
-
*/
|
|
332
|
-
export type CredentialValidationResult = {
|
|
333
|
-
isValid: boolean;
|
|
334
|
-
credentialSource: string;
|
|
335
|
-
region: string;
|
|
336
|
-
hasExpiration: boolean;
|
|
337
|
-
expirationTime?: Date;
|
|
338
|
-
error?: string;
|
|
339
|
-
debugInfo: {
|
|
340
|
-
accessKeyId: string;
|
|
341
|
-
hasSessionToken: boolean;
|
|
342
|
-
providerConfig: Readonly<Required<AWSCredentialConfig>>;
|
|
343
|
-
};
|
|
344
|
-
};
|
|
345
|
-
/**
|
|
346
|
-
* Service Connectivity Test Result
|
|
347
|
-
*/
|
|
348
|
-
export type ServiceConnectivityResult = {
|
|
349
|
-
bedrockAccessible: boolean;
|
|
350
|
-
availableModels: number;
|
|
351
|
-
responseTimeMs: number;
|
|
352
|
-
error?: string;
|
|
353
|
-
sampleModels: string[];
|
|
354
|
-
};
|
|
355
|
-
/**
|
|
356
|
-
* Model Capabilities - Maximally Reusable
|
|
357
|
-
*/
|
|
358
|
-
export type ModelCapability = "text" | "vision" | "function-calling" | "embedding" | "audio" | "video" | "code" | "reasoning" | "multimodal";
|
|
359
|
-
/**
|
|
360
|
-
* Model Use Cases - High Reusability
|
|
361
|
-
*/
|
|
362
|
-
export type ModelUseCase = "chat" | "completion" | "analysis" | "coding" | "creative" | "reasoning" | "translation" | "summarization" | "classification";
|
|
363
|
-
/**
|
|
364
|
-
* Provider health status
|
|
365
|
-
*/
|
|
366
|
-
export type ProviderHealthStatus = "healthy" | "degraded" | "unhealthy" | "unknown";
|
|
367
|
-
/**
|
|
368
|
-
* Stream processing phases
|
|
369
|
-
*/
|
|
370
|
-
export type StreamPhase = "initializing" | "streaming" | "processing" | "complete" | "error";
|
|
371
|
-
/**
|
|
372
|
-
* Model Filter Configuration - High Reusability
|
|
373
|
-
*/
|
|
374
|
-
export type ModelFilter = {
|
|
375
|
-
provider?: string;
|
|
376
|
-
capability?: ModelCapability;
|
|
377
|
-
useCase?: ModelUseCase;
|
|
378
|
-
requireVision?: boolean;
|
|
379
|
-
requireFunctionCalling?: boolean;
|
|
380
|
-
maxTokens?: number;
|
|
381
|
-
costLimit?: number;
|
|
382
|
-
};
|
|
383
|
-
/**
|
|
384
|
-
* Model Resolution Context - High Reusability
|
|
385
|
-
*/
|
|
386
|
-
export type ModelResolutionContext = {
|
|
387
|
-
requireCapabilities?: ModelCapability[];
|
|
388
|
-
preferredProviders?: string[];
|
|
389
|
-
useCase?: ModelUseCase;
|
|
390
|
-
budgetConstraints?: {
|
|
391
|
-
maxCostPerRequest?: number;
|
|
392
|
-
maxTokens?: number;
|
|
393
|
-
};
|
|
394
|
-
performance?: {
|
|
395
|
-
maxLatency?: number;
|
|
396
|
-
minQuality?: number;
|
|
397
|
-
};
|
|
398
|
-
};
|
|
399
|
-
/**
|
|
400
|
-
* Model Statistics Object - High Reusability
|
|
401
|
-
*/
|
|
402
|
-
export type ModelStats = {
|
|
403
|
-
name: string;
|
|
404
|
-
provider: string;
|
|
405
|
-
capabilities: ModelCapability[];
|
|
406
|
-
useCases: ModelUseCase[];
|
|
407
|
-
performance: {
|
|
408
|
-
avgLatency?: number;
|
|
409
|
-
avgTokensPerSecond?: number;
|
|
410
|
-
reliability?: number;
|
|
411
|
-
};
|
|
412
|
-
pricing?: ModelPricing;
|
|
413
|
-
metadata: {
|
|
414
|
-
[key: string]: JsonValue;
|
|
415
|
-
} & {
|
|
416
|
-
version?: string;
|
|
417
|
-
lastUpdated?: Date;
|
|
418
|
-
};
|
|
419
|
-
};
|
|
420
|
-
/**
|
|
421
|
-
* Model Pricing Information - High Reusability
|
|
422
|
-
*/
|
|
423
|
-
export type ModelPricing = {
|
|
424
|
-
inputTokens?: {
|
|
425
|
-
price: number;
|
|
426
|
-
currency: string;
|
|
427
|
-
per: number;
|
|
428
|
-
};
|
|
429
|
-
outputTokens?: {
|
|
430
|
-
price: number;
|
|
431
|
-
currency: string;
|
|
432
|
-
per: number;
|
|
433
|
-
};
|
|
434
|
-
requestPrice?: {
|
|
435
|
-
price: number;
|
|
436
|
-
currency: string;
|
|
437
|
-
};
|
|
438
|
-
tier?: "free" | "basic" | "premium" | "enterprise";
|
|
439
|
-
average?: number;
|
|
440
|
-
min?: number;
|
|
441
|
-
max?: number;
|
|
442
|
-
free?: boolean;
|
|
443
|
-
};
|
|
444
|
-
/**
|
|
445
|
-
* Provider capabilities
|
|
446
|
-
*/
|
|
447
|
-
export type ProviderCapabilities = {
|
|
448
|
-
supportsStreaming: boolean;
|
|
449
|
-
supportsTools: boolean;
|
|
450
|
-
supportsImages: boolean;
|
|
451
|
-
supportsAudio: boolean;
|
|
452
|
-
maxTokens?: number;
|
|
453
|
-
supportedModels: string[];
|
|
454
|
-
/**
|
|
455
|
-
* Whether the provider supports subscription-based features and tier management
|
|
456
|
-
* When true, the provider can adapt behavior based on subscription tier
|
|
457
|
-
*/
|
|
458
|
-
subscriptionAware?: boolean;
|
|
459
|
-
/**
|
|
460
|
-
* List of authentication methods supported by this provider
|
|
461
|
-
* e.g., ["api_key", "oauth", "session_token", "environment"]
|
|
462
|
-
*/
|
|
463
|
-
supportedAuthMethods?: string[];
|
|
464
|
-
};
|
|
465
|
-
/**
|
|
466
|
-
* Provider configuration specifying provider and its available models (from core types)
|
|
467
|
-
*/
|
|
468
|
-
export type AIModelProviderConfig = {
|
|
469
|
-
provider: AIProviderName;
|
|
470
|
-
models: SupportedModelName[];
|
|
471
|
-
};
|
|
472
|
-
/**
|
|
473
|
-
* Provider configuration for individual providers
|
|
474
|
-
*/
|
|
475
|
-
export type IndividualProviderConfig = {
|
|
476
|
-
apiKey?: string;
|
|
477
|
-
baseURL?: string;
|
|
478
|
-
timeout?: number;
|
|
479
|
-
retries?: number;
|
|
480
|
-
model?: string;
|
|
481
|
-
/**
|
|
482
|
-
* The subscription tier for the provider (e.g., Claude Pro, Max, Team, Enterprise)
|
|
483
|
-
* Used to determine rate limits, available features, and pricing
|
|
484
|
-
*/
|
|
485
|
-
subscriptionTier?: ClaudeSubscriptionTier;
|
|
486
|
-
/**
|
|
487
|
-
* The authentication method to use for the provider
|
|
488
|
-
* Supports API key, OAuth, session token, or environment variable
|
|
489
|
-
*/
|
|
490
|
-
authMethod?: AnthropicAuthMethod;
|
|
491
|
-
/**
|
|
492
|
-
* Detailed authentication configuration including credentials and options
|
|
493
|
-
*/
|
|
494
|
-
authConfig?: AnthropicAuthConfig;
|
|
495
|
-
/**
|
|
496
|
-
* Whether to enable beta features for the provider
|
|
497
|
-
* Beta features may be unstable or subject to change
|
|
498
|
-
*/
|
|
499
|
-
enableBetaFeatures?: boolean;
|
|
500
|
-
[key: string]: unknown;
|
|
501
|
-
};
|
|
502
|
-
/**
|
|
503
|
-
* Anthropic-specific provider configuration
|
|
504
|
-
*
|
|
505
|
-
* @description Extends the base provider configuration with Anthropic-specific
|
|
506
|
-
* options for OAuth, subscription management, and beta features.
|
|
507
|
-
*/
|
|
508
|
-
export type AnthropicProviderConfig = IndividualProviderConfig & {
|
|
509
|
-
/**
|
|
510
|
-
* The subscription tier for Claude access
|
|
511
|
-
*/
|
|
512
|
-
subscriptionTier?: ClaudeSubscriptionTier;
|
|
513
|
-
/**
|
|
514
|
-
* The authentication method to use
|
|
515
|
-
*/
|
|
516
|
-
authMethod?: AnthropicAuthMethod;
|
|
517
|
-
/**
|
|
518
|
-
* Whether to enable beta features
|
|
519
|
-
*/
|
|
520
|
-
enableBetaFeatures?: boolean;
|
|
521
|
-
/**
|
|
522
|
-
* OAuth token for OAuth authentication.
|
|
523
|
-
* Required when authMethod is "oauth".
|
|
524
|
-
*/
|
|
525
|
-
oauthToken?: OAuthToken;
|
|
526
|
-
/**
|
|
527
|
-
* OAuth configuration for OAuth-based authentication
|
|
528
|
-
*/
|
|
529
|
-
oauthConfig?: {
|
|
530
|
-
/**
|
|
531
|
-
* OAuth client ID for the application
|
|
532
|
-
*/
|
|
533
|
-
clientId?: string;
|
|
534
|
-
/**
|
|
535
|
-
* OAuth redirect URI for the callback
|
|
536
|
-
*/
|
|
537
|
-
redirectUri?: string;
|
|
538
|
-
/**
|
|
539
|
-
* OAuth scopes to request
|
|
540
|
-
*/
|
|
541
|
-
scopes?: string[];
|
|
542
|
-
/**
|
|
543
|
-
* OAuth authorization endpoint URL
|
|
544
|
-
*/
|
|
545
|
-
authorizationEndpoint?: string;
|
|
546
|
-
/**
|
|
547
|
-
* OAuth token endpoint URL
|
|
548
|
-
*/
|
|
549
|
-
tokenEndpoint?: string;
|
|
550
|
-
};
|
|
551
|
-
};
|
|
552
|
-
/**
|
|
553
|
-
* Type guard to check if a configuration is an AnthropicProviderConfig
|
|
554
|
-
*
|
|
555
|
-
* @param config - The configuration object to check
|
|
556
|
-
* @returns True if the configuration is an AnthropicProviderConfig
|
|
557
|
-
*
|
|
558
|
-
* @example
|
|
559
|
-
* ```typescript
|
|
560
|
-
* const config = getProviderConfig();
|
|
561
|
-
* if (isAnthropicConfig(config)) {
|
|
562
|
-
* // TypeScript knows config is AnthropicProviderConfig here
|
|
563
|
-
* console.log(config.subscriptionTier);
|
|
564
|
-
* console.log(config.oauthConfig?.clientId);
|
|
565
|
-
* }
|
|
566
|
-
* ```
|
|
567
|
-
*/
|
|
568
|
-
export declare function isAnthropicConfig(config: unknown): config is AnthropicProviderConfig;
|
|
569
|
-
/**
|
|
570
|
-
* Configuration options for provider validation
|
|
571
|
-
*/
|
|
572
|
-
export type ProviderConfigOptions = {
|
|
573
|
-
providerName: string;
|
|
574
|
-
envVarName: string;
|
|
575
|
-
setupUrl: string;
|
|
576
|
-
description: string;
|
|
577
|
-
instructions: string[];
|
|
578
|
-
fallbackEnvVars?: string[];
|
|
579
|
-
optional?: boolean;
|
|
580
|
-
};
|
|
581
|
-
/**
|
|
582
|
-
* Minimal credential shape accepted by resolveOpenAICompatConfig() and
|
|
583
|
-
* ConfiguredOpenAICompatProvider. A structural superset of every real
|
|
584
|
-
* per-provider NeurolinkCredentials["<key>"] slice in this family (groq,
|
|
585
|
-
* xai, together, fireworks, perplexity, mistral, cloudflare) — all fields
|
|
586
|
-
* optional, so passing e.g. NeurolinkCredentials["groq"] (which has no
|
|
587
|
-
* accountId) here is always structurally valid.
|
|
588
|
-
*/
|
|
589
|
-
export type OpenAICompatCredentials = {
|
|
590
|
-
apiKey?: string;
|
|
591
|
-
baseURL?: string;
|
|
592
|
-
accountId?: string;
|
|
593
|
-
};
|
|
594
|
-
/**
|
|
595
|
-
* One row of the config-driven OpenAI-compatible provider catalog
|
|
596
|
-
* (OPENAI_COMPAT_CATALOG, src/lib/providers/openaiCompatCatalog.ts).
|
|
597
|
-
* Replaces a hand-written OpenAIChatCompletionsProvider subclass for
|
|
598
|
-
* providers whose only differences from every sibling are credentials,
|
|
599
|
-
* base URL, model defaults, and error-message classification.
|
|
600
|
-
*/
|
|
601
|
-
export type OpenAICompatCatalogEntry = {
|
|
602
|
-
/** Registry key / nl.generate({provider}) value, e.g. "groq". */
|
|
603
|
-
providerName: AIProviderName;
|
|
604
|
-
/** Registry aliases, e.g. ["together-ai", "together"]. */
|
|
605
|
-
aliases: string[];
|
|
606
|
-
/**
|
|
607
|
-
* Env var holding the API key, e.g. "GROQ_API_KEY".
|
|
608
|
-
*
|
|
609
|
-
* Declarative: the key is actually read through `configOptions.envVarName`,
|
|
610
|
-
* which `validateApiKey` consults. This field exists so an entry states its
|
|
611
|
-
* credential source without a caller having to reach into configOptions,
|
|
612
|
-
* and the catalog suite asserts the two always name the same variable — two
|
|
613
|
-
* fields describing one fact are worth nothing if they can disagree.
|
|
614
|
-
*/
|
|
615
|
-
apiKeyEnvVar: string;
|
|
616
|
-
/**
|
|
617
|
-
* Env var that can override the base URL, e.g. "GROQ_BASE_URL". Omit
|
|
618
|
-
* for entries that use computedBaseURL instead (e.g. Cloudflare).
|
|
619
|
-
*/
|
|
620
|
-
baseURLEnvVar?: string;
|
|
621
|
-
/** Static default base URL. Omit for computedBaseURL entries. */
|
|
622
|
-
defaultBaseURL?: string;
|
|
623
|
-
/**
|
|
624
|
-
* Present only for providers whose base URL is computed from an extra
|
|
625
|
-
* required credential value instead of a static default (Cloudflare's
|
|
626
|
-
* accountId). Deliberately narrow (accountId-shaped) rather than a
|
|
627
|
-
* generic extra-field mechanism — Cloudflare is the only current user.
|
|
628
|
-
*/
|
|
629
|
-
computedBaseURL?: {
|
|
630
|
-
/** Env var fallback for the extra value, e.g. "CLOUDFLARE_ACCOUNT_ID". */
|
|
631
|
-
envVar: string;
|
|
632
|
-
/** Thrown when neither credentials.accountId nor envVar supply a value. */
|
|
633
|
-
missingValueMessage: string;
|
|
634
|
-
/** Builds the base URL from the resolved accountId. */
|
|
635
|
-
build: (accountId: string) => string;
|
|
636
|
-
};
|
|
637
|
-
/** Setup/help metadata, passed to validateApiKey(). Not consumed by
|
|
638
|
-
* classifyProviderError() — that function's ProviderErrorContext has no
|
|
639
|
-
* docsUrl field; any URL a rule's message needs is inlined in the rule
|
|
640
|
-
* itself (see Task 4). */
|
|
641
|
-
configOptions: ProviderConfigOptions;
|
|
642
|
-
/** Env var for the default model, e.g. "GROQ_MODEL". */
|
|
643
|
-
modelEnvVar: string;
|
|
644
|
-
/** Default model when modelEnvVar is unset. */
|
|
645
|
-
defaultModel: string;
|
|
646
|
-
/**
|
|
647
|
-
* The literal passed as ProviderFactory.registerProvider()'s defaultModel
|
|
648
|
-
* argument (resolved before the provider is constructed). Preserves each
|
|
649
|
-
* provider's exact pre-migration registry behavior.
|
|
650
|
-
*/
|
|
651
|
-
registryDefaultModel: string;
|
|
652
|
-
/**
|
|
653
|
-
* True for every provider except Mistral: whether the registry-level
|
|
654
|
-
* default also consults modelEnvVar before falling back to
|
|
655
|
-
* registryDefaultModel. False is a pre-existing, intentionally-preserved
|
|
656
|
-
* quirk unique to Mistral's registration (see plan's Design reference).
|
|
657
|
-
*/
|
|
658
|
-
registryDefaultModelChecksEnvVar: boolean;
|
|
659
|
-
/** Fallback model name (getFallbackModelName()). */
|
|
660
|
-
fallbackModelName: string;
|
|
661
|
-
/** Fallback model list (getFallbackModels()). */
|
|
662
|
-
fallbackModels: string[];
|
|
663
|
-
/**
|
|
664
|
-
* Error-classification rules, consumed by classifyProviderError. Typed
|
|
665
|
-
* as a mutable array — not readonly — because plan 07's
|
|
666
|
-
* `classifyProviderError(error, rules: ProviderErrorRule[], provider, modelName?)`
|
|
667
|
-
* declares `rules` as `ProviderErrorRule[]`; a `readonly` array here
|
|
668
|
-
* would not be assignable to that parameter without a cast, which rule
|
|
669
|
-
* 14 (no double assertions) and general hygiene both rule out. Each
|
|
670
|
-
* entry's array is still constructed as a fresh literal per provider in
|
|
671
|
-
* Task 4, so nothing actually mutates it at runtime.
|
|
672
|
-
*/
|
|
673
|
-
errorRules: ProviderErrorRule[];
|
|
674
|
-
/**
|
|
675
|
-
* Optional override for the Error subclass a TimeoutError should produce
|
|
676
|
-
* for this entry. classifyProviderError() hard-codes
|
|
677
|
-
* TimeoutError -> NetworkError unconditionally, ahead of any rule table,
|
|
678
|
-
* and does not make that mapping overridable per-provider (see
|
|
679
|
-
* errorClassifier.ts). Groq's pre-migration subclass predates that
|
|
680
|
-
* shared classifier and intercepted TimeoutError itself, returning a
|
|
681
|
-
* plain ProviderError instead — this field lets
|
|
682
|
-
* ConfiguredOpenAICompatProvider reproduce that one documented
|
|
683
|
-
* divergence as data (see its formatProviderError), rather than adding a
|
|
684
|
-
* class-level hook back in. Omit for every entry whose timeout should use
|
|
685
|
-
* the classifier's default (six of the seven catalog entries).
|
|
686
|
-
*/
|
|
687
|
-
timeoutErrorClass?: new (message: string, provider?: string) => ProviderError;
|
|
688
|
-
};
|
|
689
|
-
/** The subset of OpenAICompatCatalogEntry that resolveOpenAICompatConfig()
|
|
690
|
-
* needs — lets call sites pass a minimal object without the full catalog
|
|
691
|
-
* entry (e.g. in tests, or a future non-catalog caller). */
|
|
692
|
-
export type OpenAICompatConfigInput = Pick<OpenAICompatCatalogEntry, "providerName" | "apiKeyEnvVar" | "baseURLEnvVar" | "defaultBaseURL" | "computedBaseURL" | "configOptions">;
|
|
693
|
-
/**
|
|
694
|
-
* AI Provider type with flexible parameter support
|
|
695
|
-
*/
|
|
696
|
-
export type AIProvider = {
|
|
697
|
-
stream(optionsOrPrompt: StreamOptions | string, analysisSchema?: ValidationSchema): Promise<StreamResult>;
|
|
698
|
-
generate(optionsOrPrompt: TextGenerationOptions | string, analysisSchema?: ValidationSchema): Promise<EnhancedGenerateResult | null>;
|
|
699
|
-
gen(optionsOrPrompt: TextGenerationOptions | string, analysisSchema?: ValidationSchema): Promise<EnhancedGenerateResult | null>;
|
|
700
|
-
embed(text: string, modelName?: string): Promise<number[]>;
|
|
701
|
-
embedMany(texts: string[], modelName?: string): Promise<number[][]>;
|
|
702
|
-
setupToolExecutor(sdk: {
|
|
703
|
-
customTools: Map<string, unknown>;
|
|
704
|
-
executeTool: (toolName: string, params: unknown) => Promise<unknown>;
|
|
705
|
-
}, functionTag: string): void;
|
|
706
|
-
/**
|
|
707
|
-
* Propagate trace context from NeuroLink SDK for parent-child span hierarchy.
|
|
708
|
-
* Use this method instead of accessing `_traceContext` directly.
|
|
709
|
-
*/
|
|
710
|
-
setTraceContext(ctx: {
|
|
711
|
-
traceId: string;
|
|
712
|
-
parentSpanId: string;
|
|
713
|
-
} | null): void;
|
|
714
|
-
/**
|
|
715
|
-
* Whether this provider supports native tool/function calling for the
|
|
716
|
-
* current model. Implemented by BaseProvider (default true); overridden by
|
|
717
|
-
* providers with model-dependent or absent tool support (ollama,
|
|
718
|
-
* huggingface, image providers). Optional for compile compatibility with
|
|
719
|
-
* external AIProvider implementations — callers treat absence as `true`.
|
|
720
|
-
*/
|
|
721
|
-
supportsTools?(): boolean;
|
|
722
|
-
/**
|
|
723
|
-
* Ensure runtime-discovered model limits (context window, output-token
|
|
724
|
-
* ceiling) are registered before budget math runs. Implemented by
|
|
725
|
-
* BaseProvider (default no-op); providers with a discovery source override
|
|
726
|
-
* it (LiteLLM `/model/info`). Must never reject — discovery failure
|
|
727
|
-
* degrades to static defaults. Optional for compile compatibility with
|
|
728
|
-
* external AIProvider implementations — callers treat absence as no-op.
|
|
729
|
-
*/
|
|
730
|
-
ensureModelLimits?(): Promise<void>;
|
|
731
|
-
};
|
|
732
|
-
/**
|
|
733
|
-
* Provider attempt result for iteration tracking (converted from interface)
|
|
734
|
-
*/
|
|
735
|
-
export type ProviderAttempt = {
|
|
736
|
-
provider: AIProviderName;
|
|
737
|
-
model: SupportedModelName;
|
|
738
|
-
success: boolean;
|
|
739
|
-
error?: string;
|
|
740
|
-
stack?: string;
|
|
741
|
-
};
|
|
742
|
-
/**
|
|
743
|
-
* Error types for provider creation
|
|
744
|
-
*/
|
|
745
|
-
export type ProviderCreationError = {
|
|
746
|
-
code: "INVALID_PROVIDER" | "CONFIGURATION_ERROR" | "INSTANTIATION_ERROR";
|
|
747
|
-
message: string;
|
|
748
|
-
provider: string;
|
|
749
|
-
details?: Record<string, unknown>;
|
|
750
|
-
};
|
|
751
|
-
/**
|
|
752
|
-
* Provider factory function type
|
|
753
|
-
*/
|
|
754
|
-
export type ProviderFactory = (modelName?: string, providerName?: string, sdk?: unknown) => Promise<unknown>;
|
|
755
|
-
/**
|
|
756
|
-
* Configuration options for the provider registry
|
|
757
|
-
*/
|
|
758
|
-
export type ProviderRegistryOptions = {
|
|
759
|
-
/**
|
|
760
|
-
* Enable loading of manual MCP configurations from .mcp-config.json
|
|
761
|
-
* Should only be true for CLI mode, false for SDK mode
|
|
762
|
-
*/
|
|
763
|
-
enableManualMCP?: boolean;
|
|
764
|
-
};
|
|
765
|
-
/**
|
|
766
|
-
* Provider metadata type
|
|
767
|
-
*/
|
|
768
|
-
export type ProviderMetadata = {
|
|
769
|
-
name: string;
|
|
770
|
-
version: string;
|
|
771
|
-
capabilities: ProviderCapability[];
|
|
772
|
-
models: string[];
|
|
773
|
-
healthStatus: ProviderHealthStatus;
|
|
774
|
-
};
|
|
775
|
-
/**
|
|
776
|
-
* Provider capability type
|
|
777
|
-
*/
|
|
778
|
-
export type ProviderCapability = "text-generation" | "streaming" | "tool-calling" | "image-generation" | "embeddings";
|
|
779
|
-
/**
|
|
780
|
-
* Extended tool type that combines AI SDK tools with external MCP tool info
|
|
781
|
-
*/
|
|
782
|
-
export type ExtendedTool = Tool & Partial<ExternalMCPToolInfo>;
|
|
783
|
-
/**
|
|
784
|
-
* AI SDK generate result with steps support (extends GenerateResult)
|
|
785
|
-
*/
|
|
786
|
-
export type AISDKGenerateResult = GenerateResult & {
|
|
787
|
-
steps?: Array<{
|
|
788
|
-
toolCalls?: Array<{
|
|
789
|
-
toolName?: string;
|
|
790
|
-
name?: string;
|
|
791
|
-
[key: string]: unknown;
|
|
792
|
-
}>;
|
|
793
|
-
[key: string]: unknown;
|
|
794
|
-
}>;
|
|
795
|
-
[key: string]: unknown;
|
|
796
|
-
};
|
|
797
|
-
/**
|
|
798
|
-
* Bedrock tool usage structure
|
|
799
|
-
*/
|
|
800
|
-
export type BedrockToolUse = {
|
|
801
|
-
toolUseId: string;
|
|
802
|
-
name: string;
|
|
803
|
-
input: Record<string, unknown>;
|
|
804
|
-
};
|
|
805
|
-
/**
|
|
806
|
-
* Bedrock tool result structure
|
|
807
|
-
*/
|
|
808
|
-
export type BedrockToolResult = {
|
|
809
|
-
toolUseId: string;
|
|
810
|
-
content: Array<{
|
|
811
|
-
text: string;
|
|
812
|
-
}>;
|
|
813
|
-
status: string;
|
|
814
|
-
};
|
|
815
|
-
/**
|
|
816
|
-
* Bedrock content block structure
|
|
817
|
-
*/
|
|
818
|
-
export type BedrockContentBlock = {
|
|
819
|
-
text?: string;
|
|
820
|
-
image?: {
|
|
821
|
-
format: "png" | "jpeg" | "gif" | "webp";
|
|
822
|
-
source: {
|
|
823
|
-
bytes?: Uint8Array | Buffer;
|
|
824
|
-
};
|
|
825
|
-
};
|
|
826
|
-
document?: {
|
|
827
|
-
format: "pdf" | "csv" | "doc" | "docx" | "xls" | "xlsx" | "html" | "txt" | "md";
|
|
828
|
-
name: string;
|
|
829
|
-
source: {
|
|
830
|
-
bytes?: Uint8Array | Buffer;
|
|
831
|
-
};
|
|
832
|
-
};
|
|
833
|
-
toolUse?: BedrockToolUse;
|
|
834
|
-
toolResult?: BedrockToolResult;
|
|
835
|
-
};
|
|
836
|
-
/**
|
|
837
|
-
* A Bedrock content block still being assembled from a ConverseStream event
|
|
838
|
-
* sequence. `_inputBuffer` holds the partial tool-call JSON that arrives
|
|
839
|
-
* across several `contentBlockDelta` events and is parsed away at
|
|
840
|
-
* `contentBlockStop`, so it never appears on a finished block.
|
|
841
|
-
*/
|
|
842
|
-
export type BedrockPendingContentBlock = BedrockContentBlock & {
|
|
843
|
-
_inputBuffer?: string;
|
|
844
|
-
};
|
|
845
|
-
/** A tool_use block being assembled across Anthropic `input_json_delta` events. */
|
|
846
|
-
export type AnthropicPendingToolUse = {
|
|
847
|
-
id: string;
|
|
848
|
-
name: string;
|
|
849
|
-
inputJson: string;
|
|
850
|
-
};
|
|
851
|
-
/**
|
|
852
|
-
* Bedrock message structure
|
|
853
|
-
*/
|
|
854
|
-
export type BedrockMessage = {
|
|
855
|
-
role: "user" | "assistant";
|
|
856
|
-
content: BedrockContentBlock[];
|
|
857
|
-
};
|
|
858
|
-
/**
|
|
859
|
-
* Google AI Live media configuration
|
|
860
|
-
*/
|
|
861
|
-
export type GenAILiveMedia = {
|
|
862
|
-
data: string;
|
|
863
|
-
mimeType: string;
|
|
864
|
-
};
|
|
865
|
-
/**
|
|
866
|
-
* Live server message inline data
|
|
867
|
-
*/
|
|
868
|
-
export type LiveServerMessagePartInlineData = {
|
|
869
|
-
data?: string;
|
|
870
|
-
};
|
|
871
|
-
/**
|
|
872
|
-
* Live server message model turn
|
|
873
|
-
*/
|
|
874
|
-
export type LiveServerMessageModelTurn = {
|
|
875
|
-
parts?: Array<{
|
|
876
|
-
inlineData?: LiveServerMessagePartInlineData;
|
|
877
|
-
}>;
|
|
878
|
-
};
|
|
879
|
-
/**
|
|
880
|
-
* Live server content structure
|
|
881
|
-
*/
|
|
882
|
-
export type LiveServerContent = {
|
|
883
|
-
modelTurn?: LiveServerMessageModelTurn;
|
|
884
|
-
interrupted?: boolean;
|
|
885
|
-
};
|
|
886
|
-
/**
|
|
887
|
-
* Live server message structure
|
|
888
|
-
*/
|
|
889
|
-
export type LiveServerMessage = {
|
|
890
|
-
serverContent?: LiveServerContent;
|
|
891
|
-
};
|
|
892
|
-
/**
|
|
893
|
-
* Live connection callbacks
|
|
894
|
-
*/
|
|
895
|
-
export type LiveConnectCallbacks = {
|
|
896
|
-
onopen?: () => void;
|
|
897
|
-
onmessage?: (message: LiveServerMessage) => void;
|
|
898
|
-
onerror?: (e: {
|
|
899
|
-
message?: string;
|
|
900
|
-
}) => void;
|
|
901
|
-
onclose?: (e: {
|
|
902
|
-
code?: number;
|
|
903
|
-
reason?: string;
|
|
904
|
-
}) => void;
|
|
905
|
-
};
|
|
906
|
-
/**
|
|
907
|
-
* Live connection configuration
|
|
908
|
-
*/
|
|
909
|
-
export type LiveConnectConfig = {
|
|
910
|
-
model: string;
|
|
911
|
-
callbacks: LiveConnectCallbacks;
|
|
912
|
-
config: {
|
|
913
|
-
responseModalities: ("TEXT" | "IMAGE" | "AUDIO")[];
|
|
914
|
-
speechConfig: {
|
|
915
|
-
voiceConfig: {
|
|
916
|
-
prebuiltVoiceConfig: {
|
|
917
|
-
voiceName: string;
|
|
918
|
-
};
|
|
919
|
-
};
|
|
920
|
-
};
|
|
921
|
-
};
|
|
922
|
-
};
|
|
923
|
-
/**
|
|
924
|
-
* Google AI Live session interface
|
|
925
|
-
*/
|
|
926
|
-
export type GenAILiveSession = {
|
|
927
|
-
sendRealtimeInput?: (payload: {
|
|
928
|
-
media?: GenAILiveMedia;
|
|
929
|
-
event?: string;
|
|
930
|
-
}) => Promise<void> | void;
|
|
931
|
-
sendInput?: (payload: {
|
|
932
|
-
event?: string;
|
|
933
|
-
media?: GenAILiveMedia;
|
|
934
|
-
}) => Promise<void> | void;
|
|
935
|
-
close?: (code?: number, reason?: string) => Promise<void> | void;
|
|
936
|
-
};
|
|
937
|
-
/**
|
|
938
|
-
* Google AI generateContentStream response chunk
|
|
939
|
-
*/
|
|
940
|
-
export type GenAIStreamChunk = {
|
|
941
|
-
text?: string;
|
|
942
|
-
functionCalls?: Array<{
|
|
943
|
-
name: string;
|
|
944
|
-
args: Record<string, unknown>;
|
|
945
|
-
}>;
|
|
946
|
-
candidates?: Array<{
|
|
947
|
-
content?: {
|
|
948
|
-
parts?: Array<{
|
|
949
|
-
text?: string;
|
|
950
|
-
inlineData?: {
|
|
951
|
-
data?: string;
|
|
952
|
-
mimeType?: string;
|
|
953
|
-
};
|
|
954
|
-
}>;
|
|
955
|
-
};
|
|
956
|
-
}>;
|
|
957
|
-
};
|
|
958
|
-
/**
|
|
959
|
-
* Google AI generate content response
|
|
960
|
-
*/
|
|
961
|
-
export type GenAIGenerateContentResponse = {
|
|
962
|
-
candidates?: Array<{
|
|
963
|
-
content?: {
|
|
964
|
-
parts?: Array<{
|
|
965
|
-
text?: string;
|
|
966
|
-
inlineData?: {
|
|
967
|
-
data?: string;
|
|
968
|
-
mimeType?: string;
|
|
969
|
-
};
|
|
970
|
-
}>;
|
|
971
|
-
};
|
|
972
|
-
}>;
|
|
973
|
-
};
|
|
974
|
-
/**
|
|
975
|
-
* Google AI models API interface
|
|
976
|
-
*/
|
|
977
|
-
export type GenAIModelsAPI = {
|
|
978
|
-
generateContentStream: (params: {
|
|
979
|
-
model: string;
|
|
980
|
-
contents: Array<{
|
|
981
|
-
role: string;
|
|
982
|
-
parts: unknown[];
|
|
983
|
-
}>;
|
|
984
|
-
config?: Record<string, unknown>;
|
|
985
|
-
}) => Promise<AsyncIterable<GenAIStreamChunk>>;
|
|
986
|
-
generateContent: (params: {
|
|
987
|
-
model: string;
|
|
988
|
-
contents: Array<{
|
|
989
|
-
role: string;
|
|
990
|
-
parts: unknown[];
|
|
991
|
-
}>;
|
|
992
|
-
config?: Record<string, unknown>;
|
|
993
|
-
}) => Promise<GenAIGenerateContentResponse>;
|
|
994
|
-
embedContent: (params: {
|
|
995
|
-
model: string;
|
|
996
|
-
contents: string | string[];
|
|
997
|
-
config?: Record<string, unknown>;
|
|
998
|
-
}) => Promise<{
|
|
999
|
-
embeddings?: Array<{
|
|
1000
|
-
values?: number[];
|
|
1001
|
-
}>;
|
|
1002
|
-
}>;
|
|
1003
|
-
};
|
|
1004
|
-
/**
|
|
1005
|
-
* Google AI client interface
|
|
1006
|
-
*/
|
|
1007
|
-
export type GenAIClient = {
|
|
1008
|
-
live: {
|
|
1009
|
-
connect: (config: LiveConnectConfig) => Promise<GenAILiveSession>;
|
|
1010
|
-
};
|
|
1011
|
-
models: GenAIModelsAPI;
|
|
1012
|
-
};
|
|
1013
|
-
/**
|
|
1014
|
-
* HTTP options for Google GenAI SDK
|
|
1015
|
-
* Allows custom fetch implementation for proxy support
|
|
1016
|
-
*/
|
|
1017
|
-
export type GoogleGenAIHttpOptions = {
|
|
1018
|
-
/** Custom fetch implementation for proxy support */
|
|
1019
|
-
fetch?: typeof fetch;
|
|
1020
|
-
/** Override the API base URL (e.g. a corporate proxy or mock endpoint) */
|
|
1021
|
-
baseUrl?: string;
|
|
1022
|
-
};
|
|
1023
|
-
/**
|
|
1024
|
-
* Google GenAI constructor type
|
|
1025
|
-
* Supports both API key (Google AI Studio) and Vertex AI configurations
|
|
1026
|
-
*/
|
|
1027
|
-
export type GoogleGenAIClass = new (cfg: {
|
|
1028
|
-
apiKey: string;
|
|
1029
|
-
httpOptions?: GoogleGenAIHttpOptions;
|
|
1030
|
-
} | {
|
|
1031
|
-
vertexai: boolean;
|
|
1032
|
-
project: string;
|
|
1033
|
-
location: string;
|
|
1034
|
-
httpOptions?: GoogleGenAIHttpOptions;
|
|
1035
|
-
}) => GenAIClient;
|
|
1036
|
-
/**
|
|
1037
|
-
* Google Vertex AI provider settings for native SDK configuration
|
|
1038
|
-
* Used with @google/genai SDK in vertexai mode
|
|
1039
|
-
*
|
|
1040
|
-
* Note: Authentication is handled via environment variables (GOOGLE_APPLICATION_CREDENTIALS)
|
|
1041
|
-
* or the temporary credentials file approach, not through these settings fields.
|
|
1042
|
-
*/
|
|
1043
|
-
export type GoogleVertexProviderSettings = {
|
|
1044
|
-
/** Google Cloud project ID */
|
|
1045
|
-
project: string;
|
|
1046
|
-
/** Google Cloud region/location (e.g., 'us-central1') */
|
|
1047
|
-
location: string;
|
|
1048
|
-
/** Optional custom fetch implementation */
|
|
1049
|
-
fetch?: typeof fetch;
|
|
1050
|
-
};
|
|
1051
|
-
/**
|
|
1052
|
-
* Anthropic Vertex AI settings for Claude models on Vertex
|
|
1053
|
-
* Used with @anthropic-ai/vertex-sdk
|
|
1054
|
-
*/
|
|
1055
|
-
export type AnthropicVertexSettings = {
|
|
1056
|
-
/** Google Cloud project ID */
|
|
1057
|
-
projectId: string;
|
|
1058
|
-
/** Google Cloud region for Anthropic models (e.g., 'us-east5') */
|
|
1059
|
-
region: string;
|
|
1060
|
-
/** SDK request timeout in milliseconds */
|
|
1061
|
-
timeout?: number;
|
|
1062
|
-
/** SDK-internal retry budget (transport retries are the orchestrator's job) */
|
|
1063
|
-
maxRetries?: number;
|
|
1064
|
-
};
|
|
1065
|
-
/**
|
|
1066
|
-
* OpenAI-compatible models endpoint response structure
|
|
1067
|
-
*/
|
|
1068
|
-
export type ModelsResponse = {
|
|
1069
|
-
data: Array<{
|
|
1070
|
-
id: string;
|
|
1071
|
-
object: string;
|
|
1072
|
-
created?: number;
|
|
1073
|
-
owned_by?: string;
|
|
1074
|
-
}>;
|
|
1075
|
-
};
|
|
1076
|
-
/**
|
|
1077
|
-
* Default model aliases for easy reference
|
|
1078
|
-
*/
|
|
1079
|
-
export declare const DEFAULT_MODEL_ALIASES: {
|
|
1080
|
-
readonly LATEST_OPENAI: OpenAIModels.GPT_4O;
|
|
1081
|
-
readonly FASTEST_OPENAI: OpenAIModels.GPT_4O_MINI;
|
|
1082
|
-
readonly LATEST_ANTHROPIC: AnthropicModels.CLAUDE_3_5_SONNET;
|
|
1083
|
-
readonly FASTEST_ANTHROPIC: AnthropicModels.CLAUDE_3_5_HAIKU;
|
|
1084
|
-
readonly LATEST_GOOGLE: GoogleAIModels.GEMINI_2_5_PRO;
|
|
1085
|
-
readonly FASTEST_GOOGLE: GoogleAIModels.GEMINI_2_5_FLASH;
|
|
1086
|
-
readonly BEST_CODING: AnthropicModels.CLAUDE_3_5_SONNET;
|
|
1087
|
-
readonly BEST_ANALYSIS: GoogleAIModels.GEMINI_2_5_PRO;
|
|
1088
|
-
readonly BEST_CREATIVE: AnthropicModels.CLAUDE_3_5_SONNET;
|
|
1089
|
-
readonly BEST_VALUE: GoogleAIModels.GEMINI_2_5_FLASH;
|
|
1090
|
-
};
|
|
1091
|
-
/**
|
|
1092
|
-
* @deprecated Use DEFAULT_MODEL_ALIASES instead. Will be removed in future version.
|
|
1093
|
-
*/
|
|
1094
|
-
export declare const ModelAliases: {
|
|
1095
|
-
readonly LATEST_OPENAI: OpenAIModels.GPT_4O;
|
|
1096
|
-
readonly FASTEST_OPENAI: OpenAIModels.GPT_4O_MINI;
|
|
1097
|
-
readonly LATEST_ANTHROPIC: AnthropicModels.CLAUDE_3_5_SONNET;
|
|
1098
|
-
readonly FASTEST_ANTHROPIC: AnthropicModels.CLAUDE_3_5_HAIKU;
|
|
1099
|
-
readonly LATEST_GOOGLE: GoogleAIModels.GEMINI_2_5_PRO;
|
|
1100
|
-
readonly FASTEST_GOOGLE: GoogleAIModels.GEMINI_2_5_FLASH;
|
|
1101
|
-
readonly BEST_CODING: AnthropicModels.CLAUDE_3_5_SONNET;
|
|
1102
|
-
readonly BEST_ANALYSIS: GoogleAIModels.GEMINI_2_5_PRO;
|
|
1103
|
-
readonly BEST_CREATIVE: AnthropicModels.CLAUDE_3_5_SONNET;
|
|
1104
|
-
readonly BEST_VALUE: GoogleAIModels.GEMINI_2_5_FLASH;
|
|
1105
|
-
};
|
|
1106
|
-
/**
|
|
1107
|
-
* Default provider configurations
|
|
1108
|
-
*/
|
|
1109
|
-
export declare const DEFAULT_PROVIDER_CONFIGS: AIModelProviderConfig[];
|
|
1110
|
-
/**
|
|
1111
|
-
* Adaptive semaphore configuration for concurrency management
|
|
1112
|
-
*/
|
|
1113
|
-
export type AdaptiveSemaphoreConfig = {
|
|
1114
|
-
initialConcurrency: number;
|
|
1115
|
-
maxConcurrency: number;
|
|
1116
|
-
minConcurrency: number;
|
|
1117
|
-
};
|
|
1118
|
-
/**
|
|
1119
|
-
* Metrics for adaptive semaphore performance tracking
|
|
1120
|
-
*/
|
|
1121
|
-
export type AdaptiveSemaphoreMetrics = {
|
|
1122
|
-
activeRequests: number;
|
|
1123
|
-
currentConcurrency: number;
|
|
1124
|
-
completedCount: number;
|
|
1125
|
-
errorCount: number;
|
|
1126
|
-
averageResponseTime: number;
|
|
1127
|
-
waitingCount: number;
|
|
1128
|
-
};
|
|
1129
|
-
/**
|
|
1130
|
-
* AWS configuration options for SageMaker client
|
|
1131
|
-
*/
|
|
1132
|
-
export type SageMakerConfig = {
|
|
1133
|
-
/** AWS region for SageMaker service */
|
|
1134
|
-
region: string;
|
|
1135
|
-
/** AWS access key ID */
|
|
1136
|
-
accessKeyId: string;
|
|
1137
|
-
/** AWS secret access key */
|
|
1138
|
-
secretAccessKey: string;
|
|
1139
|
-
/** AWS session token (optional, for temporary credentials) */
|
|
1140
|
-
sessionToken?: string;
|
|
1141
|
-
/** Request timeout in milliseconds */
|
|
1142
|
-
timeout?: number;
|
|
1143
|
-
/** Maximum number of retry attempts */
|
|
1144
|
-
maxRetries?: number;
|
|
1145
|
-
/** Custom SageMaker endpoint URL (optional) */
|
|
1146
|
-
endpoint?: string;
|
|
1147
|
-
};
|
|
1148
|
-
/**
|
|
1149
|
-
* Model-specific configuration for SageMaker endpoints
|
|
1150
|
-
*/
|
|
1151
|
-
export type SageMakerModelConfig = {
|
|
1152
|
-
/** SageMaker endpoint name */
|
|
1153
|
-
endpointName: string;
|
|
1154
|
-
/** Model type for request/response formatting */
|
|
1155
|
-
modelType?: "llama" | "mistral" | "claude" | "huggingface" | "jumpstart" | "custom";
|
|
1156
|
-
/** Content type for requests */
|
|
1157
|
-
contentType?: string;
|
|
1158
|
-
/** Accept header for responses */
|
|
1159
|
-
accept?: string;
|
|
1160
|
-
/** Custom attributes for the endpoint */
|
|
1161
|
-
customAttributes?: string;
|
|
1162
|
-
/** Input format specification */
|
|
1163
|
-
inputFormat?: "huggingface" | "jumpstart" | "custom";
|
|
1164
|
-
/** Output format specification */
|
|
1165
|
-
outputFormat?: "huggingface" | "jumpstart" | "custom";
|
|
1166
|
-
/** Maximum tokens for generation */
|
|
1167
|
-
maxTokens?: number;
|
|
1168
|
-
/** Temperature parameter */
|
|
1169
|
-
temperature?: number;
|
|
1170
|
-
/** Top-p parameter */
|
|
1171
|
-
topP?: number;
|
|
1172
|
-
/** Stop sequences */
|
|
1173
|
-
stopSequences?: string[];
|
|
1174
|
-
/** Initial concurrency for batch processing */
|
|
1175
|
-
initialConcurrency?: number;
|
|
1176
|
-
/** Maximum concurrency for batch processing */
|
|
1177
|
-
maxConcurrency?: number;
|
|
1178
|
-
/** Minimum concurrency for batch processing */
|
|
1179
|
-
minConcurrency?: number;
|
|
1180
|
-
/** Maximum concurrent detection tests */
|
|
1181
|
-
maxConcurrentDetectionTests?: number;
|
|
1182
|
-
};
|
|
1183
|
-
/**
|
|
1184
|
-
* SageMaker endpoint information and metadata
|
|
1185
|
-
*/
|
|
1186
|
-
export type SageMakerEndpointInfo = {
|
|
1187
|
-
/** Endpoint name */
|
|
1188
|
-
endpointName: string;
|
|
1189
|
-
/** Endpoint ARN */
|
|
1190
|
-
endpointArn: string;
|
|
1191
|
-
/** Associated model name */
|
|
1192
|
-
modelName: string;
|
|
1193
|
-
/** EC2 instance type */
|
|
1194
|
-
instanceType: string;
|
|
1195
|
-
/** Endpoint creation timestamp */
|
|
1196
|
-
creationTime: string;
|
|
1197
|
-
/** Last modification timestamp */
|
|
1198
|
-
lastModifiedTime: string;
|
|
1199
|
-
/** Current endpoint status */
|
|
1200
|
-
endpointStatus: "InService" | "Creating" | "Updating" | "SystemUpdating" | "RollingBack" | "Deleting" | "Failed";
|
|
1201
|
-
/** Current instance count */
|
|
1202
|
-
currentInstanceCount?: number;
|
|
1203
|
-
/** Variant weights for A/B testing */
|
|
1204
|
-
productionVariants?: Array<{
|
|
1205
|
-
variantName: string;
|
|
1206
|
-
modelName: string;
|
|
1207
|
-
initialInstanceCount: number;
|
|
1208
|
-
instanceType: string;
|
|
1209
|
-
currentWeight?: number;
|
|
1210
|
-
}>;
|
|
1211
|
-
};
|
|
1212
|
-
/**
|
|
1213
|
-
* Token usage and billing information
|
|
1214
|
-
*/
|
|
1215
|
-
export type SageMakerUsage = {
|
|
1216
|
-
/** Number of prompt tokens */
|
|
1217
|
-
promptTokens: number;
|
|
1218
|
-
/** Number of completion tokens */
|
|
1219
|
-
completionTokens: number;
|
|
1220
|
-
/** Total tokens used */
|
|
1221
|
-
total: number;
|
|
1222
|
-
/** Request processing time in milliseconds */
|
|
1223
|
-
requestTime?: number;
|
|
1224
|
-
/** Model inference time in milliseconds */
|
|
1225
|
-
inferenceTime?: number;
|
|
1226
|
-
/** Estimated cost in USD */
|
|
1227
|
-
estimatedCost?: number;
|
|
1228
|
-
};
|
|
1229
|
-
/**
|
|
1230
|
-
* Parameters for SageMaker endpoint invocation
|
|
1231
|
-
*/
|
|
1232
|
-
export type InvokeEndpointParams = {
|
|
1233
|
-
/** Endpoint name to invoke */
|
|
1234
|
-
EndpointName: string;
|
|
1235
|
-
/** Request body as string or Uint8Array */
|
|
1236
|
-
Body: string | Uint8Array;
|
|
1237
|
-
/** Content type of the request */
|
|
1238
|
-
ContentType?: string;
|
|
1239
|
-
/** Accept header for response format */
|
|
1240
|
-
Accept?: string;
|
|
1241
|
-
/** Custom attributes for the request */
|
|
1242
|
-
CustomAttributes?: string;
|
|
1243
|
-
/** Target model for multi-model endpoints */
|
|
1244
|
-
TargetModel?: string;
|
|
1245
|
-
/** Target variant for A/B testing */
|
|
1246
|
-
TargetVariant?: string;
|
|
1247
|
-
/** Inference ID for request tracking */
|
|
1248
|
-
InferenceId?: string;
|
|
1249
|
-
};
|
|
1250
|
-
/**
|
|
1251
|
-
* Response from SageMaker endpoint invocation
|
|
1252
|
-
*/
|
|
1253
|
-
export type InvokeEndpointResponse = {
|
|
1254
|
-
/** Response body */
|
|
1255
|
-
Body?: Uint8Array;
|
|
1256
|
-
/** Content type of the response */
|
|
1257
|
-
ContentType?: string;
|
|
1258
|
-
/** Invoked production variant */
|
|
1259
|
-
InvokedProductionVariant?: string;
|
|
1260
|
-
/** Custom attributes in the response */
|
|
1261
|
-
CustomAttributes?: string;
|
|
1262
|
-
};
|
|
1263
|
-
/**
|
|
1264
|
-
* Streaming response chunk from SageMaker
|
|
1265
|
-
*/
|
|
1266
|
-
export type SageMakerStreamChunk = {
|
|
1267
|
-
/** Text content in the chunk */
|
|
1268
|
-
content?: string;
|
|
1269
|
-
/** Indicates if this is the final chunk */
|
|
1270
|
-
done?: boolean;
|
|
1271
|
-
/** Usage information (only in final chunk) */
|
|
1272
|
-
usage?: SageMakerUsage;
|
|
1273
|
-
/** Error information if chunk contains error */
|
|
1274
|
-
error?: string;
|
|
1275
|
-
/** Finish reason for generation */
|
|
1276
|
-
finishReason?: "stop" | "length" | "tool-calls" | "content-filter" | "unknown";
|
|
1277
|
-
/** Tool call in progress (Phase 2.3) */
|
|
1278
|
-
toolCall?: SageMakerStreamingToolCall;
|
|
1279
|
-
/** Tool result chunk (Phase 2.3) */
|
|
1280
|
-
toolResult?: SageMakerStreamingToolResult;
|
|
1281
|
-
/** Structured output streaming (Phase 2.3) */
|
|
1282
|
-
structuredOutput?: SageMakerStructuredOutput;
|
|
1283
|
-
};
|
|
1284
|
-
/**
|
|
1285
|
-
* Tool call information for function calling
|
|
1286
|
-
*/
|
|
1287
|
-
export type SageMakerToolCall = {
|
|
1288
|
-
/** Tool call identifier */
|
|
1289
|
-
id: string;
|
|
1290
|
-
/** Tool/function name */
|
|
1291
|
-
name: string;
|
|
1292
|
-
/** Tool arguments as JSON object */
|
|
1293
|
-
arguments: Record<string, unknown>;
|
|
1294
|
-
/** Tool call type */
|
|
1295
|
-
type: "function";
|
|
1296
|
-
};
|
|
1297
|
-
/**
|
|
1298
|
-
* Tool result information
|
|
1299
|
-
*/
|
|
1300
|
-
export type SageMakerToolResult = {
|
|
1301
|
-
/** Tool call identifier */
|
|
1302
|
-
toolCallId: string;
|
|
1303
|
-
/** Tool name */
|
|
1304
|
-
toolName: string;
|
|
1305
|
-
/** Tool result data */
|
|
1306
|
-
result: unknown;
|
|
1307
|
-
/** Execution status */
|
|
1308
|
-
status: "success" | "error";
|
|
1309
|
-
/** Error message if status is error */
|
|
1310
|
-
error?: string;
|
|
1311
|
-
};
|
|
1312
|
-
/**
|
|
1313
|
-
* Streaming tool call information (Phase 2.3)
|
|
1314
|
-
*/
|
|
1315
|
-
export type SageMakerStreamingToolCall = {
|
|
1316
|
-
/** Tool call identifier */
|
|
1317
|
-
id: string;
|
|
1318
|
-
/** Tool/function name */
|
|
1319
|
-
name?: string;
|
|
1320
|
-
/** Partial or complete arguments as JSON string */
|
|
1321
|
-
arguments?: string;
|
|
1322
|
-
/** Tool call type */
|
|
1323
|
-
type: "function";
|
|
1324
|
-
/** Indicates if this tool call is complete */
|
|
1325
|
-
complete?: boolean;
|
|
1326
|
-
/** Delta text for incremental argument building */
|
|
1327
|
-
argumentsDelta?: string;
|
|
1328
|
-
};
|
|
1329
|
-
/**
|
|
1330
|
-
* Streaming tool result information (Phase 2.3)
|
|
1331
|
-
*/
|
|
1332
|
-
export type SageMakerStreamingToolResult = {
|
|
1333
|
-
/** Tool call identifier */
|
|
1334
|
-
toolCallId: string;
|
|
1335
|
-
/** Tool name */
|
|
1336
|
-
toolName: string;
|
|
1337
|
-
/** Partial or complete result data */
|
|
1338
|
-
result?: unknown;
|
|
1339
|
-
/** Result delta for incremental responses */
|
|
1340
|
-
resultDelta?: string;
|
|
1341
|
-
/** Execution status */
|
|
1342
|
-
status: "pending" | "running" | "success" | "error";
|
|
1343
|
-
/** Error message if status is error */
|
|
1344
|
-
error?: string;
|
|
1345
|
-
/** Indicates if this result is complete */
|
|
1346
|
-
complete?: boolean;
|
|
1347
|
-
};
|
|
1348
|
-
/**
|
|
1349
|
-
* Structured output streaming information (Phase 2.3)
|
|
1350
|
-
*/
|
|
1351
|
-
export type SageMakerStructuredOutput = {
|
|
1352
|
-
/** Partial JSON object being built */
|
|
1353
|
-
partialObject?: Record<string, unknown>;
|
|
1354
|
-
/** JSON delta text */
|
|
1355
|
-
jsonDelta?: string;
|
|
1356
|
-
/** Current parsing path (e.g., "user.name") */
|
|
1357
|
-
currentPath?: string;
|
|
1358
|
-
/** Schema validation errors */
|
|
1359
|
-
validationErrors?: string[];
|
|
1360
|
-
/** Indicates if JSON is complete and valid */
|
|
1361
|
-
complete?: boolean;
|
|
1362
|
-
/** JSON schema being validated against */
|
|
1363
|
-
schema?: Record<string, unknown>;
|
|
1364
|
-
};
|
|
1365
|
-
/**
|
|
1366
|
-
* Enhanced generation request options
|
|
1367
|
-
*/
|
|
1368
|
-
export type SageMakerGenerationOptions = {
|
|
1369
|
-
/** Input prompt text */
|
|
1370
|
-
prompt: string;
|
|
1371
|
-
/** System prompt for context */
|
|
1372
|
-
systemPrompt?: string;
|
|
1373
|
-
/** Maximum tokens to generate */
|
|
1374
|
-
maxTokens?: number;
|
|
1375
|
-
/** Temperature for randomness (0-1) */
|
|
1376
|
-
temperature?: number;
|
|
1377
|
-
/** Top-p nucleus sampling (0-1) */
|
|
1378
|
-
topP?: number;
|
|
1379
|
-
/** Top-k sampling */
|
|
1380
|
-
topK?: number;
|
|
1381
|
-
/** Stop sequences to end generation */
|
|
1382
|
-
stopSequences?: string[];
|
|
1383
|
-
/** Enable streaming response */
|
|
1384
|
-
stream?: boolean;
|
|
1385
|
-
/** Tools available for function calling */
|
|
1386
|
-
tools?: Array<{
|
|
1387
|
-
name: string;
|
|
1388
|
-
description: string;
|
|
1389
|
-
parameters: Record<string, unknown>;
|
|
1390
|
-
}>;
|
|
1391
|
-
/** Tool choice mode */
|
|
1392
|
-
toolChoice?: "auto" | "none" | {
|
|
1393
|
-
type: "tool";
|
|
1394
|
-
name: string;
|
|
1395
|
-
};
|
|
1396
|
-
};
|
|
1397
|
-
/**
|
|
1398
|
-
* Generation response from SageMaker
|
|
1399
|
-
*/
|
|
1400
|
-
export type SageMakerGenerationResponse = {
|
|
1401
|
-
/** Generated text content */
|
|
1402
|
-
text: string;
|
|
1403
|
-
/** Token usage information */
|
|
1404
|
-
usage: SageMakerUsage;
|
|
1405
|
-
/** Finish reason for generation */
|
|
1406
|
-
finishReason: "stop" | "length" | "tool-calls" | "content-filter" | "unknown";
|
|
1407
|
-
/** Tool calls made during generation */
|
|
1408
|
-
toolCalls?: SageMakerToolCall[];
|
|
1409
|
-
/** Tool results if tools were executed */
|
|
1410
|
-
toolResults?: SageMakerToolResult[];
|
|
1411
|
-
/** Additional metadata */
|
|
1412
|
-
metadata?: Record<string, unknown>;
|
|
1413
|
-
/** Model version or identifier */
|
|
1414
|
-
modelVersion?: string;
|
|
1415
|
-
};
|
|
1416
|
-
/**
|
|
1417
|
-
* Error codes specific to SageMaker operations
|
|
1418
|
-
*/
|
|
1419
|
-
export type SageMakerErrorCode = "VALIDATION_ERROR" | "MODEL_ERROR" | "INTERNAL_ERROR" | "SERVICE_UNAVAILABLE" | "CREDENTIALS_ERROR" | "NETWORK_ERROR" | "ENDPOINT_NOT_FOUND" | "THROTTLING_ERROR" | "UNKNOWN_ERROR";
|
|
1420
|
-
/**
|
|
1421
|
-
* SageMaker-specific error information
|
|
1422
|
-
*/
|
|
1423
|
-
export type SageMakerErrorInfo = {
|
|
1424
|
-
/** Error code */
|
|
1425
|
-
code: SageMakerErrorCode;
|
|
1426
|
-
/** Human-readable error message */
|
|
1427
|
-
message: string;
|
|
1428
|
-
/** HTTP status code if applicable */
|
|
1429
|
-
statusCode?: number;
|
|
1430
|
-
/** Original error from AWS SDK */
|
|
1431
|
-
cause?: Error;
|
|
1432
|
-
/** Endpoint name where error occurred */
|
|
1433
|
-
endpoint?: string;
|
|
1434
|
-
/** Request ID for debugging */
|
|
1435
|
-
requestId?: string;
|
|
1436
|
-
/** Retry suggestion */
|
|
1437
|
-
retryable?: boolean;
|
|
1438
|
-
};
|
|
1439
|
-
/**
|
|
1440
|
-
* Batch inference job configuration
|
|
1441
|
-
*/
|
|
1442
|
-
export type BatchInferenceConfig = {
|
|
1443
|
-
/** Input S3 location */
|
|
1444
|
-
inputS3Uri: string;
|
|
1445
|
-
/** Output S3 location */
|
|
1446
|
-
outputS3Uri: string;
|
|
1447
|
-
/** SageMaker model name */
|
|
1448
|
-
modelName: string;
|
|
1449
|
-
/** Instance type for batch job */
|
|
1450
|
-
instanceType: string;
|
|
1451
|
-
/** Instance count for batch job */
|
|
1452
|
-
instanceCount: number;
|
|
1453
|
-
/** Maximum payload size in MB */
|
|
1454
|
-
maxPayloadInMB?: number;
|
|
1455
|
-
/** Batch strategy */
|
|
1456
|
-
batchStrategy?: "MultiRecord" | "SingleRecord";
|
|
1457
|
-
};
|
|
1458
|
-
/**
|
|
1459
|
-
* Model deployment configuration
|
|
1460
|
-
*/
|
|
1461
|
-
export type ModelDeploymentConfig = {
|
|
1462
|
-
/** Model name */
|
|
1463
|
-
modelName: string;
|
|
1464
|
-
/** Endpoint name */
|
|
1465
|
-
endpointName: string;
|
|
1466
|
-
/** EC2 instance type */
|
|
1467
|
-
instanceType: string;
|
|
1468
|
-
/** Initial instance count */
|
|
1469
|
-
initialInstanceCount: number;
|
|
1470
|
-
/** Model data S3 location */
|
|
1471
|
-
modelDataUrl: string;
|
|
1472
|
-
/** Container image URI */
|
|
1473
|
-
image: string;
|
|
1474
|
-
/** IAM execution role ARN */
|
|
1475
|
-
executionRoleArn: string;
|
|
1476
|
-
/** Resource tags */
|
|
1477
|
-
tags?: Record<string, string>;
|
|
1478
|
-
/** Auto scaling configuration */
|
|
1479
|
-
autoScaling?: {
|
|
1480
|
-
minCapacity: number;
|
|
1481
|
-
maxCapacity: number;
|
|
1482
|
-
targetValue: number;
|
|
1483
|
-
scaleUpCooldown: number;
|
|
1484
|
-
scaleDownCooldown: number;
|
|
1485
|
-
};
|
|
1486
|
-
};
|
|
1487
|
-
/**
|
|
1488
|
-
* Endpoint metrics and monitoring data
|
|
1489
|
-
*/
|
|
1490
|
-
export type EndpointMetrics = {
|
|
1491
|
-
/** Endpoint name */
|
|
1492
|
-
endpointName: string;
|
|
1493
|
-
/** Total invocations */
|
|
1494
|
-
invocations: number;
|
|
1495
|
-
/** Average latency in milliseconds */
|
|
1496
|
-
averageLatency: number;
|
|
1497
|
-
/** Error rate percentage */
|
|
1498
|
-
errorRate: number;
|
|
1499
|
-
/** CPU utilization percentage */
|
|
1500
|
-
cpuUtilization?: number;
|
|
1501
|
-
/** Memory utilization percentage */
|
|
1502
|
-
memoryUtilization?: number;
|
|
1503
|
-
/** Instance count */
|
|
1504
|
-
instanceCount: number;
|
|
1505
|
-
/** Timestamp of metrics as ISO 8601 date string */
|
|
1506
|
-
timestamp: string;
|
|
1507
|
-
};
|
|
1508
|
-
/**
|
|
1509
|
-
* Cost estimation data
|
|
1510
|
-
*/
|
|
1511
|
-
export type CostEstimate = {
|
|
1512
|
-
/** Estimated cost in USD */
|
|
1513
|
-
estimatedCost: number;
|
|
1514
|
-
/** Currency code */
|
|
1515
|
-
currency: string;
|
|
1516
|
-
/** Cost breakdown */
|
|
1517
|
-
breakdown: {
|
|
1518
|
-
/** Instance hours cost */
|
|
1519
|
-
instanceCost: number;
|
|
1520
|
-
/** Request-based cost */
|
|
1521
|
-
requestCost: number;
|
|
1522
|
-
/** Total processing hours */
|
|
1523
|
-
totalHours: number;
|
|
1524
|
-
};
|
|
1525
|
-
/** Time period for estimate */
|
|
1526
|
-
period?: {
|
|
1527
|
-
start: string;
|
|
1528
|
-
end: string;
|
|
1529
|
-
};
|
|
1530
|
-
};
|
|
1531
|
-
/**
|
|
1532
|
-
* SageMaker generation result type for better type safety
|
|
1533
|
-
*/
|
|
1534
|
-
export type SageMakerGenerateResult = {
|
|
1535
|
-
text?: string;
|
|
1536
|
-
reasoning?: string | Array<{
|
|
1537
|
-
type: "text";
|
|
1538
|
-
text: string;
|
|
1539
|
-
signature?: string;
|
|
1540
|
-
} | {
|
|
1541
|
-
type: "redacted";
|
|
1542
|
-
data: string;
|
|
1543
|
-
}>;
|
|
1544
|
-
files?: Array<{
|
|
1545
|
-
data: string | Uint8Array;
|
|
1546
|
-
mimeType: string;
|
|
1547
|
-
}>;
|
|
1548
|
-
logprobs?: Array<{
|
|
1549
|
-
token: string;
|
|
1550
|
-
logprob: number;
|
|
1551
|
-
topLogprobs: Array<{
|
|
1552
|
-
token: string;
|
|
1553
|
-
logprob: number;
|
|
1554
|
-
}>;
|
|
1555
|
-
}>;
|
|
1556
|
-
usage: {
|
|
1557
|
-
promptTokens: number;
|
|
1558
|
-
completionTokens: number;
|
|
1559
|
-
totalTokens?: number;
|
|
1560
|
-
};
|
|
1561
|
-
finishReason: "stop" | "length" | "content-filter" | "tool-calls" | "error" | "unknown";
|
|
1562
|
-
warnings?: Array<{
|
|
1563
|
-
type: "other";
|
|
1564
|
-
message: string;
|
|
1565
|
-
}>;
|
|
1566
|
-
rawCall: {
|
|
1567
|
-
rawPrompt: unknown;
|
|
1568
|
-
rawSettings: Record<string, unknown>;
|
|
1569
|
-
};
|
|
1570
|
-
rawResponse?: {
|
|
1571
|
-
headers?: Record<string, string>;
|
|
1572
|
-
};
|
|
1573
|
-
request?: {
|
|
1574
|
-
body?: string;
|
|
1575
|
-
};
|
|
1576
|
-
toolCalls?: SageMakerToolCall[];
|
|
1577
|
-
object?: unknown;
|
|
1578
|
-
};
|
|
1579
|
-
export type ProviderHealthStatusOptions = {
|
|
1580
|
-
provider: AIProviderName;
|
|
1581
|
-
isHealthy: boolean;
|
|
1582
|
-
isConfigured: boolean;
|
|
1583
|
-
hasApiKey: boolean;
|
|
1584
|
-
lastChecked: Date;
|
|
1585
|
-
error?: string;
|
|
1586
|
-
warning?: string;
|
|
1587
|
-
responseTime?: number;
|
|
1588
|
-
configurationIssues: string[];
|
|
1589
|
-
recommendations: string[];
|
|
1590
|
-
};
|
|
1591
|
-
/**
|
|
1592
|
-
* Structural type that captures what AI SDK's `streamText` / `generateText`
|
|
1593
|
-
* actually invoke at runtime on a model object.
|
|
1594
|
-
*
|
|
1595
|
-
* `SageMakerLanguageModel` satisfies this type. Consumers can cast
|
|
1596
|
-
* `new SageMakerLanguageModel(...)` to `LanguageModel` via this
|
|
1597
|
-
* intermediate type, avoiding `as unknown as LanguageModel`.
|
|
1598
|
-
*/
|
|
1599
|
-
export type SageMakerAsLanguageModel = {
|
|
1600
|
-
readonly specificationVersion: string;
|
|
1601
|
-
readonly provider: string;
|
|
1602
|
-
readonly modelId: string;
|
|
1603
|
-
readonly supportedUrls: Record<string, RegExp[]>;
|
|
1604
|
-
doGenerate(options: Record<string, unknown>): Promise<unknown>;
|
|
1605
|
-
doStream(options: Record<string, unknown>): Promise<unknown>;
|
|
1606
|
-
};
|
|
1607
|
-
export type ProviderHealthCheckOptions = {
|
|
1608
|
-
timeout?: number;
|
|
1609
|
-
includeConnectivityTest?: boolean;
|
|
1610
|
-
includeModelValidation?: boolean;
|
|
1611
|
-
cacheResults?: boolean;
|
|
1612
|
-
maxCacheAge?: number;
|
|
1613
|
-
};
|
|
1614
|
-
/**
|
|
1615
|
-
* Amazon Bedrock specific types
|
|
1616
|
-
*/
|
|
1617
|
-
export declare namespace BedrockTypes {
|
|
1618
|
-
type BedrockClient = {
|
|
1619
|
-
send(command: unknown): Promise<unknown>;
|
|
1620
|
-
config: {
|
|
1621
|
-
region?: string;
|
|
1622
|
-
credentials?: unknown;
|
|
1623
|
-
};
|
|
1624
|
-
};
|
|
1625
|
-
type InvokeModelCommand = {
|
|
1626
|
-
input: {
|
|
1627
|
-
modelId: string;
|
|
1628
|
-
body: string;
|
|
1629
|
-
contentType?: string;
|
|
1630
|
-
};
|
|
1631
|
-
};
|
|
1632
|
-
}
|
|
1633
|
-
/**
|
|
1634
|
-
* Mistral specific types
|
|
1635
|
-
*/
|
|
1636
|
-
export declare namespace MistralTypes {
|
|
1637
|
-
type MistralClient = {
|
|
1638
|
-
chat?: {
|
|
1639
|
-
complete?: (options: unknown) => Promise<unknown>;
|
|
1640
|
-
stream?: (options: unknown) => AsyncIterable<unknown>;
|
|
1641
|
-
};
|
|
1642
|
-
};
|
|
1643
|
-
}
|
|
1644
|
-
/**
|
|
1645
|
-
* OpenTelemetry specific types (for telemetry service)
|
|
1646
|
-
*/
|
|
1647
|
-
export declare namespace TelemetryTypes {
|
|
1648
|
-
type Meter = {
|
|
1649
|
-
createCounter(name: string, options?: unknown): Counter;
|
|
1650
|
-
createHistogram(name: string, options?: unknown): Histogram;
|
|
1651
|
-
};
|
|
1652
|
-
type Tracer = {
|
|
1653
|
-
startSpan(name: string, options?: unknown): Span;
|
|
1654
|
-
};
|
|
1655
|
-
type Counter = {
|
|
1656
|
-
add(value: number, attributes?: UnknownRecord): void;
|
|
1657
|
-
};
|
|
1658
|
-
type Histogram = {
|
|
1659
|
-
record(value: number, attributes?: UnknownRecord): void;
|
|
1660
|
-
};
|
|
1661
|
-
type Span = {
|
|
1662
|
-
end(): void;
|
|
1663
|
-
setStatus(status: unknown): void;
|
|
1664
|
-
recordException(exception: unknown): void;
|
|
1665
|
-
};
|
|
1666
|
-
}
|
|
1667
|
-
/**
|
|
1668
|
-
* OpenRouter model information from /api/v1/models endpoint
|
|
1669
|
-
*/
|
|
1670
|
-
export type OpenRouterModelInfo = {
|
|
1671
|
-
/** Model ID in format 'provider/model-name' */
|
|
1672
|
-
id: string;
|
|
1673
|
-
/** Supported parameters (e.g., 'tools', 'temperature') */
|
|
1674
|
-
supported_parameters?: string[];
|
|
1675
|
-
/** Model name */
|
|
1676
|
-
name?: string;
|
|
1677
|
-
/** Model description */
|
|
1678
|
-
description?: string;
|
|
1679
|
-
/** Pricing information */
|
|
1680
|
-
pricing?: {
|
|
1681
|
-
prompt?: string;
|
|
1682
|
-
completion?: string;
|
|
1683
|
-
};
|
|
1684
|
-
/** Context length */
|
|
1685
|
-
context_length?: number;
|
|
1686
|
-
};
|
|
1687
|
-
/**
|
|
1688
|
-
* OpenRouter models API response
|
|
1689
|
-
*/
|
|
1690
|
-
export type OpenRouterModelsResponse = {
|
|
1691
|
-
data: OpenRouterModelInfo[];
|
|
1692
|
-
};
|
|
1693
|
-
/**
|
|
1694
|
-
* OpenRouter provider static cache properties (for testing/internal use)
|
|
1695
|
-
*/
|
|
1696
|
-
export type OpenRouterProviderCache = {
|
|
1697
|
-
modelsCache: string[];
|
|
1698
|
-
modelsCacheTime: number;
|
|
1699
|
-
toolCapableModels: Set<string>;
|
|
1700
|
-
capabilitiesCached: boolean;
|
|
1701
|
-
};
|
|
1702
|
-
/** A single function declaration for the Gemini native SDK. */
|
|
1703
|
-
export type NativeFunctionDeclaration = {
|
|
1704
|
-
name: string;
|
|
1705
|
-
description: string;
|
|
1706
|
-
parametersJsonSchema?: Record<string, unknown>;
|
|
1707
|
-
};
|
|
1708
|
-
/** The tools config array expected by the @google/genai SDK. */
|
|
1709
|
-
export type NativeToolsConfig = Array<{
|
|
1710
|
-
functionDeclarations: NativeFunctionDeclaration[];
|
|
1711
|
-
}>;
|
|
1712
|
-
/**
|
|
1713
|
-
* Return value of buildNativeToolDeclarations.
|
|
1714
|
-
*
|
|
1715
|
-
* `originalNameMap` lets callers translate a Google-safe (sanitized,
|
|
1716
|
-
* suffix-disambiguated) tool name back to the original identifier the
|
|
1717
|
-
* SDK consumer registered. Sanitized names are transport-only — they
|
|
1718
|
-
* MUST be hidden from tool-call metadata exposed to consumers.
|
|
1719
|
-
*/
|
|
1720
|
-
export type NativeToolDeclarationsResult = {
|
|
1721
|
-
toolsConfig: NativeToolsConfig;
|
|
1722
|
-
executeMap: Map<string, Tool["execute"]>;
|
|
1723
|
-
originalNameMap: Map<string, string>;
|
|
1724
|
-
};
|
|
1725
|
-
/** A single function call returned by the Gemini model. */
|
|
1726
|
-
export type NativeFunctionCall = {
|
|
1727
|
-
name: string;
|
|
1728
|
-
args: Record<string, unknown>;
|
|
1729
|
-
};
|
|
1730
|
-
/** A single function response to feed back into the conversation. */
|
|
1731
|
-
export type NativeFunctionResponse = {
|
|
1732
|
-
functionResponse: {
|
|
1733
|
-
name: string;
|
|
1734
|
-
response: unknown;
|
|
1735
|
-
};
|
|
1736
|
-
};
|
|
1737
|
-
/** Result from collectStreamChunks. */
|
|
1738
|
-
export type CollectedChunkResult = {
|
|
1739
|
-
rawResponseParts: unknown[];
|
|
1740
|
-
stepFunctionCalls: NativeFunctionCall[];
|
|
1741
|
-
/** Raw `Candidate.finishReason` from the last chunk that carried one. */
|
|
1742
|
-
finishReason?: string;
|
|
1743
|
-
inputTokens: number;
|
|
1744
|
-
outputTokens: number;
|
|
1745
|
-
/**
|
|
1746
|
-
* Gemini cached-content tokens (overlapping: included in promptTokenCount).
|
|
1747
|
-
* Surfaced so the call site can subtract from input and bill at cacheRead
|
|
1748
|
-
* rate. Subtraction happens at the call site, not in the collector.
|
|
1749
|
-
*/
|
|
1750
|
-
cacheReadTokens?: number;
|
|
1751
|
-
/** Cache creation tokens (symmetry; Gemini does not emit this). */
|
|
1752
|
-
cacheCreationTokens?: number;
|
|
1753
|
-
/**
|
|
1754
|
-
* Gemini thinking tokens (usageMetadata.thoughtsTokenCount). Billed at the
|
|
1755
|
-
* output rate but NOT included in candidatesTokenCount — Gemini reports
|
|
1756
|
-
* totalTokenCount = prompt + candidates + thoughts.
|
|
1757
|
-
*/
|
|
1758
|
-
reasoningTokens?: number;
|
|
1759
|
-
};
|
|
1760
|
-
/** Language model object shape (LanguageModelV2/V3). */
|
|
1761
|
-
export type LanguageModelObject = {
|
|
1762
|
-
readonly modelId: string;
|
|
1763
|
-
readonly provider: string;
|
|
1764
|
-
};
|
|
1765
|
-
/** Step finish event shape for multi-step generation. */
|
|
1766
|
-
export type StepFinishEvent = {
|
|
1767
|
-
readonly toolCalls: ReadonlyArray<unknown>;
|
|
1768
|
-
readonly toolResults: ReadonlyArray<unknown>;
|
|
1769
|
-
readonly text: string;
|
|
1770
|
-
readonly finishReason: string;
|
|
1771
|
-
readonly usage: {
|
|
1772
|
-
inputTokens?: number;
|
|
1773
|
-
outputTokens?: number;
|
|
1774
|
-
};
|
|
1775
|
-
[key: string]: unknown;
|
|
1776
|
-
};
|
|
1777
|
-
/**
|
|
1778
|
-
* Represents an AI SDK Tool that may carry a legacy `parameters` field
|
|
1779
|
-
* (from AI SDK v3/v4) in addition to the current `inputSchema`.
|
|
1780
|
-
*/
|
|
1781
|
-
export type ToolWithLegacyParams = {
|
|
1782
|
-
description?: string;
|
|
1783
|
-
inputSchema?: unknown;
|
|
1784
|
-
execute?: (...args: unknown[]) => unknown;
|
|
1785
|
-
/** Legacy field from AI SDK v3/v4 */
|
|
1786
|
-
parameters?: unknown;
|
|
1787
|
-
};
|
|
1788
|
-
/**
|
|
1789
|
-
* Provider constructor interface - supports both sync constructors and async
|
|
1790
|
-
* factory functions.
|
|
1791
|
-
*/
|
|
1792
|
-
export type ProviderConstructor = {
|
|
1793
|
-
new (modelName?: string, providerName?: string, sdk?: NeuroLink, region?: string, credentials?: UnknownRecord): AIProvider;
|
|
1794
|
-
} | ((modelName?: string, providerName?: string, sdk?: NeuroLink, region?: string, credentials?: UnknownRecord) => Promise<AIProvider>);
|
|
1795
|
-
/** Provider registration entry held by ProviderFactory. */
|
|
1796
|
-
export type ProviderRegistration = {
|
|
1797
|
-
constructor: ProviderConstructor;
|
|
1798
|
-
defaultModel?: string;
|
|
1799
|
-
aliases?: string[];
|
|
1800
|
-
descriptor?: ProviderDescriptor;
|
|
1801
|
-
};
|
|
1802
|
-
/**
|
|
1803
|
-
* Single source of truth for one AI provider's static identity: how it's
|
|
1804
|
-
* addressed (name/aliases), how it's authenticated (credentialsKey/envVars),
|
|
1805
|
-
* what it defaults to (defaultModel), and how the rest of the codebase
|
|
1806
|
-
* should treat it (toolSupport/localRuntime/healthCheck). Every consumer
|
|
1807
|
-
* that used to hand-maintain its own provider table (CLI choices,
|
|
1808
|
-
* CREDENTIAL_KEY_MAP, env-var checks, health-check dispatch, auto-select
|
|
1809
|
-
* priority, PROMPT_ONLY_TOOL_PROVIDERS) derives from PROVIDER_DESCRIPTORS
|
|
1810
|
-
* instead. See src/lib/factories/providerDescriptors.ts for the data.
|
|
1811
|
-
*/
|
|
1812
|
-
export type ProviderDescriptor = {
|
|
1813
|
-
/** Canonical identity — matches an AIProviderName enum member (never AUTO). */
|
|
1814
|
-
name: AIProviderName;
|
|
1815
|
-
/** Alternate spellings accepted by the CLI and the alias index (kebab-case, shorthand, legacy names). Does not include `name` itself. */
|
|
1816
|
-
aliases: readonly string[];
|
|
1817
|
-
/** Key into NeurolinkCredentials for per-call/per-instance credential overrides. */
|
|
1818
|
-
credentialsKey: keyof NeurolinkCredentials;
|
|
1819
|
-
/** Environment variables this provider reads at runtime. */
|
|
1820
|
-
envVars: {
|
|
1821
|
-
/** Primary identity/secret env var. Absent for providers with no required credential (Ollama, LM Studio, llama.cpp) or that use extraRequired instead of a single key (Vertex). */
|
|
1822
|
-
apiKey?: string;
|
|
1823
|
-
/** Alternate env vars accepted in place of apiKey, checked in order after apiKey. */
|
|
1824
|
-
fallbacks?: readonly string[];
|
|
1825
|
-
baseURL?: string;
|
|
1826
|
-
/** Alternate env vars accepted in place of baseURL. */
|
|
1827
|
-
baseURLFallbacks?: readonly string[];
|
|
1828
|
-
/** Env var that overrides the static defaultModel at runtime. */
|
|
1829
|
-
model?: string;
|
|
1830
|
-
/** Alternate env vars accepted in place of model, checked in order after model. */
|
|
1831
|
-
modelFallbacks?: readonly string[];
|
|
1832
|
-
/** Additional env vars required alongside apiKey (e.g. AWS secret key, Azure endpoint). */
|
|
1833
|
-
extraRequired?: readonly string[];
|
|
1834
|
-
/** Alternate ways to satisfy extraRequired when it isn't a plain env-var list (e.g. Vertex's file-path-OR-individual-fields auth). Each entry is either a single env var name (satisfied alone) or a nested array of names that must ALL be present together (e.g. Vertex's GOOGLE_AUTH_CLIENT_EMAIL + GOOGLE_AUTH_PRIVATE_KEY pair, which is only valid as a pair). Evaluate with `satisfiesFallbacks()` (providerConfig.ts) rather than re-deriving this logic at each call site. */
|
|
1835
|
-
extraRequiredFallbacks?: readonly (string | readonly string[])[];
|
|
1836
|
-
/** True when the provider is usable with zero configuration (local runtime with a documented default URL, or a documented non-secret default like LiteLLM's "sk-anything"). */
|
|
1837
|
-
optional?: boolean;
|
|
1838
|
-
};
|
|
1839
|
-
/**
|
|
1840
|
-
* Static fallback model. The empty string "" is a documented sentinel
|
|
1841
|
-
* meaning "no static default — resolved at runtime via envVars.model or
|
|
1842
|
-
* provider-side auto-discovery" (used by Bedrock, OpenAI-Compatible,
|
|
1843
|
-
* LM Studio, llama.cpp, matching how providerRegistry.ts already passes
|
|
1844
|
-
* `undefined` as their defaultModel argument today).
|
|
1845
|
-
*/
|
|
1846
|
-
defaultModel: string;
|
|
1847
|
-
toolSupport: "native" | "prompt-only" | "none" | "model-dependent";
|
|
1848
|
-
/** True only for providers that run entirely on the caller's machine with no cloud account (Ollama, LM Studio, llama.cpp). LiteLLM is a local proxy but commonly points at cloud models, so it is deliberately false. */
|
|
1849
|
-
localRuntime: boolean;
|
|
1850
|
-
/** How ProviderHealthChecker should verify this provider is reachable. */
|
|
1851
|
-
healthCheck: "env-only" | "models-probe" | "live-generate";
|
|
1852
|
-
setupUrl?: string;
|
|
1853
|
-
timeouts?: {
|
|
1854
|
-
generateMs?: number;
|
|
1855
|
-
streamMs?: number;
|
|
1856
|
-
};
|
|
1857
|
-
/** Ascending priority (1 = tried first) in the auto-select fallback chain used by getBestProvider(). Undefined = not part of the auto-select chain. */
|
|
1858
|
-
autoSelectPriority?: number;
|
|
1859
|
-
/** Format-validation regex sourced from providerConfig.ts's API_KEY_FORMATS, when one exists for this provider. */
|
|
1860
|
-
apiKeyFormatPattern?: RegExp;
|
|
1861
|
-
/**
|
|
1862
|
-
* True when this provider's credentials are resolved by an external chain
|
|
1863
|
-
* or its own config validator rather than by plain env-var presence, so
|
|
1864
|
-
* its required-env-vars can't be expressed as "every one of these exact
|
|
1865
|
-
* names must be literally set". Examples: Vertex accepts a service-account
|
|
1866
|
-
* file OR individual client-email/private-key fields OR a base64 key
|
|
1867
|
-
* (an OR, not an AND, of auth paths); Bedrock falls back to the AWS SDK's
|
|
1868
|
-
* own default credential chain (shared profile, IAM role) with no env
|
|
1869
|
-
* vars required at all; LiteLLM is a documented zero-config local proxy.
|
|
1870
|
-
* `ProviderHealthChecker.getRequiredEnvironmentVariables()` returns `[]`
|
|
1871
|
-
* for these providers and defers to `checkProviderSpecificConfig()`'s
|
|
1872
|
-
* dedicated per-provider check instead of deriving a flat AND-list from
|
|
1873
|
-
* `envVars`.
|
|
1874
|
-
*/
|
|
1875
|
-
credentialsResolvedExternally?: boolean;
|
|
1876
|
-
};
|
|
1877
|
-
/** Minimal NeuroLink-like instance accepted by the image generation service. */
|
|
1878
|
-
export type NeuroLinkInstance = {
|
|
1879
|
-
generate: (options: Record<string, unknown>) => Promise<unknown>;
|
|
1880
|
-
};
|
|
1881
|
-
/** Model type detection result. */
|
|
1882
|
-
export type ModelDetectionResult = {
|
|
1883
|
-
type: StreamingCapability["modelType"];
|
|
1884
|
-
confidence: number;
|
|
1885
|
-
evidence: string[];
|
|
1886
|
-
suggestedConfig?: Partial<SageMakerModelConfig>;
|
|
1887
|
-
};
|
|
1888
|
-
/** Endpoint health and metadata information. */
|
|
1889
|
-
export type EndpointHealth = {
|
|
1890
|
-
status: "healthy" | "unhealthy" | "unknown";
|
|
1891
|
-
responseTime: number;
|
|
1892
|
-
metadata?: Record<string, unknown>;
|
|
1893
|
-
modelInfo?: {
|
|
1894
|
-
name?: string;
|
|
1895
|
-
version?: string;
|
|
1896
|
-
framework?: string;
|
|
1897
|
-
architecture?: string;
|
|
1898
|
-
};
|
|
1899
|
-
};
|
|
1900
|
-
/** Configuration object for a detection test wrapper. */
|
|
1901
|
-
export type DetectionTestConfig = {
|
|
1902
|
-
test: () => Promise<void>;
|
|
1903
|
-
index: number;
|
|
1904
|
-
testName: string;
|
|
1905
|
-
endpointName: string;
|
|
1906
|
-
semaphore: {
|
|
1907
|
-
acquire(): Promise<void>;
|
|
1908
|
-
release(): void;
|
|
1909
|
-
};
|
|
1910
|
-
incrementRateLimit: () => void;
|
|
1911
|
-
maxRateLimitRetries: number;
|
|
1912
|
-
rateLimitState: {
|
|
1913
|
-
count: number;
|
|
1914
|
-
};
|
|
1915
|
-
};
|
|
1916
|
-
/** Configuration object for parallel detection test execution. */
|
|
1917
|
-
export type ParallelDetectionConfig = {
|
|
1918
|
-
maxConcurrentTests: number;
|
|
1919
|
-
maxRateLimitRetries: number;
|
|
1920
|
-
initialRateLimitCount: number;
|
|
1921
|
-
};
|
|
1922
|
-
/** Individual SageMaker diagnostic result. */
|
|
1923
|
-
export type DiagnosticResult = {
|
|
1924
|
-
name: string;
|
|
1925
|
-
category: "configuration" | "connectivity" | "streaming";
|
|
1926
|
-
status: "pass" | "fail" | "warning";
|
|
1927
|
-
message: string;
|
|
1928
|
-
details?: string;
|
|
1929
|
-
recommendation?: string;
|
|
1930
|
-
};
|
|
1931
|
-
/** Aggregated SageMaker diagnostic report. */
|
|
1932
|
-
export type DiagnosticReport = {
|
|
1933
|
-
overallStatus: "healthy" | "issues" | "critical";
|
|
1934
|
-
results: DiagnosticResult[];
|
|
1935
|
-
summary: {
|
|
1936
|
-
total: number;
|
|
1937
|
-
passed: number;
|
|
1938
|
-
failed: number;
|
|
1939
|
-
warnings: number;
|
|
1940
|
-
};
|
|
1941
|
-
};
|
|
1942
|
-
/** SageMaker tool_call item in the OpenAI-compatible payload shape. */
|
|
1943
|
-
export type SageMakerOpenAIToolCall = {
|
|
1944
|
-
type: "function";
|
|
1945
|
-
id: string;
|
|
1946
|
-
function: {
|
|
1947
|
-
name: string;
|
|
1948
|
-
arguments: string;
|
|
1949
|
-
};
|
|
1950
|
-
};
|
|
1951
|
-
/**
|
|
1952
|
-
* Event pushed through the Google AI Studio voice session's internal queue
|
|
1953
|
-
* while audio chunks stream back from the Gemini Live API.
|
|
1954
|
-
*/
|
|
1955
|
-
export type GoogleLiveAudioQueueItem = {
|
|
1956
|
-
type: "audio";
|
|
1957
|
-
audio: import("./stream.js").AudioChunk;
|
|
1958
|
-
} | {
|
|
1959
|
-
type: "end";
|
|
1960
|
-
} | {
|
|
1961
|
-
type: "error";
|
|
1962
|
-
error: unknown;
|
|
1963
|
-
};
|
|
1964
|
-
/**
|
|
1965
|
-
* Single part inside a Google Vertex "native" (non-AI-SDK) generateContent
|
|
1966
|
-
* payload — either inline text or an inline base64 data blob.
|
|
1967
|
-
*
|
|
1968
|
-
* Despite the "Vertex" prefix, the shape is identical for the Google AI
|
|
1969
|
-
* Studio native path (`@google/genai` SDK), so AI Studio re-uses this type.
|
|
1970
|
-
*/
|
|
1971
|
-
export type VertexNativePart = {
|
|
1972
|
-
text: string;
|
|
1973
|
-
} | {
|
|
1974
|
-
inlineData: {
|
|
1975
|
-
mimeType: string;
|
|
1976
|
-
data: string;
|
|
1977
|
-
};
|
|
1978
|
-
};
|
|
1979
|
-
/**
|
|
1980
|
-
* Part variants that ride the native Gemini agentic tool loop in addition to
|
|
1981
|
-
* the plain `VertexNativePart` content shapes: model-issued function calls
|
|
1982
|
-
* replayed into history, and the function responses (plus wrap-up nudge text
|
|
1983
|
-
* parts) sent back on the next user turn. Mirrors the optional
|
|
1984
|
-
* `functionCall` / `functionResponse` members of the @google/genai SDK's
|
|
1985
|
-
* `Part` type, so loop contents stay directly assignable to the SDK payload.
|
|
1986
|
-
*/
|
|
1987
|
-
export type VertexNativeLoopPart = VertexNativePart | {
|
|
1988
|
-
functionCall: {
|
|
1989
|
-
name: string;
|
|
1990
|
-
args: Record<string, unknown>;
|
|
1991
|
-
};
|
|
1992
|
-
} | {
|
|
1993
|
-
functionResponse: {
|
|
1994
|
-
name: string;
|
|
1995
|
-
response: Record<string, unknown>;
|
|
1996
|
-
};
|
|
1997
|
-
};
|
|
1998
|
-
/**
|
|
1999
|
-
* Subset of `GenerateOptions["input"]` consumed by the shared Gemini-native
|
|
2000
|
-
* multimodal-parts builder. Kept narrow so the helper doesn't depend on the
|
|
2001
|
-
* full `GenerateOptions` shape. The `images` field mirrors the public
|
|
2002
|
-
* `GenerateOptions["input"].images` shape so the helper accepts the same
|
|
2003
|
-
* value SDK callers pass in (plain Buffer/string or `ImageWithAltText`).
|
|
2004
|
-
*/
|
|
2005
|
-
export type GeminiMultimodalInput = {
|
|
2006
|
-
text?: string;
|
|
2007
|
-
pdfFiles?: Array<Buffer | string>;
|
|
2008
|
-
images?: Array<Buffer | string | {
|
|
2009
|
-
data: Buffer | string;
|
|
2010
|
-
altText?: string;
|
|
2011
|
-
}>;
|
|
2012
|
-
/**
|
|
2013
|
-
* Audio collected during file detection, carried through to the native
|
|
2014
|
-
* request as `inlineData`. Distinct from the user-facing `audioFiles`: these
|
|
2015
|
-
* are already-materialised bytes with a resolved mime type.
|
|
2016
|
-
*/
|
|
2017
|
-
nativeAudioFiles?: MultimodalAudioEntry[];
|
|
2018
|
-
};
|
|
2019
|
-
/**
|
|
2020
|
-
* Internal helpers used by the conversation-history builder in
|
|
2021
|
-
* providers/googleVertex.ts to merge interleaved tool call / result turns.
|
|
2022
|
-
*/
|
|
2023
|
-
export type VertexToolStep = {
|
|
2024
|
-
type: "tool_step";
|
|
2025
|
-
callParts: unknown[];
|
|
2026
|
-
resultParts: unknown[];
|
|
2027
|
-
};
|
|
2028
|
-
export type VertexRegularSegment = {
|
|
2029
|
-
type: "regular";
|
|
2030
|
-
role: string;
|
|
2031
|
-
parts: unknown[];
|
|
2032
|
-
};
|
|
2033
|
-
export type VertexSegment = VertexToolStep | VertexRegularSegment;
|
|
2034
|
-
/**
|
|
2035
|
-
* Function declaration shape accepted by the @google/genai SDK when tools are
|
|
2036
|
-
* attached to a Vertex generateContent call.
|
|
2037
|
-
*/
|
|
2038
|
-
export type VertexGenaiFunctionDeclaration = {
|
|
2039
|
-
name: string;
|
|
2040
|
-
description: string;
|
|
2041
|
-
parametersJsonSchema?: Record<string, unknown>;
|
|
2042
|
-
};
|
|
2043
|
-
/**
|
|
2044
|
-
* Message payload passed to the Anthropic Vertex SDK — mirrors the Anthropic
|
|
2045
|
-
* Messages API shape (role + structured content blocks).
|
|
2046
|
-
*/
|
|
2047
|
-
/**
|
|
2048
|
-
* Anthropic ephemeral prompt-cache breakpoint marker. Placed on a content
|
|
2049
|
-
* block / tool / system block to make the rendered prefix up to that point a
|
|
2050
|
-
* cache breakpoint. Vertex has NO automatic caching, so these explicit markers
|
|
2051
|
-
* are the only way the conversation prefix is cached across turns.
|
|
2052
|
-
*/
|
|
2053
|
-
export type VertexAnthropicCacheControl = {
|
|
2054
|
-
type: "ephemeral";
|
|
2055
|
-
};
|
|
2056
|
-
export type VertexAnthropicMessage = {
|
|
2057
|
-
role: "user" | "assistant";
|
|
2058
|
-
content: string | Array<{
|
|
2059
|
-
type: "text";
|
|
2060
|
-
text: string;
|
|
2061
|
-
cache_control?: VertexAnthropicCacheControl;
|
|
2062
|
-
} | {
|
|
2063
|
-
type: "image";
|
|
2064
|
-
source: {
|
|
2065
|
-
type: "base64";
|
|
2066
|
-
media_type: string;
|
|
2067
|
-
data: string;
|
|
2068
|
-
};
|
|
2069
|
-
cache_control?: VertexAnthropicCacheControl;
|
|
2070
|
-
} | {
|
|
2071
|
-
type: "document";
|
|
2072
|
-
source: {
|
|
2073
|
-
type: "base64";
|
|
2074
|
-
media_type: string;
|
|
2075
|
-
data: string;
|
|
2076
|
-
};
|
|
2077
|
-
cache_control?: VertexAnthropicCacheControl;
|
|
2078
|
-
} | {
|
|
2079
|
-
type: "tool_use";
|
|
2080
|
-
id: string;
|
|
2081
|
-
name: string;
|
|
2082
|
-
input: unknown;
|
|
2083
|
-
cache_control?: VertexAnthropicCacheControl;
|
|
2084
|
-
} | {
|
|
2085
|
-
type: "tool_result";
|
|
2086
|
-
tool_use_id: string;
|
|
2087
|
-
content: string;
|
|
2088
|
-
cache_control?: VertexAnthropicCacheControl;
|
|
2089
|
-
} | {
|
|
2090
|
-
type: "thinking";
|
|
2091
|
-
thinking: string;
|
|
2092
|
-
cache_control?: VertexAnthropicCacheControl;
|
|
2093
|
-
} | {
|
|
2094
|
-
type: "redacted_thinking";
|
|
2095
|
-
data: string;
|
|
2096
|
-
cache_control?: VertexAnthropicCacheControl;
|
|
2097
|
-
}>;
|
|
2098
|
-
};
|
|
2099
|
-
/**
|
|
2100
|
-
* System prompt block form accepted by the Anthropic Vertex SDK. Used instead
|
|
2101
|
-
* of a bare string when a `cache_control` breakpoint must ride on the system
|
|
2102
|
-
* prompt (a string `system` cannot carry one).
|
|
2103
|
-
*/
|
|
2104
|
-
export type VertexAnthropicSystemBlock = {
|
|
2105
|
-
type: "text";
|
|
2106
|
-
text: string;
|
|
2107
|
-
cache_control?: VertexAnthropicCacheControl;
|
|
2108
|
-
};
|
|
2109
|
-
/** Tool definition accepted by the Anthropic Vertex SDK. */
|
|
2110
|
-
export type VertexAnthropicTool = {
|
|
2111
|
-
name: string;
|
|
2112
|
-
description: string;
|
|
2113
|
-
input_schema: {
|
|
2114
|
-
type: "object";
|
|
2115
|
-
properties?: Record<string, unknown>;
|
|
2116
|
-
required?: string[];
|
|
2117
|
-
};
|
|
2118
|
-
cache_control?: VertexAnthropicCacheControl;
|
|
2119
|
-
};
|
|
2120
|
-
/** Input to `applyVertexAnthropicCacheBreakpoints`. */
|
|
2121
|
-
export type VertexAnthropicCacheInput = {
|
|
2122
|
-
system?: string;
|
|
2123
|
-
tools?: VertexAnthropicTool[];
|
|
2124
|
-
messages: VertexAnthropicMessage[];
|
|
2125
|
-
/**
|
|
2126
|
-
* Cap on how many of the most-recent messages receive a rolling history
|
|
2127
|
-
* breakpoint. Defaults to "use the remaining budget". Two or more gives
|
|
2128
|
-
* cross-turn continuity and resilience against Anthropic's 20-block cache
|
|
2129
|
-
* lookback window on tool-heavy turns.
|
|
2130
|
-
*/
|
|
2131
|
-
maxHistoryBreakpoints?: number;
|
|
2132
|
-
};
|
|
2133
|
-
/** Output of `applyVertexAnthropicCacheBreakpoints` — a cache-annotated request. */
|
|
2134
|
-
export type VertexAnthropicCacheOutput = {
|
|
2135
|
-
system?: string | VertexAnthropicSystemBlock[];
|
|
2136
|
-
tools?: VertexAnthropicTool[];
|
|
2137
|
-
messages: VertexAnthropicMessage[];
|
|
2138
|
-
};
|
|
2139
|
-
/**
|
|
2140
|
-
* Content block variants returned by the Anthropic Vertex SDK during streaming
|
|
2141
|
-
* and generation — used to narrow responses before handing tool calls back.
|
|
2142
|
-
*/
|
|
2143
|
-
export type VertexAnthropicContentBlock = {
|
|
2144
|
-
type: "text";
|
|
2145
|
-
text: string;
|
|
2146
|
-
} | {
|
|
2147
|
-
type: "tool_use";
|
|
2148
|
-
id: string;
|
|
2149
|
-
name: string;
|
|
2150
|
-
input: Record<string, unknown>;
|
|
2151
|
-
} | {
|
|
2152
|
-
type: "tool_result";
|
|
2153
|
-
tool_use_id: string;
|
|
2154
|
-
content: string;
|
|
2155
|
-
};
|