llm-large-files 0.10.0 → 0.10.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.
package/CHANGELOG.md CHANGED
@@ -36,6 +36,51 @@ Grouped by area. One or two lines each, written for an app developer, with the n
36
36
  matter.
37
37
  -->
38
38
 
39
+ ## 0.10.1 — 2026-11-25
40
+
41
+ A patch from the review of 0.10.0 against its code: a few pages said more, or less, than the code
42
+ does, `checkCitations` read a line number written with commas as its first digits, and one test
43
+ failed on a slow runner. The text sent to the model is the same as 0.10.0's.
44
+
45
+ ### Upgrading: what you need to change
46
+
47
+ Nothing. Code written for 0.10.0 compiles as it is, and the requests are byte for byte those of
48
+ 0.10.0.
49
+
50
+ ### New: what you can add
51
+
52
+ - `HeaderSource` and `HeaderContext` are exported: the type of `vertexAi({ headers })` and of a
53
+ headers function that takes `{ refresh }`
54
+ ([VertexAiOptions](docs/reference/gemini.md#vertexaioptions)).
55
+
56
+ ### Fixed
57
+
58
+ - **`checkCitations` read "(app.log L1,200)" as line 1.** A number written in groups of three after
59
+ commas is now one number ("L1,200", "line 12,345", "שורה 1,200"), in `AskResult.citations` too;
60
+ "L1,20" is still line 1.
61
+ - **Docs that did not match the code:**
62
+ - after a whole-file read with `output: "items"`, only the lines of its items count as shown, not
63
+ the whole file ([`CitationCheck`](docs/reference/ask.md#citationcheck));
64
+ - a reply over a table sent whole that ended for a reason asking again cannot mend (`"other"`) is
65
+ not asked for again ([Tables sent whole](docs/guides/costs-and-limits.md#tables-sent-whole));
66
+ - `body` of `askGemini` and `gemini()` reaches the chat requests, not the part reads of a
67
+ whole-file read, which take `analysisBody`: the upgrade guide's worked example labelled only
68
+ the chat requests, and now sets both
69
+ ([The worked example](docs/upgrading-0.10.md#the-worked-example));
70
+ - `has("aggregate_table")` is true while the text tools are declared; of two keyword passages with
71
+ one score, the one met first comes first, not always the earlier in the file;
72
+ `maxStuckStoreCalls` is half the libuv pool, at least 1; a Gemini error in a stream is retried
73
+ for 408 and 409 too; its `code` is its status only from 400 to 599; `location` is not checked
74
+ when `host` is given; the printed `VertexAiOptions` shows the fields it refuses;
75
+ - the 0.10.0 entry below and the upgrade guide: what the opt-outs do not give back (also the
76
+ prompts of merges, the answer to an unknown tool, and results cut in tokens), which finish
77
+ reasons 0.9 already did not ask again for, the 3-row rule (for tables sent whole only), the
78
+ item check (it takes out a short `\u` escape), and the mocks that need `stats` and `toolsFor`;
79
+ - `docs/measurements.md` listed thought signatures of earlier questions as if 0.10.0 sent them:
80
+ it ran them as a probe, and sends none.
81
+ - **Tests:** a search test that stops at a 5 ms budget ran out of time before its first match on a
82
+ Windows runner; it now doubles the budget until a scan finds lines.
83
+
39
84
  ## 0.10.0 — 2026-11-25
40
85
 
41
86
  Counts that are right and a cost that is bounded, for a chatbot on Gemini. Tables sent whole get
@@ -139,7 +184,10 @@ Some behavior is different. Check each point against your app:
139
184
  - **What the opt-outs do not give back.** `inlineTables: "text"` and `numberInline: false` each
140
185
  give 0.9's bytes for what they cover. With both, these stay: the `whole_file` hint of a
141
186
  `read_document` result cut short, and the `filter_note` of `aggregate_table`; the declaration of
142
- `analyze_whole_document` and the prompts of its part reads (M8); and the card sizes of LLF-059
187
+ `analyze_whole_document` and the prompts of its part reads and merges (M8); the card sizes of
188
+ LLF-059; the loop's own answer to a call of an unknown tool ("Unknown tool “x”. The tools are:
189
+ …", LLF-049); and tool results cut to their room in tokens, at each document's own characters per
190
+ token, so a result cut at the room differs from 0.9's
143
191
  ([What has a way back](docs/upgrading-0.10.md#going-back-to-09s-text)).
144
192
  - **Rolling deploys.** What 0.10.0 stores is what 0.9 stores, so servers of both versions share a
145
193
  store and nothing fails. But they send different text, so a chat answered by 0.9 and 0.10 servers
@@ -180,7 +228,8 @@ Some behavior is different. Check each point against your app:
180
228
  - **Filtered and cut answers say so.** `result.finish` tells how the answer ended, an
181
229
  `answer_filtered` or `answer_cut` notice comes before `run.finish`, and a reply that a filter or
182
230
  another reason that asking again cannot mend ended (`finish` `"filtered"` or `"other"`) is not
183
- asked for again: 2 requests over a searched file, where 0.9 made 4. Gemini's `MODEL_ARMOR`,
231
+ asked for again. 0.9 already stopped so after the filters it knew; a reason it did not know made
232
+ 4 requests over a searched file, and now makes 2. Gemini's `MODEL_ARMOR`,
184
233
  `IMAGE_PROHIBITED_CONTENT`, `IMAGE_RECITATION` and `IMAGE_OTHER` are now `"filtered"` (as
185
234
  `IMAGE_SAFETY` was), and `OTHER`, `LANGUAGE` and four more `"other"`; they gave no finish.
186
235
  `MALFORMED_RESPONSE` is now `"malformed_call"`: the turn is asked for once more.
@@ -314,7 +363,7 @@ await chats.updateOne({ _id: chatId }, {
314
363
  tokens.
315
364
  - A reply ended by a reason that asking again cannot mend (`"filtered"`, `"other"`) is neither
316
365
  nudged nor asked for again. Over files sent whole alone (nothing searched or viewed), one with no
317
- text ends the question without a closing request. Otherwise the closing request is made once, and
366
+ text that ended so, or at the output limit, ends the question without a closing request. Otherwise the closing request is made once, and
318
367
  a filtered closing is not asked for again.
319
368
  - The room for tool results is shared in tokens, at each document's own characters per token. A
320
369
  result that would still pass the room is cut before the model gets it, in call order.
@@ -323,7 +372,9 @@ await chats.updateOne({ _id: chatId }, {
323
372
 
324
373
  **Tables, numbers and citations**
325
374
 
326
- - A file counts as having a table when it has 3 rows of one table.
375
+ - A file sent whole counts as having a table, for the tools of `inlineTables: "tools"`, when it has
376
+ 3 rows of one table. Whether a searched file gets `aggregate_table` is decided by its format, as
377
+ in 0.9.
327
378
  - `aggregate_table`: a filter that orders a column (`>`, `>=`, `<`, `<=`) against a value that
328
379
  names another column compares the two cells of each row, and says so in `filter_note`. A column
329
380
  letter works in every table. Over a table sent whole, a grouped result ends with a `cite` line.
@@ -338,7 +389,8 @@ await chats.updateOne({ _id: chatId }, {
338
389
  - `analyze_whole_document` keeps 0.9.0's description word for word: items are told in `output`
339
390
  only. A new description made Gemini 3.5 Flash-Lite skip whole reads.
340
391
  - The item check counts a quote near its named line as verified (up to one letter in five
341
- differs), finds a clause's line by the number it starts with, and repairs short `\u` escapes. The
392
+ differs), finds a clause's line by the number it starts with, and takes out a `\u` escape with
393
+ fewer than four hex digits, which a model writes by mistake (the near check allows for the gap). The
342
394
  rule asks for five to twelve words of the line, copied exactly.
343
395
  - A whole read with more parts than `ToolCallLimits.maxRequests` is refused before any request; one
344
396
  given `maxRequests` stops merging at it (`notes_left_out`, or `notes_only` when no request is left
@@ -417,8 +469,10 @@ await chats.updateOne({ _id: chatId }, {
417
469
  - **N12:** a whole-file read passed `limits.requests`: 40 requests against 32, 42 through
418
470
  `askWithFiles`.
419
471
  - **A6, NEW-filtered-answer:** a reply that Gemini ended with `MODEL_ARMOR`, `OTHER`, `LANGUAGE` or
420
- another reason the library did not know cost 4 requests and gave no finish, and a filtered or
421
- cut answer read as complete ("The employee's medical leave was", `answered: true`).
472
+ another reason 0.9 did not know (the image filters, `NO_IMAGE`, `TOO_MANY_TOOL_CALLS`,
473
+ `MISSING_THOUGHT_SIGNATURE`) cost 4 requests and gave no finish, and a filtered or cut answer
474
+ read as complete ("The employee's medical leave was", `answered: true`). A reason 0.10.0 does not
475
+ know either is still asked for again.
422
476
  - **LO-7:** with `eventResults`, event plans held owner, scope, sha256 and original at run time.
423
477
  - `alreadyShown` could point to a result that `onToolResult` replaced.
424
478
 
@@ -1 +1 @@
1
- {"version":3,"file":"citations.d.ts","sourceRoot":"","sources":["../src/citations.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,KAAK,QAAQ,EAAoB,MAAM,eAAe,CAAC;AAC7E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,uFAAuF;AACvF,MAAM,MAAM,aAAa,GAAG;IAC1B,8CAA8C;IAC9C,OAAO,EAAE,MAAM,CAAC;IAChB,0FAA0F;IAC1F,SAAS,EAAE,MAAM,CAAC;IAClB,iHAAiH;IACjH,SAAS,EAAE,MAAM,CAAC;IAClB,wFAAwF;IACxF,WAAW,EAAE,KAAK,CAAC;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACxD,CAAC;AA6NF;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,GAAG,aAAa,CAwCzJ"}
1
+ {"version":3,"file":"citations.d.ts","sourceRoot":"","sources":["../src/citations.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,KAAK,QAAQ,EAAoB,MAAM,eAAe,CAAC;AAC7E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,uFAAuF;AACvF,MAAM,MAAM,aAAa,GAAG;IAC1B,8CAA8C;IAC9C,OAAO,EAAE,MAAM,CAAC;IAChB,0FAA0F;IAC1F,SAAS,EAAE,MAAM,CAAC;IAClB,iHAAiH;IACjH,SAAS,EAAE,MAAM,CAAC;IAClB,wFAAwF;IACxF,WAAW,EAAE,KAAK,CAAC;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACxD,CAAC;AAoOF;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,GAAG,aAAa,CAwCzJ"}
package/dist/citations.js CHANGED
@@ -16,19 +16,26 @@ const EDGE_AFTER = String.raw `(?![\p{L}\p{N}_])`;
16
16
  const RANGE_END = String.raw `(?:\s*[-–—־]\s*|\s+(?:to|עד)\s+)`;
17
17
  /** "L" or "l", and a space at most, before a line number: "L12", "l12", "L 12". */
18
18
  const LINE_LETTER = String.raw `[Ll][  ]?`;
19
+ /**
20
+ * A line number: digits, or digits in groups of three after commas ("1,200", "12,345,678"), as a
21
+ * model writes a large number. "L12,14" is line 12, then something else: a group has three digits.
22
+ */
23
+ const NUMBER = String.raw `(\d{1,3}(?:,\d{3}){1,2}|\d{1,9})`;
24
+ /** The value of a line number as `NUMBER` reads it: its commas left out. */
25
+ const numberOf = (written) => Number(written.replaceAll(",", ""));
19
26
  /**
20
27
  * The forms of a citation, each with the numbers it names:
21
- * - "L12", "L12-14", "L12-L14", "L 12", "l12": lines, as the tools and the closing request write them;
28
+ * - "L12", "L12-14", "L12-L14", "L 12", "l12", "L1,200": lines, as the tools and the closing request write them;
22
29
  * - "line 12", "lines 12-14": lines, in words;
23
30
  * - "Row 12": a row, which for a workbook may be Excel's row and not a line;
24
31
  * - "שורה 12", "שורות 12-14", with a prefix letter ("בשורה 12") or "מס'": in Hebrew "שורה" is
25
32
  * both a line and a row.
26
33
  */
27
34
  const FORMS = [
28
- { pattern: new RegExp(String.raw `${EDGE_BEFORE}${LINE_LETTER}(\d{1,9})(?:${RANGE_END}(?:${LINE_LETTER})?(\d{1,9}))?${EDGE_AFTER}`, "gu"), form: "line", bare: true },
29
- { pattern: new RegExp(String.raw `${EDGE_BEFORE}[Ll]ines?\s+(\d{1,9})(?:${RANGE_END}(\d{1,9}))?${EDGE_AFTER}`, "gu"), form: "line", bare: false },
30
- { pattern: new RegExp(String.raw `${EDGE_BEFORE}[Rr]ows?\s+(\d{1,9})(?:${RANGE_END}(\d{1,9}))?${EDGE_AFTER}`, "gu"), form: "row", bare: false },
31
- { pattern: new RegExp(String.raw `${EDGE_BEFORE}[בלמוהכש]{0,2}שור(?:ה|ות)\s+(?:(?:מס['׳]?|מספר)\s*)?(\d{1,9})(?:${RANGE_END}(\d{1,9}))?${EDGE_AFTER}`, "gu"), form: "row", bare: false },
35
+ { pattern: new RegExp(String.raw `${EDGE_BEFORE}${LINE_LETTER}${NUMBER}(?:${RANGE_END}(?:${LINE_LETTER})?${NUMBER})?${EDGE_AFTER}`, "gu"), form: "line", bare: true },
36
+ { pattern: new RegExp(String.raw `${EDGE_BEFORE}[Ll]ines?\s+${NUMBER}(?:${RANGE_END}${NUMBER})?${EDGE_AFTER}`, "gu"), form: "line", bare: false },
37
+ { pattern: new RegExp(String.raw `${EDGE_BEFORE}[Rr]ows?\s+${NUMBER}(?:${RANGE_END}${NUMBER})?${EDGE_AFTER}`, "gu"), form: "row", bare: false },
38
+ { pattern: new RegExp(String.raw `${EDGE_BEFORE}[בלמוהכש]{0,2}שור(?:ה|ות)\s+(?:(?:מס['׳]?|מספר)\s*)?${NUMBER}(?:${RANGE_END}${NUMBER})?${EDGE_AFTER}`, "gu"), form: "row", bare: false },
32
39
  ];
33
40
  /** How far, in characters on one line, a file name may be from the citation it goes with. */
34
41
  const NAME_DISTANCE = 40;
@@ -78,8 +85,8 @@ function citationsIn(text) {
78
85
  next++;
79
86
  if (next < kept.length && kept[next].start < end)
80
87
  continue;
81
- const first = Number(match[1]);
82
- const second = match[2] === undefined ? first : Number(match[2]);
88
+ const first = numberOf(match[1]);
89
+ const second = match[2] === undefined ? first : numberOf(match[2]);
83
90
  if (first < 1 || second < 1)
84
91
  continue;
85
92
  added.push({ start, end, from: Math.min(first, second), to: Math.max(first, second), form, bare });
@@ -1 +1 @@
1
- {"version":3,"file":"citations.js","sourceRoot":"","sources":["../src/citations.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,OAAO,EAAE,WAAW,EAAmC,MAAM,eAAe,CAAC;AAqB7E;;;GAGG;AACH,MAAM,MAAM,GAAG,eAAe,CAAC;AAC/B,2IAA2I;AAC3I,MAAM,eAAe,GAAG,eAAe,CAAC;AACxC,mHAAmH;AACnH,MAAM,KAAK,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAA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,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,SAAS,CAAC;YAAE,KAAK,CAAC,SAAS,EAAE,CAAC;;YAC7D,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAE,CAAC,IAAI,KAAK,CAAC,CAAC,CAAE,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAE,EAAE,CAAC,CAAC;IACrG,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
package/dist/events.d.ts CHANGED
@@ -70,7 +70,8 @@ export type RequestPurpose = "turn" | "nudge" | "closing" | "answer_again" | "di
70
70
  * - "error": it ran, or was checked, and returned `{ error }` (bad arguments, a document it cannot
71
71
  * read, a regex that took too long…), or it was ended because its turn failed (the question was
72
72
  * stopped, or a listener threw): then the model was sent nothing;
73
- * - "refused": it was not run, for a limit of the question (cost, room, reads of a whole file);
73
+ * - "refused": it was not run: for a limit of the question (cost, room, reads of a whole file), a
74
+ * tool the question does not have (since 0.10.0), or a `{ reject }` of `onToolResult` (0.10.0);
74
75
  * - "already_shown": it repeated a call whose result is still in the conversation, and was answered
75
76
  * with a pointer to it;
76
77
  * - "not_run": the turn had more calls than `limits.callsPerTurn`;
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAoE,KAAK,sBAAsB,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAClJ,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,EAA6D,KAAK,cAAc,EAAE,KAAK,UAAU,EAAE,KAAK,UAAU,EAAE,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC7J,OAAO,KAAK,EAAE,cAAc,EAA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CAAC,MAAM,CAAC,aAAa,CAAC;YACpB,IAAI,QAAQ;gBAAE,MAAM,IAAI,SAAS,CAAC,gCAAgC,CAAC,CAAC;YACpE,QAAQ,GAAG,IAAI,CAAC;YAChB,OAAO;gBACL,IAAI;oBACF,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC;wBAAE,OAAO,OAAO,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAG,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;oBACrF,IAAI,QAAQ,IAAI,MAAM;wBAAE,OAAO,OAAO,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;oBACjF,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;gBACzD,CAAC;gBACD,KAAK,CAAC,MAAM;oBACV,IAAI,CAAC,QAAQ,IAAI,CAAC,MAAM;wBAAE,UAAU,CAAC,KAAK,CAAC,IAAI,YAAY,CAAC,gCAAgC,EAAE,YAAY,CAAC,CAAC,CAAC;oBAC7G,MAAM,GAAG,IAAI,CAAC;oBACd,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;oBACjB,aAAa,EAAE,CAAC;oBAChB,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;gBAC1C,CAAC;aACF,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC"}
package/dist/index.d.ts CHANGED
@@ -17,7 +17,7 @@ export type { RetryNotice, RetryOptions } from "./retry.js";
17
17
  export { parseSseJson, SseEventTooLongError } from "./sse.js";
18
18
  export type { SseHooks } from "./sse.js";
19
19
  export { DEFAULT_FIRST_BYTE_TIMEOUT_MS, DEFAULT_IDLE_TIMEOUT_MS } from "./http.js";
20
- export type { IdleWaits } from "./http.js";
20
+ export type { HeaderContext, HeaderSource, IdleWaits } from "./http.js";
21
21
  export { DocumentScopeError, DocumentStoreError, IngestError, ingestErrorCodeOf } from "./errors.js";
22
22
  export type { DocumentScopeErrorCode, DocumentStoreOperation, IngestErrorCode } from "./errors.js";
23
23
  export { errorInfoOf } from "./error-info.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,4BAA4B,EAAE,YAAY,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAC7N,YAAY,EAAE,aAAa,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,iBAAiB,EAAE,eAAe,EAAE,mBAAmB,EAAE,eAAe,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACrO,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5D,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC5L,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AACxJ,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,WAAW,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACvI,YAAY,EACV,WAAW,EACX,eAAe,EACf,cAAc,EACd,QAAQ,EACR,YAAY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aAAa,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACrG,YAAY,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnG,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClL,YAAY,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACnF,YAAY,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,wBAAwB,EAAE,eAAe,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACvI,mBAAmB,YAAY,CAAC"}
@@ -714,8 +714,9 @@ that counts and sums over it are exact, not made by eye. What a question costs t
714
714
  with a tool anyway, which takes 2 requests: in the live checks of 0.10.0, Flash-Lite did so for
715
715
  about half of these questions, and Flash rarely
716
716
  ([measurements](../measurements.md#tables-sent-whole-p1s-live-gate)). A reply that ends with no
717
- text and no call, and not by a filter or the output limit, is asked again once with a note, as in
718
- any question: one request more, with the table.
717
+ text and no call, and not by a filter, the output limit or another reason that asking again does
718
+ not mend (`finish: "other"`), is asked again once with a note, as in any question: one request
719
+ more, with the table.
719
720
  - **A count** takes about 3 requests: one that calls `aggregate_table` (or an exact search), one
720
721
  that answers from its result, and sometimes one more call. Each sends the table again. For a CSV
721
722
  of 3,000 invoices (113,000 estimated tokens, 131,000 with its lines numbered), one request of 0.9
@@ -744,7 +744,8 @@ New in 0.10.0. A store that stops answering no longer holds a question forever.
744
744
  the library has a time limit, `storeTimeoutMs` (30 s by default): past it, the call is a
745
745
  `DocumentStoreError` of code `"ETIMEDOUT"`, a 503 to retry. In a question it ends the question with
746
746
  `run.error`, and the model sees no new text. While too many calls of the process are stuck past
747
- their limit (`maxStuckStoreCalls`, half of `UV_THREADPOOL_SIZE`), store calls fail at once with code
747
+ their limit (`maxStuckStoreCalls`, half of the libuv pool, at least 1: 2 when `UV_THREADPOOL_SIZE`
748
+ is unset), store calls fail at once with code
748
749
  `"STORE_STUCK"`, 503 too, so that the server keeps its threads for everything else. Both are
749
750
  category `"store"` for `errorInfoOf`: the words of the `"store"` case above fit them ("try again in
750
751
  a moment"). [Deployment](./deployment.md#a-store-that-stops-answering) says how to size the limits
@@ -662,7 +662,7 @@ not an overflow.
662
662
  | A conflict | 409 | `"invalid"` | Yes |
663
663
  | A gateway refused the body as too large | 413 | `"context_overflow"` | Made smaller, as in [A request too large](#a-request-too-large) |
664
664
  | Gemini failed on its side | 5xx | `"server"` | Yes |
665
- | An error inside a stream, or in a body of HTTP 200, without a numeric code | The status of its `google.rpc` name: `"UNAVAILABLE"` 503, `"RESOURCE_EXHAUSTED"` 429, `"DEADLINE_EXCEEDED"` 504, `"INVALID_ARGUMENT"` 400 …; 500 for a name it does not know. Before 0.10.0, 200. | By the status | Yes for 429 and 5xx, unless text was shown; a daily quota is `"quota"`, and is not |
665
+ | An error inside a stream, or in a body of HTTP 200, without a numeric code | The status of its `google.rpc` name: `"UNAVAILABLE"` 503, `"RESOURCE_EXHAUSTED"` 429, `"DEADLINE_EXCEEDED"` 504, `"INVALID_ARGUMENT"` 400 …; 500 for a name it does not know. Before 0.10.0, 200. | By the status | Yes for 408, 409, 429 and 5xx (`"ABORTED"` and `"ALREADY_EXISTS"` are 409), unless text was shown; a daily quota is `"quota"`, and is not |
666
666
  | Nothing came for `firstByteTimeoutMs` or `idleTimeoutMs` | 0 | `"timeout"` | Once |
667
667
  | A part read took longer than `timeoutMs` | 0 | `"timeout"` | Once (since 0.10.0) |
668
668
  | The connection failed, or a stream ended before its `finishReason` | 0 | `"unreachable"` | Yes, unless text was shown |
@@ -18,8 +18,8 @@ as it was recorded, with the release it was recorded for. Before you rely on a n
18
18
  probe that reproduced a fault, and so does this page.
19
19
  - **Version** is the release a result was recorded for. 0.1.0 is of 2026-11-06, 0.2.0 and 0.3.0 of
20
20
  2026-11-10, 0.3.5 and 0.3.6 of 2026-11-11, 0.4.0 of 2026-11-12, and 0.4.1 and 0.5.0 of
21
- 2026-11-13. The checks of 0.6.0 are of November 2026. The live results of 0.10.0, not released
22
- yet, are of 2026-11-24. All live results are of November 2026.
21
+ 2026-11-13. The checks of 0.6.0 are of November 2026. The live results of 0.10.0 (released on
22
+ 2026-11-25) are of 2026-11-24. All live results are of November 2026.
23
23
  - **Main** is a result recorded on the code on `main` up to commit 5157e7f (2026-11-20), or on its
24
24
  branches, before the rest of 0.6.0 was written. "The 0.6 review" is the review of that code, of
25
25
  2026-11-20.
@@ -38,8 +38,8 @@ as it was recorded, with the release it was recorded for. Before you rely on a n
38
38
 
39
39
  | Provider | Live runs on record | Not run live |
40
40
  |---|---|---|
41
- | Gemini API: `askGemini`, `gemini()`, `geminiApi()` | From 0.1.0 to 0.5.0: large files, pages of PDFs, explorer pairs, follow-up questions. 0.10.0: the prompt cache, thought signatures of earlier questions, and the eval's cases at pass^3 ([below](#0100-live-on-the-gemini-api)) | Gemini 2.5 with pages (`toolFilePlacement`) and in explorer pairs: it is closed to new users on the Gemini API |
42
- | Vertex AI: `vertexAi()` | 0.3.0: pages of PDFs, in the locations `global` and `eu`. 0.3.5: explorer pairs. Main (see above): a count, a repeated search, the error of a request too large, and in the 0.6 review a production log of 3 MB | Everything of 0.10.0, among it thought signatures of earlier questions, Model Armor, `LANGUAGE` and labels |
41
+ | Gemini API: `askGemini`, `gemini()`, `geminiApi()` | From 0.1.0 to 0.5.0: large files, pages of PDFs, explorer pairs, follow-up questions. 0.10.0: the eval's cases at pass^3, and two probes: the prompt cache, and thought signatures sent back with earlier questions, which 0.10.0 does not send ([below](#0100-live-on-the-gemini-api)) | Gemini 2.5 with pages (`toolFilePlacement`) and in explorer pairs: it is closed to new users on the Gemini API |
42
+ | Vertex AI: `vertexAi()` | 0.3.0: pages of PDFs, in the locations `global` and `eu`. 0.3.5: explorer pairs. Main (see above): a count, a repeated search, the error of a request too large, and in the 0.6 review a production log of 3 MB | Everything of 0.10.0, among it Model Armor, `LANGUAGE` and labels |
43
43
  | OpenAI-compatible: `openAiCompatible()` | 0.5.0: Gemini's OpenAI layer only. 0.10.0: a streamed tool call on Gemini's OpenAI layer | Every other server: OpenAI, Azure OpenAI, DeepSeek, OpenRouter, vLLM, Ollama, LiteLLM, llama.cpp. The adapter is tested against fake servers. `pdfInput` was never run to an answer: Gemini's OpenAI layer refuses its `file` part (HTTP 400), it was not run against OpenAI itself, and it follows OpenAI's documented shape untested |
44
44
  | Claude: `anthropic()` | None | The whole adapter. It is tested against the request and response shapes of the Messages API documentation |
45
45
 
@@ -359,7 +359,7 @@ question that failed.
359
359
  | `usage` | [`UsageTotals`](#usagetotals) | Tokens and requests of the whole question, whole-file part reads included, in all and for each model by its `id`. The input of requests that reported none is in `estimatedInputTokens`. |
360
360
  | `lastUsage` | `Record<string, unknown>`, optional | The provider's own usage object of the last chat reply that had one, as it came. |
361
361
  | `finish` | `"complete" \| "cut" \| "filtered" \| "malformed_call" \| "other"`, optional | How the reply whose text is the answer ended (`ModelReply.finish`), or the last reply of the chat when none answered. Absent when the adapter does not say. `"filtered"` and `"cut"` come with an `answer_filtered` or `answer_cut` notice. New in 0.10.0. |
362
- | `citations` | [`CitationCheck`](#citationcheck), optional | The line citations of `text`, checked against the evidence of the question: a document sent whole, or read whole, counts as shown, every line it has. Set when the question had documents. New in 0.10.0. |
362
+ | `citations` | [`CitationCheck`](#citationcheck), optional | The line citations of `text`, checked against the evidence of the question: a document sent whole, or read whole for an answer, counts as shown, every line it has; a read of items, the lines of its items. Set when the question had documents. New in 0.10.0. |
363
363
 
364
364
  Guides: [conversations](../guides/conversations.md) (`toolTurns`),
365
365
  [costs and limits](../guides/costs-and-limits.md) (`usage`),
@@ -642,8 +642,10 @@ line it names was shown, by the lines of an evidence entry of that document. An
642
642
  `whole: true` (a file read whole, or sent whole) and no `lines` shows every line; one with `lines`
643
643
  (`[[1, 120]]`) shows those, so a line past the end of the file is not supported. Two documents of
644
644
  one name support it by either. `askWithFiles` counts each document sent whole, and each document
645
- read whole (`analyze_whole_document`), as shown from its first line to its last
646
- (`DocumentMeta.lines`): its `evidence` is not changed for that.
645
+ read whole for an answer (`analyze_whole_document`), as shown from its first line to its last
646
+ (`DocumentMeta.lines`): its `evidence` is not changed for that. A read with `output: "items"` shows
647
+ the lines of its items only (its evidence has them as `lines`), so a citation of another line of
648
+ that file is not supported.
647
649
 
648
650
  | Field | Type | What it holds |
649
651
  |---|---|---|
@@ -107,7 +107,7 @@ The endpoint of a Gemini model on Vertex AI, signed in with an OAuth access toke
107
107
  | `project` | `string` | required with `accessToken` | The Google Cloud project ID. URL-encoded into the path. Not with `apiKey`. |
108
108
  | `model` | `string` | required | The model that answers, under `publishers/google/models/`. Without an explorer it also makes the tool calls. |
109
109
  | `explorerModel` | `string \| undefined` | none | A second model that explores the documents, with the same rules as in [`geminiApi()`](#geminiapioptions). It is in the same project and location. |
110
- | `location` | `string` | `"global"` | Where the requests are served. It picks the host ([`vertexHost()`](#vertexhostlocation)) and is the `locations/{location}` segment of the path. It must be lowercase letters, digits and single hyphens (`"global"`, `"us"`, `"europe-west4"`): anything else throws a `TypeError`, since 0.7.1. Not with `apiKey`. |
110
+ | `location` | `string` | `"global"` | Where the requests are served. It picks the host ([`vertexHost()`](#vertexhostlocation)) and is the `locations/{location}` segment of the path. It must be lowercase letters, digits and single hyphens (`"global"`, `"us"`, `"europe-west4"`): anything else throws a `TypeError`, since 0.7.1 (with `host`, it is not checked, only URL-encoded). Not with `apiKey`. |
111
111
  | `accessToken` | `string \| ((context: { refresh: boolean }) => string \| Promise<string>)` | required without `apiKey` | Sent as `Authorization: Bearer {token}`. A function is called before every request, chat requests and part reads of both models alike, so it can return a renewed token. Since 0.10.0 it is called with `{ refresh: true }` when the token it gave was refused with HTTP 401: return a new token then, not the one kept in a cache. A function of no arguments still fits. |
112
112
  | `apiKey` | `string` | none | The API key of Vertex AI express mode, sent as the `x-goog-api-key` header. The URL then names no project or location: `{host}/{apiVersion}/publishers/google/models/{model}:generateContent`. Give `apiKey` or `project` and `accessToken`, not both. New in 0.10.0. |
113
113
  | `headers` | `Record<string, string>` or a function that returns them | none | More headers, merged after the library's: a name you give replaces the library's. A function is called before every request with the context the endpoint's `headers` get (`{ refresh: true }` after a 401). New in 0.10.0. |
@@ -164,6 +164,7 @@ type VertexAiOptions =
164
164
  project: string;
165
165
  location?: string;
166
166
  accessToken: string | ((context: { refresh: boolean }) => string | Promise<string>);
167
+ apiKey?: never;
167
168
  model: string;
168
169
  explorerModel?: string | undefined;
169
170
  headers?: HeaderSource | undefined;
@@ -172,6 +173,9 @@ type VertexAiOptions =
172
173
  }
173
174
  | {
174
175
  apiKey: string;
176
+ project?: never;
177
+ location?: never;
178
+ accessToken?: never;
175
179
  model: string;
176
180
  explorerModel?: string | undefined;
177
181
  headers?: HeaderSource | undefined;
@@ -179,11 +183,12 @@ type VertexAiOptions =
179
183
  apiVersion?: string;
180
184
  };
181
185
  // HeaderSource = Record<string, string> | ((context?: { refresh?: boolean }) => Record<string, string> | Promise<Record<string, string>>)
186
+ // HeaderSource is exported from llm-large-files since 0.10.1.
182
187
  ```
183
188
 
184
189
  The options of [`vertexAi()`](#vertexaioptions): a project with a token, or an API key of express
185
- mode. The type refuses a project with an API key, and a project without a token. New as a type of
186
- its own in 0.10.0.
190
+ mode. The type refuses a project with an API key (the `never` fields), and a project without a
191
+ token. New as a type of its own in 0.10.0.
187
192
 
188
193
  ### vertexHost(location)
189
194
 
@@ -484,7 +489,7 @@ What `send` does:
484
489
  | Case | Error | `status` | `kind` |
485
490
  |---|---|---|---|
486
491
  | Gemini answered with an HTTP error | `GeminiRequestError` with Gemini's `error.message`, or "Gemini returned HTTP 503." | The HTTP status | Told from the status, Gemini's `error.status` and `details` |
487
- | An error object inside the stream, or in a reply of HTTP 200 that is not streamed | `GeminiRequestError` with its message, or "Gemini reported an error." | Its `code` when that is a number; else, since 0.10.0, the status of its `google.rpc` name (`"UNAVAILABLE"` 503, `"RESOURCE_EXHAUSTED"` 429, `"DEADLINE_EXCEEDED"` 504, `"INVALID_ARGUMENT"` 400 …); else 500. Before 0.10.0, the response's 200, so it was not sent again. | As above |
492
+ | An error object inside the stream, or in a reply of HTTP 200 that is not streamed | `GeminiRequestError` with its message, or "Gemini reported an error." | Its `code` when that is a whole number from 400 to 599; else, since 0.10.0, the status of its `google.rpc` name (`"UNAVAILABLE"` 503, `"RESOURCE_EXHAUSTED"` 429, `"DEADLINE_EXCEEDED"` 504, `"INVALID_ARGUMENT"` 400 …); else 500. Before 0.10.0, the response's 200, so it was not sent again. | As above |
488
493
  | The connection failed, before or while the reply arrived, or an event of the stream was not JSON | `GeminiRequestError`: "Gemini could not be reached (fetch failed)." | 0 | `"unreachable"` |
489
494
  | A reply of HTTP 200 whose body is empty | `GeminiRequestError`: "Gemini could not be reached (the reply was empty).", new in 0.6.0. When the reply's type is `text/event-stream`, "Gemini's reply ended before it was complete." Either is sent again as a reply cut off on its way. | 0 | `"unreachable"` |
490
495
  | Nothing arrived for a whole wait | `GeminiRequestError`: "Gemini sent nothing for 600 s." | 0 | `"timeout"` |
@@ -251,7 +251,9 @@ language.
251
251
  matches its plain form, as inside a longer word: כסף finds כספים. New in 0.8.0.
252
252
  - A passage is a run of whole lines of about 1,500 characters, or 40 lines at most. A passage that
253
253
  contains the whole query as a phrase (more than one term, up to 200 characters) is ranked higher.
254
- - Passages come best first; of two with the same score, the one nearer the start of the file.
254
+ - Passages come best first; of two with the same score, the one the search met first. Passages are
255
+ met one query term at a time, so of two with the same score that two terms found, the earlier in
256
+ the file is not always first.
255
257
  `score` is rounded to two decimals and only orders the results. Since 0.10.0 the search keeps only
256
258
  the best passages as it goes, rather than sorting every passage it scored.
257
259
  - A query with no usable term, or with no hit, returns no passage and the note "No passage contains
@@ -1160,7 +1162,7 @@ type ToolSet = {
1160
1162
  | Member | What it does |
1161
1163
  |---|---|
1162
1164
  | `declarations` | The tools to declare to the model, in this order: `search_document`, `read_document`, `get_document_overview`, `aggregate_table`, `analyze_whole_document`, `view_pages`, those that are [offered](#which-tools-are-offered), or (since 0.10.0) exactly those `ToolOptions.declare` names, in the same order. |
1163
- | `has(name)` | `true` for each declared tool. Also `true` for `analyze_whole_document` when `generate` was given and the text tools are declared, even if it is not declared because no document is small enough: a call then gets the reason. With `ToolOptions.declare` (since 0.10.0), `true` for the declared tools alone. Use it to tell the calls of this tool set from others. |
1165
+ | `has(name)` | `true` for each declared tool. Also, while the text tools are declared, `true` for `aggregate_table` whatever the documents (a call over no table gets the reason), and for `analyze_whole_document` when `generate` was given, even if it is not declared because no document is small enough: a call then gets the reason. With `ToolOptions.declare` (since 0.10.0), `true` for the declared tools alone. Use it to tell the calls of this tool set from others. |
1164
1166
  | `execute(name, args)` | Runs a call and returns its JSON result, within the tool's own cap. Failures come back as `{ error }`, as listed above. `view_pages` answers with an error here: it returns a file. |
1165
1167
  | `executeWithFiles(name, args, limits?, hooks?)` | Runs any call with [`ToolCallLimits`](#toolcalllimits), and returns the result with the files it produced (`files` is empty for every tool but `view_pages`). Use it in a loop that can send files to the model. `hooks` ([`ToolCallHooks`](./library.md#toolcallhooks), new in 0.7.0) are listeners for this call alone: the progress of a whole-file read, in place of `ToolOptions.onProgress`, and each of its model requests with their retries; a document found gone, and a look told the server is busy (0.9.0); and its own `signal` (0.10.0, [above](#rules-for-every-tool)). |
1166
1168
  | `describe(name, args)` | A short line for a progress UI, read from the arguments the way the tool reads them: `Search app.log (exact) for “timeout”` (the query cut to 80 characters; since 0.8.0 followed by ` in lines 1941-end` with `from_line` or `to_line`, and by `, counted by hour` with `group_by` or `, the last ones` with `order: "last"` in exact and regex mode), `Read app.log lines 1200-1260` (`-1260` only when the call gave an `end_line` not below `start_line`, read as the tool reads it: since 0.10.0 an `end_line` sent as text, `"250"`, shows too, and one past the 600 lines a read shows reads as its last line), `Read all of contract.docx for “every penalty”, as a list of items` (with `output: "items"`, since 0.10.0), `Overview of app.log`, `Read all of novel.txt for “list every character”` (the task cut to 100 characters), `Look at report.pdf pages 2-3`. A cut never splits an emoji. A file not yet known is "the file"; an unknown tool is its name, as it came (`askWithFiles` labels it `Call “NAME”` instead). The line quotes the model's words as they are: show it as plain text, or clean it as `askWithFiles` does its steps. In `askWithFiles`, this line, made one line of plain text, is the `label` of the call's `tool.start` event, the line `onActivity` gets with "…", and the start of its step. |
@@ -38,8 +38,9 @@ provider's prompt cache once at the upgrade.
38
38
 
39
39
  ## Does my code compile?
40
40
 
41
- Most code does. Every new option and field is optional, and no export was removed or renamed.
42
- These do not compile:
41
+ Most code does. Every new option and field is optional, except two that the library's own objects
42
+ now have (`stats` and `toolsFor` of `CreatedLargeFiles`, and `DocumentHandlers.stats()`): a mock of
43
+ those types needs them, as the table says. No export was removed or renamed. These do not compile:
43
44
 
44
45
  | Code of yours | The error | What to write |
45
46
  |---|---|---|
@@ -152,6 +153,10 @@ What a question over a table costs:
152
153
  - **Limits sized for 0.9's one request** (`toolTurns: 1`, `requests: 1`, an `inputTokens` between
153
154
  one and two requests with the table) leave no tool turn: the question makes 0.9's one request,
154
155
  without tools.
156
+ - **With an explorer** (`explorerModel` of `askGemini`, `explorer` of `askWithFiles`), a question in
157
+ which no file is searched and a table sent whole gets the tools runs on the answering model alone:
158
+ the files sent whole are not sent to two models. In 0.9 the explorer was not used either, since
159
+ such a question had no tools.
155
160
 
156
161
  **Who:** chats whose files are sent whole.
157
162
  **What to do:** nothing, or `inlineTables: "text"` for 0.9's cost and `numberInline: false` for
@@ -201,8 +206,9 @@ limit.
201
206
 
202
207
  A reply that a filter stopped part-way was an answer like any other in 0.9. Now `result.finish`
203
208
  says how the answer ended. An `answer_filtered` or `answer_cut` notice comes before `run.finish`.
204
- A reply ended by `"filtered"` or `"other"` is not asked for again: 2 requests over a searched file,
205
- where 0.9 made 4. Gemini's `MODEL_ARMOR` and the image filters new since 0.9
209
+ A reply ended by `"filtered"` or `"other"` is not asked for again. 0.9 already stopped so after
210
+ `SAFETY` and the filters it knew; a reply ended by a reason it did not know (`MODEL_ARMOR`, `OTHER`,
211
+ `LANGUAGE` …) made 4 requests over a searched file, and now makes 2. Gemini's `MODEL_ARMOR` and the image filters new since 0.9
206
212
  (`IMAGE_PROHIBITED_CONTENT`, `IMAGE_RECITATION`, `IMAGE_OTHER`) count as `"filtered"`, as
207
213
  `IMAGE_SAFETY` did; `OTHER`, `LANGUAGE` and four more as `"other"`. `MALFORMED_RESPONSE` is now `"malformed_call"`: the turn is
208
214
  asked for once more.
@@ -259,10 +265,12 @@ The Hebrew chatbot of [the 0.9 guide](./upgrading-0.9.md#a-worked-example-a-hebr
259
265
  answers with Gemini on Vertex AI, keeps its chats in MongoDB (one record per chat, one per
260
266
  question), and stores its files on a shared volume with a folder per user and chat. Its
261
267
  `documents.ts` and its records do not change: each question's record keeps the question's text,
262
- its `toolTurns` and its answer, as in 0.9. Its `ask.ts` changes in four places:
268
+ its `toolTurns` and its answer, as in 0.9. Its `ask.ts` changes in four places (the reply still
269
+ passes `result.missing` on, as in 0.9):
263
270
 
264
271
  - the token function takes `{ refresh }`, and fetches a new token after a 401;
265
- - `body` puts billing labels on every request;
272
+ - `body` puts billing labels on every chat request, and `analysisBody` on each part read of a
273
+ whole-file read (`body` does not reach those);
266
274
  - `filteredAnswer: "drop"` drops a filtered answer;
267
275
  - `answerInfoOf` gives the Hebrew message for an answer that is not complete.
268
276
 
@@ -298,7 +306,7 @@ function historyOf(earlier: TurnRecord[], question: string): Array<ChatTurn | To
298
306
  ];
299
307
  }
300
308
 
301
- export type Answer = { status: number; text?: string; note?: string; error?: string; retryAfterMs?: number };
309
+ export type Answer = { status: number; text?: string; note?: string; missing?: string[]; error?: string; retryAfterMs?: number };
302
310
 
303
311
  export async function ask(userId: string, sessionId: string, question: string, signal: AbortSignal): Promise<Answer> {
304
312
  const session = await sessions.findOne({ _id: sessionId, userId });
@@ -310,6 +318,7 @@ export async function ask(userId: string, sessionId: string, question: string, s
310
318
  files,
311
319
  endpoint,
312
320
  body: { labels: { app: "chatbot", team: "hr" } }, // billing labels: never a user ID
321
+ analysisBody: () => ({ labels: { app: "chatbot", team: "hr" } }), // the part reads of a whole-file read
313
322
  owner: userId,
314
323
  scope: scopeOf(userId, sessionId),
315
324
  documentIds: session.files.map((file) => file.id),
@@ -322,10 +331,11 @@ export async function ask(userId: string, sessionId: string, question: string, s
322
331
  if (result.missing?.length) {
323
332
  await sessions.updateOne({ _id: sessionId, userId }, { $pull: { files: { id: { $in: result.missing } } } });
324
333
  }
334
+ const missing = result.missing ?? [];
325
335
  const info = answerInfoOf(result);
326
- if (info.complete) return { status: 200, text: result.text };
336
+ if (info.complete) return { status: 200, text: result.text, missing };
327
337
  // A cut answer has text worth reading: the message goes under it.
328
- return result.answered && result.text ? { status: 200, text: result.text, note: hebrew(info) } : { status: 200, text: hebrew(info) };
338
+ return result.answered && result.text ? { status: 200, text: result.text, note: hebrew(info), missing } : { status: 200, text: hebrew(info), missing };
329
339
  } catch (error) {
330
340
  const partial = partialResultOf(error);
331
341
  if (partial) await turns.insertOne({ ...asked, toolTurns: partial.toolTurns });
@@ -355,8 +365,8 @@ function hebrew(info: AnswerInfo): string {
355
365
  so the record keeps no answer. When the answer was streamed, the `answer_filtered` notice has
356
366
  `discardText: true`: the page takes back what it showed
357
367
  ([Filtered and cut answers](./guides/errors-and-reliability.md#filtered-and-cut-answers)).
358
- - **`body` labels** reach the project's billing export. Label by app, team or feature, never by
359
- user.
368
+ - **`body` labels** reach the project's billing export, for the chat requests; `analysisBody` gives
369
+ the part reads of a whole-file read the same labels. Label by app, team or feature, never by user.
360
370
  - **The chat misses the cache once**, at its first question after the upgrade: its files are
361
371
  numbered from then on. A follow-up still differs from its first stored round, as in 0.9
362
372
  ([The one cache miss](#the-one-cache-miss)).
@@ -364,7 +374,9 @@ function hebrew(info: AnswerInfo): string {
364
374
  ## Loops of your own
365
375
 
366
376
  `files.prepare()` keeps 0.9's plan, blocks and `instruction`, names included, unless you pass
367
- `numberInline` or `inlineTables`. With `inlineTables: "tools"` it also returns `toolable`.
377
+ `numberInline: true` or `inlineTables: "tools"` (`false` and `"text"` keep 0.9's). With
378
+ `inlineTables: "tools"` it also returns `toolable`. The card sizes of LLF-059 ("1.0M", "1 MB")
379
+ change whatever you pass.
368
380
 
369
381
  - **Line numbers and tables with tools:** pass `numberInline: true` and `inlineTables: "tools"`,
370
382
  and give the tools the files of `prepared.toolable` too, with the IDs of the files sent whole as
@@ -387,7 +399,7 @@ New options of `gemini()` and `askGemini`, each unset by default
387
399
 
388
400
  | Option | What it does |
389
401
  |---|---|
390
- | `body` | Fields merged last into every chat request: `safetySettings`, `labels`, `serviceTier`, `cachedContent` (`GeminiRequestFields`) |
402
+ | `body` | Fields merged last into every chat request (not the part reads: see `analysisBody`): `safetySettings`, `labels`, `serviceTier`, `cachedContent` (`GeminiRequestFields`). `askGemini` sends `systemInstruction` in every chat request, so `cachedContent` does not fit it ([why](./guides/vertex-and-gemini.md#fields-of-your-own-safety-settings-labels-and-more)) |
391
403
  | `explorerBody` | The same for the explorer, when it needs other fields (`askGemini`) |
392
404
  | `analysisBody` | A function of `maxOutputTokens`, merged last into each part read |
393
405
  | `functionCallingMode` | `"VALIDATED"` has Gemini check each call against its declaration; `"AUTO"` by default. Not measured live |
@@ -406,8 +418,8 @@ Before you set them:
406
418
 
407
419
  - **Labels reach the billing export** of the project, and everyone who reads it. Never put a user
408
420
  ID, an email or other personal data in them.
409
- - **`body` changes the bytes of every request**: the first request after you set it misses the
410
- cache once.
421
+ - **`body` changes the bytes of every chat request** (and `analysisBody` those of each part read):
422
+ the first request after you set it misses the cache once.
411
423
 
412
424
  ## Operations on a shared volume
413
425
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "llm-large-files",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "Let an LLM answer questions about books, logs, and other files larger than its request limit or context window: upload, plan, search and read tools, map-reduce, a look at the pages of a PDF, and one tool loop for any model. Adapters for Gemini and Vertex AI, OpenAI-compatible endpoints, and Claude.",
5
5
  "keywords": [
6
6
  "llm",
package/src/citations.ts CHANGED
@@ -37,20 +37,27 @@ const EDGE_AFTER = String.raw`(?![\p{L}\p{N}_])`;
37
37
  const RANGE_END = String.raw`(?:\s*[-–—־]\s*|\s+(?:to|עד)\s+)`;
38
38
  /** "L" or "l", and a space at most, before a line number: "L12", "l12", "L 12". */
39
39
  const LINE_LETTER = String.raw`[Ll][  ]?`;
40
+ /**
41
+ * A line number: digits, or digits in groups of three after commas ("1,200", "12,345,678"), as a
42
+ * model writes a large number. "L12,14" is line 12, then something else: a group has three digits.
43
+ */
44
+ const NUMBER = String.raw`(\d{1,3}(?:,\d{3}){1,2}|\d{1,9})`;
45
+ /** The value of a line number as `NUMBER` reads it: its commas left out. */
46
+ const numberOf = (written: string) => Number(written.replaceAll(",", ""));
40
47
 
41
48
  /**
42
49
  * The forms of a citation, each with the numbers it names:
43
- * - "L12", "L12-14", "L12-L14", "L 12", "l12": lines, as the tools and the closing request write them;
50
+ * - "L12", "L12-14", "L12-L14", "L 12", "l12", "L1,200": lines, as the tools and the closing request write them;
44
51
  * - "line 12", "lines 12-14": lines, in words;
45
52
  * - "Row 12": a row, which for a workbook may be Excel's row and not a line;
46
53
  * - "שורה 12", "שורות 12-14", with a prefix letter ("בשורה 12") or "מס'": in Hebrew "שורה" is
47
54
  * both a line and a row.
48
55
  */
49
56
  const FORMS: Array<{ pattern: RegExp; form: "line" | "row"; bare: boolean }> = [
50
- { pattern: new RegExp(String.raw`${EDGE_BEFORE}${LINE_LETTER}(\d{1,9})(?:${RANGE_END}(?:${LINE_LETTER})?(\d{1,9}))?${EDGE_AFTER}`, "gu"), form: "line", bare: true },
51
- { pattern: new RegExp(String.raw`${EDGE_BEFORE}[Ll]ines?\s+(\d{1,9})(?:${RANGE_END}(\d{1,9}))?${EDGE_AFTER}`, "gu"), form: "line", bare: false },
52
- { pattern: new RegExp(String.raw`${EDGE_BEFORE}[Rr]ows?\s+(\d{1,9})(?:${RANGE_END}(\d{1,9}))?${EDGE_AFTER}`, "gu"), form: "row", bare: false },
53
- { pattern: new RegExp(String.raw`${EDGE_BEFORE}[בלמוהכש]{0,2}שור(?:ה|ות)\s+(?:(?:מס['׳]?|מספר)\s*)?(\d{1,9})(?:${RANGE_END}(\d{1,9}))?${EDGE_AFTER}`, "gu"), form: "row", bare: false },
57
+ { pattern: new RegExp(String.raw`${EDGE_BEFORE}${LINE_LETTER}${NUMBER}(?:${RANGE_END}(?:${LINE_LETTER})?${NUMBER})?${EDGE_AFTER}`, "gu"), form: "line", bare: true },
58
+ { pattern: new RegExp(String.raw`${EDGE_BEFORE}[Ll]ines?\s+${NUMBER}(?:${RANGE_END}${NUMBER})?${EDGE_AFTER}`, "gu"), form: "line", bare: false },
59
+ { pattern: new RegExp(String.raw`${EDGE_BEFORE}[Rr]ows?\s+${NUMBER}(?:${RANGE_END}${NUMBER})?${EDGE_AFTER}`, "gu"), form: "row", bare: false },
60
+ { pattern: new RegExp(String.raw`${EDGE_BEFORE}[בלמוהכש]{0,2}שור(?:ה|ות)\s+(?:(?:מס['׳]?|מספר)\s*)?${NUMBER}(?:${RANGE_END}${NUMBER})?${EDGE_AFTER}`, "gu"), form: "row", bare: false },
54
61
  ];
55
62
 
56
63
  /** How far, in characters on one line, a file name may be from the citation it goes with. */
@@ -100,8 +107,8 @@ function citationsIn(text: string): Cited[] {
100
107
  const end = start + match[0].length;
101
108
  while (next < kept.length && kept[next]!.end <= start) next++;
102
109
  if (next < kept.length && kept[next]!.start < end) continue;
103
- const first = Number(match[1]);
104
- const second = match[2] === undefined ? first : Number(match[2]);
110
+ const first = numberOf(match[1]!);
111
+ const second = match[2] === undefined ? first : numberOf(match[2]);
105
112
  if (first < 1 || second < 1) continue;
106
113
  added.push({ start, end, from: Math.min(first, second), to: Math.max(first, second), form, bare });
107
114
  }
package/src/events.ts CHANGED
@@ -79,7 +79,8 @@ export type RequestPurpose = "turn" | "nudge" | "closing" | "answer_again" | "di
79
79
  * - "error": it ran, or was checked, and returned `{ error }` (bad arguments, a document it cannot
80
80
  * read, a regex that took too long…), or it was ended because its turn failed (the question was
81
81
  * stopped, or a listener threw): then the model was sent nothing;
82
- * - "refused": it was not run, for a limit of the question (cost, room, reads of a whole file);
82
+ * - "refused": it was not run: for a limit of the question (cost, room, reads of a whole file), a
83
+ * tool the question does not have (since 0.10.0), or a `{ reject }` of `onToolResult` (0.10.0);
83
84
  * - "already_shown": it repeated a call whose result is still in the conversation, and was answered
84
85
  * with a pointer to it;
85
86
  * - "not_run": the turn had more calls than `limits.callsPerTurn`;
package/src/index.ts CHANGED
@@ -54,7 +54,7 @@ export type { RetryNotice, RetryOptions } from "./retry.js";
54
54
  export { parseSseJson, SseEventTooLongError } from "./sse.js";
55
55
  export type { SseHooks } from "./sse.js";
56
56
  export { DEFAULT_FIRST_BYTE_TIMEOUT_MS, DEFAULT_IDLE_TIMEOUT_MS } from "./http.js";
57
- export type { IdleWaits } from "./http.js";
57
+ export type { HeaderContext, HeaderSource, IdleWaits } from "./http.js";
58
58
  export { DocumentScopeError, DocumentStoreError, IngestError, ingestErrorCodeOf } from "./errors.js";
59
59
  export type { DocumentScopeErrorCode, DocumentStoreOperation, IngestErrorCode } from "./errors.js";
60
60
  export { errorInfoOf } from "./error-info.js";