@kortexya/reasoninglayer 0.2.5 → 0.2.7
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 +19 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +49 -12
- package/dist/index.d.ts +49 -12
- package/dist/index.js +19 -12
- 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.2.
|
|
4
|
+
var SDK_VERSION = "0.2.7";
|
|
5
5
|
function resolveConfig(config) {
|
|
6
6
|
if (!config.baseUrl) {
|
|
7
7
|
throw new Error("ClientConfig.baseUrl is required");
|
|
@@ -8049,9 +8049,10 @@ var QueryClient = class {
|
|
|
8049
8049
|
return response.data.results;
|
|
8050
8050
|
}
|
|
8051
8051
|
/**
|
|
8052
|
-
* Find terms by sort.
|
|
8052
|
+
* Find terms by sort ID, sort name, or with optional filter.
|
|
8053
8053
|
*
|
|
8054
|
-
* @param request - Query by sort request.
|
|
8054
|
+
* @param request - Query by sort request. Accepts sort_id (UUID),
|
|
8055
|
+
* sort_name (human-readable), and optional filter for feature-based filtering.
|
|
8055
8056
|
* @returns Array of matching terms (tagged ValueDto format).
|
|
8056
8057
|
*/
|
|
8057
8058
|
async findBySort(request) {
|
|
@@ -8627,6 +8628,16 @@ var FuzzyClient = class {
|
|
|
8627
8628
|
});
|
|
8628
8629
|
return response.data;
|
|
8629
8630
|
}
|
|
8631
|
+
/**
|
|
8632
|
+
* Find all terms similar to a query term.
|
|
8633
|
+
*
|
|
8634
|
+
* @param request - Similar search request with query term and min degree.
|
|
8635
|
+
* @returns All matching terms with similarity >= min_degree, sorted by degree (descending).
|
|
8636
|
+
*/
|
|
8637
|
+
async findSimilar(request) {
|
|
8638
|
+
const response = await this.api.findSimilar(request);
|
|
8639
|
+
return response.data;
|
|
8640
|
+
}
|
|
8630
8641
|
/**
|
|
8631
8642
|
* Search for top-K most similar terms.
|
|
8632
8643
|
*
|
|
@@ -8634,13 +8645,7 @@ var FuzzyClient = class {
|
|
|
8634
8645
|
* @returns Top-K results sorted by similarity degree.
|
|
8635
8646
|
*/
|
|
8636
8647
|
async searchTopK(request) {
|
|
8637
|
-
const response = await this.api.
|
|
8638
|
-
path: "/api/v1/fuzzy/top-k",
|
|
8639
|
-
method: "POST",
|
|
8640
|
-
body: request,
|
|
8641
|
-
type: "application/json" /* Json */,
|
|
8642
|
-
format: "json"
|
|
8643
|
-
});
|
|
8648
|
+
const response = await this.api.fuzzySearchTopK(request);
|
|
8644
8649
|
return response.data;
|
|
8645
8650
|
}
|
|
8646
8651
|
/**
|
|
@@ -10371,10 +10376,12 @@ var SpacesClient = class {
|
|
|
10371
10376
|
*
|
|
10372
10377
|
* @param spaceId - Space ID.
|
|
10373
10378
|
* @param request - Search parameters (strategy, max solutions).
|
|
10379
|
+
* @param valueOrdering - Optional value ordering strategy (e.g., "min", "max", "median").
|
|
10374
10380
|
* @returns Search results with solutions.
|
|
10375
10381
|
*/
|
|
10376
|
-
async search(spaceId, request) {
|
|
10377
|
-
const
|
|
10382
|
+
async search(spaceId, request, valueOrdering) {
|
|
10383
|
+
const query = valueOrdering ? { value_ordering: valueOrdering } : void 0;
|
|
10384
|
+
const response = await this.api.searchSpace(spaceId, request, query);
|
|
10378
10385
|
return response.data;
|
|
10379
10386
|
}
|
|
10380
10387
|
};
|