@kortexya/reasoninglayer 0.2.6 → 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.d.cts CHANGED
@@ -109,7 +109,7 @@ type JsonValue$1 = string | number | boolean | null | JsonValue$1[] | object;
109
109
  * This is the single source of truth for the version constant.
110
110
  * The `scripts/release.sh` script updates this value alongside `package.json`.
111
111
  */
112
- declare const SDK_VERSION = "0.2.6";
112
+ declare const SDK_VERSION = "0.2.7";
113
113
  /**
114
114
  * Configuration for the Reasoning Layer client.
115
115
  *
@@ -20598,7 +20598,7 @@ declare class FuzzyClient {
20598
20598
  * @param request - Search request with query term and K.
20599
20599
  * @returns Top-K results sorted by similarity degree.
20600
20600
  */
20601
- searchTopK(request: FuzzySearchTopKRequest): Promise<FuzzySearchTopKResponse>;
20601
+ searchTopK(request: FuzzySearchTopKRequest): Promise<SimilaritySearchResponse>;
20602
20602
  /**
20603
20603
  * Predict the effect for a query point.
20604
20604
  *
package/dist/index.d.ts CHANGED
@@ -109,7 +109,7 @@ type JsonValue$1 = string | number | boolean | null | JsonValue$1[] | object;
109
109
  * This is the single source of truth for the version constant.
110
110
  * The `scripts/release.sh` script updates this value alongside `package.json`.
111
111
  */
112
- declare const SDK_VERSION = "0.2.6";
112
+ declare const SDK_VERSION = "0.2.7";
113
113
  /**
114
114
  * Configuration for the Reasoning Layer client.
115
115
  *
@@ -20598,7 +20598,7 @@ declare class FuzzyClient {
20598
20598
  * @param request - Search request with query term and K.
20599
20599
  * @returns Top-K results sorted by similarity degree.
20600
20600
  */
20601
- searchTopK(request: FuzzySearchTopKRequest): Promise<FuzzySearchTopKResponse>;
20601
+ searchTopK(request: FuzzySearchTopKRequest): Promise<SimilaritySearchResponse>;
20602
20602
  /**
20603
20603
  * Predict the effect for a query point.
20604
20604
  *
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/config.ts
2
- var SDK_VERSION = "0.2.6";
2
+ var SDK_VERSION = "0.2.7";
3
3
  function resolveConfig(config) {
4
4
  if (!config.baseUrl) {
5
5
  throw new Error("ClientConfig.baseUrl is required");
@@ -8643,13 +8643,7 @@ var FuzzyClient = class {
8643
8643
  * @returns Top-K results sorted by similarity degree.
8644
8644
  */
8645
8645
  async searchTopK(request) {
8646
- const response = await this.api.http.request({
8647
- path: "/api/v1/fuzzy/top-k",
8648
- method: "POST",
8649
- body: request,
8650
- type: "application/json" /* Json */,
8651
- format: "json"
8652
- });
8646
+ const response = await this.api.fuzzySearchTopK(request);
8653
8647
  return response.data;
8654
8648
  }
8655
8649
  /**