@mcp-abap-adt/ollama-llm 30.9.0 → 30.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 (2) hide show
  1. package/README.md +16 -0
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -28,3 +28,19 @@ library* stay free and that your users can substitute their own build.
28
28
  Versions up to and including v20.9.5 were MIT and stay MIT; the change is not
29
29
  retroactive. Full detail, including what to do if you redistribute:
30
30
  [docs/LICENSING.md](https://github.com/fr0ster/llm-agent/blob/main/docs/LICENSING.md).
31
+
32
+ ## Usage analytics
33
+
34
+ Provider configuration accepts `usage?: IUsageRecorder` from
35
+ `@mcp-abap-adt/llm-agent`. A call's `{ usage }` overrides the bound recorder;
36
+ without either, collection is a no-op. Library adapters forward these options.
37
+ Records describe physical requests inside retry/chunk loops, with a shared
38
+ `operationId`, unique `physicalSeq`, attempt coordinates and embedding
39
+ `chunkPath`. Token totals are the exact provider values for each request,
40
+ or marked unknown when unavailable. No prompt, document, argument, result or
41
+ credential content is recorded. Streams also record failures, cancellation
42
+ and early consumer close (`closedEarly: true`).
43
+
44
+ Use the buffered recorder from `@mcp-abap-adt/llm-usage`, or supply your own
45
+ `IUsageRecorder`. See the [usage overview](../../docs/USAGE_ANALYTICS.md) for
46
+ injection, replaceable transports/sinks and delivery/loss semantics.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcp-abap-adt/ollama-llm",
3
- "version": "30.9.0",
3
+ "version": "30.10.0",
4
4
  "description": "Ollama LLM provider (ILlm, extends OpenAIProvider — Ollama's OpenAI-compatible /v1 API) for @mcp-abap-adt/llm-agent.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "peerDependencies": {
35
35
  "@mcp-abap-adt/interfaces-auth": "^2.1.0",
36
- "@mcp-abap-adt/llm-agent": "^30.9.0",
37
- "@mcp-abap-adt/openai-llm": "^30.9.0"
36
+ "@mcp-abap-adt/llm-agent": "^30.11.0",
37
+ "@mcp-abap-adt/openai-llm": "^30.9.1"
38
38
  }
39
39
  }