@exulu/backend 1.55.0 → 1.56.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.
@@ -0,0 +1,58 @@
1
+ export type QueryType = "aggregate" | "list" | "targeted" | "exploratory";
2
+
3
+ export interface ClassificationResult {
4
+ queryType: QueryType;
5
+ language: string;
6
+ /** IDs of contexts most likely relevant. Empty means search all. */
7
+ suggestedContextIds: string[];
8
+ }
9
+
10
+ export interface ContextSample {
11
+ contextId: string;
12
+ contextName: string;
13
+ /** All field names available on items (standard + custom) */
14
+ fields: string[];
15
+ /** Up to 2 example item records */
16
+ exampleItems: Array<Record<string, any>>;
17
+ sampledAt: number;
18
+ }
19
+
20
+ export interface ChunkResult {
21
+ item_name: string;
22
+ item_id: string;
23
+ context: string;
24
+ chunk_id?: string;
25
+ chunk_index?: number;
26
+ chunk_content?: string;
27
+ metadata?: Record<string, any>;
28
+ }
29
+
30
+ export interface RetrievalStep {
31
+ stepNumber: number;
32
+ /** Text the model output during this step (reasoning) */
33
+ text: string;
34
+ toolCalls: Array<{ name: string; id: string; input: any }>;
35
+ chunks: ChunkResult[];
36
+ tokens: number;
37
+ }
38
+
39
+ interface Reasoning {
40
+ text: string;
41
+ tools: {
42
+ name: string;
43
+ id: string;
44
+ input: any;
45
+ output: any;
46
+ }[]
47
+ }
48
+
49
+ export interface AgenticRetrievalOutput {
50
+ steps: RetrievalStep[];
51
+ reasoning: Reasoning[];
52
+ /** All chunks collected across all steps */
53
+ chunks: ChunkResult[];
54
+ usage: any[];
55
+ totalTokens: number;
56
+ /** Path to the trajectory JSON file written to disk, if any */
57
+ trajectoryFile?: string;
58
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@exulu/backend",
3
3
  "author": "Qventu Bv.",
4
- "version": "1.55.0",
4
+ "version": "1.56.0",
5
5
  "main": "./dist/index.js",
6
6
  "private": false,
7
7
  "publishConfig": {