@mcp-abap-adt/llm-agent 9.1.0 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -145
- package/dist/index.d.ts +3 -112
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -102
- package/dist/index.js.map +1 -1
- package/dist/interfaces/agent-contracts.d.ts.map +1 -0
- package/dist/interfaces/agent-contracts.js.map +1 -0
- package/dist/{smart-agent/interfaces → interfaces}/assembler.d.ts +1 -1
- package/dist/interfaces/assembler.d.ts.map +1 -0
- package/dist/interfaces/assembler.js.map +1 -0
- package/dist/interfaces/classifier.d.ts.map +1 -0
- package/dist/interfaces/classifier.js.map +1 -0
- package/dist/interfaces/history-memory.d.ts.map +1 -0
- package/dist/interfaces/history-memory.js.map +1 -0
- package/dist/interfaces/history-summarizer.d.ts.map +1 -0
- package/dist/interfaces/history-summarizer.js.map +1 -0
- package/dist/interfaces/index.d.ts +20 -0
- package/dist/interfaces/index.d.ts.map +1 -0
- package/dist/{smart-agent/interfaces → interfaces}/index.js +1 -1
- package/dist/interfaces/index.js.map +1 -0
- package/dist/{smart-agent/interfaces → interfaces}/llm-call-strategy.d.ts +1 -1
- package/dist/interfaces/llm-call-strategy.d.ts.map +1 -0
- package/dist/interfaces/llm-call-strategy.js.map +1 -0
- package/dist/{smart-agent/interfaces → interfaces}/llm.d.ts +1 -1
- package/dist/interfaces/llm.d.ts.map +1 -0
- package/dist/interfaces/llm.js.map +1 -0
- package/dist/interfaces/mcp-client.d.ts.map +1 -0
- package/dist/interfaces/mcp-client.js.map +1 -0
- package/dist/interfaces/model-provider.d.ts.map +1 -0
- package/dist/interfaces/model-provider.js.map +1 -0
- package/dist/interfaces/plugin.d.ts.map +1 -0
- package/dist/interfaces/plugin.js.map +1 -0
- package/dist/interfaces/query-embedding.d.ts.map +1 -0
- package/dist/interfaces/query-embedding.js.map +1 -0
- package/dist/interfaces/rag.d.ts.map +1 -0
- package/dist/interfaces/rag.js.map +1 -0
- package/dist/interfaces/rate-limiter.d.ts.map +1 -0
- package/dist/interfaces/rate-limiter.js.map +1 -0
- package/dist/interfaces/request-logger.d.ts.map +1 -0
- package/dist/interfaces/request-logger.js.map +1 -0
- package/dist/interfaces/skill.d.ts.map +1 -0
- package/dist/interfaces/skill.js.map +1 -0
- package/dist/{smart-agent/interfaces → interfaces}/types.d.ts +1 -1
- package/dist/interfaces/types.d.ts.map +1 -0
- package/dist/interfaces/types.js.map +1 -0
- package/dist/rag/corrections/active-filtering-rag.d.ts.map +1 -0
- package/dist/rag/corrections/active-filtering-rag.js.map +1 -0
- package/dist/rag/corrections/errors.d.ts.map +1 -0
- package/dist/rag/corrections/errors.js.map +1 -0
- package/dist/rag/corrections/index.d.ts.map +1 -0
- package/dist/rag/corrections/index.js.map +1 -0
- package/dist/rag/corrections/metadata.d.ts.map +1 -0
- package/dist/rag/corrections/metadata.js.map +1 -0
- package/dist/rag/embedder-factories.d.ts.map +1 -0
- package/dist/rag/embedder-factories.js.map +1 -0
- package/dist/rag/in-memory-rag.d.ts.map +1 -0
- package/dist/rag/in-memory-rag.js.map +1 -0
- package/dist/{smart-agent/rag → rag}/index.d.ts +3 -0
- package/dist/rag/index.d.ts.map +1 -0
- package/dist/{smart-agent/rag → rag}/index.js +3 -0
- package/dist/rag/index.js.map +1 -0
- package/dist/rag/inverted-index.d.ts.map +1 -0
- package/dist/rag/inverted-index.js.map +1 -0
- package/dist/rag/mcp-tools/index.d.ts.map +1 -0
- package/dist/rag/mcp-tools/index.js.map +1 -0
- package/dist/rag/mcp-tools/rag-collection-tools.d.ts.map +1 -0
- package/dist/rag/mcp-tools/rag-collection-tools.js.map +1 -0
- package/dist/rag/ollama-rag.d.ts.map +1 -0
- package/dist/rag/ollama-rag.js.map +1 -0
- package/dist/rag/openai-embedder.d.ts.map +1 -0
- package/dist/rag/openai-embedder.js.map +1 -0
- package/dist/rag/overlays/index.d.ts.map +1 -0
- package/dist/rag/overlays/index.js.map +1 -0
- package/dist/rag/overlays/overlay-rag.d.ts.map +1 -0
- package/dist/rag/overlays/overlay-rag.js.map +1 -0
- package/dist/rag/overlays/session-scoped-rag.d.ts.map +1 -0
- package/dist/rag/overlays/session-scoped-rag.js.map +1 -0
- package/dist/rag/preprocessor.d.ts.map +1 -0
- package/dist/rag/preprocessor.js.map +1 -0
- package/dist/rag/providers/base-provider.d.ts.map +1 -0
- package/dist/rag/providers/base-provider.js.map +1 -0
- package/dist/rag/providers/in-memory-rag-provider.d.ts.map +1 -0
- package/dist/rag/providers/in-memory-rag-provider.js.map +1 -0
- package/dist/rag/providers/index.d.ts.map +1 -0
- package/dist/rag/providers/index.js.map +1 -0
- package/dist/rag/providers/qdrant-rag-provider.d.ts.map +1 -0
- package/dist/rag/providers/qdrant-rag-provider.js.map +1 -0
- package/dist/rag/providers/simple-provider-registry.d.ts.map +1 -0
- package/dist/rag/providers/simple-provider-registry.js.map +1 -0
- package/dist/rag/providers/vector-rag-provider.d.ts.map +1 -0
- package/dist/rag/providers/vector-rag-provider.js.map +1 -0
- package/dist/rag/qdrant-rag.d.ts.map +1 -0
- package/dist/rag/qdrant-rag.js.map +1 -0
- package/dist/rag/query-embedding.d.ts.map +1 -0
- package/dist/rag/query-embedding.js.map +1 -0
- package/dist/rag/query-expander.d.ts.map +1 -0
- package/dist/rag/query-expander.js.map +1 -0
- package/dist/rag/registry/index.d.ts.map +1 -0
- package/dist/rag/registry/index.js.map +1 -0
- package/dist/rag/registry/simple-rag-registry.d.ts.map +1 -0
- package/dist/rag/registry/simple-rag-registry.js.map +1 -0
- package/dist/rag/sap-ai-core-embedder.d.ts.map +1 -0
- package/dist/rag/sap-ai-core-embedder.js.map +1 -0
- package/dist/rag/search-strategy.d.ts.map +1 -0
- package/dist/rag/search-strategy.js.map +1 -0
- package/dist/rag/strategies/edit/direct.d.ts.map +1 -0
- package/dist/rag/strategies/edit/direct.js.map +1 -0
- package/dist/rag/strategies/edit/immutable.d.ts.map +1 -0
- package/dist/rag/strategies/edit/immutable.js.map +1 -0
- package/dist/rag/strategies/edit/index.d.ts.map +1 -0
- package/dist/rag/strategies/edit/index.js.map +1 -0
- package/dist/rag/strategies/edit/overlay.d.ts.map +1 -0
- package/dist/rag/strategies/edit/overlay.js.map +1 -0
- package/dist/rag/strategies/edit/session-scoped.d.ts.map +1 -0
- package/dist/rag/strategies/edit/session-scoped.js.map +1 -0
- package/dist/rag/strategies/id/caller-provided.d.ts.map +1 -0
- package/dist/rag/strategies/id/caller-provided.js.map +1 -0
- package/dist/rag/strategies/id/canonical-key.d.ts.map +1 -0
- package/dist/rag/strategies/id/canonical-key.js.map +1 -0
- package/dist/rag/strategies/id/global-unique.d.ts.map +1 -0
- package/dist/rag/strategies/id/global-unique.js.map +1 -0
- package/dist/rag/strategies/id/index.d.ts.map +1 -0
- package/dist/rag/strategies/id/index.js.map +1 -0
- package/dist/rag/strategies/id/session-scoped.d.ts.map +1 -0
- package/dist/rag/strategies/id/session-scoped.js.map +1 -0
- package/dist/rag/tool-indexing-strategy.d.ts.map +1 -0
- package/dist/rag/tool-indexing-strategy.js.map +1 -0
- package/dist/rag/vector-rag.d.ts.map +1 -0
- package/dist/rag/vector-rag.js.map +1 -0
- package/dist/testing/index.d.ts +16 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +71 -0
- package/dist/testing/index.js.map +1 -0
- package/package.json +10 -103
- package/LICENSE +0 -22
- package/dist/agent.d.ts +0 -49
- package/dist/agent.d.ts.map +0 -1
- package/dist/agent.js +0 -97
- package/dist/agent.js.map +0 -1
- package/dist/agents/anthropic-agent.d.ts +0 -33
- package/dist/agents/anthropic-agent.d.ts.map +0 -1
- package/dist/agents/anthropic-agent.js +0 -138
- package/dist/agents/anthropic-agent.js.map +0 -1
- package/dist/agents/base.d.ts +0 -90
- package/dist/agents/base.d.ts.map +0 -1
- package/dist/agents/base.js +0 -107
- package/dist/agents/base.js.map +0 -1
- package/dist/agents/deepseek-agent.d.ts +0 -31
- package/dist/agents/deepseek-agent.d.ts.map +0 -1
- package/dist/agents/deepseek-agent.js +0 -121
- package/dist/agents/deepseek-agent.js.map +0 -1
- package/dist/agents/index.d.ts +0 -10
- package/dist/agents/index.d.ts.map +0 -1
- package/dist/agents/index.js +0 -10
- package/dist/agents/index.js.map +0 -1
- package/dist/agents/openai-agent.d.ts +0 -32
- package/dist/agents/openai-agent.d.ts.map +0 -1
- package/dist/agents/openai-agent.js +0 -122
- package/dist/agents/openai-agent.js.map +0 -1
- package/dist/agents/prompt-based-agent.d.ts +0 -29
- package/dist/agents/prompt-based-agent.d.ts.map +0 -1
- package/dist/agents/prompt-based-agent.js +0 -67
- package/dist/agents/prompt-based-agent.js.map +0 -1
- package/dist/agents/sap-core-ai-agent.d.ts +0 -41
- package/dist/agents/sap-core-ai-agent.d.ts.map +0 -1
- package/dist/agents/sap-core-ai-agent.js +0 -151
- package/dist/agents/sap-core-ai-agent.js.map +0 -1
- package/dist/cli.d.ts +0 -53
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js +0 -338
- package/dist/cli.js.map +0 -1
- package/dist/generated/version.d.ts +0 -2
- package/dist/generated/version.d.ts.map +0 -1
- package/dist/generated/version.js +0 -3
- package/dist/generated/version.js.map +0 -1
- package/dist/llm-providers/anthropic.d.ts +0 -26
- package/dist/llm-providers/anthropic.d.ts.map +0 -1
- package/dist/llm-providers/anthropic.js +0 -202
- package/dist/llm-providers/anthropic.js.map +0 -1
- package/dist/llm-providers/base.d.ts +0 -34
- package/dist/llm-providers/base.d.ts.map +0 -1
- package/dist/llm-providers/base.js +0 -18
- package/dist/llm-providers/base.js.map +0 -1
- package/dist/llm-providers/deepseek.d.ts +0 -25
- package/dist/llm-providers/deepseek.d.ts.map +0 -1
- package/dist/llm-providers/deepseek.js +0 -60
- package/dist/llm-providers/deepseek.js.map +0 -1
- package/dist/llm-providers/index.d.ts +0 -13
- package/dist/llm-providers/index.d.ts.map +0 -1
- package/dist/llm-providers/index.js +0 -15
- package/dist/llm-providers/index.js.map +0 -1
- package/dist/llm-providers/openai.d.ts +0 -35
- package/dist/llm-providers/openai.d.ts.map +0 -1
- package/dist/llm-providers/openai.js +0 -193
- package/dist/llm-providers/openai.js.map +0 -1
- package/dist/llm-providers/sap-core-ai.d.ts +0 -91
- package/dist/llm-providers/sap-core-ai.d.ts.map +0 -1
- package/dist/llm-providers/sap-core-ai.js +0 -394
- package/dist/llm-providers/sap-core-ai.js.map +0 -1
- package/dist/mcp/client.d.ts +0 -133
- package/dist/mcp/client.d.ts.map +0 -1
- package/dist/mcp/client.js +0 -314
- package/dist/mcp/client.js.map +0 -1
- package/dist/smart-agent/adapters/cline-client-adapter.d.ts +0 -18
- package/dist/smart-agent/adapters/cline-client-adapter.d.ts.map +0 -1
- package/dist/smart-agent/adapters/cline-client-adapter.js +0 -21
- package/dist/smart-agent/adapters/cline-client-adapter.js.map +0 -1
- package/dist/smart-agent/adapters/index.d.ts +0 -3
- package/dist/smart-agent/adapters/index.d.ts.map +0 -1
- package/dist/smart-agent/adapters/index.js +0 -3
- package/dist/smart-agent/adapters/index.js.map +0 -1
- package/dist/smart-agent/adapters/llm-adapter.d.ts +0 -26
- package/dist/smart-agent/adapters/llm-adapter.d.ts.map +0 -1
- package/dist/smart-agent/adapters/llm-adapter.js +0 -345
- package/dist/smart-agent/adapters/llm-adapter.js.map +0 -1
- package/dist/smart-agent/adapters/mcp-client-adapter.d.ts +0 -16
- package/dist/smart-agent/adapters/mcp-client-adapter.d.ts.map +0 -1
- package/dist/smart-agent/adapters/mcp-client-adapter.js +0 -95
- package/dist/smart-agent/adapters/mcp-client-adapter.js.map +0 -1
- package/dist/smart-agent/adapters/non-streaming-llm.d.ts +0 -20
- package/dist/smart-agent/adapters/non-streaming-llm.d.ts.map +0 -1
- package/dist/smart-agent/adapters/non-streaming-llm.js +0 -44
- package/dist/smart-agent/adapters/non-streaming-llm.js.map +0 -1
- package/dist/smart-agent/agent.d.ts +0 -241
- package/dist/smart-agent/agent.d.ts.map +0 -1
- package/dist/smart-agent/agent.js +0 -1540
- package/dist/smart-agent/agent.js.map +0 -1
- package/dist/smart-agent/api-adapters/anthropic-adapter.d.ts +0 -11
- package/dist/smart-agent/api-adapters/anthropic-adapter.d.ts.map +0 -1
- package/dist/smart-agent/api-adapters/anthropic-adapter.js +0 -356
- package/dist/smart-agent/api-adapters/anthropic-adapter.js.map +0 -1
- package/dist/smart-agent/api-adapters/index.d.ts +0 -3
- package/dist/smart-agent/api-adapters/index.d.ts.map +0 -1
- package/dist/smart-agent/api-adapters/index.js +0 -3
- package/dist/smart-agent/api-adapters/index.js.map +0 -1
- package/dist/smart-agent/api-adapters/openai-adapter.d.ts +0 -11
- package/dist/smart-agent/api-adapters/openai-adapter.d.ts.map +0 -1
- package/dist/smart-agent/api-adapters/openai-adapter.js +0 -277
- package/dist/smart-agent/api-adapters/openai-adapter.js.map +0 -1
- package/dist/smart-agent/builder.d.ts +0 -292
- package/dist/smart-agent/builder.d.ts.map +0 -1
- package/dist/smart-agent/builder.js +0 -945
- package/dist/smart-agent/builder.js.map +0 -1
- package/dist/smart-agent/cache/index.d.ts +0 -4
- package/dist/smart-agent/cache/index.d.ts.map +0 -1
- package/dist/smart-agent/cache/index.js +0 -3
- package/dist/smart-agent/cache/index.js.map +0 -1
- package/dist/smart-agent/cache/noop-tool-cache.d.ts +0 -7
- package/dist/smart-agent/cache/noop-tool-cache.d.ts.map +0 -1
- package/dist/smart-agent/cache/noop-tool-cache.js +0 -8
- package/dist/smart-agent/cache/noop-tool-cache.js.map +0 -1
- package/dist/smart-agent/cache/tool-cache.d.ts +0 -14
- package/dist/smart-agent/cache/tool-cache.d.ts.map +0 -1
- package/dist/smart-agent/cache/tool-cache.js +0 -32
- package/dist/smart-agent/cache/tool-cache.js.map +0 -1
- package/dist/smart-agent/cache/types.d.ts +0 -7
- package/dist/smart-agent/cache/types.d.ts.map +0 -1
- package/dist/smart-agent/cache/types.js +0 -2
- package/dist/smart-agent/cache/types.js.map +0 -1
- package/dist/smart-agent/check-models-cli.d.ts +0 -14
- package/dist/smart-agent/check-models-cli.d.ts.map +0 -1
- package/dist/smart-agent/check-models-cli.js +0 -237
- package/dist/smart-agent/check-models-cli.js.map +0 -1
- package/dist/smart-agent/classifier/index.d.ts +0 -3
- package/dist/smart-agent/classifier/index.d.ts.map +0 -1
- package/dist/smart-agent/classifier/index.js +0 -2
- package/dist/smart-agent/classifier/index.js.map +0 -1
- package/dist/smart-agent/classifier/llm-classifier.d.ts +0 -22
- package/dist/smart-agent/classifier/llm-classifier.d.ts.map +0 -1
- package/dist/smart-agent/classifier/llm-classifier.js +0 -128
- package/dist/smart-agent/classifier/llm-classifier.js.map +0 -1
- package/dist/smart-agent/cli.d.ts +0 -65
- package/dist/smart-agent/cli.d.ts.map +0 -1
- package/dist/smart-agent/cli.js +0 -199
- package/dist/smart-agent/cli.js.map +0 -1
- package/dist/smart-agent/config/config-watcher.d.ts +0 -54
- package/dist/smart-agent/config/config-watcher.d.ts.map +0 -1
- package/dist/smart-agent/config/config-watcher.js +0 -107
- package/dist/smart-agent/config/config-watcher.js.map +0 -1
- package/dist/smart-agent/config/index.d.ts +0 -2
- package/dist/smart-agent/config/index.d.ts.map +0 -1
- package/dist/smart-agent/config/index.js +0 -2
- package/dist/smart-agent/config/index.js.map +0 -1
- package/dist/smart-agent/config.d.ts +0 -35
- package/dist/smart-agent/config.d.ts.map +0 -1
- package/dist/smart-agent/config.js +0 -360
- package/dist/smart-agent/config.js.map +0 -1
- package/dist/smart-agent/context/context-assembler.d.ts +0 -50
- package/dist/smart-agent/context/context-assembler.d.ts.map +0 -1
- package/dist/smart-agent/context/context-assembler.js +0 -184
- package/dist/smart-agent/context/context-assembler.js.map +0 -1
- package/dist/smart-agent/context/index.d.ts +0 -3
- package/dist/smart-agent/context/index.d.ts.map +0 -1
- package/dist/smart-agent/context/index.js +0 -2
- package/dist/smart-agent/context/index.js.map +0 -1
- package/dist/smart-agent/health/health-checker.d.ts +0 -21
- package/dist/smart-agent/health/health-checker.d.ts.map +0 -1
- package/dist/smart-agent/health/health-checker.js +0 -52
- package/dist/smart-agent/health/health-checker.js.map +0 -1
- package/dist/smart-agent/health/index.d.ts +0 -3
- package/dist/smart-agent/health/index.d.ts.map +0 -1
- package/dist/smart-agent/health/index.js +0 -2
- package/dist/smart-agent/health/index.js.map +0 -1
- package/dist/smart-agent/health/types.d.ts +0 -25
- package/dist/smart-agent/health/types.d.ts.map +0 -1
- package/dist/smart-agent/health/types.js +0 -2
- package/dist/smart-agent/health/types.js.map +0 -1
- package/dist/smart-agent/history/history-memory.d.ts +0 -12
- package/dist/smart-agent/history/history-memory.d.ts.map +0 -1
- package/dist/smart-agent/history/history-memory.js +0 -26
- package/dist/smart-agent/history/history-memory.js.map +0 -1
- package/dist/smart-agent/history/history-summarizer.d.ts +0 -12
- package/dist/smart-agent/history/history-summarizer.d.ts.map +0 -1
- package/dist/smart-agent/history/history-summarizer.js +0 -27
- package/dist/smart-agent/history/history-summarizer.js.map +0 -1
- package/dist/smart-agent/history/index.d.ts +0 -3
- package/dist/smart-agent/history/index.d.ts.map +0 -1
- package/dist/smart-agent/history/index.js +0 -3
- package/dist/smart-agent/history/index.js.map +0 -1
- package/dist/smart-agent/interfaces/agent-contracts.d.ts.map +0 -1
- package/dist/smart-agent/interfaces/agent-contracts.js.map +0 -1
- package/dist/smart-agent/interfaces/api-adapter.d.ts +0 -38
- package/dist/smart-agent/interfaces/api-adapter.d.ts.map +0 -1
- package/dist/smart-agent/interfaces/api-adapter.js +0 -9
- package/dist/smart-agent/interfaces/api-adapter.js.map +0 -1
- package/dist/smart-agent/interfaces/assembler.d.ts.map +0 -1
- package/dist/smart-agent/interfaces/assembler.js.map +0 -1
- package/dist/smart-agent/interfaces/classifier.d.ts.map +0 -1
- package/dist/smart-agent/interfaces/classifier.js.map +0 -1
- package/dist/smart-agent/interfaces/client-adapter.d.ts +0 -23
- package/dist/smart-agent/interfaces/client-adapter.d.ts.map +0 -1
- package/dist/smart-agent/interfaces/client-adapter.js +0 -10
- package/dist/smart-agent/interfaces/client-adapter.js.map +0 -1
- package/dist/smart-agent/interfaces/history-memory.d.ts.map +0 -1
- package/dist/smart-agent/interfaces/history-memory.js.map +0 -1
- package/dist/smart-agent/interfaces/history-summarizer.d.ts.map +0 -1
- package/dist/smart-agent/interfaces/history-summarizer.js.map +0 -1
- package/dist/smart-agent/interfaces/index.d.ts +0 -25
- package/dist/smart-agent/interfaces/index.d.ts.map +0 -1
- package/dist/smart-agent/interfaces/index.js.map +0 -1
- package/dist/smart-agent/interfaces/llm-call-strategy.d.ts.map +0 -1
- package/dist/smart-agent/interfaces/llm-call-strategy.js.map +0 -1
- package/dist/smart-agent/interfaces/llm.d.ts.map +0 -1
- package/dist/smart-agent/interfaces/llm.js.map +0 -1
- package/dist/smart-agent/interfaces/mcp-client.d.ts.map +0 -1
- package/dist/smart-agent/interfaces/mcp-client.js.map +0 -1
- package/dist/smart-agent/interfaces/mcp-connection-strategy.d.ts +0 -28
- package/dist/smart-agent/interfaces/mcp-connection-strategy.d.ts.map +0 -1
- package/dist/smart-agent/interfaces/mcp-connection-strategy.js +0 -2
- package/dist/smart-agent/interfaces/mcp-connection-strategy.js.map +0 -1
- package/dist/smart-agent/interfaces/model-provider.d.ts.map +0 -1
- package/dist/smart-agent/interfaces/model-provider.js.map +0 -1
- package/dist/smart-agent/interfaces/model-resolver.d.ts +0 -9
- package/dist/smart-agent/interfaces/model-resolver.d.ts.map +0 -1
- package/dist/smart-agent/interfaces/model-resolver.js +0 -2
- package/dist/smart-agent/interfaces/model-resolver.js.map +0 -1
- package/dist/smart-agent/interfaces/pipeline.d.ts +0 -137
- package/dist/smart-agent/interfaces/pipeline.d.ts.map +0 -1
- package/dist/smart-agent/interfaces/pipeline.js +0 -13
- package/dist/smart-agent/interfaces/pipeline.js.map +0 -1
- package/dist/smart-agent/interfaces/plugin.d.ts.map +0 -1
- package/dist/smart-agent/interfaces/plugin.js.map +0 -1
- package/dist/smart-agent/interfaces/query-embedding.d.ts.map +0 -1
- package/dist/smart-agent/interfaces/query-embedding.js.map +0 -1
- package/dist/smart-agent/interfaces/rag.d.ts.map +0 -1
- package/dist/smart-agent/interfaces/rag.js.map +0 -1
- package/dist/smart-agent/interfaces/rate-limiter.d.ts.map +0 -1
- package/dist/smart-agent/interfaces/rate-limiter.js.map +0 -1
- package/dist/smart-agent/interfaces/request-logger.d.ts.map +0 -1
- package/dist/smart-agent/interfaces/request-logger.js.map +0 -1
- package/dist/smart-agent/interfaces/skill.d.ts.map +0 -1
- package/dist/smart-agent/interfaces/skill.js.map +0 -1
- package/dist/smart-agent/interfaces/types.d.ts.map +0 -1
- package/dist/smart-agent/interfaces/types.js.map +0 -1
- package/dist/smart-agent/logger/console-logger.d.ts +0 -7
- package/dist/smart-agent/logger/console-logger.d.ts.map +0 -1
- package/dist/smart-agent/logger/console-logger.js +0 -12
- package/dist/smart-agent/logger/console-logger.js.map +0 -1
- package/dist/smart-agent/logger/default-request-logger.d.ts +0 -17
- package/dist/smart-agent/logger/default-request-logger.d.ts.map +0 -1
- package/dist/smart-agent/logger/default-request-logger.js +0 -86
- package/dist/smart-agent/logger/default-request-logger.js.map +0 -1
- package/dist/smart-agent/logger/index.d.ts +0 -3
- package/dist/smart-agent/logger/index.d.ts.map +0 -1
- package/dist/smart-agent/logger/index.js +0 -2
- package/dist/smart-agent/logger/index.js.map +0 -1
- package/dist/smart-agent/logger/noop-request-logger.d.ts +0 -11
- package/dist/smart-agent/logger/noop-request-logger.d.ts.map +0 -1
- package/dist/smart-agent/logger/noop-request-logger.js +0 -20
- package/dist/smart-agent/logger/noop-request-logger.js.map +0 -1
- package/dist/smart-agent/logger/session-logger.d.ts +0 -10
- package/dist/smart-agent/logger/session-logger.d.ts.map +0 -1
- package/dist/smart-agent/logger/session-logger.js +0 -40
- package/dist/smart-agent/logger/session-logger.js.map +0 -1
- package/dist/smart-agent/logger/types.d.ts +0 -63
- package/dist/smart-agent/logger/types.d.ts.map +0 -1
- package/dist/smart-agent/logger/types.js +0 -2
- package/dist/smart-agent/logger/types.js.map +0 -1
- package/dist/smart-agent/mcp-client-factory.d.ts +0 -3
- package/dist/smart-agent/mcp-client-factory.d.ts.map +0 -1
- package/dist/smart-agent/mcp-client-factory.js +0 -21
- package/dist/smart-agent/mcp-client-factory.js.map +0 -1
- package/dist/smart-agent/metrics/in-memory-metrics.d.ts +0 -58
- package/dist/smart-agent/metrics/in-memory-metrics.d.ts.map +0 -1
- package/dist/smart-agent/metrics/in-memory-metrics.js +0 -78
- package/dist/smart-agent/metrics/in-memory-metrics.js.map +0 -1
- package/dist/smart-agent/metrics/index.d.ts +0 -4
- package/dist/smart-agent/metrics/index.d.ts.map +0 -1
- package/dist/smart-agent/metrics/index.js +0 -3
- package/dist/smart-agent/metrics/index.js.map +0 -1
- package/dist/smart-agent/metrics/noop-metrics.d.ts +0 -17
- package/dist/smart-agent/metrics/noop-metrics.d.ts.map +0 -1
- package/dist/smart-agent/metrics/noop-metrics.js +0 -22
- package/dist/smart-agent/metrics/noop-metrics.js.map +0 -1
- package/dist/smart-agent/metrics/types.d.ts +0 -36
- package/dist/smart-agent/metrics/types.d.ts.map +0 -1
- package/dist/smart-agent/metrics/types.js +0 -9
- package/dist/smart-agent/metrics/types.js.map +0 -1
- package/dist/smart-agent/otel/index.d.ts +0 -2
- package/dist/smart-agent/otel/index.d.ts.map +0 -1
- package/dist/smart-agent/otel/index.js +0 -2
- package/dist/smart-agent/otel/index.js.map +0 -1
- package/dist/smart-agent/otel/otel-tracer-adapter.d.ts +0 -15
- package/dist/smart-agent/otel/otel-tracer-adapter.d.ts.map +0 -1
- package/dist/smart-agent/otel/otel-tracer-adapter.js +0 -62
- package/dist/smart-agent/otel/otel-tracer-adapter.js.map +0 -1
- package/dist/smart-agent/pipeline/condition-evaluator.d.ts +0 -35
- package/dist/smart-agent/pipeline/condition-evaluator.d.ts.map +0 -1
- package/dist/smart-agent/pipeline/condition-evaluator.js +0 -143
- package/dist/smart-agent/pipeline/condition-evaluator.js.map +0 -1
- package/dist/smart-agent/pipeline/context.d.ts +0 -134
- package/dist/smart-agent/pipeline/context.d.ts.map +0 -1
- package/dist/smart-agent/pipeline/context.js +0 -19
- package/dist/smart-agent/pipeline/context.js.map +0 -1
- package/dist/smart-agent/pipeline/default-pipeline.d.ts +0 -69
- package/dist/smart-agent/pipeline/default-pipeline.d.ts.map +0 -1
- package/dist/smart-agent/pipeline/default-pipeline.js +0 -278
- package/dist/smart-agent/pipeline/default-pipeline.js.map +0 -1
- package/dist/smart-agent/pipeline/executor.d.ts +0 -54
- package/dist/smart-agent/pipeline/executor.d.ts.map +0 -1
- package/dist/smart-agent/pipeline/executor.js +0 -133
- package/dist/smart-agent/pipeline/executor.js.map +0 -1
- package/dist/smart-agent/pipeline/handlers/assemble.d.ts +0 -16
- package/dist/smart-agent/pipeline/handlers/assemble.d.ts.map +0 -1
- package/dist/smart-agent/pipeline/handlers/assemble.js +0 -72
- package/dist/smart-agent/pipeline/handlers/assemble.js.map +0 -1
- package/dist/smart-agent/pipeline/handlers/build-tool-query.d.ts +0 -30
- package/dist/smart-agent/pipeline/handlers/build-tool-query.d.ts.map +0 -1
- package/dist/smart-agent/pipeline/handlers/build-tool-query.js +0 -80
- package/dist/smart-agent/pipeline/handlers/build-tool-query.js.map +0 -1
- package/dist/smart-agent/pipeline/handlers/classify.d.ts +0 -21
- package/dist/smart-agent/pipeline/handlers/classify.d.ts.map +0 -1
- package/dist/smart-agent/pipeline/handlers/classify.js +0 -60
- package/dist/smart-agent/pipeline/handlers/classify.js.map +0 -1
- package/dist/smart-agent/pipeline/handlers/expand.d.ts +0 -16
- package/dist/smart-agent/pipeline/handlers/expand.d.ts.map +0 -1
- package/dist/smart-agent/pipeline/handlers/expand.js +0 -24
- package/dist/smart-agent/pipeline/handlers/expand.js.map +0 -1
- package/dist/smart-agent/pipeline/handlers/history-upsert.d.ts +0 -32
- package/dist/smart-agent/pipeline/handlers/history-upsert.d.ts.map +0 -1
- package/dist/smart-agent/pipeline/handlers/history-upsert.js +0 -75
- package/dist/smart-agent/pipeline/handlers/history-upsert.js.map +0 -1
- package/dist/smart-agent/pipeline/handlers/index.d.ts +0 -31
- package/dist/smart-agent/pipeline/handlers/index.d.ts.map +0 -1
- package/dist/smart-agent/pipeline/handlers/index.js +0 -44
- package/dist/smart-agent/pipeline/handlers/index.js.map +0 -1
- package/dist/smart-agent/pipeline/handlers/rag-query.d.ts +0 -27
- package/dist/smart-agent/pipeline/handlers/rag-query.d.ts.map +0 -1
- package/dist/smart-agent/pipeline/handlers/rag-query.js +0 -117
- package/dist/smart-agent/pipeline/handlers/rag-query.js.map +0 -1
- package/dist/smart-agent/pipeline/handlers/rerank.d.ts +0 -16
- package/dist/smart-agent/pipeline/handlers/rerank.d.ts.map +0 -1
- package/dist/smart-agent/pipeline/handlers/rerank.js +0 -27
- package/dist/smart-agent/pipeline/handlers/rerank.js.map +0 -1
- package/dist/smart-agent/pipeline/handlers/skill-select.d.ts +0 -18
- package/dist/smart-agent/pipeline/handlers/skill-select.d.ts.map +0 -1
- package/dist/smart-agent/pipeline/handlers/skill-select.js +0 -88
- package/dist/smart-agent/pipeline/handlers/skill-select.js.map +0 -1
- package/dist/smart-agent/pipeline/handlers/summarize.d.ts +0 -17
- package/dist/smart-agent/pipeline/handlers/summarize.d.ts.map +0 -1
- package/dist/smart-agent/pipeline/handlers/summarize.js +0 -56
- package/dist/smart-agent/pipeline/handlers/summarize.js.map +0 -1
- package/dist/smart-agent/pipeline/handlers/tool-loop.d.ts +0 -32
- package/dist/smart-agent/pipeline/handlers/tool-loop.d.ts.map +0 -1
- package/dist/smart-agent/pipeline/handlers/tool-loop.js +0 -734
- package/dist/smart-agent/pipeline/handlers/tool-loop.js.map +0 -1
- package/dist/smart-agent/pipeline/handlers/tool-select.d.ts +0 -21
- package/dist/smart-agent/pipeline/handlers/tool-select.d.ts.map +0 -1
- package/dist/smart-agent/pipeline/handlers/tool-select.js +0 -109
- package/dist/smart-agent/pipeline/handlers/tool-select.js.map +0 -1
- package/dist/smart-agent/pipeline/handlers/translate.d.ts +0 -17
- package/dist/smart-agent/pipeline/handlers/translate.d.ts.map +0 -1
- package/dist/smart-agent/pipeline/handlers/translate.js +0 -42
- package/dist/smart-agent/pipeline/handlers/translate.js.map +0 -1
- package/dist/smart-agent/pipeline/index.d.ts +0 -14
- package/dist/smart-agent/pipeline/index.d.ts.map +0 -1
- package/dist/smart-agent/pipeline/index.js +0 -16
- package/dist/smart-agent/pipeline/index.js.map +0 -1
- package/dist/smart-agent/pipeline/stage-handler.d.ts +0 -36
- package/dist/smart-agent/pipeline/stage-handler.d.ts.map +0 -1
- package/dist/smart-agent/pipeline/stage-handler.js +0 -24
- package/dist/smart-agent/pipeline/stage-handler.js.map +0 -1
- package/dist/smart-agent/pipeline/types.d.ts +0 -116
- package/dist/smart-agent/pipeline/types.d.ts.map +0 -1
- package/dist/smart-agent/pipeline/types.js +0 -54
- package/dist/smart-agent/pipeline/types.js.map +0 -1
- package/dist/smart-agent/pipeline.d.ts +0 -82
- package/dist/smart-agent/pipeline.d.ts.map +0 -1
- package/dist/smart-agent/pipeline.js +0 -8
- package/dist/smart-agent/pipeline.js.map +0 -1
- package/dist/smart-agent/plugins/index.d.ts +0 -4
- package/dist/smart-agent/plugins/index.d.ts.map +0 -1
- package/dist/smart-agent/plugins/index.js +0 -3
- package/dist/smart-agent/plugins/index.js.map +0 -1
- package/dist/smart-agent/plugins/loader.d.ts +0 -67
- package/dist/smart-agent/plugins/loader.d.ts.map +0 -1
- package/dist/smart-agent/plugins/loader.js +0 -114
- package/dist/smart-agent/plugins/loader.js.map +0 -1
- package/dist/smart-agent/plugins/types.d.ts +0 -167
- package/dist/smart-agent/plugins/types.d.ts.map +0 -1
- package/dist/smart-agent/plugins/types.js +0 -136
- package/dist/smart-agent/plugins/types.js.map +0 -1
- package/dist/smart-agent/policy/fallback-llm-call-strategy.d.ts +0 -19
- package/dist/smart-agent/policy/fallback-llm-call-strategy.d.ts.map +0 -1
- package/dist/smart-agent/policy/fallback-llm-call-strategy.js +0 -66
- package/dist/smart-agent/policy/fallback-llm-call-strategy.js.map +0 -1
- package/dist/smart-agent/policy/heuristic-injection-detector.d.ts +0 -5
- package/dist/smart-agent/policy/heuristic-injection-detector.d.ts.map +0 -1
- package/dist/smart-agent/policy/heuristic-injection-detector.js +0 -36
- package/dist/smart-agent/policy/heuristic-injection-detector.js.map +0 -1
- package/dist/smart-agent/policy/index.d.ts +0 -6
- package/dist/smart-agent/policy/index.d.ts.map +0 -1
- package/dist/smart-agent/policy/index.js +0 -5
- package/dist/smart-agent/policy/index.js.map +0 -1
- package/dist/smart-agent/policy/mixed-tool-call-handler.d.ts +0 -17
- package/dist/smart-agent/policy/mixed-tool-call-handler.d.ts.map +0 -1
- package/dist/smart-agent/policy/mixed-tool-call-handler.js +0 -49
- package/dist/smart-agent/policy/mixed-tool-call-handler.js.map +0 -1
- package/dist/smart-agent/policy/non-streaming-llm-call-strategy.d.ts +0 -9
- package/dist/smart-agent/policy/non-streaming-llm-call-strategy.d.ts.map +0 -1
- package/dist/smart-agent/policy/non-streaming-llm-call-strategy.js +0 -21
- package/dist/smart-agent/policy/non-streaming-llm-call-strategy.js.map +0 -1
- package/dist/smart-agent/policy/pending-tool-results-registry.d.ts +0 -25
- package/dist/smart-agent/policy/pending-tool-results-registry.d.ts.map +0 -1
- package/dist/smart-agent/policy/pending-tool-results-registry.js +0 -50
- package/dist/smart-agent/policy/pending-tool-results-registry.js.map +0 -1
- package/dist/smart-agent/policy/streaming-llm-call-strategy.d.ts +0 -9
- package/dist/smart-agent/policy/streaming-llm-call-strategy.d.ts.map +0 -1
- package/dist/smart-agent/policy/streaming-llm-call-strategy.js +0 -7
- package/dist/smart-agent/policy/streaming-llm-call-strategy.js.map +0 -1
- package/dist/smart-agent/policy/tool-availability-registry.d.ts +0 -21
- package/dist/smart-agent/policy/tool-availability-registry.d.ts.map +0 -1
- package/dist/smart-agent/policy/tool-availability-registry.js +0 -77
- package/dist/smart-agent/policy/tool-availability-registry.js.map +0 -1
- package/dist/smart-agent/policy/tool-policy-guard.d.ts +0 -8
- package/dist/smart-agent/policy/tool-policy-guard.d.ts.map +0 -1
- package/dist/smart-agent/policy/tool-policy-guard.js +0 -40
- package/dist/smart-agent/policy/tool-policy-guard.js.map +0 -1
- package/dist/smart-agent/policy/types.d.ts +0 -51
- package/dist/smart-agent/policy/types.d.ts.map +0 -1
- package/dist/smart-agent/policy/types.js +0 -17
- package/dist/smart-agent/policy/types.js.map +0 -1
- package/dist/smart-agent/providers.d.ts +0 -101
- package/dist/smart-agent/providers.d.ts.map +0 -1
- package/dist/smart-agent/providers.js +0 -249
- package/dist/smart-agent/providers.js.map +0 -1
- package/dist/smart-agent/rag/corrections/active-filtering-rag.d.ts.map +0 -1
- package/dist/smart-agent/rag/corrections/active-filtering-rag.js.map +0 -1
- package/dist/smart-agent/rag/corrections/errors.d.ts.map +0 -1
- package/dist/smart-agent/rag/corrections/errors.js.map +0 -1
- package/dist/smart-agent/rag/corrections/index.d.ts.map +0 -1
- package/dist/smart-agent/rag/corrections/index.js.map +0 -1
- package/dist/smart-agent/rag/corrections/metadata.d.ts.map +0 -1
- package/dist/smart-agent/rag/corrections/metadata.js.map +0 -1
- package/dist/smart-agent/rag/embedder-factories.d.ts.map +0 -1
- package/dist/smart-agent/rag/embedder-factories.js.map +0 -1
- package/dist/smart-agent/rag/in-memory-rag.d.ts.map +0 -1
- package/dist/smart-agent/rag/in-memory-rag.js.map +0 -1
- package/dist/smart-agent/rag/index.d.ts.map +0 -1
- package/dist/smart-agent/rag/index.js.map +0 -1
- package/dist/smart-agent/rag/inverted-index.d.ts.map +0 -1
- package/dist/smart-agent/rag/inverted-index.js.map +0 -1
- package/dist/smart-agent/rag/mcp-tools/index.d.ts.map +0 -1
- package/dist/smart-agent/rag/mcp-tools/index.js.map +0 -1
- package/dist/smart-agent/rag/mcp-tools/rag-collection-tools.d.ts.map +0 -1
- package/dist/smart-agent/rag/mcp-tools/rag-collection-tools.js.map +0 -1
- package/dist/smart-agent/rag/ollama-rag.d.ts.map +0 -1
- package/dist/smart-agent/rag/ollama-rag.js.map +0 -1
- package/dist/smart-agent/rag/openai-embedder.d.ts.map +0 -1
- package/dist/smart-agent/rag/openai-embedder.js.map +0 -1
- package/dist/smart-agent/rag/overlays/index.d.ts.map +0 -1
- package/dist/smart-agent/rag/overlays/index.js.map +0 -1
- package/dist/smart-agent/rag/overlays/overlay-rag.d.ts.map +0 -1
- package/dist/smart-agent/rag/overlays/overlay-rag.js.map +0 -1
- package/dist/smart-agent/rag/overlays/session-scoped-rag.d.ts.map +0 -1
- package/dist/smart-agent/rag/overlays/session-scoped-rag.js.map +0 -1
- package/dist/smart-agent/rag/preprocessor.d.ts.map +0 -1
- package/dist/smart-agent/rag/preprocessor.js.map +0 -1
- package/dist/smart-agent/rag/providers/base-provider.d.ts.map +0 -1
- package/dist/smart-agent/rag/providers/base-provider.js.map +0 -1
- package/dist/smart-agent/rag/providers/in-memory-rag-provider.d.ts.map +0 -1
- package/dist/smart-agent/rag/providers/in-memory-rag-provider.js.map +0 -1
- package/dist/smart-agent/rag/providers/index.d.ts.map +0 -1
- package/dist/smart-agent/rag/providers/index.js.map +0 -1
- package/dist/smart-agent/rag/providers/qdrant-rag-provider.d.ts.map +0 -1
- package/dist/smart-agent/rag/providers/qdrant-rag-provider.js.map +0 -1
- package/dist/smart-agent/rag/providers/simple-provider-registry.d.ts.map +0 -1
- package/dist/smart-agent/rag/providers/simple-provider-registry.js.map +0 -1
- package/dist/smart-agent/rag/providers/vector-rag-provider.d.ts.map +0 -1
- package/dist/smart-agent/rag/providers/vector-rag-provider.js.map +0 -1
- package/dist/smart-agent/rag/qdrant-rag.d.ts.map +0 -1
- package/dist/smart-agent/rag/qdrant-rag.js.map +0 -1
- package/dist/smart-agent/rag/query-embedding.d.ts.map +0 -1
- package/dist/smart-agent/rag/query-embedding.js.map +0 -1
- package/dist/smart-agent/rag/query-expander.d.ts.map +0 -1
- package/dist/smart-agent/rag/query-expander.js.map +0 -1
- package/dist/smart-agent/rag/registry/index.d.ts.map +0 -1
- package/dist/smart-agent/rag/registry/index.js.map +0 -1
- package/dist/smart-agent/rag/registry/simple-rag-registry.d.ts.map +0 -1
- package/dist/smart-agent/rag/registry/simple-rag-registry.js.map +0 -1
- package/dist/smart-agent/rag/sap-ai-core-embedder.d.ts.map +0 -1
- package/dist/smart-agent/rag/sap-ai-core-embedder.js.map +0 -1
- package/dist/smart-agent/rag/search-strategy.d.ts.map +0 -1
- package/dist/smart-agent/rag/search-strategy.js.map +0 -1
- package/dist/smart-agent/rag/strategies/edit/direct.d.ts.map +0 -1
- package/dist/smart-agent/rag/strategies/edit/direct.js.map +0 -1
- package/dist/smart-agent/rag/strategies/edit/immutable.d.ts.map +0 -1
- package/dist/smart-agent/rag/strategies/edit/immutable.js.map +0 -1
- package/dist/smart-agent/rag/strategies/edit/index.d.ts.map +0 -1
- package/dist/smart-agent/rag/strategies/edit/index.js.map +0 -1
- package/dist/smart-agent/rag/strategies/edit/overlay.d.ts.map +0 -1
- package/dist/smart-agent/rag/strategies/edit/overlay.js.map +0 -1
- package/dist/smart-agent/rag/strategies/edit/session-scoped.d.ts.map +0 -1
- package/dist/smart-agent/rag/strategies/edit/session-scoped.js.map +0 -1
- package/dist/smart-agent/rag/strategies/id/caller-provided.d.ts.map +0 -1
- package/dist/smart-agent/rag/strategies/id/caller-provided.js.map +0 -1
- package/dist/smart-agent/rag/strategies/id/canonical-key.d.ts.map +0 -1
- package/dist/smart-agent/rag/strategies/id/canonical-key.js.map +0 -1
- package/dist/smart-agent/rag/strategies/id/global-unique.d.ts.map +0 -1
- package/dist/smart-agent/rag/strategies/id/global-unique.js.map +0 -1
- package/dist/smart-agent/rag/strategies/id/index.d.ts.map +0 -1
- package/dist/smart-agent/rag/strategies/id/index.js.map +0 -1
- package/dist/smart-agent/rag/strategies/id/session-scoped.d.ts.map +0 -1
- package/dist/smart-agent/rag/strategies/id/session-scoped.js.map +0 -1
- package/dist/smart-agent/rag/tool-indexing-strategy.d.ts.map +0 -1
- package/dist/smart-agent/rag/tool-indexing-strategy.js.map +0 -1
- package/dist/smart-agent/rag/vector-rag.d.ts.map +0 -1
- package/dist/smart-agent/rag/vector-rag.js.map +0 -1
- package/dist/smart-agent/reranker/index.d.ts +0 -4
- package/dist/smart-agent/reranker/index.d.ts.map +0 -1
- package/dist/smart-agent/reranker/index.js +0 -3
- package/dist/smart-agent/reranker/index.js.map +0 -1
- package/dist/smart-agent/reranker/llm-reranker.d.ts +0 -10
- package/dist/smart-agent/reranker/llm-reranker.d.ts.map +0 -1
- package/dist/smart-agent/reranker/llm-reranker.js +0 -55
- package/dist/smart-agent/reranker/llm-reranker.js.map +0 -1
- package/dist/smart-agent/reranker/noop-reranker.d.ts +0 -6
- package/dist/smart-agent/reranker/noop-reranker.d.ts.map +0 -1
- package/dist/smart-agent/reranker/noop-reranker.js +0 -6
- package/dist/smart-agent/reranker/noop-reranker.js.map +0 -1
- package/dist/smart-agent/reranker/types.d.ts +0 -5
- package/dist/smart-agent/reranker/types.d.ts.map +0 -1
- package/dist/smart-agent/reranker/types.js +0 -2
- package/dist/smart-agent/reranker/types.js.map +0 -1
- package/dist/smart-agent/resilience/circuit-breaker-embedder.d.ts +0 -17
- package/dist/smart-agent/resilience/circuit-breaker-embedder.d.ts.map +0 -1
- package/dist/smart-agent/resilience/circuit-breaker-embedder.js +0 -48
- package/dist/smart-agent/resilience/circuit-breaker-embedder.js.map +0 -1
- package/dist/smart-agent/resilience/circuit-breaker-llm.d.ts +0 -20
- package/dist/smart-agent/resilience/circuit-breaker-llm.d.ts.map +0 -1
- package/dist/smart-agent/resilience/circuit-breaker-llm.js +0 -72
- package/dist/smart-agent/resilience/circuit-breaker-llm.js.map +0 -1
- package/dist/smart-agent/resilience/circuit-breaker.d.ts +0 -36
- package/dist/smart-agent/resilience/circuit-breaker.d.ts.map +0 -1
- package/dist/smart-agent/resilience/circuit-breaker.js +0 -60
- package/dist/smart-agent/resilience/circuit-breaker.js.map +0 -1
- package/dist/smart-agent/resilience/fallback-rag.d.ts +0 -23
- package/dist/smart-agent/resilience/fallback-rag.d.ts.map +0 -1
- package/dist/smart-agent/resilience/fallback-rag.js +0 -80
- package/dist/smart-agent/resilience/fallback-rag.js.map +0 -1
- package/dist/smart-agent/resilience/index.d.ts +0 -5
- package/dist/smart-agent/resilience/index.d.ts.map +0 -1
- package/dist/smart-agent/resilience/index.js +0 -5
- package/dist/smart-agent/resilience/index.js.map +0 -1
- package/dist/smart-agent/resilience/rate-limiter-llm.d.ts +0 -20
- package/dist/smart-agent/resilience/rate-limiter-llm.d.ts.map +0 -1
- package/dist/smart-agent/resilience/rate-limiter-llm.js +0 -30
- package/dist/smart-agent/resilience/rate-limiter-llm.js.map +0 -1
- package/dist/smart-agent/resilience/retry-llm.d.ts +0 -33
- package/dist/smart-agent/resilience/retry-llm.d.ts.map +0 -1
- package/dist/smart-agent/resilience/retry-llm.js +0 -103
- package/dist/smart-agent/resilience/retry-llm.js.map +0 -1
- package/dist/smart-agent/resilience/token-bucket-rate-limiter.d.ts +0 -21
- package/dist/smart-agent/resilience/token-bucket-rate-limiter.d.ts.map +0 -1
- package/dist/smart-agent/resilience/token-bucket-rate-limiter.js +0 -32
- package/dist/smart-agent/resilience/token-bucket-rate-limiter.js.map +0 -1
- package/dist/smart-agent/server.d.ts +0 -19
- package/dist/smart-agent/server.d.ts.map +0 -1
- package/dist/smart-agent/server.js +0 -349
- package/dist/smart-agent/server.js.map +0 -1
- package/dist/smart-agent/session/index.d.ts +0 -4
- package/dist/smart-agent/session/index.d.ts.map +0 -1
- package/dist/smart-agent/session/index.js +0 -3
- package/dist/smart-agent/session/index.js.map +0 -1
- package/dist/smart-agent/session/noop-session-manager.d.ts +0 -8
- package/dist/smart-agent/session/noop-session-manager.d.ts.map +0 -1
- package/dist/smart-agent/session/noop-session-manager.js +0 -11
- package/dist/smart-agent/session/noop-session-manager.js.map +0 -1
- package/dist/smart-agent/session/session-manager.d.ts +0 -13
- package/dist/smart-agent/session/session-manager.d.ts.map +0 -1
- package/dist/smart-agent/session/session-manager.js +0 -20
- package/dist/smart-agent/session/session-manager.js.map +0 -1
- package/dist/smart-agent/session/types.d.ts +0 -7
- package/dist/smart-agent/session/types.d.ts.map +0 -1
- package/dist/smart-agent/session/types.js +0 -2
- package/dist/smart-agent/session/types.js.map +0 -1
- package/dist/smart-agent/skills/claude-skill-manager.d.ts +0 -25
- package/dist/smart-agent/skills/claude-skill-manager.d.ts.map +0 -1
- package/dist/smart-agent/skills/claude-skill-manager.js +0 -81
- package/dist/smart-agent/skills/claude-skill-manager.js.map +0 -1
- package/dist/smart-agent/skills/codex-skill-manager.d.ts +0 -21
- package/dist/smart-agent/skills/codex-skill-manager.d.ts.map +0 -1
- package/dist/smart-agent/skills/codex-skill-manager.js +0 -75
- package/dist/smart-agent/skills/codex-skill-manager.js.map +0 -1
- package/dist/smart-agent/skills/filesystem-skill-manager.d.ts +0 -18
- package/dist/smart-agent/skills/filesystem-skill-manager.d.ts.map +0 -1
- package/dist/smart-agent/skills/filesystem-skill-manager.js +0 -48
- package/dist/smart-agent/skills/filesystem-skill-manager.js.map +0 -1
- package/dist/smart-agent/skills/filesystem-skill.d.ts +0 -26
- package/dist/smart-agent/skills/filesystem-skill.d.ts.map +0 -1
- package/dist/smart-agent/skills/filesystem-skill.js +0 -110
- package/dist/smart-agent/skills/filesystem-skill.js.map +0 -1
- package/dist/smart-agent/skills/index.d.ts +0 -9
- package/dist/smart-agent/skills/index.d.ts.map +0 -1
- package/dist/smart-agent/skills/index.js +0 -9
- package/dist/smart-agent/skills/index.js.map +0 -1
- package/dist/smart-agent/skills/skill-utils.d.ts +0 -15
- package/dist/smart-agent/skills/skill-utils.d.ts.map +0 -1
- package/dist/smart-agent/skills/skill-utils.js +0 -46
- package/dist/smart-agent/skills/skill-utils.js.map +0 -1
- package/dist/smart-agent/smart-server.d.ts +0 -153
- package/dist/smart-agent/smart-server.d.ts.map +0 -1
- package/dist/smart-agent/smart-server.js +0 -903
- package/dist/smart-agent/smart-server.js.map +0 -1
- package/dist/smart-agent/strategies/index.d.ts +0 -4
- package/dist/smart-agent/strategies/index.d.ts.map +0 -1
- package/dist/smart-agent/strategies/index.js +0 -4
- package/dist/smart-agent/strategies/index.js.map +0 -1
- package/dist/smart-agent/strategies/lazy-connection-strategy.d.ts +0 -15
- package/dist/smart-agent/strategies/lazy-connection-strategy.d.ts.map +0 -1
- package/dist/smart-agent/strategies/lazy-connection-strategy.js +0 -82
- package/dist/smart-agent/strategies/lazy-connection-strategy.js.map +0 -1
- package/dist/smart-agent/strategies/noop-connection-strategy.d.ts +0 -7
- package/dist/smart-agent/strategies/noop-connection-strategy.d.ts.map +0 -1
- package/dist/smart-agent/strategies/noop-connection-strategy.js +0 -6
- package/dist/smart-agent/strategies/noop-connection-strategy.js.map +0 -1
- package/dist/smart-agent/strategies/periodic-connection-strategy.d.ts +0 -13
- package/dist/smart-agent/strategies/periodic-connection-strategy.d.ts.map +0 -1
- package/dist/smart-agent/strategies/periodic-connection-strategy.js +0 -40
- package/dist/smart-agent/strategies/periodic-connection-strategy.js.map +0 -1
- package/dist/smart-agent/testing/index.d.ts +0 -127
- package/dist/smart-agent/testing/index.d.ts.map +0 -1
- package/dist/smart-agent/testing/index.js +0 -355
- package/dist/smart-agent/testing/index.js.map +0 -1
- package/dist/smart-agent/tracer/index.d.ts +0 -3
- package/dist/smart-agent/tracer/index.d.ts.map +0 -1
- package/dist/smart-agent/tracer/index.js +0 -2
- package/dist/smart-agent/tracer/index.js.map +0 -1
- package/dist/smart-agent/tracer/noop-tracer.d.ts +0 -5
- package/dist/smart-agent/tracer/noop-tracer.d.ts.map +0 -1
- package/dist/smart-agent/tracer/noop-tracer.js +0 -16
- package/dist/smart-agent/tracer/noop-tracer.js.map +0 -1
- package/dist/smart-agent/tracer/types.d.ts +0 -17
- package/dist/smart-agent/tracer/types.d.ts.map +0 -1
- package/dist/smart-agent/tracer/types.js +0 -2
- package/dist/smart-agent/tracer/types.js.map +0 -1
- package/dist/smart-agent/utils/external-tools-normalizer.d.ts +0 -15
- package/dist/smart-agent/utils/external-tools-normalizer.d.ts.map +0 -1
- package/dist/smart-agent/utils/external-tools-normalizer.js +0 -146
- package/dist/smart-agent/utils/external-tools-normalizer.js.map +0 -1
- package/dist/smart-agent/utils/lazy.d.ts +0 -51
- package/dist/smart-agent/utils/lazy.d.ts.map +0 -1
- package/dist/smart-agent/utils/lazy.js +0 -127
- package/dist/smart-agent/utils/lazy.js.map +0 -1
- package/dist/smart-agent/utils/parse-frontmatter.d.ts +0 -15
- package/dist/smart-agent/utils/parse-frontmatter.d.ts.map +0 -1
- package/dist/smart-agent/utils/parse-frontmatter.js +0 -22
- package/dist/smart-agent/utils/parse-frontmatter.js.map +0 -1
- package/dist/smart-agent/utils/tool-call-deltas.d.ts +0 -4
- package/dist/smart-agent/utils/tool-call-deltas.d.ts.map +0 -1
- package/dist/smart-agent/utils/tool-call-deltas.js +0 -25
- package/dist/smart-agent/utils/tool-call-deltas.js.map +0 -1
- package/dist/smart-agent/validator/index.d.ts +0 -3
- package/dist/smart-agent/validator/index.d.ts.map +0 -1
- package/dist/smart-agent/validator/index.js +0 -2
- package/dist/smart-agent/validator/index.js.map +0 -1
- package/dist/smart-agent/validator/noop-validator.d.ts +0 -6
- package/dist/smart-agent/validator/noop-validator.d.ts.map +0 -1
- package/dist/smart-agent/validator/noop-validator.js +0 -6
- package/dist/smart-agent/validator/noop-validator.js.map +0 -1
- package/dist/smart-agent/validator/types.d.ts +0 -18
- package/dist/smart-agent/validator/types.d.ts.map +0 -1
- package/dist/smart-agent/validator/types.js +0 -8
- package/dist/smart-agent/validator/types.js.map +0 -1
- package/tools/claude-via-agent.sh +0 -96
- /package/dist/{smart-agent/interfaces → interfaces}/agent-contracts.d.ts +0 -0
- /package/dist/{smart-agent/interfaces → interfaces}/agent-contracts.js +0 -0
- /package/dist/{smart-agent/interfaces → interfaces}/assembler.js +0 -0
- /package/dist/{smart-agent/interfaces → interfaces}/classifier.d.ts +0 -0
- /package/dist/{smart-agent/interfaces → interfaces}/classifier.js +0 -0
- /package/dist/{smart-agent/interfaces → interfaces}/history-memory.d.ts +0 -0
- /package/dist/{smart-agent/interfaces → interfaces}/history-memory.js +0 -0
- /package/dist/{smart-agent/interfaces → interfaces}/history-summarizer.d.ts +0 -0
- /package/dist/{smart-agent/interfaces → interfaces}/history-summarizer.js +0 -0
- /package/dist/{smart-agent/interfaces → interfaces}/llm-call-strategy.js +0 -0
- /package/dist/{smart-agent/interfaces → interfaces}/llm.js +0 -0
- /package/dist/{smart-agent/interfaces → interfaces}/mcp-client.d.ts +0 -0
- /package/dist/{smart-agent/interfaces → interfaces}/mcp-client.js +0 -0
- /package/dist/{smart-agent/interfaces → interfaces}/model-provider.d.ts +0 -0
- /package/dist/{smart-agent/interfaces → interfaces}/model-provider.js +0 -0
- /package/dist/{smart-agent/interfaces → interfaces}/plugin.d.ts +0 -0
- /package/dist/{smart-agent/interfaces → interfaces}/plugin.js +0 -0
- /package/dist/{smart-agent/interfaces → interfaces}/query-embedding.d.ts +0 -0
- /package/dist/{smart-agent/interfaces → interfaces}/query-embedding.js +0 -0
- /package/dist/{smart-agent/interfaces → interfaces}/rag.d.ts +0 -0
- /package/dist/{smart-agent/interfaces → interfaces}/rag.js +0 -0
- /package/dist/{smart-agent/interfaces → interfaces}/rate-limiter.d.ts +0 -0
- /package/dist/{smart-agent/interfaces → interfaces}/rate-limiter.js +0 -0
- /package/dist/{smart-agent/interfaces → interfaces}/request-logger.d.ts +0 -0
- /package/dist/{smart-agent/interfaces → interfaces}/request-logger.js +0 -0
- /package/dist/{smart-agent/interfaces → interfaces}/skill.d.ts +0 -0
- /package/dist/{smart-agent/interfaces → interfaces}/skill.js +0 -0
- /package/dist/{smart-agent/interfaces → interfaces}/types.js +0 -0
- /package/dist/{smart-agent/rag → rag}/corrections/active-filtering-rag.d.ts +0 -0
- /package/dist/{smart-agent/rag → rag}/corrections/active-filtering-rag.js +0 -0
- /package/dist/{smart-agent/rag → rag}/corrections/errors.d.ts +0 -0
- /package/dist/{smart-agent/rag → rag}/corrections/errors.js +0 -0
- /package/dist/{smart-agent/rag → rag}/corrections/index.d.ts +0 -0
- /package/dist/{smart-agent/rag → rag}/corrections/index.js +0 -0
- /package/dist/{smart-agent/rag → rag}/corrections/metadata.d.ts +0 -0
- /package/dist/{smart-agent/rag → rag}/corrections/metadata.js +0 -0
- /package/dist/{smart-agent/rag → rag}/embedder-factories.d.ts +0 -0
- /package/dist/{smart-agent/rag → rag}/embedder-factories.js +0 -0
- /package/dist/{smart-agent/rag → rag}/in-memory-rag.d.ts +0 -0
- /package/dist/{smart-agent/rag → rag}/in-memory-rag.js +0 -0
- /package/dist/{smart-agent/rag → rag}/inverted-index.d.ts +0 -0
- /package/dist/{smart-agent/rag → rag}/inverted-index.js +0 -0
- /package/dist/{smart-agent/rag → rag}/mcp-tools/index.d.ts +0 -0
- /package/dist/{smart-agent/rag → rag}/mcp-tools/index.js +0 -0
- /package/dist/{smart-agent/rag → rag}/mcp-tools/rag-collection-tools.d.ts +0 -0
- /package/dist/{smart-agent/rag → rag}/mcp-tools/rag-collection-tools.js +0 -0
- /package/dist/{smart-agent/rag → rag}/ollama-rag.d.ts +0 -0
- /package/dist/{smart-agent/rag → rag}/ollama-rag.js +0 -0
- /package/dist/{smart-agent/rag → rag}/openai-embedder.d.ts +0 -0
- /package/dist/{smart-agent/rag → rag}/openai-embedder.js +0 -0
- /package/dist/{smart-agent/rag → rag}/overlays/index.d.ts +0 -0
- /package/dist/{smart-agent/rag → rag}/overlays/index.js +0 -0
- /package/dist/{smart-agent/rag → rag}/overlays/overlay-rag.d.ts +0 -0
- /package/dist/{smart-agent/rag → rag}/overlays/overlay-rag.js +0 -0
- /package/dist/{smart-agent/rag → rag}/overlays/session-scoped-rag.d.ts +0 -0
- /package/dist/{smart-agent/rag → rag}/overlays/session-scoped-rag.js +0 -0
- /package/dist/{smart-agent/rag → rag}/preprocessor.d.ts +0 -0
- /package/dist/{smart-agent/rag → rag}/preprocessor.js +0 -0
- /package/dist/{smart-agent/rag → rag}/providers/base-provider.d.ts +0 -0
- /package/dist/{smart-agent/rag → rag}/providers/base-provider.js +0 -0
- /package/dist/{smart-agent/rag → rag}/providers/in-memory-rag-provider.d.ts +0 -0
- /package/dist/{smart-agent/rag → rag}/providers/in-memory-rag-provider.js +0 -0
- /package/dist/{smart-agent/rag → rag}/providers/index.d.ts +0 -0
- /package/dist/{smart-agent/rag → rag}/providers/index.js +0 -0
- /package/dist/{smart-agent/rag → rag}/providers/qdrant-rag-provider.d.ts +0 -0
- /package/dist/{smart-agent/rag → rag}/providers/qdrant-rag-provider.js +0 -0
- /package/dist/{smart-agent/rag → rag}/providers/simple-provider-registry.d.ts +0 -0
- /package/dist/{smart-agent/rag → rag}/providers/simple-provider-registry.js +0 -0
- /package/dist/{smart-agent/rag → rag}/providers/vector-rag-provider.d.ts +0 -0
- /package/dist/{smart-agent/rag → rag}/providers/vector-rag-provider.js +0 -0
- /package/dist/{smart-agent/rag → rag}/qdrant-rag.d.ts +0 -0
- /package/dist/{smart-agent/rag → rag}/qdrant-rag.js +0 -0
- /package/dist/{smart-agent/rag → rag}/query-embedding.d.ts +0 -0
- /package/dist/{smart-agent/rag → rag}/query-embedding.js +0 -0
- /package/dist/{smart-agent/rag → rag}/query-expander.d.ts +0 -0
- /package/dist/{smart-agent/rag → rag}/query-expander.js +0 -0
- /package/dist/{smart-agent/rag → rag}/registry/index.d.ts +0 -0
- /package/dist/{smart-agent/rag → rag}/registry/index.js +0 -0
- /package/dist/{smart-agent/rag → rag}/registry/simple-rag-registry.d.ts +0 -0
- /package/dist/{smart-agent/rag → rag}/registry/simple-rag-registry.js +0 -0
- /package/dist/{smart-agent/rag → rag}/sap-ai-core-embedder.d.ts +0 -0
- /package/dist/{smart-agent/rag → rag}/sap-ai-core-embedder.js +0 -0
- /package/dist/{smart-agent/rag → rag}/search-strategy.d.ts +0 -0
- /package/dist/{smart-agent/rag → rag}/search-strategy.js +0 -0
- /package/dist/{smart-agent/rag → rag}/strategies/edit/direct.d.ts +0 -0
- /package/dist/{smart-agent/rag → rag}/strategies/edit/direct.js +0 -0
- /package/dist/{smart-agent/rag → rag}/strategies/edit/immutable.d.ts +0 -0
- /package/dist/{smart-agent/rag → rag}/strategies/edit/immutable.js +0 -0
- /package/dist/{smart-agent/rag → rag}/strategies/edit/index.d.ts +0 -0
- /package/dist/{smart-agent/rag → rag}/strategies/edit/index.js +0 -0
- /package/dist/{smart-agent/rag → rag}/strategies/edit/overlay.d.ts +0 -0
- /package/dist/{smart-agent/rag → rag}/strategies/edit/overlay.js +0 -0
- /package/dist/{smart-agent/rag → rag}/strategies/edit/session-scoped.d.ts +0 -0
- /package/dist/{smart-agent/rag → rag}/strategies/edit/session-scoped.js +0 -0
- /package/dist/{smart-agent/rag → rag}/strategies/id/caller-provided.d.ts +0 -0
- /package/dist/{smart-agent/rag → rag}/strategies/id/caller-provided.js +0 -0
- /package/dist/{smart-agent/rag → rag}/strategies/id/canonical-key.d.ts +0 -0
- /package/dist/{smart-agent/rag → rag}/strategies/id/canonical-key.js +0 -0
- /package/dist/{smart-agent/rag → rag}/strategies/id/global-unique.d.ts +0 -0
- /package/dist/{smart-agent/rag → rag}/strategies/id/global-unique.js +0 -0
- /package/dist/{smart-agent/rag → rag}/strategies/id/index.d.ts +0 -0
- /package/dist/{smart-agent/rag → rag}/strategies/id/index.js +0 -0
- /package/dist/{smart-agent/rag → rag}/strategies/id/session-scoped.d.ts +0 -0
- /package/dist/{smart-agent/rag → rag}/strategies/id/session-scoped.js +0 -0
- /package/dist/{smart-agent/rag → rag}/tool-indexing-strategy.d.ts +0 -0
- /package/dist/{smart-agent/rag → rag}/tool-indexing-strategy.js +0 -0
- /package/dist/{smart-agent/rag → rag}/vector-rag.d.ts +0 -0
- /package/dist/{smart-agent/rag → rag}/vector-rag.js +0 -0
package/README.md
CHANGED
|
@@ -1,150 +1,13 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @mcp-abap-adt/llm-agent
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Core interfaces, types, and lightweight default implementations for LLM agent orchestration.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
This package is the abstraction layer consumed by `@mcp-abap-adt/llm-agent-server` and by downstream applications that want to build their own agent on our interfaces. It ships:
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
- All `I*` interfaces (IRag, IRagEditor, IRagProvider, IRagRegistry, ILlm, IMcpClient, IPipeline, etc.)
|
|
8
|
+
- Shared types (Message, ToolCall, RagMetadata, CallOptions, Result, errors)
|
|
9
|
+
- Lightweight RAG implementations (InMemoryRag, VectorRag, QdrantRag, InMemoryRagProvider, VectorRagProvider, QdrantRagProvider, SimpleRagRegistry, SimpleRagProviderRegistry, edit strategies, id strategies, corrections module, overlay rags, MCP tool factory)
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
For the full default agent (SmartAgent, pipeline, LLM providers, MCP client, HTTP server, CLI), install `@mcp-abap-adt/llm-agent-server`.
|
|
10
12
|
|
|
11
|
-
|
|
12
|
-
- **SmartAgent:** The core orchestrator that manages intent classification, RAG retrieval, and tool execution loops.
|
|
13
|
-
- **SmartServer:** A production-ready HTTP server that makes the agent accessible to any OpenAI-compatible client (Cline, Goose, etc.).
|
|
14
|
-
- **Hybrid RAG:** A multi-vector search engine combining semantic embeddings with BM25 lexical scoring.
|
|
15
|
-
|
|
16
|
-
## Supported API Protocols
|
|
17
|
-
|
|
18
|
-
SmartServer exposes two inbound API endpoints, both routing through the same SmartAgent pipeline:
|
|
19
|
-
|
|
20
|
-
- **OpenAI Chat Completions** — `POST /v1/chat/completions` — compatible with Cline, Goose, and any OpenAI SDK
|
|
21
|
-
- **Anthropic Messages API** — `POST /v1/messages` — compatible with Claude CLI (Claude Code) and the Anthropic SDK
|
|
22
|
-
|
|
23
|
-
Protocol translation is handled by `ILlmApiAdapter` — a stateless singleton that normalizes inbound requests and formats outbound responses/streams per-protocol. Custom adapters can be registered via the builder or plugin system.
|
|
24
|
-
|
|
25
|
-
See [docs/CLIENT_SETUP.md](docs/CLIENT_SETUP.md) for connection instructions for Claude CLI, Cline, and Goose.
|
|
26
|
-
|
|
27
|
-
## Features
|
|
28
|
-
|
|
29
|
-
- ✅ **Real Incremental Streaming:** True per-token streaming for both text and tool-call deltas.
|
|
30
|
-
- ✅ **OpenAI SSE Compliance:** Fully compatible with official OpenAI SDKs and IDE plugins.
|
|
31
|
-
- ✅ **Provider-Aware Operations:** SAP AI Core can be run in non-streaming mode for production stability while retaining detailed streaming diagnostics for investigation.
|
|
32
|
-
- ✅ **Hybrid RAG Search:** Combines Vector similarity (semantic) with BM25 (lexical) for pinpoint accuracy in technical domains like SAP/ABAP.
|
|
33
|
-
- ✅ **Multi-Intent Classification:** Automatically routes requests to `chat` (fast-path), `action` (tool-loop), or long-term memory (`fact`/`state`).
|
|
34
|
-
- ✅ **Reasoning Mode:** Optional transparent thought process (`<reasoning>` blocks) to explain agent strategy.
|
|
35
|
-
- ✅ **Resilience:** Built-in exponential backoff retries for LLM/Embeddings and auto-reconnect for MCP servers.
|
|
36
|
-
- ✅ **Helper LLM Support:** Offload summarization and translation tasks to cheaper/faster models.
|
|
37
|
-
- ✅ **Startup Health Checks:** Immediate diagnostics for all dependencies (Ollama, MCP, LLM).
|
|
38
|
-
- ✅ **RAG Providers:** Dynamic collection creation with scope-based lifecycle (session / user / global); MCP tools let LLMs create, list, and clean up their own collections at runtime.
|
|
39
|
-
|
|
40
|
-
## Installation
|
|
41
|
-
|
|
42
|
-
```bash
|
|
43
|
-
npm install @mcp-abap-adt/llm-agent
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
## Quick Start
|
|
47
|
-
|
|
48
|
-
1. **Initialize Configuration:**
|
|
49
|
-
Run the agent once to generate the default `smart-server.yaml` template:
|
|
50
|
-
```bash
|
|
51
|
-
npx llm-agent
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
2. **Configure:**
|
|
55
|
-
Edit `smart-server.yaml` and `.env` with your API keys and MCP endpoints.
|
|
56
|
-
|
|
57
|
-
3. **Launch Server:**
|
|
58
|
-
```bash
|
|
59
|
-
npm run dev -- --config smart-server.yaml
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
## Usage
|
|
63
|
-
|
|
64
|
-
### Connecting IDE Clients
|
|
65
|
-
|
|
66
|
-
Point your favorite AI client to your local SmartServer:
|
|
67
|
-
- **Base URL:** `http://localhost:4004/v1`
|
|
68
|
-
- **Model ID:** `smart-agent`
|
|
69
|
-
- **API Key:** (any string, e.g., `sk-none`)
|
|
70
|
-
|
|
71
|
-
### Intent Types
|
|
72
|
-
|
|
73
|
-
SmartAgent automatically classifies your input into:
|
|
74
|
-
- **Fact:** Technical rules or constraints (e.g., "ABAP Cloud forbids direct table access"). Stored in long-term facts RAG.
|
|
75
|
-
- **State:** Project context or temporary observations (e.g., "Kristina approves decisions", "Sky is blue"). Stored in state RAG.
|
|
76
|
-
- **Chat:** Trivial questions or math (e.g., "2+2"). Processed via fast-path without project context.
|
|
77
|
-
- **Action:** (Default) Engineering tasks requiring tools and deep analysis.
|
|
78
|
-
|
|
79
|
-
## Advanced Configuration (YAML)
|
|
80
|
-
|
|
81
|
-
```yaml
|
|
82
|
-
port: 4004
|
|
83
|
-
host: 0.0.0.0
|
|
84
|
-
|
|
85
|
-
# Hybrid RAG Settings
|
|
86
|
-
rag:
|
|
87
|
-
type: ollama
|
|
88
|
-
url: http://localhost:11434
|
|
89
|
-
vectorWeight: 0.7
|
|
90
|
-
keywordWeight: 0.3
|
|
91
|
-
|
|
92
|
-
# Multi-model Pipeline
|
|
93
|
-
pipeline:
|
|
94
|
-
llm:
|
|
95
|
-
main:
|
|
96
|
-
provider: deepseek
|
|
97
|
-
apiKey: ${DEEPSEEK_API_KEY}
|
|
98
|
-
model: deepseek-chat
|
|
99
|
-
classifier:
|
|
100
|
-
provider: deepseek
|
|
101
|
-
apiKey: ${DEEPSEEK_API_KEY}
|
|
102
|
-
model: deepseek-chat
|
|
103
|
-
temperature: 0.1
|
|
104
|
-
helper:
|
|
105
|
-
provider: deepseek
|
|
106
|
-
apiKey: ${DEEPSEEK_API_KEY}
|
|
107
|
-
model: deepseek-chat # Used for fast summarization/translation
|
|
108
|
-
temperature: 0.1
|
|
109
|
-
|
|
110
|
-
# Feature Toggles
|
|
111
|
-
agent:
|
|
112
|
-
showReasoning: true # Enable debug thought blocks
|
|
113
|
-
maxIterations: 10
|
|
114
|
-
historyAutoSummarizeLimit: 15
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
## SAP AI Core Note
|
|
118
|
-
|
|
119
|
-
If you use `sap-ai-sdk` and see streaming failures after successful tool execution, prefer a non-streaming request path for production traffic. The package now includes detailed SAP AI Core streaming diagnostics and tool-loop iteration context logging to investigate those failures without relying on streaming in production.
|
|
120
|
-
|
|
121
|
-
SAP AI Core Orchestration round-trips (OAuth + inference) often exceed the default 5 s health check timeout. Set `agent.healthTimeoutMs: 15000` in your YAML config to avoid permanent `unhealthy` status on `/v1/health`.
|
|
122
|
-
|
|
123
|
-
See [docs/SAP_AI_CORE.md](docs/SAP_AI_CORE.md) for the operational guidance and troubleshooting details.
|
|
124
|
-
|
|
125
|
-
## Development
|
|
126
|
-
|
|
127
|
-
```bash
|
|
128
|
-
# Build project
|
|
129
|
-
npm run build
|
|
130
|
-
|
|
131
|
-
# Run tests
|
|
132
|
-
npm run test:all
|
|
133
|
-
|
|
134
|
-
# Development with hot-reload
|
|
135
|
-
npm run dev
|
|
136
|
-
|
|
137
|
-
# Smart server production entrypoint
|
|
138
|
-
npm run start
|
|
139
|
-
|
|
140
|
-
# Legacy compatibility aliases
|
|
141
|
-
npm run start:smart
|
|
142
|
-
npm run dev:llm
|
|
143
|
-
npm run start:llm
|
|
144
|
-
npm run test
|
|
145
|
-
npm run test:llm
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
## License
|
|
149
|
-
|
|
150
|
-
MIT
|
|
13
|
+
See the repo root for design specs, migration notes, and architectural docs.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,113 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
|
|
4
|
-
export { Agent, type AgentConfig } from './agent.js';
|
|
5
|
-
export { AnthropicAgent, type AnthropicAgentConfig, } from './agents/anthropic-agent.js';
|
|
6
|
-
export { BaseAgent, type BaseAgentConfig } from './agents/base.js';
|
|
7
|
-
export { DeepSeekAgent, type DeepSeekAgentConfig, } from './agents/deepseek-agent.js';
|
|
8
|
-
export { OpenAIAgent, type OpenAIAgentConfig } from './agents/openai-agent.js';
|
|
9
|
-
export { PromptBasedAgent, type PromptBasedAgentConfig, } from './agents/prompt-based-agent.js';
|
|
10
|
-
export { SapCoreAIAgent, type SapCoreAIAgentConfig, } from './agents/sap-core-ai-agent.js';
|
|
11
|
-
export { type AnthropicConfig, AnthropicProvider, } from './llm-providers/anthropic.js';
|
|
12
|
-
export { BaseLLMProvider, type LLMProvider } from './llm-providers/base.js';
|
|
13
|
-
export { type DeepSeekConfig, DeepSeekProvider, } from './llm-providers/deepseek.js';
|
|
14
|
-
export { type OpenAIConfig, OpenAIProvider } from './llm-providers/openai.js';
|
|
15
|
-
export { type SapAICoreCredentials, type SapCoreAIConfig, SapCoreAIProvider, } from './llm-providers/sap-core-ai.js';
|
|
16
|
-
export { type MCPClientConfig, MCPClientWrapper, type TransportType, } from './mcp/client.js';
|
|
17
|
-
export { ClineClientAdapter } from './smart-agent/adapters/cline-client-adapter.js';
|
|
18
|
-
export { LlmAdapter, type LlmAdapterProviderInfo, } from './smart-agent/adapters/llm-adapter.js';
|
|
19
|
-
export { McpClientAdapter } from './smart-agent/adapters/mcp-client-adapter.js';
|
|
20
|
-
export type { SmartAgentRagStores, SmartAgentReconfigureOptions, } from './smart-agent/agent.js';
|
|
21
|
-
export { AnthropicApiAdapter, OpenAiApiAdapter, } from './smart-agent/api-adapters/index.js';
|
|
22
|
-
export { type BuilderMcpConfig, type BuilderPromptsConfig, SmartAgentBuilder, type SmartAgentBuilderConfig, type SmartAgentHandle, } from './smart-agent/builder.js';
|
|
23
|
-
export { NoopToolCache } from './smart-agent/cache/noop-tool-cache.js';
|
|
24
|
-
export { ToolCache } from './smart-agent/cache/tool-cache.js';
|
|
25
|
-
export type { IToolCache } from './smart-agent/cache/types.js';
|
|
26
|
-
export { ConfigWatcher, type ConfigWatcherOptions, type HotReloadableConfig, } from './smart-agent/config/config-watcher.js';
|
|
27
|
-
export { HealthChecker, type HealthCheckerDeps, } from './smart-agent/health/health-checker.js';
|
|
28
|
-
export type { CircuitBreakerStatus, HealthComponentStatus, HealthStatus, } from './smart-agent/health/types.js';
|
|
29
|
-
export { HistoryMemory } from './smart-agent/history/history-memory.js';
|
|
30
|
-
export { HistorySummarizer } from './smart-agent/history/history-summarizer.js';
|
|
31
|
-
export type { AgentCallOptions } from './smart-agent/interfaces/agent-contracts.js';
|
|
32
|
-
export { AdapterValidationError, type ApiRequestContext, type ApiSseEvent, type ILlmApiAdapter, type NormalizedRequest, } from './smart-agent/interfaces/api-adapter.js';
|
|
33
|
-
export type { IClientAdapter } from './smart-agent/interfaces/client-adapter.js';
|
|
34
|
-
export type { IHistoryMemory } from './smart-agent/interfaces/history-memory.js';
|
|
35
|
-
export type { HistoryTurn, IHistorySummarizer, } from './smart-agent/interfaces/history-summarizer.js';
|
|
36
|
-
export type { ILlm } from './smart-agent/interfaces/llm.js';
|
|
37
|
-
export type { ILlmCallStrategy } from './smart-agent/interfaces/llm-call-strategy.js';
|
|
38
|
-
export type { IMcpClient } from './smart-agent/interfaces/mcp-client.js';
|
|
39
|
-
export type { ConnectionStrategyOptions, IMcpConnectionStrategy, McpClientFactory, McpClientFactoryResult, McpConnectionConfig, McpConnectionResult, } from './smart-agent/interfaces/mcp-connection-strategy.js';
|
|
40
|
-
export type { IModelFilter, IModelInfo, IModelProvider, } from './smart-agent/interfaces/model-provider.js';
|
|
41
|
-
export type { IModelResolver } from './smart-agent/interfaces/model-resolver.js';
|
|
42
|
-
export type { IPipeline, PipelineDeps, PipelineResult, } from './smart-agent/interfaces/pipeline.js';
|
|
43
|
-
export type { IRagStoreConfig, ISmartAgentPlugin, RagScope, } from './smart-agent/interfaces/plugin.js';
|
|
44
|
-
export type { IQueryEmbedding } from './smart-agent/interfaces/query-embedding.js';
|
|
45
|
-
export type { EmbedderFactory, EmbedderFactoryConfig, IEmbedder, IEmbedderBatch, IEmbedResult, IIdStrategy, IRag, IRagBackendWriter, IRagEditor, IRagProvider, IRagProviderRegistry, IRagRegistry, RagCollectionMeta, RagCollectionScope, } from './smart-agent/interfaces/rag.js';
|
|
46
|
-
export { isBatchEmbedder } from './smart-agent/interfaces/rag.js';
|
|
47
|
-
export type { ILlmRateLimiter } from './smart-agent/interfaces/rate-limiter.js';
|
|
48
|
-
export type { IRequestLogger, LlmCallEntry, LlmComponent, RagQueryEntry, RequestSummary, TokenBucket, TokenCategory, ToolCallEntry, } from './smart-agent/interfaces/request-logger.js';
|
|
49
|
-
export type { ISkill, ISkillManager, ISkillMeta, ISkillResource, } from './smart-agent/interfaces/skill.js';
|
|
50
|
-
export type { CallOptions, LlmTool, RagError, RagResult, Result, StreamHookContext, } from './smart-agent/interfaces/types.js';
|
|
51
|
-
export { SkillError } from './smart-agent/interfaces/types.js';
|
|
52
|
-
export { DefaultRequestLogger } from './smart-agent/logger/default-request-logger.js';
|
|
53
|
-
export { NoopRequestLogger } from './smart-agent/logger/noop-request-logger.js';
|
|
54
|
-
export { createDefaultMcpClient } from './smart-agent/mcp-client-factory.js';
|
|
55
|
-
export { type CounterSnapshot, type HistogramSnapshot, InMemoryMetrics, type MetricsSnapshot, } from './smart-agent/metrics/in-memory-metrics.js';
|
|
56
|
-
export { NoopMetrics } from './smart-agent/metrics/noop-metrics.js';
|
|
57
|
-
export type { ICounter, IHistogram, IMetrics, } from './smart-agent/metrics/types.js';
|
|
58
|
-
export type { BuiltInStageType, ControlFlowType, IStageHandler, PipelineContext, StageDefinition, StageType, } from './smart-agent/pipeline/index.js';
|
|
59
|
-
export { buildDefaultHandlerRegistry, DefaultPipeline, evaluateCondition, PipelineExecutor, } from './smart-agent/pipeline/index.js';
|
|
60
|
-
export type { IPluginLoader, LoadedPlugins, PluginExports, } from './smart-agent/plugins/index.js';
|
|
61
|
-
export { emptyLoadedPlugins, FileSystemPluginLoader, type FileSystemPluginLoaderConfig, getDefaultPluginDirs, loadPlugins, mergePluginExports, } from './smart-agent/plugins/index.js';
|
|
62
|
-
export { FallbackLlmCallStrategy } from './smart-agent/policy/fallback-llm-call-strategy.js';
|
|
63
|
-
export { NonStreamingLlmCallStrategy } from './smart-agent/policy/non-streaming-llm-call-strategy.js';
|
|
64
|
-
export { StreamingLlmCallStrategy } from './smart-agent/policy/streaming-llm-call-strategy.js';
|
|
65
|
-
export { DefaultModelResolver, type EmbedderResolutionConfig, type EmbedderResolutionOptions, type LlmProviderConfig, makeDefaultLlm, makeLlm, makeRag, type RagResolutionConfig, type RagResolutionOptions, resolveEmbedder, } from './smart-agent/providers.js';
|
|
66
|
-
export { ActiveFilteringRag, buildCorrectionMetadata, CanonicalKeyCollisionError, CollectionNotFoundError, type CorrectionMetadata, CorrectionTag, deprecateMetadata, filterActive, MissingIdError, ProviderNotFoundError, ReadOnlyError, ScopeViolationError, UnsupportedScopeError, validateCorrectionMetadata, } from './smart-agent/rag/corrections/index.js';
|
|
67
|
-
export { builtInEmbedderFactories } from './smart-agent/rag/embedder-factories.js';
|
|
68
|
-
export { InMemoryRag } from './smart-agent/rag/in-memory-rag.js';
|
|
69
|
-
export { buildRagCollectionToolEntries, type RagToolContext, type RagToolEntry, } from './smart-agent/rag/mcp-tools/index.js';
|
|
70
|
-
export { OllamaEmbedder, type OllamaEmbedderConfig, OllamaRag, } from './smart-agent/rag/ollama-rag.js';
|
|
71
|
-
export { OpenAiEmbedder, type OpenAiEmbedderConfig, } from './smart-agent/rag/openai-embedder.js';
|
|
72
|
-
export { OverlayRag, SessionScopedRag, } from './smart-agent/rag/overlays/index.js';
|
|
73
|
-
export type { IDocumentEnricher, IQueryPreprocessor, } from './smart-agent/rag/preprocessor.js';
|
|
74
|
-
export { ExpandPreprocessor, IntentEnricher, NoopDocumentEnricher, NoopQueryPreprocessor, PreprocessorChain, TranslatePreprocessor, } from './smart-agent/rag/preprocessor.js';
|
|
75
|
-
export { AbstractRagProvider } from './smart-agent/rag/providers/base-provider.js';
|
|
76
|
-
export { InMemoryRagProvider, type InMemoryRagProviderConfig, } from './smart-agent/rag/providers/in-memory-rag-provider.js';
|
|
77
|
-
export { QdrantRagProvider, type QdrantRagProviderConfig, } from './smart-agent/rag/providers/qdrant-rag-provider.js';
|
|
78
|
-
export { SimpleRagProviderRegistry } from './smart-agent/rag/providers/simple-provider-registry.js';
|
|
79
|
-
export { VectorRagProvider, type VectorRagProviderConfig, } from './smart-agent/rag/providers/vector-rag-provider.js';
|
|
80
|
-
export { QdrantRag, type QdrantRagConfig, } from './smart-agent/rag/qdrant-rag.js';
|
|
81
|
-
export { FallbackQueryEmbedding, QueryEmbedding, TextOnlyEmbedding, } from './smart-agent/rag/query-embedding.js';
|
|
82
|
-
export { type IQueryExpander, LlmQueryExpander, NoopQueryExpander, } from './smart-agent/rag/query-expander.js';
|
|
83
|
-
export { SimpleRagRegistry } from './smart-agent/rag/registry/index.js';
|
|
84
|
-
export { SapAiCoreEmbedder, type SapAiCoreEmbedderConfig, } from './smart-agent/rag/sap-ai-core-embedder.js';
|
|
85
|
-
export type { IScoredResult, ISearchCandidate, ISearchContext, ISearchQuery, ISearchStrategy, } from './smart-agent/rag/search-strategy.js';
|
|
86
|
-
export { Bm25OnlyStrategy, CompositeStrategy, type CompositeStrategyEntry, RrfStrategy, VectorOnlyStrategy, WeightedFusionStrategy, } from './smart-agent/rag/search-strategy.js';
|
|
87
|
-
export { DirectEditStrategy, ImmutableEditStrategy, OverlayEditStrategy, SessionScopedEditStrategy, } from './smart-agent/rag/strategies/edit/index.js';
|
|
88
|
-
export { CallerProvidedIdStrategy, CanonicalKeyIdStrategy, GlobalUniqueIdStrategy, SessionScopedIdStrategy, } from './smart-agent/rag/strategies/id/index.js';
|
|
89
|
-
export { VectorRag, type VectorRagConfig, } from './smart-agent/rag/vector-rag.js';
|
|
90
|
-
export { LlmReranker } from './smart-agent/reranker/llm-reranker.js';
|
|
91
|
-
export { NoopReranker } from './smart-agent/reranker/noop-reranker.js';
|
|
92
|
-
export type { IReranker } from './smart-agent/reranker/types.js';
|
|
93
|
-
export { CircuitBreaker, type CircuitBreakerConfig, type CircuitState, } from './smart-agent/resilience/circuit-breaker.js';
|
|
94
|
-
export { CircuitBreakerEmbedder } from './smart-agent/resilience/circuit-breaker-embedder.js';
|
|
95
|
-
export { CircuitBreakerLlm } from './smart-agent/resilience/circuit-breaker-llm.js';
|
|
96
|
-
export { FallbackRag } from './smart-agent/resilience/fallback-rag.js';
|
|
97
|
-
export { RateLimiterLlm } from './smart-agent/resilience/rate-limiter-llm.js';
|
|
98
|
-
export { RetryLlm, type RetryOptions, } from './smart-agent/resilience/retry-llm.js';
|
|
99
|
-
export { type TokenBucketConfig, TokenBucketRateLimiter, } from './smart-agent/resilience/token-bucket-rate-limiter.js';
|
|
100
|
-
export { NoopSessionManager } from './smart-agent/session/noop-session-manager.js';
|
|
101
|
-
export { SessionManager } from './smart-agent/session/session-manager.js';
|
|
102
|
-
export type { ISessionManager } from './smart-agent/session/types.js';
|
|
103
|
-
export { ClaudeSkillManager, CodexSkillManager, FileSystemSkillManager, } from './smart-agent/skills/index.js';
|
|
104
|
-
export { LazyConnectionStrategy, NoopConnectionStrategy, PeriodicConnectionStrategy, } from './smart-agent/strategies/index.js';
|
|
105
|
-
export { NoopTracer } from './smart-agent/tracer/noop-tracer.js';
|
|
106
|
-
export type { ISpan, ITracer, SpanOptions, SpanStatus, } from './smart-agent/tracer/types.js';
|
|
107
|
-
export { type ExternalToolValidationCode, type ExternalToolValidationError, normalizeAndValidateExternalTools, normalizeExternalTools, } from './smart-agent/utils/external-tools-normalizer.js';
|
|
108
|
-
export { LazyInitError, type LazyOptions, lazy, } from './smart-agent/utils/lazy.js';
|
|
109
|
-
export { getStreamToolCallName, toToolCallDelta, } from './smart-agent/utils/tool-call-deltas.js';
|
|
110
|
-
export { NoopValidator } from './smart-agent/validator/noop-validator.js';
|
|
111
|
-
export type { IOutputValidator, ValidationResult, } from './smart-agent/validator/types.js';
|
|
112
|
-
export type { AgentResponse, LLMProviderConfig, LLMResponse, Message, ToolCall, ToolResult, } from './types.js';
|
|
1
|
+
export * from './interfaces/index.js';
|
|
2
|
+
export * from './rag/index.js';
|
|
3
|
+
export * from './types.js';
|
|
113
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,103 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export { Agent } from './agent.js';
|
|
6
|
-
export { AnthropicAgent, } from './agents/anthropic-agent.js';
|
|
7
|
-
// New Agent implementations (recommended)
|
|
8
|
-
export { BaseAgent } from './agents/base.js';
|
|
9
|
-
export { DeepSeekAgent, } from './agents/deepseek-agent.js';
|
|
10
|
-
// Legacy exports (deprecated - use SapCoreAIProvider instead)
|
|
11
|
-
// These are kept for backward compatibility but will be removed in future versions
|
|
12
|
-
export { OpenAIAgent } from './agents/openai-agent.js';
|
|
13
|
-
export { PromptBasedAgent, } from './agents/prompt-based-agent.js';
|
|
14
|
-
export { SapCoreAIAgent, } from './agents/sap-core-ai-agent.js';
|
|
15
|
-
export { AnthropicProvider, } from './llm-providers/anthropic.js';
|
|
16
|
-
export { BaseLLMProvider } from './llm-providers/base.js';
|
|
17
|
-
export { DeepSeekProvider, } from './llm-providers/deepseek.js';
|
|
18
|
-
export { OpenAIProvider } from './llm-providers/openai.js';
|
|
19
|
-
// LLM Providers
|
|
20
|
-
// NOTE: All LLM providers are accessed through SAP AI Core
|
|
21
|
-
export { SapCoreAIProvider, } from './llm-providers/sap-core-ai.js';
|
|
22
|
-
// MCP Client
|
|
23
|
-
export { MCPClientWrapper, } from './mcp/client.js';
|
|
24
|
-
// Adapters
|
|
25
|
-
export { ClineClientAdapter } from './smart-agent/adapters/cline-client-adapter.js';
|
|
26
|
-
export { LlmAdapter, } from './smart-agent/adapters/llm-adapter.js';
|
|
27
|
-
export { McpClientAdapter } from './smart-agent/adapters/mcp-client-adapter.js';
|
|
28
|
-
// API adapters
|
|
29
|
-
export { AnthropicApiAdapter, OpenAiApiAdapter, } from './smart-agent/api-adapters/index.js';
|
|
30
|
-
export { SmartAgentBuilder, } from './smart-agent/builder.js';
|
|
31
|
-
export { NoopToolCache } from './smart-agent/cache/noop-tool-cache.js';
|
|
32
|
-
export { ToolCache } from './smart-agent/cache/tool-cache.js';
|
|
33
|
-
// Config
|
|
34
|
-
export { ConfigWatcher, } from './smart-agent/config/config-watcher.js';
|
|
35
|
-
export { HealthChecker, } from './smart-agent/health/health-checker.js';
|
|
36
|
-
// History
|
|
37
|
-
export { HistoryMemory } from './smart-agent/history/history-memory.js';
|
|
38
|
-
export { HistorySummarizer } from './smart-agent/history/history-summarizer.js';
|
|
39
|
-
export { AdapterValidationError, } from './smart-agent/interfaces/api-adapter.js';
|
|
40
|
-
export { isBatchEmbedder } from './smart-agent/interfaces/rag.js';
|
|
41
|
-
export { SkillError } from './smart-agent/interfaces/types.js';
|
|
42
|
-
export { DefaultRequestLogger } from './smart-agent/logger/default-request-logger.js';
|
|
43
|
-
export { NoopRequestLogger } from './smart-agent/logger/noop-request-logger.js';
|
|
44
|
-
export { createDefaultMcpClient } from './smart-agent/mcp-client-factory.js';
|
|
45
|
-
export { InMemoryMetrics, } from './smart-agent/metrics/in-memory-metrics.js';
|
|
46
|
-
export { NoopMetrics } from './smart-agent/metrics/noop-metrics.js';
|
|
47
|
-
export { buildDefaultHandlerRegistry, DefaultPipeline, evaluateCondition, PipelineExecutor, } from './smart-agent/pipeline/index.js';
|
|
48
|
-
export { emptyLoadedPlugins, FileSystemPluginLoader, getDefaultPluginDirs, loadPlugins, mergePluginExports, } from './smart-agent/plugins/index.js';
|
|
49
|
-
export { FallbackLlmCallStrategy } from './smart-agent/policy/fallback-llm-call-strategy.js';
|
|
50
|
-
export { NonStreamingLlmCallStrategy } from './smart-agent/policy/non-streaming-llm-call-strategy.js';
|
|
51
|
-
export { StreamingLlmCallStrategy } from './smart-agent/policy/streaming-llm-call-strategy.js';
|
|
52
|
-
export { DefaultModelResolver, makeDefaultLlm, makeLlm, makeRag, resolveEmbedder, } from './smart-agent/providers.js';
|
|
53
|
-
// RAG Corrections, Registry, Overlays, and Strategies
|
|
54
|
-
export { ActiveFilteringRag, buildCorrectionMetadata, CanonicalKeyCollisionError, CollectionNotFoundError, deprecateMetadata, filterActive, MissingIdError, ProviderNotFoundError, ReadOnlyError, ScopeViolationError, UnsupportedScopeError, validateCorrectionMetadata, } from './smart-agent/rag/corrections/index.js';
|
|
55
|
-
export { builtInEmbedderFactories } from './smart-agent/rag/embedder-factories.js';
|
|
56
|
-
export { InMemoryRag } from './smart-agent/rag/in-memory-rag.js';
|
|
57
|
-
export { buildRagCollectionToolEntries, } from './smart-agent/rag/mcp-tools/index.js';
|
|
58
|
-
export { OllamaEmbedder, OllamaRag, } from './smart-agent/rag/ollama-rag.js';
|
|
59
|
-
export { OpenAiEmbedder, } from './smart-agent/rag/openai-embedder.js';
|
|
60
|
-
export { OverlayRag, SessionScopedRag, } from './smart-agent/rag/overlays/index.js';
|
|
61
|
-
export { ExpandPreprocessor, IntentEnricher, NoopDocumentEnricher, NoopQueryPreprocessor, PreprocessorChain, TranslatePreprocessor, } from './smart-agent/rag/preprocessor.js';
|
|
62
|
-
// RAG Providers (v9.1)
|
|
63
|
-
export { AbstractRagProvider } from './smart-agent/rag/providers/base-provider.js';
|
|
64
|
-
export { InMemoryRagProvider, } from './smart-agent/rag/providers/in-memory-rag-provider.js';
|
|
65
|
-
export { QdrantRagProvider, } from './smart-agent/rag/providers/qdrant-rag-provider.js';
|
|
66
|
-
export { SimpleRagProviderRegistry } from './smart-agent/rag/providers/simple-provider-registry.js';
|
|
67
|
-
export { VectorRagProvider, } from './smart-agent/rag/providers/vector-rag-provider.js';
|
|
68
|
-
// Qdrant RAG
|
|
69
|
-
export { QdrantRag, } from './smart-agent/rag/qdrant-rag.js';
|
|
70
|
-
export { FallbackQueryEmbedding, QueryEmbedding, TextOnlyEmbedding, } from './smart-agent/rag/query-embedding.js';
|
|
71
|
-
// Query Expander
|
|
72
|
-
export { LlmQueryExpander, NoopQueryExpander, } from './smart-agent/rag/query-expander.js';
|
|
73
|
-
export { SimpleRagRegistry } from './smart-agent/rag/registry/index.js';
|
|
74
|
-
export { SapAiCoreEmbedder, } from './smart-agent/rag/sap-ai-core-embedder.js';
|
|
75
|
-
export { Bm25OnlyStrategy, CompositeStrategy, RrfStrategy, VectorOnlyStrategy, WeightedFusionStrategy, } from './smart-agent/rag/search-strategy.js';
|
|
76
|
-
export { DirectEditStrategy, ImmutableEditStrategy, OverlayEditStrategy, SessionScopedEditStrategy, } from './smart-agent/rag/strategies/edit/index.js';
|
|
77
|
-
export { CallerProvidedIdStrategy, CanonicalKeyIdStrategy, GlobalUniqueIdStrategy, SessionScopedIdStrategy, } from './smart-agent/rag/strategies/id/index.js';
|
|
78
|
-
export { VectorRag, } from './smart-agent/rag/vector-rag.js';
|
|
79
|
-
// Reranker
|
|
80
|
-
export { LlmReranker } from './smart-agent/reranker/llm-reranker.js';
|
|
81
|
-
export { NoopReranker } from './smart-agent/reranker/noop-reranker.js';
|
|
82
|
-
// Resilience
|
|
83
|
-
export { CircuitBreaker, } from './smart-agent/resilience/circuit-breaker.js';
|
|
84
|
-
export { CircuitBreakerEmbedder } from './smart-agent/resilience/circuit-breaker-embedder.js';
|
|
85
|
-
export { CircuitBreakerLlm } from './smart-agent/resilience/circuit-breaker-llm.js';
|
|
86
|
-
export { FallbackRag } from './smart-agent/resilience/fallback-rag.js';
|
|
87
|
-
export { RateLimiterLlm } from './smart-agent/resilience/rate-limiter-llm.js';
|
|
88
|
-
export { RetryLlm, } from './smart-agent/resilience/retry-llm.js';
|
|
89
|
-
export { TokenBucketRateLimiter, } from './smart-agent/resilience/token-bucket-rate-limiter.js';
|
|
90
|
-
export { NoopSessionManager } from './smart-agent/session/noop-session-manager.js';
|
|
91
|
-
export { SessionManager } from './smart-agent/session/session-manager.js';
|
|
92
|
-
export { ClaudeSkillManager, CodexSkillManager, FileSystemSkillManager, } from './smart-agent/skills/index.js';
|
|
93
|
-
// Connection strategies
|
|
94
|
-
export { LazyConnectionStrategy, NoopConnectionStrategy, PeriodicConnectionStrategy, } from './smart-agent/strategies/index.js';
|
|
95
|
-
// Tracer
|
|
96
|
-
export { NoopTracer } from './smart-agent/tracer/noop-tracer.js';
|
|
97
|
-
// Utils
|
|
98
|
-
export { normalizeAndValidateExternalTools, normalizeExternalTools, } from './smart-agent/utils/external-tools-normalizer.js';
|
|
99
|
-
// Lazy initialization
|
|
100
|
-
export { LazyInitError, lazy, } from './smart-agent/utils/lazy.js';
|
|
101
|
-
export { getStreamToolCallName, toToolCallDelta, } from './smart-agent/utils/tool-call-deltas.js';
|
|
102
|
-
export { NoopValidator } from './smart-agent/validator/noop-validator.js';
|
|
1
|
+
// Re-export everything from core subtrees.
|
|
2
|
+
export * from './interfaces/index.js';
|
|
3
|
+
export * from './rag/index.js';
|
|
4
|
+
export * from './types.js';
|
|
103
5
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-contracts.d.ts","sourceRoot":"","sources":["../../src/interfaces/agent-contracts.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,qBAAa,iBAAkB,SAAQ,eAAe;gBACxC,OAAO,EAAE,MAAM,EAAE,IAAI,SAAuB;CAIzD;AAED,MAAM,MAAM,UAAU,GAClB,MAAM,GACN,YAAY,GACZ,iBAAiB,GACjB,iBAAiB,CAAC;AAEtB,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,UAAU,CAAC;IACvB,qEAAqE;IACrE,SAAS,CAAC,EAAE,KAAK,CAAC;QAChB,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,UAAU,CAAC;QACjB,QAAQ,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,SAAS,EAAE,MAAM,CAAA;SAAE,CAAC;KAC/C,CAAC,CAAC;IACH,KAAK,CAAC,EAAE;QACN,YAAY,EAAE,MAAM,CAAC;QACrB,gBAAgB,EAAE,MAAM,CAAC;QACzB,WAAW,EAAE,MAAM,CAAC;QACpB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;KAC1C,CAAC;CACH;AAED,MAAM,WAAW,gBAAiB,SAAQ,WAAW;IACnD,aAAa,CAAC,EAAE,OAAO,EAAE,CAAC;CAC3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-contracts.js","sourceRoot":"","sources":["../../src/interfaces/agent-contracts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,MAAM,OAAO,iBAAkB,SAAQ,eAAe;IACpD,YAAY,OAAe,EAAE,IAAI,GAAG,oBAAoB;QACtD,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,mBAAmB,CAAC;IAClC,CAAC;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Message } from '
|
|
1
|
+
import type { Message } from '../types.js';
|
|
2
2
|
import type { AssemblerError, CallOptions, McpTool, RagResult, Result, Subprompt, ToolCallRecord } from './types.js';
|
|
3
3
|
export type HistoryEntry = Message | ToolCallRecord;
|
|
4
4
|
export interface IContextAssembler {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assembler.d.ts","sourceRoot":"","sources":["../../src/interfaces/assembler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,KAAK,EACV,cAAc,EACd,WAAW,EACX,OAAO,EACP,SAAS,EACT,MAAM,EACN,SAAS,EACT,cAAc,EACf,MAAM,YAAY,CAAC;AAEpB,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,cAAc,CAAC;AAEpD,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CACN,MAAM,EAAE,SAAS,EACjB,SAAS,EAAE;QACT,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;QACxC,KAAK,EAAE,OAAO,EAAE,CAAC;QACjB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;KAC1B,EACD,OAAO,EAAE,YAAY,EAAE,EACvB,OAAO,CAAC,EAAE,WAAW,GACpB,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,EAAE,cAAc,CAAC,CAAC,CAAC;CAC/C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assembler.js","sourceRoot":"","sources":["../../src/interfaces/assembler.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"classifier.d.ts","sourceRoot":"","sources":["../../src/interfaces/classifier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,eAAe,EACf,MAAM,EACN,SAAS,EACV,MAAM,YAAY,CAAC;AAEpB,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CACN,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,WAAW,GACpB,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,EAAE,eAAe,CAAC,CAAC,CAAC;CAClD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"classifier.js","sourceRoot":"","sources":["../../src/interfaces/classifier.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"history-memory.d.ts","sourceRoot":"","sources":["../../src/interfaces/history-memory.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,UAAU,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACrD,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACtD,KAAK,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"history-memory.js","sourceRoot":"","sources":["../../src/interfaces/history-memory.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"history-summarizer.d.ts","sourceRoot":"","sources":["../../src/interfaces/history-summarizer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAEhE,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IACvD,WAAW,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACtD,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,kBAAkB;IACjC,SAAS,CACP,IAAI,EAAE,WAAW,EACjB,OAAO,CAAC,EAAE,WAAW,GACpB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;CACtC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"history-summarizer.js","sourceRoot":"","sources":["../../src/interfaces/history-summarizer.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type { IQueryExpander } from '../rag/query-expander.js';
|
|
2
|
+
export { type AgentCallOptions, OrchestratorError, type SmartAgentResponse, type StopReason, } from './agent-contracts.js';
|
|
3
|
+
export type { HistoryEntry, IContextAssembler } from './assembler.js';
|
|
4
|
+
export type { ISubpromptClassifier } from './classifier.js';
|
|
5
|
+
export type { IHistoryMemory } from './history-memory.js';
|
|
6
|
+
export type { HistoryTurn, IHistorySummarizer, } from './history-summarizer.js';
|
|
7
|
+
export type { ILlm } from './llm.js';
|
|
8
|
+
export type { ILlmCallStrategy } from './llm-call-strategy.js';
|
|
9
|
+
export type { IMcpClient } from './mcp-client.js';
|
|
10
|
+
export type { IModelFilter, IModelInfo, IModelProvider, } from './model-provider.js';
|
|
11
|
+
export type { IRagStoreConfig, ISmartAgentPlugin, RagScope } from './plugin.js';
|
|
12
|
+
export type { IQueryEmbedding } from './query-embedding.js';
|
|
13
|
+
export type { EmbedderFactory, EmbedderFactoryConfig, IEmbedder, IEmbedderBatch, IEmbedResult, IIdStrategy, IRag, IRagBackendWriter, IRagEditor, IRagProvider, IRagProviderRegistry, IRagRegistry, RagCollectionMeta, RagCollectionScope, } from './rag.js';
|
|
14
|
+
export { isBatchEmbedder } from './rag.js';
|
|
15
|
+
export type { ILlmRateLimiter } from './rate-limiter.js';
|
|
16
|
+
export type { IRequestLogger, LlmCallEntry, LlmComponent, RagQueryEntry, RequestSummary, TokenBucket, TokenCategory, ToolCallEntry, } from './request-logger.js';
|
|
17
|
+
export type { ISkill, ISkillManager, ISkillMeta, ISkillResource, } from './skill.js';
|
|
18
|
+
export type { AgentConfig, CallOptions, ContextFrame, LlmFinishReason, LlmResponse, LlmStreamChunk, LlmTool, LlmToolCall, LlmToolCallDelta, LlmUsage, McpTool, McpToolResult, ModelUsageEntry, RagMetadata, RagResult, Result, StreamHookContext, StreamToolCall, Subprompt, SubpromptType, TimingEntry, ToolCallRecord, ToolHeartbeat, TraceContext, } from './types.js';
|
|
19
|
+
export { AssemblerError, ClassifierError, LlmError, McpError, RagError, SkillError, SmartAgentError, } from './types.js';
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EACL,KAAK,gBAAgB,EACrB,iBAAiB,EACjB,KAAK,kBAAkB,EACvB,KAAK,UAAU,GAChB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACtE,YAAY,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC5D,YAAY,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,YAAY,EACV,WAAW,EACX,kBAAkB,GACnB,MAAM,yBAAyB,CAAC;AACjC,YAAY,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AACrC,YAAY,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,YAAY,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,YAAY,EACV,YAAY,EACZ,UAAU,EACV,cAAc,GACf,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EAAE,eAAe,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAChF,YAAY,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,YAAY,EACV,eAAe,EACf,qBAAqB,EACrB,SAAS,EACT,cAAc,EACd,YAAY,EACZ,WAAW,EACX,IAAI,EACJ,iBAAiB,EACjB,UAAU,EACV,YAAY,EACZ,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,YAAY,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,YAAY,EACV,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,cAAc,EACd,WAAW,EACX,aAAa,EACb,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EACV,MAAM,EACN,aAAa,EACb,UAAU,EACV,cAAc,GACf,MAAM,YAAY,CAAC;AACpB,YAAY,EACV,WAAW,EACX,WAAW,EACX,YAAY,EACZ,eAAe,EACf,WAAW,EACX,cAAc,EACd,OAAO,EACP,WAAW,EACX,gBAAgB,EAChB,QAAQ,EACR,OAAO,EACP,aAAa,EACb,eAAe,EACf,WAAW,EACX,SAAS,EACT,MAAM,EACN,iBAAiB,EACjB,cAAc,EACd,SAAS,EACT,aAAa,EACb,WAAW,EACX,cAAc,EACd,aAAa,EACb,YAAY,GACb,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,cAAc,EACd,eAAe,EACf,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,eAAe,GAChB,MAAM,YAAY,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { OrchestratorError, } from './agent-contracts.js';
|
|
2
|
-
export {
|
|
2
|
+
export { isBatchEmbedder } from './rag.js';
|
|
3
3
|
export { AssemblerError, ClassifierError, LlmError, McpError, RagError, SkillError, SmartAgentError, } from './types.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,iBAAiB,GAGlB,MAAM,sBAAsB,CAAC;AAkC9B,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AA4C3C,OAAO,EACL,cAAc,EACd,eAAe,EACf,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,eAAe,GAChB,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llm-call-strategy.d.ts","sourceRoot":"","sources":["../../src/interfaces/llm-call-strategy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,KAAK,EACV,WAAW,EACX,QAAQ,EACR,cAAc,EACd,OAAO,EACP,MAAM,EACP,MAAM,YAAY,CAAC;AAEpB;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CACF,GAAG,EAAE,IAAI,EACT,QAAQ,EAAE,OAAO,EAAE,EACnB,KAAK,EAAE,OAAO,EAAE,EAChB,OAAO,CAAC,EAAE,WAAW,GACpB,aAAa,CAAC,MAAM,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC,CAAC;CACpD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llm-call-strategy.js","sourceRoot":"","sources":["../../src/interfaces/llm-call-strategy.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Message } from '
|
|
1
|
+
import type { Message } from '../types.js';
|
|
2
2
|
import type { IModelInfo } from './model-provider.js';
|
|
3
3
|
import type { CallOptions, LlmError, LlmResponse, LlmStreamChunk, LlmTool, Result } from './types.js';
|
|
4
4
|
export interface ILlm {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llm.d.ts","sourceRoot":"","sources":["../../src/interfaces/llm.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,EACV,WAAW,EACX,QAAQ,EACR,WAAW,EACX,cAAc,EACd,OAAO,EACP,MAAM,EACP,MAAM,YAAY,CAAC;AAEpB,MAAM,WAAW,IAAI;IACnB,gDAAgD;IAChD,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAExB,IAAI,CACF,QAAQ,EAAE,OAAO,EAAE,EACnB,KAAK,CAAC,EAAE,OAAO,EAAE,EACjB,OAAO,CAAC,EAAE,WAAW,GACpB,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAC;IAE1C,UAAU,CACR,QAAQ,EAAE,OAAO,EAAE,EACnB,KAAK,CAAC,EAAE,OAAO,EAAE,EACjB,OAAO,CAAC,EAAE,WAAW,GACpB,aAAa,CAAC,MAAM,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC,CAAC;IAEnD;;;;;OAKG;IACH,WAAW,CAAC,CAAC,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC;IAExE;;;OAGG;IACH,SAAS,CAAC,CAAC,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE,EAAE,QAAQ,CAAC,CAAC,CAAC;CAC5E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llm.js","sourceRoot":"","sources":["../../src/interfaces/llm.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-client.d.ts","sourceRoot":"","sources":["../../src/interfaces/mcp-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,QAAQ,EACR,OAAO,EACP,aAAa,EACb,MAAM,EACP,MAAM,YAAY,CAAC;AAEpB,MAAM,WAAW,UAAU;IACzB,SAAS,CAAC,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,EAAE,QAAQ,CAAC,CAAC,CAAC;IAEvE,QAAQ,CACN,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,OAAO,CAAC,EAAE,WAAW,GACpB,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC,CAAC;IAE5C;;;;;;OAMG;IACH,WAAW,CAAC,CAAC,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC;CACzE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-client.js","sourceRoot":"","sources":["../../src/interfaces/mcp-client.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-provider.d.ts","sourceRoot":"","sources":["../../src/interfaces/model-provider.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAEhE,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,YAAY;IAC3B,2DAA2D;IAC3D,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,cAAc;IAC7B,iDAAiD;IACjD,QAAQ,IAAI,MAAM,CAAC;IAEnB,kEAAkE;IAClE,SAAS,CACP,OAAO,CAAC,EAAE,WAAW,GAAG,YAAY,GACnC,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE,EAAE,QAAQ,CAAC,CAAC,CAAC;IAE3C,qFAAqF;IACrF,kBAAkB,CAAC,CACjB,OAAO,CAAC,EAAE,WAAW,GACpB,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE,EAAE,QAAQ,CAAC,CAAC,CAAC;CAC5C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-provider.js","sourceRoot":"","sources":["../../src/interfaces/model-provider.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/interfaces/plugin.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAMrC;;;;;;GAMG;AACH,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;AAMrD;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,oCAAoC;IACpC,GAAG,EAAE,IAAI,CAAC;IACV,+DAA+D;IAC/D,KAAK,EAAE,QAAQ,CAAC;IAChB;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAMD;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAChC,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAC3C;;;;OAIG;IACH,yBAAyB,CAAC,EAAE,MAAM,CAAC;CACpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../src/interfaces/plugin.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-embedding.d.ts","sourceRoot":"","sources":["../../src/interfaces/query-embedding.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC9B,uDAAuD;IACvD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,gEAAgE;IAChE,QAAQ,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAC9B,iEAAiE;IACjE,QAAQ,CAAC,IAAI,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC;CAC7C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-embedding.js","sourceRoot":"","sources":["../../src/interfaces/query-embedding.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rag.d.ts","sourceRoot":"","sources":["../../src/interfaces/rag.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rag.js","sourceRoot":"","sources":["../../src/interfaces/rag.ts"],"names":[],"mappings":"AA2DA,MAAM,UAAU,eAAe,CAAC,CAAY;IAC1C,OAAO,CACL,YAAY,IAAI,CAAC;QACjB,OAAQ,CAA8B,CAAC,UAAU,KAAK,UAAU,CACjE,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rate-limiter.d.ts","sourceRoot":"","sources":["../../src/interfaces/rate-limiter.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,+CAA+C;IAC/C,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rate-limiter.js","sourceRoot":"","sources":["../../src/interfaces/rate-limiter.ts"],"names":[],"mappings":""}
|