@babav/knowledge-core-client 0.46.0 → 0.47.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.d.ts +8 -0
- package/dist/index.js +4 -0
- package/package.json +1 -1
- package/src/index.ts +5 -0
package/dist/index.d.ts
CHANGED
|
@@ -1048,6 +1048,14 @@ export declare class KnowledgeCoreClient extends HttpBase {
|
|
|
1048
1048
|
* scoring). Returns the score (quality composite + sub-scores + gates + cost + latency) or a
|
|
1049
1049
|
* queued status. See also `benchmark.leaderboard`. */
|
|
1050
1050
|
benchmark: (id: UUID) => Promise<BenchmarkScore>;
|
|
1051
|
+
/** Materialize a leaderboard entry (by config_hash) into a PRODUCTION query profile owned by the
|
|
1052
|
+
* caller — the winning config becomes a real profile you can then use or tweak. eval_version
|
|
1053
|
+
* defaults to the current one. Pair with `benchmark.leaderboard` (pick a row -> its config_hash). */
|
|
1054
|
+
createFromLeaderboard: (b: {
|
|
1055
|
+
config_hash: string;
|
|
1056
|
+
name: string;
|
|
1057
|
+
eval_version?: string;
|
|
1058
|
+
}) => Promise<QueryProfile>;
|
|
1051
1059
|
};
|
|
1052
1060
|
/** Query-profile benchmark leaderboards — top-N system-swept profiles per eval version, per tier
|
|
1053
1061
|
* (client_quick | screening | full) and per category (quality | quality_cost | quality_latency).
|
package/dist/index.js
CHANGED
|
@@ -472,6 +472,10 @@ export class KnowledgeCoreClient extends HttpBase {
|
|
|
472
472
|
* scoring). Returns the score (quality composite + sub-scores + gates + cost + latency) or a
|
|
473
473
|
* queued status. See also `benchmark.leaderboard`. */
|
|
474
474
|
benchmark: (id) => this.request("POST", `/v1/query-profiles/${id}/benchmark`),
|
|
475
|
+
/** Materialize a leaderboard entry (by config_hash) into a PRODUCTION query profile owned by the
|
|
476
|
+
* caller — the winning config becomes a real profile you can then use or tweak. eval_version
|
|
477
|
+
* defaults to the current one. Pair with `benchmark.leaderboard` (pick a row -> its config_hash). */
|
|
478
|
+
createFromLeaderboard: (b) => this.request("POST", "/v1/query-profiles/from-leaderboard", { json: b }),
|
|
475
479
|
};
|
|
476
480
|
/** Query-profile benchmark leaderboards — top-N system-swept profiles per eval version, per tier
|
|
477
481
|
* (client_quick | screening | full) and per category (quality | quality_cost | quality_latency).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@babav/knowledge-core-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.47.0",
|
|
4
4
|
"description": "TypeScript client for the Babav Knowledge Core API (Deno + Node 18+, zero deps). Includes the babav.visual grammar TYPES at the ./visual subpath (types only; all visual rendering is server-side).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
package/src/index.ts
CHANGED
|
@@ -1186,6 +1186,11 @@ export class KnowledgeCoreClient extends HttpBase {
|
|
|
1186
1186
|
* scoring). Returns the score (quality composite + sub-scores + gates + cost + latency) or a
|
|
1187
1187
|
* queued status. See also `benchmark.leaderboard`. */
|
|
1188
1188
|
benchmark: (id: UUID) => this.request<BenchmarkScore>("POST", `/v1/query-profiles/${id}/benchmark`),
|
|
1189
|
+
/** Materialize a leaderboard entry (by config_hash) into a PRODUCTION query profile owned by the
|
|
1190
|
+
* caller — the winning config becomes a real profile you can then use or tweak. eval_version
|
|
1191
|
+
* defaults to the current one. Pair with `benchmark.leaderboard` (pick a row -> its config_hash). */
|
|
1192
|
+
createFromLeaderboard: (b: { config_hash: string; name: string; eval_version?: string }) =>
|
|
1193
|
+
this.request<QueryProfile>("POST", "/v1/query-profiles/from-leaderboard", { json: b }),
|
|
1189
1194
|
};
|
|
1190
1195
|
|
|
1191
1196
|
/** Query-profile benchmark leaderboards — top-N system-swept profiles per eval version, per tier
|