@plumbus/ai-decision-laya 0.2.1 → 0.2.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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Changelog
2
2
 
3
- ## 0.2.1 — Unreleased
3
+ ## 0.2.2 — Unreleased
4
+
5
+ - Document core 0.7.4+ classification with per-call provider/model and probability threshold. Link the packaged classification recipe from agent instructions and correct stale package-only guidance. Core peer compatibility remains `0.7.x`.
4
6
 
5
7
  - Run offline Laya tests with one worker and serial files. One-off smoke runs now stop servers they start on both success and failure; explicit persistent servers and the model cache are preserved.
6
8
 
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # @plumbus/ai-decision-laya
2
2
 
3
- Release notes: [changelog](./CHANGELOG.md) and [version/upgrade guide](../../docs/upgrading-voice-and-decision-release.md).
3
+ Release notes: [changelog](./CHANGELOG.md) and [version/upgrade guide](../../docs/upgrading-classification.md).
4
4
 
5
5
  Laya provider for self-hosted typed decision inference, with a persistent Python reference service.
6
6
 
7
- Version `0.2.1`; required peer `@plumbus/core` exactly `0.7.x`; Node.js 20.6+.
7
+ Version `0.2.2`; required peer `@plumbus/core` exactly `0.7.x`; Node.js 20.6+.
8
8
  Install explicitly with `pnpm add @plumbus/ai-decision-laya`. Provider packages install
9
9
  `@plumbus/ai-decision` transitively. There is no dependency on the other provider.
10
10
 
@@ -18,6 +18,11 @@ from `app/server.ts` for API and worker processes. See the
18
18
  Direct adapter calls remain useful for infrastructure tests and do not record costs
19
19
  in core. Keep these adapters separate from the text-generation provider registry.
20
20
 
21
+ Core **0.7.4+** also supports `ctx.ai.classify({ text, labels, provider, model, threshold })`
22
+ for generative or decision models. Start with
23
+ `node_modules/@plumbus/core/instructions/ai-classification.md` for registration,
24
+ model defaults, multi-label semantics, and cost recording.
25
+
21
26
  ## Quick start (infrastructure / smoke testing)
22
27
 
23
28
  ```ts