@metaobjectsdev/ai-runtime 0.10.0 → 0.11.0-rc.1

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 +20 -0
  2. package/package.json +4 -4
package/README.md ADDED
@@ -0,0 +1,20 @@
1
+ # @metaobjectsdev/ai-runtime
2
+
3
+ LLM call loop + typed-trace recorder adapters for MetaObjects — a provider-neutral `LlmClient` seam, a `callLlm` bridge, and Composite / Langfuse / OpenTelemetry trace recorders. Bring your own LLM client and cost function (ADR-0024); the seams and recorders live here.
4
+
5
+ Part of the [MetaObjects](https://github.com/metaobjectsdev/metaobjects) monorepo.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install @metaobjectsdev/ai-runtime
11
+ ```
12
+
13
+ ## What it provides
14
+
15
+ - **`LlmClient`** — a provider-neutral seam you implement (or adapt) for your LLM vendor; no vendor SDK is bundled.
16
+ - **`callLlm`** — the call bridge that invokes your client and records a typed trace of each call (request/response/cost).
17
+ - **Trace recorders** — `Composite`, `Langfuse`, and OpenTelemetry adapters; plug in your own via the recorder interface.
18
+ - **`CostFn`** — a pluggable cost function seam (no built-in rate table — supply your vendor's pricing).
19
+
20
+ Pairs with the generated `call<Entity>` helpers and the metadata-native LLM-call trace persistence (typed `voRequest` / `voResponse` jsonb columns derived from a declared `template.prompt`). See the **metaobjects-prompts** skill and the repo `docs/` for the trace-persistence flow.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metaobjectsdev/ai-runtime",
3
- "version": "0.10.0",
3
+ "version": "0.11.0-rc.1",
4
4
  "description": "LLM call loop + typed-trace recorder adapters for MetaObjects: provider-neutral LlmClient seam, callLlm bridge, Composite/Langfuse/OTel recorders.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -55,9 +55,9 @@
55
55
  "access": "public"
56
56
  },
57
57
  "dependencies": {
58
- "@metaobjectsdev/metadata": "0.10.0",
59
- "@metaobjectsdev/render": "0.10.0",
60
- "@metaobjectsdev/runtime-ts": "0.10.0"
58
+ "@metaobjectsdev/metadata": "0.11.0-rc.1",
59
+ "@metaobjectsdev/render": "0.11.0-rc.1",
60
+ "@metaobjectsdev/runtime-ts": "0.11.0-rc.1"
61
61
  },
62
62
  "peerDependencies": {
63
63
  "langfuse": ">=3.0.0",