@absolutejs/rag 0.22.12 → 0.22.13

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.
@@ -35,6 +35,16 @@ export type ResearchResult<T = unknown> = {
35
35
  text: string;
36
36
  originalChars: number;
37
37
  }>;
38
+ sourceFailures?: Array<{
39
+ url: string;
40
+ code: string;
41
+ message: string;
42
+ }>;
43
+ coverage?: {
44
+ requested: number;
45
+ supported: number;
46
+ complete: boolean;
47
+ };
38
48
  id: string;
39
49
  status: "reviewed" | "partial" | "empty" | "unavailable";
40
50
  /** Only populated when every primitive field passed evidence review. */
@@ -53,6 +63,12 @@ export type ResearchResult<T = unknown> = {
53
63
  };
54
64
  export type ResearchTask<S extends ResearchSchema = ResearchSchema> = {
55
65
  schema: S;
66
+ /** Count only items whose required fields passed evidence review. JSON pointer to an array. */
67
+ collection?: {
68
+ path: string;
69
+ minimum: number;
70
+ requiredFields: string[];
71
+ };
56
72
  instructions?: string;
57
73
  };
58
74
  export type ResearchInput = {
package/dist/web/index.js CHANGED
@@ -117886,7 +117886,7 @@ var createWebpageReaderClient = (options) => {
117886
117886
  });
117887
117887
  if (result.status === "error") {
117888
117888
  const error = result.error;
117889
- throw new Error(error?.message ?? "Isolated page read failed");
117889
+ throw new WebReadError(error?.code ?? "reader_unavailable", error?.message ?? "Isolated page read failed");
117890
117890
  }
117891
117891
  const documents = result.documents;
117892
117892
  const sources = result.sources;
@@ -118095,5 +118095,5 @@ export {
118095
118095
  validatePublicWebUrl
118096
118096
  };
118097
118097
 
118098
- //# debugId=ED6DDC20D653823F64756E2164756E21
118098
+ //# debugId=ABABDE704004D4F764756E2164756E21
118099
118099
  //# sourceMappingURL=index.js.map