@babav/knowledge-core-client 0.16.0 → 0.17.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 +9 -3
- package/package.json +1 -1
- package/src/index.ts +7 -3
package/dist/index.d.ts
CHANGED
|
@@ -56,8 +56,10 @@ export interface QueryOverrides {
|
|
|
56
56
|
top_k_reranked_chunks?: number;
|
|
57
57
|
sibling_window?: number;
|
|
58
58
|
rerank_instruction?: string;
|
|
59
|
-
|
|
59
|
+
max_subqueries?: number;
|
|
60
|
+
max_reasoning_rounds?: number;
|
|
60
61
|
decomposition_model?: string;
|
|
62
|
+
reasoning_inspect_model?: string;
|
|
61
63
|
groundedness_verifier_model?: string;
|
|
62
64
|
groundedness_threshold?: number;
|
|
63
65
|
grounding_enabled?: boolean;
|
|
@@ -209,8 +211,10 @@ export interface Agent {
|
|
|
209
211
|
top_k_reranked_chunks: number | null;
|
|
210
212
|
sibling_window: number | null;
|
|
211
213
|
rerank_instruction: string | null;
|
|
212
|
-
|
|
214
|
+
max_subqueries: number | null;
|
|
215
|
+
max_reasoning_rounds: number | null;
|
|
213
216
|
decomposition_model: string | null;
|
|
217
|
+
reasoning_inspect_model: string | null;
|
|
214
218
|
groundedness_verifier_model: string | null;
|
|
215
219
|
groundedness_threshold: number | null;
|
|
216
220
|
grounding_enabled: boolean | null;
|
|
@@ -512,8 +516,10 @@ export declare class AdminClient extends HttpBase {
|
|
|
512
516
|
top_k_reranked_chunks?: number;
|
|
513
517
|
sibling_window?: number;
|
|
514
518
|
rerank_instruction?: string;
|
|
515
|
-
|
|
519
|
+
max_subqueries?: number;
|
|
520
|
+
max_reasoning_rounds?: number;
|
|
516
521
|
decomposition_model?: string;
|
|
522
|
+
reasoning_inspect_model?: string;
|
|
517
523
|
groundedness_verifier_model?: string;
|
|
518
524
|
groundedness_threshold?: number;
|
|
519
525
|
grounding_enabled?: boolean;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -66,8 +66,10 @@ export interface QueryOverrides {
|
|
|
66
66
|
top_k_reranked_chunks?: number; // sections kept after rerank -> the LLM
|
|
67
67
|
sibling_window?: number; // adjacent sections fetched each side of a hit
|
|
68
68
|
rerank_instruction?: string;
|
|
69
|
-
|
|
69
|
+
max_subqueries?: number; // parallel decompose-and-merge breadth per retrieval step
|
|
70
|
+
max_reasoning_rounds?: number; // iterative agentic-loop ceiling (1 = single pass; early-stops)
|
|
70
71
|
decomposition_model?: string; // model for query decomposition
|
|
72
|
+
reasoning_inspect_model?: string; // model for the per-round sufficiency / next-query decision
|
|
71
73
|
groundedness_verifier_model?: string; // model for the groundedness LLM judge
|
|
72
74
|
groundedness_threshold?: number;
|
|
73
75
|
grounding_enabled?: boolean; // groundedness score (default off)
|
|
@@ -222,8 +224,10 @@ export interface Agent {
|
|
|
222
224
|
top_k_reranked_chunks: number | null;
|
|
223
225
|
sibling_window: number | null;
|
|
224
226
|
rerank_instruction: string | null;
|
|
225
|
-
|
|
227
|
+
max_subqueries: number | null;
|
|
228
|
+
max_reasoning_rounds: number | null;
|
|
226
229
|
decomposition_model: string | null;
|
|
230
|
+
reasoning_inspect_model: string | null;
|
|
227
231
|
groundedness_verifier_model: string | null;
|
|
228
232
|
groundedness_threshold: number | null;
|
|
229
233
|
grounding_enabled: boolean | null;
|
|
@@ -642,7 +646,7 @@ export class AdminClient extends HttpBase {
|
|
|
642
646
|
|
|
643
647
|
// Agents are query agents, global for now.
|
|
644
648
|
agents = {
|
|
645
|
-
create: (b: { name: string; identity_prompt?: string; response_prompt?: string; generation_model?: string; max_response_tokens?: number; top_k_retrieved_chunks?: number; top_k_reranked_chunks?: number; sibling_window?: number; rerank_instruction?: string;
|
|
649
|
+
create: (b: { name: string; identity_prompt?: string; response_prompt?: string; generation_model?: string; max_response_tokens?: number; top_k_retrieved_chunks?: number; top_k_reranked_chunks?: number; sibling_window?: number; rerank_instruction?: string; max_subqueries?: number; max_reasoning_rounds?: number; decomposition_model?: string; reasoning_inspect_model?: string; groundedness_verifier_model?: string; groundedness_threshold?: number; grounding_enabled?: boolean; citations_enabled?: boolean }) =>
|
|
646
650
|
this.request<Agent>("POST", "/v1/agents", { json: b }),
|
|
647
651
|
update: (id: UUID, b: Partial<Omit<Agent, "id">>) =>
|
|
648
652
|
this.request<Agent>("PATCH", `/v1/agents/${id}`, { json: b }),
|