@openbkn/bkn-sdk 0.1.1-alpha.12 → 0.1.1-alpha.14

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 CHANGED
@@ -199,6 +199,8 @@ interface SendChatOptions {
199
199
  /**
200
200
  * Agent client (agent-factory v3). Read side + published listing, mirroring
201
201
  * kweaver-sdk api/agent-list.ts. Responses passed through as parsed JSON.
202
+ * @deprecated The Decision Agent (agent-factory) surface is being phased out and
203
+ * may be removed in a future release. Avoid building new integrations on it.
202
204
  */
203
205
 
204
206
  interface ListAgentsOptions {
@@ -215,6 +217,11 @@ interface PagingOptions {
215
217
  name?: string;
216
218
  }
217
219
 
220
+ /**
221
+ * Decision Agent resource surface.
222
+ * @deprecated The Decision Agent (agent-factory) surface is being phased out and
223
+ * may be removed in a future release. Avoid building new integrations on it.
224
+ */
218
225
  declare function agents(ctx: RequestContext): {
219
226
  list: (opts?: ListAgentsOptions) => Promise<unknown>;
220
227
  get: (agentId: string) => Promise<unknown>;
@@ -551,6 +558,8 @@ declare function models(ctx: RequestContext): {
551
558
  edit: (body: unknown) => Promise<unknown>;
552
559
  delete: (modelIds: string[]) => Promise<unknown>;
553
560
  test: (body: unknown) => Promise<unknown>;
561
+ /** Set (or clear) the system default LLM. */
562
+ setDefault: (modelId: string, isDefault?: boolean) => Promise<unknown>;
554
563
  };
555
564
  small: {
556
565
  list: (opts?: ListModelsOptions) => Promise<unknown>;
@@ -561,6 +570,10 @@ declare function models(ctx: RequestContext): {
561
570
  edit: (body: unknown) => Promise<unknown>;
562
571
  delete: (modelIds: string[]) => Promise<unknown>;
563
572
  test: (body: unknown) => Promise<unknown>;
573
+ /** Set (or clear) the system default small model (type inferred from the model). */
574
+ setDefault: (modelId: string, isDefault?: boolean) => Promise<unknown>;
575
+ /** Get the system default small model for a type (default "embedding"). */
576
+ getDefault: (modelType?: string) => Promise<unknown>;
564
577
  };
565
578
  };
566
579
 
@@ -954,6 +967,10 @@ interface BknClient {
954
967
  readonly kn: ReturnType<typeof kn>;
955
968
  readonly resource: ReturnType<typeof resources>;
956
969
  readonly dataflows: ReturnType<typeof dataflows>;
970
+ /**
971
+ * @deprecated Decision Agent (agent-factory) is being phased out and may be
972
+ * removed in a future release. Avoid building new integrations on it.
973
+ */
957
974
  readonly agents: ReturnType<typeof agents>;
958
975
  readonly context: ReturnType<typeof context>;
959
976
  readonly models: ReturnType<typeof models>;
package/dist/index.js CHANGED
@@ -19,7 +19,7 @@ import {
19
19
  toolboxes,
20
20
  trace,
21
21
  vega
22
- } from "./chunk-3FVB6VFQ.js";
22
+ } from "./chunk-2GNQU4XH.js";
23
23
  export {
24
24
  DEFAULT_BUSINESS_DOMAIN,
25
25
  DEFAULT_LIST_LIMIT,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbkn/bkn-sdk",
3
- "version": "0.1.1-alpha.12",
3
+ "version": "0.1.1-alpha.14",
4
4
  "description": "Unified TypeScript SDK + CLI for the BKN (Business Knowledge Network) platform.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",