@mcp-abap-adt/llm-agent-libs 12.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +46 -0
  2. package/package.json +68 -0
package/README.md ADDED
@@ -0,0 +1,46 @@
1
+ # @mcp-abap-adt/llm-agent-libs
2
+
3
+ Core SmartAgent composition runtime. Builder, agent runtime, pipeline, sessions, history, resilience, observability, plugins, skills.
4
+
5
+ ## Top-level exports
6
+
7
+ `SmartAgentBuilder`, `SmartAgentBuilderConfig`, `BuilderMcpConfig`, `BuilderPromptsConfig`, `SmartAgentReconfigureOptions`, `LlmAdapter`, `LlmAdapterProviderInfo`, `LlmProviderBridge`, `DefaultModelResolver`, `makeDefaultLlm`, `makeLlm`, `MakeLlmConfig`, `ConfigWatcher`, `ConfigWatcherOptions`, `HotReloadableConfig`, `HealthChecker`, `HealthCheckerDeps`, `HistoryMemory`, `HistorySummarizer`, `DefaultRequestLogger`, `NoopRequestLogger`, `InMemoryMetrics`, `NoopMetrics`, `DefaultPipeline`, `PipelineExecutor`, `buildDefaultHandlerRegistry`, `evaluateCondition`, `FileSystemPluginLoader`, `FileSystemPluginLoaderConfig`, `loadPlugins`, `mergePluginExports`, `getDefaultPluginDirs`, `emptyLoadedPlugins`, `LlmReranker`, `NoopReranker`, `RateLimiterLlm`, `RetryLlm`, `RetryOptions`, `TokenBucketConfig`, `TokenBucketRateLimiter`, `SessionManager`, `NoopSessionManager`, `ClaudeSkillManager`, `CodexSkillManager`, `FileSystemSkillManager`, `NoopTracer`, `lazy`, `LazyInitError`, `LazyOptions`, `NoopValidator`. Plus type re-exports of the core contracts (`AgentCallOptions`, `BaseAgentLlmBridge`, `SmartAgentHandle`, `SmartAgentRagStores`) for ergonomics.
8
+
9
+ ## Subpath exports
10
+
11
+ - `@mcp-abap-adt/llm-agent-libs/testing` — test helpers.
12
+ - `@mcp-abap-adt/llm-agent-libs/otel` — OpenTelemetry tracer adapter.
13
+
14
+ ## Optional peer dependencies (LLM providers)
15
+
16
+ - `@mcp-abap-adt/openai-llm`
17
+ - `@mcp-abap-adt/anthropic-llm`
18
+ - `@mcp-abap-adt/deepseek-llm`
19
+ - `@mcp-abap-adt/sap-aicore-llm`
20
+
21
+ Install only the providers you use. Missing providers throw `MissingProviderError` at first call to `makeLlm` or `makeDefaultLlm`.
22
+
23
+ ## Migration from 12.0.0
24
+
25
+ ```ts
26
+ // Before (12.0.0 — symbols were in llm-agent-server, which is now binary-only)
27
+ import {
28
+ SmartAgentBuilder,
29
+ SessionManager,
30
+ makeLlm,
31
+ } from '@mcp-abap-adt/llm-agent-server'; // ← no longer valid
32
+
33
+ // After (12.0.1+)
34
+ import {
35
+ SmartAgentBuilder,
36
+ SessionManager,
37
+ makeLlm,
38
+ } from '@mcp-abap-adt/llm-agent-libs';
39
+
40
+ // makeLlm is now async — add await at direct callsites
41
+ const llm = await makeLlm(cfg, temperature);
42
+ ```
43
+
44
+ `SmartAgentBuilder.build()` is already async; users of the builder are unaffected by the `makeLlm` async conversion.
45
+
46
+ See `docs/ARCHITECTURE.md` for the full SmartAgent package layout.
package/package.json ADDED
@@ -0,0 +1,68 @@
1
+ {
2
+ "name": "@mcp-abap-adt/llm-agent-libs",
3
+ "version": "12.0.2",
4
+ "type": "module",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "import": "./dist/index.js"
11
+ },
12
+ "./testing": {
13
+ "types": "./dist/testing/index.d.ts",
14
+ "import": "./dist/testing/index.js"
15
+ },
16
+ "./otel": {
17
+ "types": "./dist/otel/index.d.ts",
18
+ "import": "./dist/otel/index.js"
19
+ }
20
+ },
21
+ "files": [
22
+ "dist",
23
+ "README.md"
24
+ ],
25
+ "scripts": {
26
+ "build": "tsc -p tsconfig.json",
27
+ "clean": "tsc -p tsconfig.json --clean",
28
+ "test": "node --import tsx/esm --test --test-reporter=spec 'src/**/*.test.ts'"
29
+ },
30
+ "dependencies": {
31
+ "@mcp-abap-adt/llm-agent": "*",
32
+ "@mcp-abap-adt/llm-agent-mcp": "*",
33
+ "@mcp-abap-adt/llm-agent-rag": "*",
34
+ "@opentelemetry/api": "^1.9.1",
35
+ "dotenv": "^17.3.1",
36
+ "yaml": "^2.8.3",
37
+ "zod": "^4.3.6"
38
+ },
39
+ "peerDependencies": {
40
+ "@mcp-abap-adt/openai-llm": "^12.0.0",
41
+ "@mcp-abap-adt/anthropic-llm": "^12.0.0",
42
+ "@mcp-abap-adt/deepseek-llm": "^12.0.0",
43
+ "@mcp-abap-adt/sap-aicore-llm": "^12.0.0"
44
+ },
45
+ "peerDependenciesMeta": {
46
+ "@mcp-abap-adt/openai-llm": {
47
+ "optional": true
48
+ },
49
+ "@mcp-abap-adt/anthropic-llm": {
50
+ "optional": true
51
+ },
52
+ "@mcp-abap-adt/deepseek-llm": {
53
+ "optional": true
54
+ },
55
+ "@mcp-abap-adt/sap-aicore-llm": {
56
+ "optional": true
57
+ }
58
+ },
59
+ "devDependencies": {
60
+ "@mcp-abap-adt/openai-llm": "*",
61
+ "@mcp-abap-adt/anthropic-llm": "*",
62
+ "@mcp-abap-adt/deepseek-llm": "*",
63
+ "@mcp-abap-adt/sap-aicore-llm": "*"
64
+ },
65
+ "publishConfig": {
66
+ "access": "public"
67
+ }
68
+ }