@cogitator-ai/memory 0.2.0 → 0.3.1

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.
Files changed (33) hide show
  1. package/README.md +572 -21
  2. package/dist/context-builder.d.ts.map +1 -1
  3. package/dist/context-builder.js +4 -0
  4. package/dist/context-builder.js.map +1 -1
  5. package/dist/index.d.ts +3 -1
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +1 -0
  8. package/dist/index.js.map +1 -1
  9. package/dist/knowledge-graph/entity-extractor.d.ts +30 -0
  10. package/dist/knowledge-graph/entity-extractor.d.ts.map +1 -0
  11. package/dist/knowledge-graph/entity-extractor.js +158 -0
  12. package/dist/knowledge-graph/entity-extractor.js.map +1 -0
  13. package/dist/knowledge-graph/graph-adapter.d.ts +56 -0
  14. package/dist/knowledge-graph/graph-adapter.d.ts.map +1 -0
  15. package/dist/knowledge-graph/graph-adapter.js +656 -0
  16. package/dist/knowledge-graph/graph-adapter.js.map +1 -0
  17. package/dist/knowledge-graph/graph-context-builder.d.ts +23 -0
  18. package/dist/knowledge-graph/graph-context-builder.d.ts.map +1 -0
  19. package/dist/knowledge-graph/graph-context-builder.js +318 -0
  20. package/dist/knowledge-graph/graph-context-builder.js.map +1 -0
  21. package/dist/knowledge-graph/index.d.ts +9 -0
  22. package/dist/knowledge-graph/index.d.ts.map +1 -0
  23. package/dist/knowledge-graph/index.js +6 -0
  24. package/dist/knowledge-graph/index.js.map +1 -0
  25. package/dist/knowledge-graph/inference-engine.d.ts +17 -0
  26. package/dist/knowledge-graph/inference-engine.d.ts.map +1 -0
  27. package/dist/knowledge-graph/inference-engine.js +270 -0
  28. package/dist/knowledge-graph/inference-engine.js.map +1 -0
  29. package/dist/knowledge-graph/schema.d.ts +854 -0
  30. package/dist/knowledge-graph/schema.d.ts.map +1 -0
  31. package/dist/knowledge-graph/schema.js +166 -0
  32. package/dist/knowledge-graph/schema.js.map +1 -0
  33. package/package.json +3 -3
@@ -0,0 +1,854 @@
1
+ import { z } from 'zod';
2
+ export declare const EntityTypeSchema: z.ZodEnum<["person", "organization", "location", "concept", "event", "object", "custom"]>;
3
+ export declare const RelationTypeSchema: z.ZodEnum<["knows", "works_at", "located_in", "part_of", "related_to", "created_by", "belongs_to", "associated_with", "causes", "precedes", "custom"]>;
4
+ export declare const NodeSourceSchema: z.ZodEnum<["extracted", "user", "inferred"]>;
5
+ export declare const GraphNodeSchema: z.ZodObject<{
6
+ id: z.ZodString;
7
+ agentId: z.ZodString;
8
+ type: z.ZodEnum<["person", "organization", "location", "concept", "event", "object", "custom"]>;
9
+ name: z.ZodString;
10
+ aliases: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
11
+ description: z.ZodOptional<z.ZodString>;
12
+ properties: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
13
+ embedding: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
14
+ confidence: z.ZodNumber;
15
+ source: z.ZodEnum<["extracted", "user", "inferred"]>;
16
+ createdAt: z.ZodDate;
17
+ updatedAt: z.ZodDate;
18
+ lastAccessedAt: z.ZodDate;
19
+ accessCount: z.ZodNumber;
20
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
21
+ }, "strip", z.ZodTypeAny, {
22
+ id: string;
23
+ createdAt: Date;
24
+ updatedAt: Date;
25
+ agentId: string;
26
+ confidence: number;
27
+ source: "user" | "inferred" | "extracted";
28
+ type: "object" | "custom" | "person" | "organization" | "location" | "concept" | "event";
29
+ lastAccessedAt: Date;
30
+ accessCount: number;
31
+ name: string;
32
+ aliases: string[];
33
+ properties: Record<string, unknown>;
34
+ metadata?: Record<string, unknown> | undefined;
35
+ description?: string | undefined;
36
+ embedding?: number[] | undefined;
37
+ }, {
38
+ id: string;
39
+ createdAt: Date;
40
+ updatedAt: Date;
41
+ agentId: string;
42
+ confidence: number;
43
+ source: "user" | "inferred" | "extracted";
44
+ type: "object" | "custom" | "person" | "organization" | "location" | "concept" | "event";
45
+ lastAccessedAt: Date;
46
+ accessCount: number;
47
+ name: string;
48
+ metadata?: Record<string, unknown> | undefined;
49
+ aliases?: string[] | undefined;
50
+ description?: string | undefined;
51
+ properties?: Record<string, unknown> | undefined;
52
+ embedding?: number[] | undefined;
53
+ }>;
54
+ export declare const GraphEdgeSchema: z.ZodObject<{
55
+ id: z.ZodString;
56
+ agentId: z.ZodString;
57
+ sourceNodeId: z.ZodString;
58
+ targetNodeId: z.ZodString;
59
+ type: z.ZodEnum<["knows", "works_at", "located_in", "part_of", "related_to", "created_by", "belongs_to", "associated_with", "causes", "precedes", "custom"]>;
60
+ label: z.ZodOptional<z.ZodString>;
61
+ weight: z.ZodDefault<z.ZodNumber>;
62
+ bidirectional: z.ZodDefault<z.ZodBoolean>;
63
+ properties: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
64
+ confidence: z.ZodNumber;
65
+ source: z.ZodEnum<["extracted", "user", "inferred"]>;
66
+ createdAt: z.ZodDate;
67
+ updatedAt: z.ZodDate;
68
+ validFrom: z.ZodOptional<z.ZodDate>;
69
+ validUntil: z.ZodOptional<z.ZodDate>;
70
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
71
+ }, "strip", z.ZodTypeAny, {
72
+ id: string;
73
+ createdAt: Date;
74
+ updatedAt: Date;
75
+ agentId: string;
76
+ confidence: number;
77
+ source: "user" | "inferred" | "extracted";
78
+ type: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
79
+ properties: Record<string, unknown>;
80
+ sourceNodeId: string;
81
+ targetNodeId: string;
82
+ weight: number;
83
+ bidirectional: boolean;
84
+ metadata?: Record<string, unknown> | undefined;
85
+ label?: string | undefined;
86
+ validFrom?: Date | undefined;
87
+ validUntil?: Date | undefined;
88
+ }, {
89
+ id: string;
90
+ createdAt: Date;
91
+ updatedAt: Date;
92
+ agentId: string;
93
+ confidence: number;
94
+ source: "user" | "inferred" | "extracted";
95
+ type: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
96
+ sourceNodeId: string;
97
+ targetNodeId: string;
98
+ metadata?: Record<string, unknown> | undefined;
99
+ properties?: Record<string, unknown> | undefined;
100
+ label?: string | undefined;
101
+ weight?: number | undefined;
102
+ bidirectional?: boolean | undefined;
103
+ validFrom?: Date | undefined;
104
+ validUntil?: Date | undefined;
105
+ }>;
106
+ export declare const ExtractedEntitySchema: z.ZodObject<{
107
+ name: z.ZodString;
108
+ type: z.ZodEnum<["person", "organization", "location", "concept", "event", "object", "custom"]>;
109
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
110
+ description: z.ZodOptional<z.ZodString>;
111
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
112
+ confidence: z.ZodNumber;
113
+ }, "strip", z.ZodTypeAny, {
114
+ confidence: number;
115
+ type: "object" | "custom" | "person" | "organization" | "location" | "concept" | "event";
116
+ name: string;
117
+ aliases?: string[] | undefined;
118
+ description?: string | undefined;
119
+ properties?: Record<string, unknown> | undefined;
120
+ }, {
121
+ confidence: number;
122
+ type: "object" | "custom" | "person" | "organization" | "location" | "concept" | "event";
123
+ name: string;
124
+ aliases?: string[] | undefined;
125
+ description?: string | undefined;
126
+ properties?: Record<string, unknown> | undefined;
127
+ }>;
128
+ export declare const ExtractedRelationSchema: z.ZodObject<{
129
+ sourceEntity: z.ZodString;
130
+ targetEntity: z.ZodString;
131
+ type: z.ZodEnum<["knows", "works_at", "located_in", "part_of", "related_to", "created_by", "belongs_to", "associated_with", "causes", "precedes", "custom"]>;
132
+ label: z.ZodOptional<z.ZodString>;
133
+ weight: z.ZodOptional<z.ZodNumber>;
134
+ bidirectional: z.ZodOptional<z.ZodBoolean>;
135
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
136
+ confidence: z.ZodNumber;
137
+ }, "strip", z.ZodTypeAny, {
138
+ confidence: number;
139
+ type: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
140
+ sourceEntity: string;
141
+ targetEntity: string;
142
+ properties?: Record<string, unknown> | undefined;
143
+ label?: string | undefined;
144
+ weight?: number | undefined;
145
+ bidirectional?: boolean | undefined;
146
+ }, {
147
+ confidence: number;
148
+ type: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
149
+ sourceEntity: string;
150
+ targetEntity: string;
151
+ properties?: Record<string, unknown> | undefined;
152
+ label?: string | undefined;
153
+ weight?: number | undefined;
154
+ bidirectional?: boolean | undefined;
155
+ }>;
156
+ export declare const ExtractionResultSchema: z.ZodObject<{
157
+ entities: z.ZodArray<z.ZodObject<{
158
+ name: z.ZodString;
159
+ type: z.ZodEnum<["person", "organization", "location", "concept", "event", "object", "custom"]>;
160
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
161
+ description: z.ZodOptional<z.ZodString>;
162
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
163
+ confidence: z.ZodNumber;
164
+ }, "strip", z.ZodTypeAny, {
165
+ confidence: number;
166
+ type: "object" | "custom" | "person" | "organization" | "location" | "concept" | "event";
167
+ name: string;
168
+ aliases?: string[] | undefined;
169
+ description?: string | undefined;
170
+ properties?: Record<string, unknown> | undefined;
171
+ }, {
172
+ confidence: number;
173
+ type: "object" | "custom" | "person" | "organization" | "location" | "concept" | "event";
174
+ name: string;
175
+ aliases?: string[] | undefined;
176
+ description?: string | undefined;
177
+ properties?: Record<string, unknown> | undefined;
178
+ }>, "many">;
179
+ relations: z.ZodArray<z.ZodObject<{
180
+ sourceEntity: z.ZodString;
181
+ targetEntity: z.ZodString;
182
+ type: z.ZodEnum<["knows", "works_at", "located_in", "part_of", "related_to", "created_by", "belongs_to", "associated_with", "causes", "precedes", "custom"]>;
183
+ label: z.ZodOptional<z.ZodString>;
184
+ weight: z.ZodOptional<z.ZodNumber>;
185
+ bidirectional: z.ZodOptional<z.ZodBoolean>;
186
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
187
+ confidence: z.ZodNumber;
188
+ }, "strip", z.ZodTypeAny, {
189
+ confidence: number;
190
+ type: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
191
+ sourceEntity: string;
192
+ targetEntity: string;
193
+ properties?: Record<string, unknown> | undefined;
194
+ label?: string | undefined;
195
+ weight?: number | undefined;
196
+ bidirectional?: boolean | undefined;
197
+ }, {
198
+ confidence: number;
199
+ type: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
200
+ sourceEntity: string;
201
+ targetEntity: string;
202
+ properties?: Record<string, unknown> | undefined;
203
+ label?: string | undefined;
204
+ weight?: number | undefined;
205
+ bidirectional?: boolean | undefined;
206
+ }>, "many">;
207
+ text: z.ZodString;
208
+ timestamp: z.ZodDate;
209
+ }, "strip", z.ZodTypeAny, {
210
+ entities: {
211
+ confidence: number;
212
+ type: "object" | "custom" | "person" | "organization" | "location" | "concept" | "event";
213
+ name: string;
214
+ aliases?: string[] | undefined;
215
+ description?: string | undefined;
216
+ properties?: Record<string, unknown> | undefined;
217
+ }[];
218
+ relations: {
219
+ confidence: number;
220
+ type: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
221
+ sourceEntity: string;
222
+ targetEntity: string;
223
+ properties?: Record<string, unknown> | undefined;
224
+ label?: string | undefined;
225
+ weight?: number | undefined;
226
+ bidirectional?: boolean | undefined;
227
+ }[];
228
+ text: string;
229
+ timestamp: Date;
230
+ }, {
231
+ entities: {
232
+ confidence: number;
233
+ type: "object" | "custom" | "person" | "organization" | "location" | "concept" | "event";
234
+ name: string;
235
+ aliases?: string[] | undefined;
236
+ description?: string | undefined;
237
+ properties?: Record<string, unknown> | undefined;
238
+ }[];
239
+ relations: {
240
+ confidence: number;
241
+ type: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
242
+ sourceEntity: string;
243
+ targetEntity: string;
244
+ properties?: Record<string, unknown> | undefined;
245
+ label?: string | undefined;
246
+ weight?: number | undefined;
247
+ bidirectional?: boolean | undefined;
248
+ }[];
249
+ text: string;
250
+ timestamp: Date;
251
+ }>;
252
+ export declare const NodeQuerySchema: z.ZodObject<{
253
+ agentId: z.ZodString;
254
+ types: z.ZodOptional<z.ZodArray<z.ZodEnum<["person", "organization", "location", "concept", "event", "object", "custom"]>, "many">>;
255
+ namePattern: z.ZodOptional<z.ZodString>;
256
+ minConfidence: z.ZodOptional<z.ZodNumber>;
257
+ limit: z.ZodOptional<z.ZodNumber>;
258
+ includeEmbedding: z.ZodOptional<z.ZodBoolean>;
259
+ }, "strip", z.ZodTypeAny, {
260
+ agentId: string;
261
+ types?: ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[] | undefined;
262
+ namePattern?: string | undefined;
263
+ minConfidence?: number | undefined;
264
+ limit?: number | undefined;
265
+ includeEmbedding?: boolean | undefined;
266
+ }, {
267
+ agentId: string;
268
+ types?: ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[] | undefined;
269
+ namePattern?: string | undefined;
270
+ minConfidence?: number | undefined;
271
+ limit?: number | undefined;
272
+ includeEmbedding?: boolean | undefined;
273
+ }>;
274
+ export declare const EdgeQuerySchema: z.ZodObject<{
275
+ agentId: z.ZodString;
276
+ sourceNodeId: z.ZodOptional<z.ZodString>;
277
+ targetNodeId: z.ZodOptional<z.ZodString>;
278
+ types: z.ZodOptional<z.ZodArray<z.ZodEnum<["knows", "works_at", "located_in", "part_of", "related_to", "created_by", "belongs_to", "associated_with", "causes", "precedes", "custom"]>, "many">>;
279
+ minWeight: z.ZodOptional<z.ZodNumber>;
280
+ minConfidence: z.ZodOptional<z.ZodNumber>;
281
+ bidirectionalOnly: z.ZodOptional<z.ZodBoolean>;
282
+ limit: z.ZodOptional<z.ZodNumber>;
283
+ }, "strip", z.ZodTypeAny, {
284
+ agentId: string;
285
+ sourceNodeId?: string | undefined;
286
+ targetNodeId?: string | undefined;
287
+ types?: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[] | undefined;
288
+ minConfidence?: number | undefined;
289
+ limit?: number | undefined;
290
+ minWeight?: number | undefined;
291
+ bidirectionalOnly?: boolean | undefined;
292
+ }, {
293
+ agentId: string;
294
+ sourceNodeId?: string | undefined;
295
+ targetNodeId?: string | undefined;
296
+ types?: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[] | undefined;
297
+ minConfidence?: number | undefined;
298
+ limit?: number | undefined;
299
+ minWeight?: number | undefined;
300
+ bidirectionalOnly?: boolean | undefined;
301
+ }>;
302
+ export declare const TraversalDirectionSchema: z.ZodEnum<["outgoing", "incoming", "both"]>;
303
+ export declare const TraversalOptionsSchema: z.ZodObject<{
304
+ agentId: z.ZodString;
305
+ startNodeId: z.ZodString;
306
+ maxDepth: z.ZodDefault<z.ZodNumber>;
307
+ direction: z.ZodDefault<z.ZodEnum<["outgoing", "incoming", "both"]>>;
308
+ edgeTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["knows", "works_at", "located_in", "part_of", "related_to", "created_by", "belongs_to", "associated_with", "causes", "precedes", "custom"]>, "many">>;
309
+ minEdgeWeight: z.ZodOptional<z.ZodNumber>;
310
+ minConfidence: z.ZodOptional<z.ZodNumber>;
311
+ limit: z.ZodOptional<z.ZodNumber>;
312
+ }, "strip", z.ZodTypeAny, {
313
+ agentId: string;
314
+ startNodeId: string;
315
+ maxDepth: number;
316
+ direction: "outgoing" | "incoming" | "both";
317
+ minConfidence?: number | undefined;
318
+ limit?: number | undefined;
319
+ edgeTypes?: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[] | undefined;
320
+ minEdgeWeight?: number | undefined;
321
+ }, {
322
+ agentId: string;
323
+ startNodeId: string;
324
+ minConfidence?: number | undefined;
325
+ limit?: number | undefined;
326
+ maxDepth?: number | undefined;
327
+ direction?: "outgoing" | "incoming" | "both" | undefined;
328
+ edgeTypes?: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[] | undefined;
329
+ minEdgeWeight?: number | undefined;
330
+ }>;
331
+ export declare const GraphSemanticSearchOptionsSchema: z.ZodObject<{
332
+ agentId: z.ZodString;
333
+ query: z.ZodOptional<z.ZodString>;
334
+ vector: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
335
+ limit: z.ZodOptional<z.ZodNumber>;
336
+ threshold: z.ZodOptional<z.ZodNumber>;
337
+ entityTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["person", "organization", "location", "concept", "event", "object", "custom"]>, "many">>;
338
+ }, "strip", z.ZodTypeAny, {
339
+ agentId: string;
340
+ vector?: number[] | undefined;
341
+ limit?: number | undefined;
342
+ query?: string | undefined;
343
+ threshold?: number | undefined;
344
+ entityTypes?: ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[] | undefined;
345
+ }, {
346
+ agentId: string;
347
+ vector?: number[] | undefined;
348
+ limit?: number | undefined;
349
+ query?: string | undefined;
350
+ threshold?: number | undefined;
351
+ entityTypes?: ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[] | undefined;
352
+ }>;
353
+ export declare const InferencePatternSchema: z.ZodObject<{
354
+ edgeTypes: z.ZodArray<z.ZodEnum<["knows", "works_at", "located_in", "part_of", "related_to", "created_by", "belongs_to", "associated_with", "causes", "precedes", "custom"]>, "many">;
355
+ minPathLength: z.ZodNumber;
356
+ maxPathLength: z.ZodNumber;
357
+ nodeTypeConstraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodEnum<["person", "organization", "location", "concept", "event", "object", "custom"]>, "many">>>;
358
+ }, "strip", z.ZodTypeAny, {
359
+ edgeTypes: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[];
360
+ minPathLength: number;
361
+ maxPathLength: number;
362
+ nodeTypeConstraints?: Record<string, ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[]> | undefined;
363
+ }, {
364
+ edgeTypes: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[];
365
+ minPathLength: number;
366
+ maxPathLength: number;
367
+ nodeTypeConstraints?: Record<string, ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[]> | undefined;
368
+ }>;
369
+ export declare const InferenceConclusionSchema: z.ZodObject<{
370
+ edgeType: z.ZodEnum<["knows", "works_at", "located_in", "part_of", "related_to", "created_by", "belongs_to", "associated_with", "causes", "precedes", "custom"]>;
371
+ label: z.ZodOptional<z.ZodString>;
372
+ weightFormula: z.ZodEnum<["min", "max", "average", "product"]>;
373
+ bidirectional: z.ZodBoolean;
374
+ }, "strip", z.ZodTypeAny, {
375
+ bidirectional: boolean;
376
+ edgeType: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
377
+ weightFormula: "min" | "max" | "average" | "product";
378
+ label?: string | undefined;
379
+ }, {
380
+ bidirectional: boolean;
381
+ edgeType: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
382
+ weightFormula: "min" | "max" | "average" | "product";
383
+ label?: string | undefined;
384
+ }>;
385
+ export declare const InferenceRuleSchema: z.ZodObject<{
386
+ id: z.ZodString;
387
+ name: z.ZodString;
388
+ description: z.ZodString;
389
+ pattern: z.ZodObject<{
390
+ edgeTypes: z.ZodArray<z.ZodEnum<["knows", "works_at", "located_in", "part_of", "related_to", "created_by", "belongs_to", "associated_with", "causes", "precedes", "custom"]>, "many">;
391
+ minPathLength: z.ZodNumber;
392
+ maxPathLength: z.ZodNumber;
393
+ nodeTypeConstraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodEnum<["person", "organization", "location", "concept", "event", "object", "custom"]>, "many">>>;
394
+ }, "strip", z.ZodTypeAny, {
395
+ edgeTypes: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[];
396
+ minPathLength: number;
397
+ maxPathLength: number;
398
+ nodeTypeConstraints?: Record<string, ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[]> | undefined;
399
+ }, {
400
+ edgeTypes: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[];
401
+ minPathLength: number;
402
+ maxPathLength: number;
403
+ nodeTypeConstraints?: Record<string, ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[]> | undefined;
404
+ }>;
405
+ conclusion: z.ZodObject<{
406
+ edgeType: z.ZodEnum<["knows", "works_at", "located_in", "part_of", "related_to", "created_by", "belongs_to", "associated_with", "causes", "precedes", "custom"]>;
407
+ label: z.ZodOptional<z.ZodString>;
408
+ weightFormula: z.ZodEnum<["min", "max", "average", "product"]>;
409
+ bidirectional: z.ZodBoolean;
410
+ }, "strip", z.ZodTypeAny, {
411
+ bidirectional: boolean;
412
+ edgeType: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
413
+ weightFormula: "min" | "max" | "average" | "product";
414
+ label?: string | undefined;
415
+ }, {
416
+ bidirectional: boolean;
417
+ edgeType: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
418
+ weightFormula: "min" | "max" | "average" | "product";
419
+ label?: string | undefined;
420
+ }>;
421
+ confidence: z.ZodNumber;
422
+ enabled: z.ZodBoolean;
423
+ }, "strip", z.ZodTypeAny, {
424
+ id: string;
425
+ confidence: number;
426
+ name: string;
427
+ description: string;
428
+ pattern: {
429
+ edgeTypes: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[];
430
+ minPathLength: number;
431
+ maxPathLength: number;
432
+ nodeTypeConstraints?: Record<string, ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[]> | undefined;
433
+ };
434
+ conclusion: {
435
+ bidirectional: boolean;
436
+ edgeType: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
437
+ weightFormula: "min" | "max" | "average" | "product";
438
+ label?: string | undefined;
439
+ };
440
+ enabled: boolean;
441
+ }, {
442
+ id: string;
443
+ confidence: number;
444
+ name: string;
445
+ description: string;
446
+ pattern: {
447
+ edgeTypes: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[];
448
+ minPathLength: number;
449
+ maxPathLength: number;
450
+ nodeTypeConstraints?: Record<string, ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[]> | undefined;
451
+ };
452
+ conclusion: {
453
+ bidirectional: boolean;
454
+ edgeType: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
455
+ weightFormula: "min" | "max" | "average" | "product";
456
+ label?: string | undefined;
457
+ };
458
+ enabled: boolean;
459
+ }>;
460
+ export declare const KnowledgeGraphExtractionConfigSchema: z.ZodObject<{
461
+ enabled: z.ZodBoolean;
462
+ extractOnMessage: z.ZodOptional<z.ZodBoolean>;
463
+ extractOnFact: z.ZodOptional<z.ZodBoolean>;
464
+ minConfidence: z.ZodOptional<z.ZodNumber>;
465
+ batchSize: z.ZodOptional<z.ZodNumber>;
466
+ }, "strip", z.ZodTypeAny, {
467
+ enabled: boolean;
468
+ minConfidence?: number | undefined;
469
+ extractOnMessage?: boolean | undefined;
470
+ extractOnFact?: boolean | undefined;
471
+ batchSize?: number | undefined;
472
+ }, {
473
+ enabled: boolean;
474
+ minConfidence?: number | undefined;
475
+ extractOnMessage?: boolean | undefined;
476
+ extractOnFact?: boolean | undefined;
477
+ batchSize?: number | undefined;
478
+ }>;
479
+ export declare const KnowledgeGraphInferenceConfigSchema: z.ZodObject<{
480
+ enabled: z.ZodBoolean;
481
+ autoMaterialize: z.ZodOptional<z.ZodBoolean>;
482
+ defaultRules: z.ZodOptional<z.ZodBoolean>;
483
+ customRules: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
484
+ id: z.ZodString;
485
+ name: z.ZodString;
486
+ description: z.ZodString;
487
+ pattern: z.ZodObject<{
488
+ edgeTypes: z.ZodArray<z.ZodEnum<["knows", "works_at", "located_in", "part_of", "related_to", "created_by", "belongs_to", "associated_with", "causes", "precedes", "custom"]>, "many">;
489
+ minPathLength: z.ZodNumber;
490
+ maxPathLength: z.ZodNumber;
491
+ nodeTypeConstraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodEnum<["person", "organization", "location", "concept", "event", "object", "custom"]>, "many">>>;
492
+ }, "strip", z.ZodTypeAny, {
493
+ edgeTypes: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[];
494
+ minPathLength: number;
495
+ maxPathLength: number;
496
+ nodeTypeConstraints?: Record<string, ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[]> | undefined;
497
+ }, {
498
+ edgeTypes: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[];
499
+ minPathLength: number;
500
+ maxPathLength: number;
501
+ nodeTypeConstraints?: Record<string, ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[]> | undefined;
502
+ }>;
503
+ conclusion: z.ZodObject<{
504
+ edgeType: z.ZodEnum<["knows", "works_at", "located_in", "part_of", "related_to", "created_by", "belongs_to", "associated_with", "causes", "precedes", "custom"]>;
505
+ label: z.ZodOptional<z.ZodString>;
506
+ weightFormula: z.ZodEnum<["min", "max", "average", "product"]>;
507
+ bidirectional: z.ZodBoolean;
508
+ }, "strip", z.ZodTypeAny, {
509
+ bidirectional: boolean;
510
+ edgeType: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
511
+ weightFormula: "min" | "max" | "average" | "product";
512
+ label?: string | undefined;
513
+ }, {
514
+ bidirectional: boolean;
515
+ edgeType: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
516
+ weightFormula: "min" | "max" | "average" | "product";
517
+ label?: string | undefined;
518
+ }>;
519
+ confidence: z.ZodNumber;
520
+ enabled: z.ZodBoolean;
521
+ }, "id">, "strip", z.ZodTypeAny, {
522
+ confidence: number;
523
+ name: string;
524
+ description: string;
525
+ pattern: {
526
+ edgeTypes: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[];
527
+ minPathLength: number;
528
+ maxPathLength: number;
529
+ nodeTypeConstraints?: Record<string, ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[]> | undefined;
530
+ };
531
+ conclusion: {
532
+ bidirectional: boolean;
533
+ edgeType: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
534
+ weightFormula: "min" | "max" | "average" | "product";
535
+ label?: string | undefined;
536
+ };
537
+ enabled: boolean;
538
+ }, {
539
+ confidence: number;
540
+ name: string;
541
+ description: string;
542
+ pattern: {
543
+ edgeTypes: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[];
544
+ minPathLength: number;
545
+ maxPathLength: number;
546
+ nodeTypeConstraints?: Record<string, ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[]> | undefined;
547
+ };
548
+ conclusion: {
549
+ bidirectional: boolean;
550
+ edgeType: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
551
+ weightFormula: "min" | "max" | "average" | "product";
552
+ label?: string | undefined;
553
+ };
554
+ enabled: boolean;
555
+ }>, "many">>;
556
+ }, "strip", z.ZodTypeAny, {
557
+ enabled: boolean;
558
+ autoMaterialize?: boolean | undefined;
559
+ defaultRules?: boolean | undefined;
560
+ customRules?: {
561
+ confidence: number;
562
+ name: string;
563
+ description: string;
564
+ pattern: {
565
+ edgeTypes: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[];
566
+ minPathLength: number;
567
+ maxPathLength: number;
568
+ nodeTypeConstraints?: Record<string, ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[]> | undefined;
569
+ };
570
+ conclusion: {
571
+ bidirectional: boolean;
572
+ edgeType: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
573
+ weightFormula: "min" | "max" | "average" | "product";
574
+ label?: string | undefined;
575
+ };
576
+ enabled: boolean;
577
+ }[] | undefined;
578
+ }, {
579
+ enabled: boolean;
580
+ autoMaterialize?: boolean | undefined;
581
+ defaultRules?: boolean | undefined;
582
+ customRules?: {
583
+ confidence: number;
584
+ name: string;
585
+ description: string;
586
+ pattern: {
587
+ edgeTypes: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[];
588
+ minPathLength: number;
589
+ maxPathLength: number;
590
+ nodeTypeConstraints?: Record<string, ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[]> | undefined;
591
+ };
592
+ conclusion: {
593
+ bidirectional: boolean;
594
+ edgeType: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
595
+ weightFormula: "min" | "max" | "average" | "product";
596
+ label?: string | undefined;
597
+ };
598
+ enabled: boolean;
599
+ }[] | undefined;
600
+ }>;
601
+ export declare const KnowledgeGraphContextConfigSchema: z.ZodObject<{
602
+ maxNodes: z.ZodOptional<z.ZodNumber>;
603
+ maxEdges: z.ZodOptional<z.ZodNumber>;
604
+ maxDepth: z.ZodOptional<z.ZodNumber>;
605
+ includeInferred: z.ZodOptional<z.ZodBoolean>;
606
+ }, "strip", z.ZodTypeAny, {
607
+ maxDepth?: number | undefined;
608
+ maxNodes?: number | undefined;
609
+ maxEdges?: number | undefined;
610
+ includeInferred?: boolean | undefined;
611
+ }, {
612
+ maxDepth?: number | undefined;
613
+ maxNodes?: number | undefined;
614
+ maxEdges?: number | undefined;
615
+ includeInferred?: boolean | undefined;
616
+ }>;
617
+ export declare const KnowledgeGraphConfigSchema: z.ZodObject<{
618
+ extraction: z.ZodOptional<z.ZodObject<{
619
+ enabled: z.ZodBoolean;
620
+ extractOnMessage: z.ZodOptional<z.ZodBoolean>;
621
+ extractOnFact: z.ZodOptional<z.ZodBoolean>;
622
+ minConfidence: z.ZodOptional<z.ZodNumber>;
623
+ batchSize: z.ZodOptional<z.ZodNumber>;
624
+ }, "strip", z.ZodTypeAny, {
625
+ enabled: boolean;
626
+ minConfidence?: number | undefined;
627
+ extractOnMessage?: boolean | undefined;
628
+ extractOnFact?: boolean | undefined;
629
+ batchSize?: number | undefined;
630
+ }, {
631
+ enabled: boolean;
632
+ minConfidence?: number | undefined;
633
+ extractOnMessage?: boolean | undefined;
634
+ extractOnFact?: boolean | undefined;
635
+ batchSize?: number | undefined;
636
+ }>>;
637
+ inference: z.ZodOptional<z.ZodObject<{
638
+ enabled: z.ZodBoolean;
639
+ autoMaterialize: z.ZodOptional<z.ZodBoolean>;
640
+ defaultRules: z.ZodOptional<z.ZodBoolean>;
641
+ customRules: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
642
+ id: z.ZodString;
643
+ name: z.ZodString;
644
+ description: z.ZodString;
645
+ pattern: z.ZodObject<{
646
+ edgeTypes: z.ZodArray<z.ZodEnum<["knows", "works_at", "located_in", "part_of", "related_to", "created_by", "belongs_to", "associated_with", "causes", "precedes", "custom"]>, "many">;
647
+ minPathLength: z.ZodNumber;
648
+ maxPathLength: z.ZodNumber;
649
+ nodeTypeConstraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodEnum<["person", "organization", "location", "concept", "event", "object", "custom"]>, "many">>>;
650
+ }, "strip", z.ZodTypeAny, {
651
+ edgeTypes: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[];
652
+ minPathLength: number;
653
+ maxPathLength: number;
654
+ nodeTypeConstraints?: Record<string, ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[]> | undefined;
655
+ }, {
656
+ edgeTypes: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[];
657
+ minPathLength: number;
658
+ maxPathLength: number;
659
+ nodeTypeConstraints?: Record<string, ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[]> | undefined;
660
+ }>;
661
+ conclusion: z.ZodObject<{
662
+ edgeType: z.ZodEnum<["knows", "works_at", "located_in", "part_of", "related_to", "created_by", "belongs_to", "associated_with", "causes", "precedes", "custom"]>;
663
+ label: z.ZodOptional<z.ZodString>;
664
+ weightFormula: z.ZodEnum<["min", "max", "average", "product"]>;
665
+ bidirectional: z.ZodBoolean;
666
+ }, "strip", z.ZodTypeAny, {
667
+ bidirectional: boolean;
668
+ edgeType: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
669
+ weightFormula: "min" | "max" | "average" | "product";
670
+ label?: string | undefined;
671
+ }, {
672
+ bidirectional: boolean;
673
+ edgeType: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
674
+ weightFormula: "min" | "max" | "average" | "product";
675
+ label?: string | undefined;
676
+ }>;
677
+ confidence: z.ZodNumber;
678
+ enabled: z.ZodBoolean;
679
+ }, "id">, "strip", z.ZodTypeAny, {
680
+ confidence: number;
681
+ name: string;
682
+ description: string;
683
+ pattern: {
684
+ edgeTypes: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[];
685
+ minPathLength: number;
686
+ maxPathLength: number;
687
+ nodeTypeConstraints?: Record<string, ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[]> | undefined;
688
+ };
689
+ conclusion: {
690
+ bidirectional: boolean;
691
+ edgeType: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
692
+ weightFormula: "min" | "max" | "average" | "product";
693
+ label?: string | undefined;
694
+ };
695
+ enabled: boolean;
696
+ }, {
697
+ confidence: number;
698
+ name: string;
699
+ description: string;
700
+ pattern: {
701
+ edgeTypes: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[];
702
+ minPathLength: number;
703
+ maxPathLength: number;
704
+ nodeTypeConstraints?: Record<string, ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[]> | undefined;
705
+ };
706
+ conclusion: {
707
+ bidirectional: boolean;
708
+ edgeType: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
709
+ weightFormula: "min" | "max" | "average" | "product";
710
+ label?: string | undefined;
711
+ };
712
+ enabled: boolean;
713
+ }>, "many">>;
714
+ }, "strip", z.ZodTypeAny, {
715
+ enabled: boolean;
716
+ autoMaterialize?: boolean | undefined;
717
+ defaultRules?: boolean | undefined;
718
+ customRules?: {
719
+ confidence: number;
720
+ name: string;
721
+ description: string;
722
+ pattern: {
723
+ edgeTypes: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[];
724
+ minPathLength: number;
725
+ maxPathLength: number;
726
+ nodeTypeConstraints?: Record<string, ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[]> | undefined;
727
+ };
728
+ conclusion: {
729
+ bidirectional: boolean;
730
+ edgeType: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
731
+ weightFormula: "min" | "max" | "average" | "product";
732
+ label?: string | undefined;
733
+ };
734
+ enabled: boolean;
735
+ }[] | undefined;
736
+ }, {
737
+ enabled: boolean;
738
+ autoMaterialize?: boolean | undefined;
739
+ defaultRules?: boolean | undefined;
740
+ customRules?: {
741
+ confidence: number;
742
+ name: string;
743
+ description: string;
744
+ pattern: {
745
+ edgeTypes: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[];
746
+ minPathLength: number;
747
+ maxPathLength: number;
748
+ nodeTypeConstraints?: Record<string, ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[]> | undefined;
749
+ };
750
+ conclusion: {
751
+ bidirectional: boolean;
752
+ edgeType: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
753
+ weightFormula: "min" | "max" | "average" | "product";
754
+ label?: string | undefined;
755
+ };
756
+ enabled: boolean;
757
+ }[] | undefined;
758
+ }>>;
759
+ context: z.ZodOptional<z.ZodObject<{
760
+ maxNodes: z.ZodOptional<z.ZodNumber>;
761
+ maxEdges: z.ZodOptional<z.ZodNumber>;
762
+ maxDepth: z.ZodOptional<z.ZodNumber>;
763
+ includeInferred: z.ZodOptional<z.ZodBoolean>;
764
+ }, "strip", z.ZodTypeAny, {
765
+ maxDepth?: number | undefined;
766
+ maxNodes?: number | undefined;
767
+ maxEdges?: number | undefined;
768
+ includeInferred?: boolean | undefined;
769
+ }, {
770
+ maxDepth?: number | undefined;
771
+ maxNodes?: number | undefined;
772
+ maxEdges?: number | undefined;
773
+ includeInferred?: boolean | undefined;
774
+ }>>;
775
+ }, "strip", z.ZodTypeAny, {
776
+ extraction?: {
777
+ enabled: boolean;
778
+ minConfidence?: number | undefined;
779
+ extractOnMessage?: boolean | undefined;
780
+ extractOnFact?: boolean | undefined;
781
+ batchSize?: number | undefined;
782
+ } | undefined;
783
+ inference?: {
784
+ enabled: boolean;
785
+ autoMaterialize?: boolean | undefined;
786
+ defaultRules?: boolean | undefined;
787
+ customRules?: {
788
+ confidence: number;
789
+ name: string;
790
+ description: string;
791
+ pattern: {
792
+ edgeTypes: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[];
793
+ minPathLength: number;
794
+ maxPathLength: number;
795
+ nodeTypeConstraints?: Record<string, ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[]> | undefined;
796
+ };
797
+ conclusion: {
798
+ bidirectional: boolean;
799
+ edgeType: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
800
+ weightFormula: "min" | "max" | "average" | "product";
801
+ label?: string | undefined;
802
+ };
803
+ enabled: boolean;
804
+ }[] | undefined;
805
+ } | undefined;
806
+ context?: {
807
+ maxDepth?: number | undefined;
808
+ maxNodes?: number | undefined;
809
+ maxEdges?: number | undefined;
810
+ includeInferred?: boolean | undefined;
811
+ } | undefined;
812
+ }, {
813
+ extraction?: {
814
+ enabled: boolean;
815
+ minConfidence?: number | undefined;
816
+ extractOnMessage?: boolean | undefined;
817
+ extractOnFact?: boolean | undefined;
818
+ batchSize?: number | undefined;
819
+ } | undefined;
820
+ inference?: {
821
+ enabled: boolean;
822
+ autoMaterialize?: boolean | undefined;
823
+ defaultRules?: boolean | undefined;
824
+ customRules?: {
825
+ confidence: number;
826
+ name: string;
827
+ description: string;
828
+ pattern: {
829
+ edgeTypes: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[];
830
+ minPathLength: number;
831
+ maxPathLength: number;
832
+ nodeTypeConstraints?: Record<string, ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[]> | undefined;
833
+ };
834
+ conclusion: {
835
+ bidirectional: boolean;
836
+ edgeType: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
837
+ weightFormula: "min" | "max" | "average" | "product";
838
+ label?: string | undefined;
839
+ };
840
+ enabled: boolean;
841
+ }[] | undefined;
842
+ } | undefined;
843
+ context?: {
844
+ maxDepth?: number | undefined;
845
+ maxNodes?: number | undefined;
846
+ maxEdges?: number | undefined;
847
+ includeInferred?: boolean | undefined;
848
+ } | undefined;
849
+ }>;
850
+ export type GraphNodeInput = z.input<typeof GraphNodeSchema>;
851
+ export type GraphEdgeInput = z.input<typeof GraphEdgeSchema>;
852
+ export type ExtractedEntityInput = z.input<typeof ExtractedEntitySchema>;
853
+ export type ExtractedRelationInput = z.input<typeof ExtractedRelationSchema>;
854
+ //# sourceMappingURL=schema.d.ts.map