@kortexya/reasoninglayer 0.16.0 → 0.17.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.
- package/dist/index.cjs +37 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +131 -6
- package/dist/index.d.ts +131 -6
- package/dist/index.js +37 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
// src/config.ts
|
|
4
|
-
var SDK_VERSION = "0.
|
|
4
|
+
var SDK_VERSION = "0.17.0";
|
|
5
5
|
function resolveConfig(config) {
|
|
6
6
|
if (!config.baseUrl) {
|
|
7
7
|
throw new Error("ClientConfig.baseUrl is required");
|
|
@@ -5111,6 +5111,42 @@ var Query = class {
|
|
|
5111
5111
|
format: "json",
|
|
5112
5112
|
...params
|
|
5113
5113
|
});
|
|
5114
|
+
/**
|
|
5115
|
+
* @description Skips the NL → structured-problem LLM hop entirely. Caller must have seeded the tenant KB with ≥ 3 successful + ≥ 2 limited Ψ-terms per domain (`/api/v1/terms/bulk` or `/api/v1/inference/facts/bulk`). Returns the same `NlQueryResponse` shape as the NL route so the UI can render either output uniformly.
|
|
5116
|
+
*
|
|
5117
|
+
* @tags query
|
|
5118
|
+
* @name TrizInvent
|
|
5119
|
+
* @summary Handle `POST /api/v1/triz/invent` — deterministic TRIZ invention.
|
|
5120
|
+
* @request POST:/api/v1/triz/invent
|
|
5121
|
+
* @secure
|
|
5122
|
+
*/
|
|
5123
|
+
trizInvent = (data, params = {}) => this.http.request({
|
|
5124
|
+
path: `/api/v1/triz/invent`,
|
|
5125
|
+
method: "POST",
|
|
5126
|
+
body: data,
|
|
5127
|
+
secure: true,
|
|
5128
|
+
type: "application/json" /* Json */,
|
|
5129
|
+
format: "json",
|
|
5130
|
+
...params
|
|
5131
|
+
});
|
|
5132
|
+
/**
|
|
5133
|
+
* No description
|
|
5134
|
+
*
|
|
5135
|
+
* @tags query
|
|
5136
|
+
* @name TrizRecordOutcome
|
|
5137
|
+
* @summary Handle `POST /api/v1/triz/record-outcome` — persist a measured outcome for a previously-emitted TRIZ proposal and learn from it.
|
|
5138
|
+
* @request POST:/api/v1/triz/record-outcome
|
|
5139
|
+
* @secure
|
|
5140
|
+
*/
|
|
5141
|
+
trizRecordOutcome = (data, params = {}) => this.http.request({
|
|
5142
|
+
path: `/api/v1/triz/record-outcome`,
|
|
5143
|
+
method: "POST",
|
|
5144
|
+
body: data,
|
|
5145
|
+
secure: true,
|
|
5146
|
+
type: "application/json" /* Json */,
|
|
5147
|
+
format: "json",
|
|
5148
|
+
...params
|
|
5149
|
+
});
|
|
5114
5150
|
/**
|
|
5115
5151
|
* @description This performs unification AND validates the result against the GLB sort's witnesses. ## How It Differs from Regular Unification **Regular `/api/v1/term-store/sessions/:id/unify` (POST)**: - Computes GLB and unifies terms - Validates sort constraints (required features, type hints) - Does NOT check witnesses **This endpoint `/api/v1/query/validated-unify` (POST)**: - Computes GLB and unifies terms - Validates sort constraints - ALSO checks witnesses on the result - Returns proof of validity ## Example Unifying `person(name => "Alice")` with `grandparent(grandchild => "Charlie")`: 1. Computes GLB of person and grandparent 2. Creates unified term with both features 3. Checks grandparent witnesses: ∃Y. parent(Alice,Y) ∧ parent(Y,Charlie) 4. Returns unified term + witness proof
|
|
5116
5152
|
*
|