@mcp-abap-adt/llm-agent 2.9.2 → 2.10.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.
Files changed (134) hide show
  1. package/dist/index.d.ts +11 -0
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +7 -0
  4. package/dist/index.js.map +1 -1
  5. package/dist/smart-agent/agent.d.ts +18 -1
  6. package/dist/smart-agent/agent.d.ts.map +1 -1
  7. package/dist/smart-agent/agent.js +176 -21
  8. package/dist/smart-agent/agent.js.map +1 -1
  9. package/dist/smart-agent/builder.d.ts +114 -51
  10. package/dist/smart-agent/builder.d.ts.map +1 -1
  11. package/dist/smart-agent/builder.js +234 -110
  12. package/dist/smart-agent/builder.js.map +1 -1
  13. package/dist/smart-agent/cli.d.ts +1 -0
  14. package/dist/smart-agent/cli.d.ts.map +1 -1
  15. package/dist/smart-agent/cli.js +2 -0
  16. package/dist/smart-agent/cli.js.map +1 -1
  17. package/dist/smart-agent/config/config-watcher.d.ts +4 -0
  18. package/dist/smart-agent/config/config-watcher.d.ts.map +1 -1
  19. package/dist/smart-agent/config/config-watcher.js +8 -0
  20. package/dist/smart-agent/config/config-watcher.js.map +1 -1
  21. package/dist/smart-agent/config.d.ts +2 -1
  22. package/dist/smart-agent/config.d.ts.map +1 -1
  23. package/dist/smart-agent/config.js +46 -4
  24. package/dist/smart-agent/config.js.map +1 -1
  25. package/dist/smart-agent/interfaces/index.d.ts +1 -1
  26. package/dist/smart-agent/interfaces/index.d.ts.map +1 -1
  27. package/dist/smart-agent/interfaces/index.js.map +1 -1
  28. package/dist/smart-agent/interfaces/rag.d.ts +16 -0
  29. package/dist/smart-agent/interfaces/rag.d.ts.map +1 -1
  30. package/dist/smart-agent/pipeline/condition-evaluator.d.ts +35 -0
  31. package/dist/smart-agent/pipeline/condition-evaluator.d.ts.map +1 -0
  32. package/dist/smart-agent/pipeline/condition-evaluator.js +143 -0
  33. package/dist/smart-agent/pipeline/condition-evaluator.js.map +1 -0
  34. package/dist/smart-agent/pipeline/context.d.ts +104 -0
  35. package/dist/smart-agent/pipeline/context.d.ts.map +1 -0
  36. package/dist/smart-agent/pipeline/context.js +19 -0
  37. package/dist/smart-agent/pipeline/context.js.map +1 -0
  38. package/dist/smart-agent/pipeline/default-pipeline.d.ts +45 -0
  39. package/dist/smart-agent/pipeline/default-pipeline.d.ts.map +1 -0
  40. package/dist/smart-agent/pipeline/default-pipeline.js +118 -0
  41. package/dist/smart-agent/pipeline/default-pipeline.js.map +1 -0
  42. package/dist/smart-agent/pipeline/executor.d.ts +54 -0
  43. package/dist/smart-agent/pipeline/executor.d.ts.map +1 -0
  44. package/dist/smart-agent/pipeline/executor.js +133 -0
  45. package/dist/smart-agent/pipeline/executor.js.map +1 -0
  46. package/dist/smart-agent/pipeline/handlers/assemble.d.ts +16 -0
  47. package/dist/smart-agent/pipeline/handlers/assemble.d.ts.map +1 -0
  48. package/dist/smart-agent/pipeline/handlers/assemble.js +57 -0
  49. package/dist/smart-agent/pipeline/handlers/assemble.js.map +1 -0
  50. package/dist/smart-agent/pipeline/handlers/classify.d.ts +21 -0
  51. package/dist/smart-agent/pipeline/handlers/classify.d.ts.map +1 -0
  52. package/dist/smart-agent/pipeline/handlers/classify.js +53 -0
  53. package/dist/smart-agent/pipeline/handlers/classify.js.map +1 -0
  54. package/dist/smart-agent/pipeline/handlers/expand.d.ts +16 -0
  55. package/dist/smart-agent/pipeline/handlers/expand.d.ts.map +1 -0
  56. package/dist/smart-agent/pipeline/handlers/expand.js +24 -0
  57. package/dist/smart-agent/pipeline/handlers/expand.js.map +1 -0
  58. package/dist/smart-agent/pipeline/handlers/index.d.ts +28 -0
  59. package/dist/smart-agent/pipeline/handlers/index.d.ts.map +1 -0
  60. package/dist/smart-agent/pipeline/handlers/index.js +39 -0
  61. package/dist/smart-agent/pipeline/handlers/index.js.map +1 -0
  62. package/dist/smart-agent/pipeline/handlers/rag-query.d.ts +25 -0
  63. package/dist/smart-agent/pipeline/handlers/rag-query.d.ts.map +1 -0
  64. package/dist/smart-agent/pipeline/handlers/rag-query.js +53 -0
  65. package/dist/smart-agent/pipeline/handlers/rag-query.js.map +1 -0
  66. package/dist/smart-agent/pipeline/handlers/rag-upsert.d.ts +17 -0
  67. package/dist/smart-agent/pipeline/handlers/rag-upsert.d.ts.map +1 -0
  68. package/dist/smart-agent/pipeline/handlers/rag-upsert.js +47 -0
  69. package/dist/smart-agent/pipeline/handlers/rag-upsert.js.map +1 -0
  70. package/dist/smart-agent/pipeline/handlers/rerank.d.ts +16 -0
  71. package/dist/smart-agent/pipeline/handlers/rerank.d.ts.map +1 -0
  72. package/dist/smart-agent/pipeline/handlers/rerank.js +38 -0
  73. package/dist/smart-agent/pipeline/handlers/rerank.js.map +1 -0
  74. package/dist/smart-agent/pipeline/handlers/summarize.d.ts +17 -0
  75. package/dist/smart-agent/pipeline/handlers/summarize.d.ts.map +1 -0
  76. package/dist/smart-agent/pipeline/handlers/summarize.js +47 -0
  77. package/dist/smart-agent/pipeline/handlers/summarize.js.map +1 -0
  78. package/dist/smart-agent/pipeline/handlers/tool-loop.d.ts +32 -0
  79. package/dist/smart-agent/pipeline/handlers/tool-loop.d.ts.map +1 -0
  80. package/dist/smart-agent/pipeline/handlers/tool-loop.js +416 -0
  81. package/dist/smart-agent/pipeline/handlers/tool-loop.js.map +1 -0
  82. package/dist/smart-agent/pipeline/handlers/tool-select.d.ts +21 -0
  83. package/dist/smart-agent/pipeline/handlers/tool-select.d.ts.map +1 -0
  84. package/dist/smart-agent/pipeline/handlers/tool-select.js +95 -0
  85. package/dist/smart-agent/pipeline/handlers/tool-select.js.map +1 -0
  86. package/dist/smart-agent/pipeline/handlers/translate.d.ts +18 -0
  87. package/dist/smart-agent/pipeline/handlers/translate.d.ts.map +1 -0
  88. package/dist/smart-agent/pipeline/handlers/translate.js +39 -0
  89. package/dist/smart-agent/pipeline/handlers/translate.js.map +1 -0
  90. package/dist/smart-agent/pipeline/index.d.ts +14 -0
  91. package/dist/smart-agent/pipeline/index.d.ts.map +1 -0
  92. package/dist/smart-agent/pipeline/index.js +16 -0
  93. package/dist/smart-agent/pipeline/index.js.map +1 -0
  94. package/dist/smart-agent/pipeline/stage-handler.d.ts +36 -0
  95. package/dist/smart-agent/pipeline/stage-handler.d.ts.map +1 -0
  96. package/dist/smart-agent/pipeline/stage-handler.js +24 -0
  97. package/dist/smart-agent/pipeline/stage-handler.js.map +1 -0
  98. package/dist/smart-agent/pipeline/types.d.ts +129 -0
  99. package/dist/smart-agent/pipeline/types.d.ts.map +1 -0
  100. package/dist/smart-agent/pipeline/types.js +54 -0
  101. package/dist/smart-agent/pipeline/types.js.map +1 -0
  102. package/dist/smart-agent/pipeline.d.ts +22 -6
  103. package/dist/smart-agent/pipeline.d.ts.map +1 -1
  104. package/dist/smart-agent/pipeline.js +5 -142
  105. package/dist/smart-agent/pipeline.js.map +1 -1
  106. package/dist/smart-agent/plugins/index.d.ts +4 -0
  107. package/dist/smart-agent/plugins/index.d.ts.map +1 -0
  108. package/dist/smart-agent/plugins/index.js +3 -0
  109. package/dist/smart-agent/plugins/index.js.map +1 -0
  110. package/dist/smart-agent/plugins/loader.d.ts +67 -0
  111. package/dist/smart-agent/plugins/loader.d.ts.map +1 -0
  112. package/dist/smart-agent/plugins/loader.js +114 -0
  113. package/dist/smart-agent/plugins/loader.js.map +1 -0
  114. package/dist/smart-agent/plugins/types.d.ts +149 -0
  115. package/dist/smart-agent/plugins/types.d.ts.map +1 -0
  116. package/dist/smart-agent/plugins/types.js +111 -0
  117. package/dist/smart-agent/plugins/types.js.map +1 -0
  118. package/dist/smart-agent/providers.d.ts +76 -0
  119. package/dist/smart-agent/providers.d.ts.map +1 -0
  120. package/dist/smart-agent/providers.js +173 -0
  121. package/dist/smart-agent/providers.js.map +1 -0
  122. package/dist/smart-agent/rag/embedder-factories.d.ts +9 -0
  123. package/dist/smart-agent/rag/embedder-factories.d.ts.map +1 -0
  124. package/dist/smart-agent/rag/embedder-factories.js +27 -0
  125. package/dist/smart-agent/rag/embedder-factories.js.map +1 -0
  126. package/dist/smart-agent/rag/index.d.ts +7 -0
  127. package/dist/smart-agent/rag/index.d.ts.map +1 -1
  128. package/dist/smart-agent/rag/index.js +4 -0
  129. package/dist/smart-agent/rag/index.js.map +1 -1
  130. package/dist/smart-agent/smart-server.d.ts +25 -1
  131. package/dist/smart-agent/smart-server.d.ts.map +1 -1
  132. package/dist/smart-agent/smart-server.js +122 -27
  133. package/dist/smart-agent/smart-server.js.map +1 -1
  134. package/package.json +2 -1
@@ -1,17 +1,15 @@
1
1
  /**
2
2
  * SmartAgentBuilder — fluent builder for SmartAgent.
3
3
  *
4
- * Wires together default implementations (DeepSeek LLM, Ollama/InMemory RAG,
5
- * MCP via HTTP or stdio) and allows overriding any component with a custom
6
- * implementation that satisfies the corresponding interface.
4
+ * Assembles a SmartAgent from interface-based components.
5
+ * The builder itself has NO knowledge of concrete providers
6
+ * all dependencies must be injected via `withXxx()` methods or
7
+ * resolved externally by the composition root (SmartServer, CLI).
7
8
  *
8
- * Usage — all defaults:
9
- * const { agent, getUsage, close } = await new SmartAgentBuilder({ llm: { apiKey } }).build();
10
- *
11
- * Usage — swap RAG and logger:
12
- * const handle = await new SmartAgentBuilder({ llm: { apiKey } })
9
+ * Usage:
10
+ * const handle = await new SmartAgentBuilder()
11
+ * .withMainLlm(myLlm)
13
12
  * .withRag({ facts: myRag, feedback: myRag, state: myRag })
14
- * .withLogger(myLogger)
15
13
  * .build();
16
14
  */
17
15
  import { SmartAgent, type SmartAgentConfig, type SmartAgentRagStores } from './agent.js';
@@ -20,9 +18,12 @@ import type { IContextAssembler } from './interfaces/assembler.js';
20
18
  import type { ISubpromptClassifier } from './interfaces/classifier.js';
21
19
  import type { ILlm } from './interfaces/llm.js';
22
20
  import type { IMcpClient } from './interfaces/mcp-client.js';
23
- import { type TokenUsage } from './llm/token-counting-llm.js';
21
+ import type { TokenUsage } from './llm/token-counting-llm.js';
24
22
  import type { ILogger } from './logger/types.js';
25
23
  import type { IMetrics } from './metrics/types.js';
24
+ import type { IStageHandler } from './pipeline/stage-handler.js';
25
+ import type { StructuredPipelineDefinition } from './pipeline/types.js';
26
+ import type { IPluginLoader } from './plugins/types.js';
26
27
  import type { IPromptInjectionDetector, IToolPolicy, SessionPolicy } from './policy/types.js';
27
28
  import type { IQueryExpander } from './rag/query-expander.js';
28
29
  import type { IReranker } from './reranker/types.js';
@@ -30,36 +31,6 @@ import { CircuitBreaker, type CircuitBreakerConfig } from './resilience/circuit-
30
31
  import type { ISessionManager } from './session/types.js';
31
32
  import type { ITracer } from './tracer/types.js';
32
33
  import type { IOutputValidator } from './validator/types.js';
33
- export interface BuilderLlmConfig {
34
- /** DeepSeek API key (required for default LLM) */
35
- apiKey: string;
36
- /** Default: 'deepseek-chat' */
37
- model?: string;
38
- /** Main LLM temperature. Default: 0.7 */
39
- temperature?: number;
40
- /** Classifier LLM temperature. Default: 0.1 */
41
- classifierTemperature?: number;
42
- }
43
- export interface BuilderRagConfig {
44
- /** 'ollama' | 'openai' | 'in-memory' | 'qdrant'. Default: 'ollama' */
45
- type?: 'ollama' | 'openai' | 'in-memory' | 'qdrant';
46
- /** Base URL for embedding service or Qdrant server */
47
- url?: string;
48
- /** API key (for openai type or Qdrant auth) */
49
- apiKey?: string;
50
- /** Embedding model name */
51
- model?: string;
52
- /** Qdrant collection name (required for qdrant type) */
53
- collectionName?: string;
54
- /** Cosine similarity dedup threshold. Default: 0.92 */
55
- dedupThreshold?: number;
56
- /** Per-request timeout for embedding calls in milliseconds. Default: 30 000 */
57
- timeoutMs?: number;
58
- /** Semantic similarity weight 0..1. Default: 0.7 */
59
- vectorWeight?: number;
60
- /** Lexical matching weight 0..1. Default: 0.3 */
61
- keywordWeight?: number;
62
- }
63
34
  export interface BuilderMcpConfig {
64
35
  type: 'http' | 'stdio';
65
36
  /** HTTP: MCP endpoint URL */
@@ -82,10 +53,6 @@ export interface BuilderPromptsConfig {
82
53
  historySummary?: string;
83
54
  }
84
55
  export interface SmartAgentBuilderConfig {
85
- /** LLM credentials (required for default LLM factory). */
86
- llm: BuilderLlmConfig;
87
- /** RAG store config for default Ollama/InMemory stores. */
88
- rag?: BuilderRagConfig;
89
56
  /** MCP connection(s). Pass an array to connect multiple servers simultaneously. */
90
57
  mcp?: BuilderMcpConfig | BuilderMcpConfig[];
91
58
  /** SmartAgent orchestration limits. */
@@ -107,8 +74,7 @@ export interface SmartAgentHandle {
107
74
  streamChat: ILlm['streamChat'];
108
75
  /**
109
76
  * Returns accumulated LLM token usage (prompt + completion + total + requests).
110
- * Only counts calls made through the default DeepSeek LLM.
111
- * Returns zeroes if both mainLlm and classifierLlm were overridden.
77
+ * Returns zeroes if usage tracking is not available on the injected LLM.
112
78
  */
113
79
  getUsage(): TokenUsage;
114
80
  /** Gracefully close MCP connections. Call on shutdown. */
@@ -138,15 +104,20 @@ export declare class SmartAgentBuilder {
138
104
  private _outputValidator?;
139
105
  private _sessionManager?;
140
106
  private _circuitBreakerConfig?;
141
- constructor(cfg: SmartAgentBuilderConfig);
142
- /** Override the main LLM used in the tool loop. */
107
+ private _getUsage?;
108
+ private _agentOverrides;
109
+ private _pluginLoader?;
110
+ private _pipelineDefinition?;
111
+ private _customStageHandlers;
112
+ constructor(cfg?: SmartAgentBuilderConfig);
113
+ /** Set the main LLM used in the tool loop (required). */
143
114
  withMainLlm(llm: ILlm): this;
144
- /** Override the helper LLM used for summarization and translation. */
115
+ /** Set the helper LLM used for summarization and translation. */
145
116
  withHelperLlm(llm: ILlm): this;
146
- /** Override the LLM used by the intent classifier. */
117
+ /** Set the LLM used by the intent classifier. If not set, mainLlm is used. */
147
118
  withClassifierLlm(llm: ILlm): this;
148
119
  /**
149
- * Override individual RAG stores. Unspecified stores use the default.
120
+ * Set individual RAG stores. Unspecified stores default to InMemoryRag.
150
121
  * Pass the same instance for all three to share a single store.
151
122
  */
152
123
  withRag(stores: Partial<SmartAgentRagStores>): this;
@@ -181,6 +152,98 @@ export declare class SmartAgentBuilder {
181
152
  withSessionManager(manager: ISessionManager): this;
182
153
  /** Enable circuit breakers for LLM and embedder calls. */
183
154
  withCircuitBreaker(config?: CircuitBreakerConfig): this;
155
+ /** Set a custom token usage provider. */
156
+ withUsageProvider(getUsage: () => TokenUsage): this;
157
+ /** Set the execution mode: 'smart' (full pipeline), 'hard' (MCP-only), 'pass' (direct LLM). */
158
+ withMode(mode: 'hard' | 'pass' | 'smart'): this;
159
+ /** Set the maximum number of tool-loop iterations. */
160
+ withMaxIterations(n: number): this;
161
+ /** Set the maximum number of tool calls per request. */
162
+ withMaxToolCalls(n: number): this;
163
+ /** Set the request timeout in milliseconds. */
164
+ withTimeout(ms: number): this;
165
+ /** Set the number of RAG results to retrieve per store. */
166
+ withRagQueryK(k: number): this;
167
+ /** Enable or disable query expansion for RAG queries. */
168
+ withQueryExpansion(enabled: boolean): this;
169
+ /** Enable or disable reasoning/strategy blocks in the response. */
170
+ withShowReasoning(enabled: boolean): this;
171
+ /** Set the SSE heartbeat interval in milliseconds during tool execution. */
172
+ withHeartbeatInterval(ms: number): this;
173
+ /** Enable or disable the classification pipeline stage. When disabled, input is treated as a single action. */
174
+ withClassification(enabled: boolean): this;
175
+ /** Set RAG retrieval mode: 'auto' (SAP context), 'always', or 'never'. */
176
+ withRagRetrieval(mode: 'auto' | 'always' | 'never'): this;
177
+ /** Enable or disable translation of non-ASCII RAG queries to English. */
178
+ withRagTranslation(enabled: boolean): this;
179
+ /** Enable or disable upserting classified subprompts to RAG stores. */
180
+ withRagUpsert(enabled: boolean): this;
181
+ /** Set the history message count threshold for auto-summarization. */
182
+ withHistorySummarization(limit: number): this;
183
+ /** Set the session token budget for multi-turn conversations. */
184
+ withSessionTokenBudget(budget: number): this;
185
+ /**
186
+ * Set a plugin loader for automatic plugin discovery.
187
+ *
188
+ * During `build()`, the loader's `load()` method is called and all
189
+ * discovered registrations are applied to the builder (stage handlers,
190
+ * embedder factories, reranker, query expander, output validator).
191
+ *
192
+ * The library ships {@link FileSystemPluginLoader} as the default.
193
+ * Consumers can provide their own `IPluginLoader` implementation to
194
+ * load plugins from npm packages, remote registries, or any other source.
195
+ *
196
+ * Explicit `withStageHandler()`, `withReranker()`, etc. calls take
197
+ * precedence over plugin-loaded registrations.
198
+ *
199
+ * @example Filesystem (default)
200
+ * ```ts
201
+ * import { FileSystemPluginLoader, getDefaultPluginDirs } from '@mcp-abap-adt/llm-agent';
202
+ * builder.withPluginLoader(new FileSystemPluginLoader({
203
+ * dirs: getDefaultPluginDirs(),
204
+ * }));
205
+ * ```
206
+ *
207
+ * @example Custom npm loader
208
+ * ```ts
209
+ * builder.withPluginLoader(new NpmPluginLoader(['my-plugin-a']));
210
+ * ```
211
+ */
212
+ withPluginLoader(loader: IPluginLoader): this;
213
+ /**
214
+ * Set a structured pipeline definition.
215
+ *
216
+ * When set, SmartAgent uses the {@link PipelineExecutor} to run the
217
+ * defined stages instead of the default hardcoded flow.
218
+ *
219
+ * The pipeline can come from structured YAML or be built programmatically.
220
+ *
221
+ * @example
222
+ * ```ts
223
+ * builder.withPipeline({
224
+ * version: '1',
225
+ * stages: [
226
+ * { id: 'classify', type: 'classify' },
227
+ * { id: 'assemble', type: 'assemble' },
228
+ * { id: 'tool-loop', type: 'tool-loop' },
229
+ * ],
230
+ * });
231
+ * ```
232
+ */
233
+ withPipeline(pipeline: StructuredPipelineDefinition): this;
234
+ /**
235
+ * Register a custom stage handler for the structured pipeline.
236
+ *
237
+ * Custom handlers extend the pipeline with domain-specific operations.
238
+ * The handler's `type` name can then be used in YAML stage definitions.
239
+ *
240
+ * @example
241
+ * ```ts
242
+ * builder.withStageHandler('custom-enrich', new MyEnrichHandler());
243
+ * // Then in YAML: { id: 'enrich', type: 'custom-enrich' }
244
+ * ```
245
+ */
246
+ withStageHandler(type: string, handler: IStageHandler): this;
184
247
  build(): Promise<SmartAgentHandle>;
185
248
  }
186
249
  //# sourceMappingURL=builder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"builder.d.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