@babav/knowledge-core-client 0.11.0 → 0.12.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 CHANGED
@@ -56,6 +56,7 @@ export interface QueryOverrides {
56
56
  max_hops?: number;
57
57
  groundedness_threshold?: number;
58
58
  grounding_enabled?: boolean;
59
+ citations_enabled?: boolean;
59
60
  }
60
61
  export interface QueryRequest {
61
62
  corpus_ids: UUID[];
@@ -192,6 +193,7 @@ export interface Agent {
192
193
  max_hops: number | null;
193
194
  groundedness_threshold: number | null;
194
195
  grounding_enabled: boolean | null;
196
+ citations_enabled: boolean | null;
195
197
  }
196
198
  export interface Tenant {
197
199
  id: UUID;
@@ -492,6 +494,7 @@ export declare class AdminClient extends HttpBase {
492
494
  max_hops?: number;
493
495
  groundedness_threshold?: number;
494
496
  grounding_enabled?: boolean;
497
+ citations_enabled?: boolean;
495
498
  }) => Promise<Agent>;
496
499
  update: (id: UUID, b: Partial<Omit<Agent, "id">>) => Promise<Agent>;
497
500
  delete: (id: UUID) => Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babav/knowledge-core-client",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "description": "TypeScript client for the Babav Knowledge Core API (Deno + Node 18+, zero deps).",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/src/index.ts CHANGED
@@ -65,7 +65,8 @@ export interface QueryOverrides {
65
65
  rerank_instruction?: string;
66
66
  max_hops?: number;
67
67
  groundedness_threshold?: number;
68
- grounding_enabled?: boolean;
68
+ grounding_enabled?: boolean; // HHEM groundedness score (default off)
69
+ citations_enabled?: boolean; // source attribution (default on)
69
70
  }
70
71
 
71
72
  export interface QueryRequest {
@@ -205,6 +206,7 @@ export interface Agent {
205
206
  max_hops: number | null;
206
207
  groundedness_threshold: number | null;
207
208
  grounding_enabled: boolean | null;
209
+ citations_enabled: boolean | null;
208
210
  }
209
211
  export interface Tenant {
210
212
  id: UUID;
@@ -623,7 +625,7 @@ export class AdminClient extends HttpBase {
623
625
 
624
626
  // Agents are query agents, global for now.
625
627
  agents = {
626
- create: (b: { name: string; identity_prompt?: string; response_prompt?: string; generation_model?: string; top_k?: number; rerank_instruction?: string; max_hops?: number; groundedness_threshold?: number; grounding_enabled?: boolean }) =>
628
+ create: (b: { name: string; identity_prompt?: string; response_prompt?: string; generation_model?: string; top_k?: number; rerank_instruction?: string; max_hops?: number; groundedness_threshold?: number; grounding_enabled?: boolean; citations_enabled?: boolean }) =>
627
629
  this.request<Agent>("POST", "/v1/agents", { json: b }),
628
630
  update: (id: UUID, b: Partial<Omit<Agent, "id">>) =>
629
631
  this.request<Agent>("PATCH", `/v1/agents/${id}`, { json: b }),