@tenphi/akno-protocol 0.4.0 → 0.5.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.
@@ -40,6 +40,59 @@ export declare const PageBody: z.ZodObject<{
40
40
  n: z.ZodNumber;
41
41
  text: z.ZodString;
42
42
  confidence: z.ZodOptional<z.ZodNumber>;
43
+ memory: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
44
+ status: z.ZodLiteral<"qualified">;
45
+ id: z.ZodString;
46
+ level: z.ZodLiteral<1>;
47
+ kind: z.ZodEnum<{
48
+ question: "question";
49
+ claim: "claim";
50
+ decision: "decision";
51
+ preference: "preference";
52
+ plan: "plan";
53
+ event: "event";
54
+ }>;
55
+ subject: z.ZodString;
56
+ source_role: z.ZodEnum<{
57
+ unknown: "unknown";
58
+ user: "user";
59
+ assistant: "assistant";
60
+ external: "external";
61
+ }>;
62
+ source_speaker: z.ZodOptional<z.ZodString>;
63
+ commitment: z.ZodEnum<{
64
+ none: "none";
65
+ asserted: "asserted";
66
+ tentative: "tentative";
67
+ hypothetical: "hypothetical";
68
+ counterfactual: "counterfactual";
69
+ }>;
70
+ disposition: z.ZodEnum<{
71
+ active: "active";
72
+ proposed: "proposed";
73
+ accepted: "accepted";
74
+ rejected: "rejected";
75
+ resolved: "resolved";
76
+ cancelled: "cancelled";
77
+ completed: "completed";
78
+ superseded: "superseded";
79
+ }>;
80
+ polarity: z.ZodEnum<{
81
+ affirmed: "affirmed";
82
+ negated: "negated";
83
+ }>;
84
+ basis: z.ZodEnum<{
85
+ self_attested: "self_attested";
86
+ source_report: "source_report";
87
+ cited_evidence: "cited_evidence";
88
+ system_record: "system_record";
89
+ }>;
90
+ answer_eligible: z.ZodBoolean;
91
+ }, z.core.$strip>, z.ZodObject<{
92
+ status: z.ZodLiteral<"unavailable">;
93
+ id: z.ZodString;
94
+ answer_eligible: z.ZodLiteral<false>;
95
+ }, z.core.$strip>], "status">>;
43
96
  fact: z.ZodOptional<z.ZodString>;
44
97
  }, z.core.$strip>>;
45
98
  source_fence_line: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -123,6 +176,8 @@ export declare const ReadOutput: z.ZodObject<{
123
176
  embedding_failed: "embedding_failed";
124
177
  rerank_failed: "rerank_failed";
125
178
  derive_failed: "derive_failed";
179
+ retain_verification_failed: "retain_verification_failed";
180
+ retain_apply_failed: "retain_apply_failed";
126
181
  expansion_failed: "expansion_failed";
127
182
  no_vector_index: "no_vector_index";
128
183
  partial_index: "partial_index";
@@ -171,6 +226,59 @@ export declare const ReadOutput: z.ZodObject<{
171
226
  n: z.ZodNumber;
172
227
  text: z.ZodString;
173
228
  confidence: z.ZodOptional<z.ZodNumber>;
229
+ memory: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
230
+ status: z.ZodLiteral<"qualified">;
231
+ id: z.ZodString;
232
+ level: z.ZodLiteral<1>;
233
+ kind: z.ZodEnum<{
234
+ question: "question";
235
+ claim: "claim";
236
+ decision: "decision";
237
+ preference: "preference";
238
+ plan: "plan";
239
+ event: "event";
240
+ }>;
241
+ subject: z.ZodString;
242
+ source_role: z.ZodEnum<{
243
+ unknown: "unknown";
244
+ user: "user";
245
+ assistant: "assistant";
246
+ external: "external";
247
+ }>;
248
+ source_speaker: z.ZodOptional<z.ZodString>;
249
+ commitment: z.ZodEnum<{
250
+ none: "none";
251
+ asserted: "asserted";
252
+ tentative: "tentative";
253
+ hypothetical: "hypothetical";
254
+ counterfactual: "counterfactual";
255
+ }>;
256
+ disposition: z.ZodEnum<{
257
+ active: "active";
258
+ proposed: "proposed";
259
+ accepted: "accepted";
260
+ rejected: "rejected";
261
+ resolved: "resolved";
262
+ cancelled: "cancelled";
263
+ completed: "completed";
264
+ superseded: "superseded";
265
+ }>;
266
+ polarity: z.ZodEnum<{
267
+ affirmed: "affirmed";
268
+ negated: "negated";
269
+ }>;
270
+ basis: z.ZodEnum<{
271
+ self_attested: "self_attested";
272
+ source_report: "source_report";
273
+ cited_evidence: "cited_evidence";
274
+ system_record: "system_record";
275
+ }>;
276
+ answer_eligible: z.ZodBoolean;
277
+ }, z.core.$strip>, z.ZodObject<{
278
+ status: z.ZodLiteral<"unavailable">;
279
+ id: z.ZodString;
280
+ answer_eligible: z.ZodLiteral<false>;
281
+ }, z.core.$strip>], "status">>;
174
282
  fact: z.ZodOptional<z.ZodString>;
175
283
  }, z.core.$strip>>;
176
284
  source_fence_line: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -1 +1 @@
1
- {"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../src/ops/read.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,oFAAoF;AACpF,eAAO,MAAM,SAAS;;;;;;iBAelB,CAAC;AACL,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC;AAElD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0BnB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEhD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;iBAavB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGrB,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../src/ops/read.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,oFAAoF;AACpF,eAAO,MAAM,SAAS;;;;;;iBAelB,CAAC;AACL,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC;AAElD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0BnB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEhD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;iBAavB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGrB,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
@@ -62,6 +62,8 @@ export declare const RecallOutput: z.ZodObject<{
62
62
  embedding_failed: "embedding_failed";
63
63
  rerank_failed: "rerank_failed";
64
64
  derive_failed: "derive_failed";
65
+ retain_verification_failed: "retain_verification_failed";
66
+ retain_apply_failed: "retain_apply_failed";
65
67
  expansion_failed: "expansion_failed";
66
68
  no_vector_index: "no_vector_index";
67
69
  partial_index: "partial_index";
@@ -96,6 +98,59 @@ export declare const RecallOutput: z.ZodObject<{
96
98
  n: z.ZodNumber;
97
99
  text: z.ZodString;
98
100
  confidence: z.ZodOptional<z.ZodNumber>;
101
+ memory: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
102
+ status: z.ZodLiteral<"qualified">;
103
+ id: z.ZodString;
104
+ level: z.ZodLiteral<1>;
105
+ kind: z.ZodEnum<{
106
+ question: "question";
107
+ claim: "claim";
108
+ decision: "decision";
109
+ preference: "preference";
110
+ plan: "plan";
111
+ event: "event";
112
+ }>;
113
+ subject: z.ZodString;
114
+ source_role: z.ZodEnum<{
115
+ unknown: "unknown";
116
+ user: "user";
117
+ assistant: "assistant";
118
+ external: "external";
119
+ }>;
120
+ source_speaker: z.ZodOptional<z.ZodString>;
121
+ commitment: z.ZodEnum<{
122
+ none: "none";
123
+ asserted: "asserted";
124
+ tentative: "tentative";
125
+ hypothetical: "hypothetical";
126
+ counterfactual: "counterfactual";
127
+ }>;
128
+ disposition: z.ZodEnum<{
129
+ active: "active";
130
+ proposed: "proposed";
131
+ accepted: "accepted";
132
+ rejected: "rejected";
133
+ resolved: "resolved";
134
+ cancelled: "cancelled";
135
+ completed: "completed";
136
+ superseded: "superseded";
137
+ }>;
138
+ polarity: z.ZodEnum<{
139
+ affirmed: "affirmed";
140
+ negated: "negated";
141
+ }>;
142
+ basis: z.ZodEnum<{
143
+ self_attested: "self_attested";
144
+ source_report: "source_report";
145
+ cited_evidence: "cited_evidence";
146
+ system_record: "system_record";
147
+ }>;
148
+ answer_eligible: z.ZodBoolean;
149
+ }, z.core.$strip>, z.ZodObject<{
150
+ status: z.ZodLiteral<"unavailable">;
151
+ id: z.ZodString;
152
+ answer_eligible: z.ZodLiteral<false>;
153
+ }, z.core.$strip>], "status">>;
99
154
  fact: z.ZodOptional<z.ZodString>;
100
155
  }, z.core.$strip>>;
101
156
  superseded: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -139,11 +194,11 @@ export declare const RecallOutput: z.ZodObject<{
139
194
  seed: z.ZodObject<{
140
195
  id: z.ZodString;
141
196
  kind: z.ZodEnum<{
197
+ event: "event";
142
198
  fact: "fact";
143
199
  entity: "entity";
144
200
  page: "page";
145
201
  document: "document";
146
- event: "event";
147
202
  }>;
148
203
  slug: z.ZodOptional<z.ZodString>;
149
204
  label: z.ZodOptional<z.ZodString>;
@@ -178,11 +233,11 @@ export declare const RecallOutput: z.ZodObject<{
178
233
  target: z.ZodObject<{
179
234
  id: z.ZodString;
180
235
  kind: z.ZodEnum<{
236
+ event: "event";
181
237
  fact: "fact";
182
238
  entity: "entity";
183
239
  page: "page";
184
240
  document: "document";
185
- event: "event";
186
241
  }>;
187
242
  slug: z.ZodOptional<z.ZodString>;
188
243
  label: z.ZodOptional<z.ZodString>;
@@ -217,11 +272,11 @@ export declare const RecallOutput: z.ZodObject<{
217
272
  nodes: z.ZodArray<z.ZodObject<{
218
273
  id: z.ZodString;
219
274
  kind: z.ZodEnum<{
275
+ event: "event";
220
276
  fact: "fact";
221
277
  entity: "entity";
222
278
  page: "page";
223
279
  document: "document";
224
- event: "event";
225
280
  }>;
226
281
  slug: z.ZodOptional<z.ZodString>;
227
282
  label: z.ZodOptional<z.ZodString>;
@@ -349,11 +404,11 @@ export declare const RecallOutput: z.ZodObject<{
349
404
  seed: z.ZodObject<{
350
405
  id: z.ZodString;
351
406
  kind: z.ZodEnum<{
407
+ event: "event";
352
408
  fact: "fact";
353
409
  entity: "entity";
354
410
  page: "page";
355
411
  document: "document";
356
- event: "event";
357
412
  }>;
358
413
  slug: z.ZodOptional<z.ZodString>;
359
414
  label: z.ZodOptional<z.ZodString>;
@@ -388,11 +443,11 @@ export declare const RecallOutput: z.ZodObject<{
388
443
  target: z.ZodObject<{
389
444
  id: z.ZodString;
390
445
  kind: z.ZodEnum<{
446
+ event: "event";
391
447
  fact: "fact";
392
448
  entity: "entity";
393
449
  page: "page";
394
450
  document: "document";
395
- event: "event";
396
451
  }>;
397
452
  slug: z.ZodOptional<z.ZodString>;
398
453
  label: z.ZodOptional<z.ZodString>;
@@ -427,11 +482,11 @@ export declare const RecallOutput: z.ZodObject<{
427
482
  nodes: z.ZodArray<z.ZodObject<{
428
483
  id: z.ZodString;
429
484
  kind: z.ZodEnum<{
485
+ event: "event";
430
486
  fact: "fact";
431
487
  entity: "entity";
432
488
  page: "page";
433
489
  document: "document";
434
- event: "event";
435
490
  }>;
436
491
  slug: z.ZodOptional<z.ZodString>;
437
492
  label: z.ZodOptional<z.ZodString>;
@@ -1 +1 @@
1
- {"version":3,"file":"recall.d.ts","sourceRoot":"","sources":["../../src/ops/recall.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0BtB,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA4BvB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