@silverprotocol/google-adk 0.12.4 → 1.0.0-rc.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/README.md CHANGED
@@ -33,7 +33,7 @@ facet's per-field dispositions, including its disclosed `silently-dropped` gaps)
33
33
 
34
34
  | `@google/adk` | verified | with | evidence |
35
35
  | --- | --- | --- | --- |
36
- | `2.2.1` | 2026-10-07 | 0.12.4 | @google/adk 2.1.0 -> 2.2.1 with @google/genai 2.24.0 -> 2.27.0. Dependency shape unchanged except adm-zip, which adk now declares at ^0.6.1, so the adm-zip security override is retired. 2.2.1 widens its Gemini 3.x Live path to every gemini-3.*-live model: on gemini-3.8-live a toolCall's function calls are yielded at once, input transcriptions arrive per fragment as finished, and text input goes through sendRealtimeInput. genai 2.27.0's CONTINUATION finish reason and the per-fragment transcriptions are covered by facet tests. Live: the three gemini-3.8-live seeds re-captured green (live-bargein, live-bargein2, live-tool): the same interruptions and the same turn outcomes; in live-tool the function call now opens the message. The text-input capture cannot exercise the per-fragment input transcription (capture backlog: an audio-input Live capture). |
36
+ | `2.2.1` | 2026-10-07 | 0.12.4 | @google/adk 2.1.0 -> 2.2.1 with @google/genai 2.24.0 -> 2.27.0. Dependency shape unchanged except adm-zip, which adk now declares at ^0.6.1, so the adm-zip security override is retired. 2.2.1 widens its Gemini 3.x Live path to every gemini-3.*-live model: on gemini-3.8-live a toolCall's function calls are yielded at once, input transcriptions arrive per fragment as finished, and text input goes through sendRealtimeInput. the CONTINUATION finish reason (new in genai 2.26.0) and the per-fragment transcriptions are covered by facet tests. Live: the three gemini-3.8-live seeds re-captured green (live-bargein, live-bargein2, live-tool): the same interruptions and the same turn outcomes; in live-tool the function call now opens the message. The text-input capture cannot exercise the per-fragment input transcription (capture backlog: an audio-input Live capture). |
37
37
  | `2.1.0` | 2026-09-23 | 0.6.3 | @google/adk 2.0.0 -> 2.1.0, the first minor since the 2.0 major, with @google/genai 2.22.0 -> 2.24.0. WIRE CONTRACT UNCHANGED: Event, LlmResponse, CompactedEvent, InMemoryRunner, MCPToolset and the MCP runtime are byte-identical and the EventActions interface is unchanged; the capture agent compiles against 2.1.0. genai 2.24.0 adds one Part member, speechMetadata (16 -> 17), CARRIED through the existing unmapped-part-fields provider-raw carry. Hardened three pre-existing assumptions the genai types never promised: ExecutableCode.code, Blob.mimeType/data and FileData.fileUri are optional, and a part missing one now rides verbatim as provider-raw instead of throwing or emitting a schema-invalid block. DEPENDENCY SHAPE is where 2.1.0 bites: it adds dockerode as an optionalDependency, which brings back ssh2 and cpu-features, both with install scripts, so both workspace files now declare them false under allowBuilds (without that, every strict-builds install fails ERR_PNPM_IGNORED_BUILDS). @types/dockerode is a REGULAR dependency and puts a second @types/node (18.x) into the program of every `import from "@google/adk"`; consumers compiling with skipLibCheck:false may notice. genai stays a regular dependency at ^2.9.0 and resolves to a single 2.24.0 copy (plus the expected legacy 1.52.0 under @google-cloud/vertexai). adk 2.1.0 moved its OpenTelemetry exporters 0.205.0 -> 0.222.0, which exact-pin @opentelemetry/core 2.11.0, so the ^2.8.0 core override is RETIRED (confirmed after a fresh resolution: one core copy, 2.11.0). adm-zip is STILL ^0.5.17 in 2.1.0, so the ^0.6.1 override stays; upstream fix is google/adk-js#923. NEW RUNTIME PATH: an unregistered or hallucinated tool name now yields functionResponse {error: "Function X is not found in the toolsDict."} instead of throwing, and this facet classifies that envelope tool.done outcome "ok" - a pre-existing gap (ADK's {error} tool-failure envelope has always read as ok) that 2.1.0 makes reachable from ordinary model hallucination; pinned by a synthetic test at the current behaviour until decided. LIVE at 2.1.0 / 2.24.0 on gemini-3.8-flash: echo-, app-spec- and thinking-gemini38 refreshed (thinking-gemini38: 2 thought parts, 2 signatures); NEW tool-error-gemini38, which steers the bare tool name because ADK registers MCP tools without the mcp__<server>__ prefix, recording the clean MCP isError path rather than the hallucinated-tool envelope; and the grammar seeds multi-turn, single-tool-call and text-only MIGRATED from gemini-2.5-flash at adk 1.3.0, where they had sat since July proving nothing about the current peer. Census ZERO drops / ZERO new fields on every adk seed. The 2026-09-21 nightly typechecked adk 2.1.0 but did not exercise genai 2.24.0. Facet tests now 105. |
38
38
  | `2.0.0` | 2026-09-15 | 0.6.2 | @google/adk unchanged at 2.0.0 (still npm latest, still declaring @google/genai ^2.9.0 as a regular dependency); @google/genai 2.21.0->2.22.0 studied by tarball d.ts diff - SIXTEEN lines, three hunks, and NONE of them touches a type this facet consumes: a file-level @ts-ignore, an optional from_environment added to an environment type, and one REMOVAL - the required call_id on the internal Live-API type FunctionResultDelta (a `declare type`, reachable only through the Live/streaming session surface this facet does not drive). Recorded explicitly because a removal is breaking drift in general, just not here: Part, Content, Candidate, FinishReason, GenerateContentResponseUsageMetadata, ThinkingConfig/ThinkingLevel, FunctionCall/FunctionResponse, Transcription and MediaProcessing are all block-identical, and every runtime bundle differs only in the SDK_VERSION constant. The draft.3 thoughtsTokenCount fold, the gemini-3.8-flash seed trio and the '>=1.0.0 <3' peer range therefore all stand unchanged, and no capture refresh was warranted. Single-copy lockfile resolution re-verified: exactly one @google/genai 2.x (2.22.0) workspace-wide, plus the expected legacy 1.52.0 under @google-cloud/vertexai. SECURITY: adm-zip reaches the tree ONLY through @google/adk's skills loader, which nothing on this facet's code path imports; the workspace override was nevertheless moved to a bare-key '^0.6.1' floor (see the cohort's security note) because @google/adk 2.0.0 still pins ^0.5.17 (google/adk-js#601 still OPEN). No facet code change. |
39
39
  | `2.0.0` | 2026-09-05 | 0.6.1 | @google/adk unchanged at 2.0.0; @google/genai 2.20.0->2.21.0 studied by tarball d.ts diff (20 lines / 2 hunks): the internal Model_2 literal union gains 'gemini-3.8-flash' and one JSDoc reword - Part (16), Content, Candidate, FinishReason (18), GenerateContentResponseUsageMetadata, ThinkingConfig/ThinkingLevel, FunctionCall/FunctionResponse, Transcription, MediaProcessing IDENTICAL; runtime delta = SDK_VERSION constant + the same comment. adk's genai hop deduped so ONE 2.21.0 resolves workspace-wide (plus the legacy 1.52.0 under @google-cloud/vertexai). MODEL RELEASE: gemini-3.8-flash (GA 2026-09-02; thinking on by default with levels low/medium/high - 'minimal' rejected; 1,048,576 in / 65,536 out; pricing identical to 3.7 with output 'including thinking tokens', corroborating spec draft.3) captured live as the trio echo-gemini38 / app-spec-gemini38 / thinking-gemini38 through the unchanged capture agent (THINKING_LEVELS map, thinkingConfig) - census ZERO drops / ZERO new fields on all three; thinking-gemini38 yields thought:true parts + thoughtSignatures with the total identity holding (112 + 21 + 156 = 289; 479 + 8 + 24 = 511) and the draft.3 fold giving outputTokens 209. DEFAULT_MODEL.adk moved gemini-3.7-flash -> gemini-3.8-flash (same price, newest live-verified seed). No facet code change. |
@@ -63,6 +63,10 @@ facet's per-field dispositions, including its disclosed `silently-dropped` gaps)
63
63
 
64
64
  > **Search grounding (spec §13.3).** When Gemini grounds a reply with Google Search, the facet emits `display.required` carrying the Search Suggestions HTML (`groundingMetadata.searchEntryPoint.renderedContent`), which the reducer records on the turn. Rendering, storing and re-displaying it are governed by Google's grounding terms (SPEC §13.3). `toPersistable` from `@silverprotocol/core` gives a fold without it, for a host that stores the result.
65
65
 
66
+ > **Prompt blocks.** In `StreamingMode.NONE`, `@google/adk` 2.1.0 turns a blocked prompt into an event whose `errorCode` is the block reason, with no `finishReason` and no content. The facet records one `prompt.blocked` for each such event while its turn is open, before the turn's terminal: `SAFETY` → `"safety"`, `BLOCKLIST` → `"blocklist"`, `PROHIBITED_CONTENT` → `"prohibited"`, and any other treated value → `"other"` with `reasonRaw` verbatim, with no `safety`, since the event carries no ratings. The treated values are genai's `BlockedReason` values (`BLOCKED_REASON_UNSPECIFIED`, `SAFETY`, `OTHER`, `BLOCKLIST`, `PROHIBITED_CONTENT`, `IMAGE_SAFETY`, `MODEL_ARMOR`, `JAILBREAK` at genai 2.24.0) and the Gemini API's `BLOCK_REASON_UNSPECIFIED`. The record changes no terminal: the turn ends as it would without it. Detect a block from `prompt.blocked` (or the fold's `promptBlocked`), not from the terminal. An event with a `finishReason` beside its `errorCode` is a response-level block and records nothing. The facet checks each event on its own. An event that carries an `a2a:response` entry in `customMetadata`, whoever wrote it (ADK's `RemoteA2AAgent` writes one on every event it relays), is never read as a prompt block: at 2.1.0 the relay drops the `finishReason` that tells a prompt block from a response-level one; in a relay that streams, the relayed event carries the block's code in `errorCode` when the remote agent sends one, and then ends the turn as an error. A session service that reloads an event without its raw form (for Vertex, an event stored without `rawEvent`) can drop its `finishReason`, so a response-level block that reaches the facet through such a reload is recorded as a prompt block. So is a Workflow node's error event when the node throws an error whose `code` is a treated value. At 2.1.0, ADK's SSE aggregator absorbs a prompt-block chunk, so a prompt block in SSE mode records no `prompt.blocked`; the Live and Interactions routes never produce the shape.
67
+
68
+ > **Streamed text (SSE and Live).** In `StreamingMode.SSE` on the generateContent route, and on the Live API, ADK streams a model call's text as `partial:true` chunks, then repeats the streamed text in one `partial:false` event: when the call closes, in SSE before a non-text part in the same stream, and on the Live API before a tool call, on a switch between thought and text, and on a barge-in. The facet renders the chunks and drops the repeat (spec §8.0 item 3). It matches a repeat only to the text streamed by the same source (the event's author, branch and node path, and for an event `@google/adk`'s `RemoteA2AAgent` relays, the relayed task and, within it, the relayed artifact or the relayed status messages, read from its `customMetadata`), so interleaved streams stay apart, and a new relayed task never reads an earlier one's text. An event serialized from ADK-Python's relay (`custom_metadata`) is matched by author, branch and node path alone: that relay records the whole task for every event it relays, so its relayed streams cannot be told apart. A text event is the repeat when one text starts with the other (an equal or shorter one renders nothing, a longer one renders only its added text: the repeat before a function call also holds that chunk's own text, and an after-model callback may extend the final), or when the streamed text ends with it (a later call's repeat after a call whose close never arrived, or ADK's structured-output rewrite). Any other text renders in full. Every other event of the source ends the match, except the ones ADK yields between the chunks and the repeat: a block's finish, a Live usage report or grounding record on its own, a transcription, a function response, and a `partial:false` event whose parts are all non-text. The source's next chunks then start a new match. An event without a branch that finds no match of its own (ADK's A2A relay rebuilds its repeat without one, and a failed call's in-band error carries none) reads the matches of the same author and node path: a repeat takes one only when exactly one is open, and an event that ends the match ends them all, so two open matches of one author and node path that differ only by branch would both end. A relayed artifact with no match of its own reads its task's status messages; a relayed Task or Message restates its task, so it is matched, in the order ADK renders a Task, against that task's artifacts and then its status messages (else the artifacts alone, else the status messages alone), and it ends them; and the relay's own failure event ends every relayed match of its author and node path. It assumes no agent or response processor of yours yields a text event of the same source between a call's chunks and its repeat (ADK registers none by default): such a text that starts with, is a start of, or ends the streamed text is read as the repeat.
69
+
66
70
  > **Escalation (spec §4).** ADK's `actions.escalate: true` becomes a bare `handoff{kind:"escalate"}`: the emitting agent escalated to its enclosing agent, with no target and no nested turn.
67
71
 
68
72
  ```ts
@@ -96,23 +100,25 @@ agEvents.push(...n.flush()); // seal anything still open
96
100
  `flush()` drains buffered end-of-stream state. Any async/sync iterable of ADK
97
101
  `Event`s works — a live `runAsync()` run, or events you captured earlier.
98
102
 
99
- > **ADK pauses and Workflow runs.** Construct one normalizer per `runAsync()` call and call `flush()` once when it ends. When ADK pauses a run for a human, the turn closes from `push()` as `turn.done` with `outcome: "paused"` and `finishReason: "paused"`, carrying one ask per pending request (spec §8.0 item 26), at the invocation's end: on the host-completion event with the `hostCompletion` opt-in, else from `flush()`. An ADK event can follow the pause in the same invocation, and it lands inside the paused turn. ADK's reserved calls map as follows: `adk_request_input` becomes a `text` ask (`form` when it declares a `response_schema`); `adk_request_credential` becomes an `auth` ask; `adk_request_confirmation` becomes an `approval` ask. Each ask's `toolCallId` is the reserved call's id, the id ADK accepts as the answer (`resumeBinding: "id"`), and the original tool call's id rides `metadata.originalFunctionCallId`. On a graph `Workflow`, a node's own final answer never ends the run.
103
+ > **ADK pauses and Workflow runs.** Construct one normalizer per `runAsync()` call and call `flush()` once when it ends. When ADK pauses a run for a human, the turn closes from `push()` as `turn.done` with `outcome: "paused"` and `finishReason: "paused"`, carrying one ask per pending request (spec §8.0 item 26), at the invocation's end: on the host-completion event with the `hostCompletion` opt-in, else from `flush()`. An ADK event can follow the pause in the same invocation, and it lands inside the paused turn. When the invocation also meets an error, the error closes on a turn of its own after the paused close (see the in-band error note). ADK's reserved calls map as follows: `adk_request_input` becomes a `text` ask (`form` when it declares a `response_schema`); `adk_request_credential` becomes an `auth` ask; `adk_request_confirmation` becomes an `approval` ask. Each ask's `toolCallId` is the reserved call's id, the id ADK accepts as the answer (`resumeBinding: "id"`), and the original tool call's id rides `metadata.originalFunctionCallId`. On a graph `Workflow`, a node's own final answer never ends the run.
100
104
  >
101
- > **Completion (spec §8.0 host obligation 4).** ADK's stream carries no end marker for a completed run. Opt in with `createAdkNormalizer({ hostCompletion: true })` and push `{ type: "__host_complete__" }` after `runAsync()` returns NORMALLY, never after a cancel, an abort signal or a thrown error, and before `flush()`. The turn then closes from `push()`: `paused` if an ask is pending, `success` otherwise; a non-HITL long-running call that is still unanswered leaves the turn to `flush()`. With the option on, a success or paused close waits for that event, so SequentialAgent roots, after-agent callback content and an ADK event that follows a credential request or a request-input call in the same invocation no longer land after the terminal. A paused run that ends without that event closes paused from `flush()` once its pause was signalled (a stream cut before the pause signal closes as `turn.abort`, `stream-truncated`), and one that ends in a thrown error the host feeds closes as `turn.error`. Two success-close engine shapes remain host-completion-only: without the opt-in, a plain-plane SequentialAgent root, or an after-agent callback that appends content after a success close, lands after the in-band terminal and parks the reducer. Without the opt-in, or when the host doesn't feed the event, a completed Workflow run closes at `flush()` as `turn.abort` (`stream-truncated`), with its usage on the `message.end`. The `__host_complete__` object is a host↔facet contract input, like the error sentinel of host obligation 1, not an ADK event. So with the option off the normalizer ignores it on purpose, and the §8.0 rule against silently dropping a framework event does not apply to it.
105
+ > **Completion (spec §8.0 host obligation 4).** ADK's stream carries no end marker for a completed run. Opt in with `createAdkNormalizer({ hostCompletion: true })` and push `{ type: "__host_complete__" }` after `runAsync()` returns NORMALLY, never after a cancel, an abort signal or a thrown error, and before `flush()`. The turn then closes from `push()`: `paused` if an ask is pending, `success` otherwise; a non-HITL long-running call that is still unanswered leaves the turn to `flush()`. A turn whose invocation met an in-band error closes as the in-band error note below says, never as `success`, with or without the opt-in. With the option on, a success or paused close waits for that event, so SequentialAgent roots, after-agent callback content and an ADK event that follows a credential request or a request-input call in the same invocation no longer land after the terminal. A paused run that ends without that event closes paused from `flush()` once its pause was signalled (a stream cut before the pause signal closes as `turn.abort`, `stream-truncated`), and one that ends in a thrown error the host feeds closes as `turn.error`. Without the opt-in, a final answer that carries no `branch` closes its turn as `success` on arrival, but ADK keeps running after it (a SequentialAgent's next sub-agent, a LoopAgent's next iteration, an after-agent callback's content). Any event of the invocation that follows such a close and maps to more than shared state (content, a usage report, a member the facet carries verbatim) opens the next turn of the invocation, `<turn id>_g<n>`, instead of landing after the terminal: each later final answer closes its own turn as `success`, while an event with no final answer after it (an after-agent callback's content, say) ends its new turn in `turn.abort` (`stream-truncated`) at `flush()`, since nothing signals its end. Two events stay on the closed turn and emit nothing there but the `state.delta` of their `stateDelta`: an event that changes only the shared state (an after-agent callback's state write, say), and ADK's aggregate that only repeats that turn's streamed text. With the opt-in the close waits for the event, and the run stays one turn. So without the opt-in an invocation that meets an in-band error can close one turn as `success` first, as spec §8.0 item 35 allows: when a final answer with no `branch` and no ADK node info closes the turn and an in-band invocation error then arrives in the same invocation (a SequentialAgent or LoopAgent whose replier finishes before a relay's or a model's error), the first turn closes `turn.done` `success`, and a later top-level turn holds the `error` event, every event after it and the invocation's one `turn.error`, never the closed turn, with a clean fold. A ParallelAgent sub-agent's final answer (an event that carries a `branch`) no longer closes the turn, since the other branches run after it; a later sub-agent's final answer with no branch, such as a SequentialAgent step after the ParallelAgent, still closes it on arrival. So without the opt-in, or when the host doesn't feed the event, a completed Workflow run or ParallelAgent root closes at `flush()` as `turn.abort` (`stream-truncated`), with its usage on the `message.end`; that includes a ParallelAgent with a single branch, which closed `success` on arrival before. The `__host_complete__` object is a host↔facet contract input, like the error sentinel of host obligation 1, not an ADK event. So with the option off the normalizer ignores it on purpose, and the §8.0 rule against silently dropping a framework event does not apply to it.
102
106
 
103
107
  > **Thread id (spec §1.2).** Pass the host's own thread id as `createAdkNormalizer({ threadId })`. The normalizer stamps it as the `threadId` of every turn and message it opens, the host-error turn included: the partition root a key-value store writes each unit under. An ADK `Event` carries no thread or session id, so with no `threadId` option the facet stamps the fixed label `"google"` as a facet-local placeholder, not a partition root; a host that persists by `threadId` supplies its own.
104
108
 
105
- > **Errors the runtime throws (spec §8.0 host obligation 1).** When ADK throws instead of ending the stream (for example its LLM-call limit), catch it and push `{ type: "__host_error__", code, message, usage? }` (exported as `ADK_HOST_ERROR_TYPE`) before `flush()`: the open turn closes `turn.error` with that code and message, and with no turn open a fresh terminal turn, `turn_<invokeId>_host_error_<n>`, carries it. The sentinel may be the caught Error itself with `type` and `code` assigned; its message is kept.
109
+ > **Errors the runtime throws (spec §8.0 host obligation 1).** When ADK throws instead of ending the stream (for example its LLM-call limit), catch it and push `{ type: "__host_error__", code, message, usage? }` (exported as `ADK_HOST_ERROR_TYPE`) before `flush()`: the open turn closes `turn.error` with that code and message and the turn's usage plus the sentinel's `usage`: the sentinel's usage covers only work the stream did not report, and is added to what the stream reported, so pass the usage of unreported work only, never a total, and with no turn open a fresh terminal turn, `turn_<invokeId>_host_error_<n>`, carries it. A turn whose pause was signalled closes `paused` first, with its asks and its usage, and the error then closes on a new top-level turn, `<turn id>_error`, with one message and no content, carrying only the sentinel's usage. The sentinel may be the caught Error itself with `type` and `code` assigned; its message is kept.
110
+
111
+ > **In-band errors (spec §8.0 item 35).** ADK yields an error it meets as an event carrying both `errorCode` and `errorMessage` (a rate-limit error, a response-level block with a finish message, a failed Interactions call), and keeps running: a SequentialAgent runs its next sub-agent, a Workflow node retries, a callback or a further model round follows. So the facet never closes a turn on one. The `push()` that receives it emits the non-terminal `error` event, with `code` from `errorCode` and `message` from `errorMessage`, and every later event of the invocation lands in the same turn. At the invocation's end, on the host-completion event, on a host-terminal event, or at `flush()`, the turn closes with one `turn.error`, never as `success`, even when a later sub-agent or a retried node answered. Its `code` and `message` are the host-terminal event's when you fed one, otherwise the invocation's first in-band error's, and it carries the turn's accumulated usage. When the turn's pause was signalled, it closes `paused` first, and the error then closes on a new top-level turn, `<turn id>_error`, with one message and no content. In SSE mode ADK repeats an error as a model call's stream closes, in a `partial: false` event with the code and message of the previous event of the same author, branch and node path; that repeat yields no further `error`, and the call's usage counts once, from the later report. ADK's `RemoteA2AAgent` can report one remote failure twice, the second time in the event with which it closes the remote run (it carries an `a2a:request` entry in `customMetadata`); that event yields no further `error` and adds no usage when it carries the same code, message and usage report as the earlier one and the same `a2a:task_id` entry, present on both. Every other such event is a further error. An event with `errorMessage` and no `errorCode` is not an in-band error: it yields no `error` event and closes as it otherwise would, and its message rides the event-level `provider-raw` carry verbatim (ADK's A2A relay reports its own failure that way). The relay's message is the text of the error it caught, which can include data the remote agent returned and the agent-card URL; treat it as remote content before forwarding it to a client. At `@google/adk` 2.1.0 the Live path yields none: a Live failure reaches the facet as the host-terminal event.
106
112
 
107
113
  > **Ids across invokes (spec §8.0).** A host that folds several invokes of one conversation into one `reduce()` needs turn and message ids that never repeat across them. ADK's `invocationId` alone doesn't guarantee that: ADK-JS mints a fresh one on every `runAsync()`, but ADK-Python's resumable resume reuses `invocation_id`. So every turn id carries a per-invoke stem, `turn_<invokeId>_<invocationId>`, and its message id is `msg_<turnId>`. By default each normalizer draws a random `adk_<16 hex>` stem once, when it is constructed. Pass `createAdkNormalizer({ invokeId })` only to make the output reproducible (tests, replay), and then keep it unique per invoke within a fold.
108
114
 
109
- > **Live sessions (`runLive`).** One live session is one ADK invocation that can hold several model generations. On a barge-in, ADK sends `interrupted: true` first, then the interrupted generation's usage and `turnComplete`, then the reply. The interrupted generation closes as `turn.abort` (`interrupted`) on its own `turnComplete`, with its usage on the `message.end`, and the reply opens the next turn, `turn_<invokeId>_<invocationId>_g1`. A transcription reads once: ADK's `finished` transcription is not re-emitted when it repeats the chunks already streamed. A tool call and the model's reply share one turn: ADK yields the call generation's `turnComplete` after the tool's response, and the turn closes on the `turnComplete` that follows the reply. In the corpus capture `live-tool-gemini38live`, gemini-3.8-live reports no `toolUsePromptTokenCount`: the tool result is counted in the next usage report's `promptTokenCount`. A generation that follows a completed generation with no pending tool exchange, and with no barge-in, still lands in the closed turn unless you opt into `hostCompletion`, which defers that close. When text is buffered at the interrupt, ADK yields only the text aggregate, without the flag, so the turn closes at `flush()` as `stream-truncated`.
115
+ > **Live sessions (`runLive`).** One live session is one ADK invocation that can hold several model generations. On a barge-in, ADK sends `interrupted: true` first, then the interrupted generation's usage and `turnComplete`, then the reply. The interrupted generation closes as `turn.abort` (`interrupted`) on its own `turnComplete`, with its usage on the `message.end`, and the reply opens the next turn, `turn_<invokeId>_<invocationId>_g1`. A transcription reads once: ADK's `finished` transcription is not re-emitted when it repeats the chunks already streamed. A tool call and the model's reply share one turn: ADK yields the call generation's `turnComplete` after the tool's response, and the turn closes on the `turnComplete` that follows the reply. In the corpus capture `live-tool-gemini38live`, gemini-3.8-live reports no `toolUsePromptTokenCount`: the tool result is counted in the next usage report's `promptTokenCount`. A generation that follows a completed generation opens the next turn, and an `interrupted: true` that follows a completed generation interrupts the next one, which closes as `turn.abort` (`interrupted`). When text is buffered at the interrupt, ADK yields only the text aggregate, without the flag, so the turn closes at `flush()` as `stream-truncated`.
110
116
 
111
117
  > **Credential material (spec §8.0 item 28).** ADK credential material is one of three exceptions to the compatibility table's "carried losslessly". In an `adk_request_credential` call and its reply, the facet carries only the auth-config members it knows to be non-secret. In `state.delta` it omits every entry that holds an ADK credential object, and every `temp:` entry. A patch that is itself an ADK credential object is emitted as `{}`, other keys in that patch included. Inside a `provider-raw` carry it reduces each ADK credential object, and each response to `adk_request_credential`, to its non-secret members; when that reduces a node's output, the text part ADK renders from that output is skipped too. A credential an application keeps in a shape of its own is not recognised, and rides unchanged.
112
118
 
113
119
  > **A2A relay entries.** ADK's `RemoteA2AAgent` writes up to four bookkeeping entries into the `customMetadata` of the events it relays: `a2a:request`, `a2a:response`, `a2a:task_id` and `a2a:context_id`. The facet does not carry them, an exception to draft.8's carry of unmapped event fields (§8.0 item 23) and another exception to "carried losslessly". Every other `customMetadata` entry, including one a remote agent wrote, rides unchanged, and a `customMetadata` that held nothing else is not carried. The same applies to a native the facet passes through as `ext.google.unparsed`, whose metadata an event serialized from Python spells `custom_metadata`.
114
120
 
115
- > **Repeated requests.** A remote agent can answer ADK's `RemoteA2AAgent` by repeating the request it was sent, as its first, submitted status in the `"user"` role (ADK-Python's A2A executor does on a new task, on a2a-sdk 0.3.x), and the relay turns that message into the relayed event's content. The facet maps such an event as if those parts, and the long-running ids of the calls among them, were absent, maps its other parts and members as usual, and emits one `ext.google.relay-echo-omitted` event inside the turn that event maps into (after its `turn.start`, with no `turnId` of its own), whose `parts` is the number it omitted. It recognizes the event by its `a2a:response` entry (in `customMetadata`, or `custom_metadata` in an event serialized from Python): a status update or a task in the `submitted` state whose `status.message` is in the `"user"` role, or, as a relay on a2a-sdk 1.x records it, a task with no `kind` in `TASK_STATE_SUBMITTED` whose message is `ROLE_USER`. The repeated parts are the event's content parts after the first k, where k is the number of parts the recorded task's artifacts hold (0 when it records none): ADK's relay converts a recorded task's artifact parts before its status message, and ADK-Python's relay, which records the whole task for a status update too, converts a submitted status update from its message alone and a submitted task from its artifacts alone. A user-role message in any other state, such as a remote workflow's tool result relayed while it is working, maps as before. This is the third exception to "carried losslessly", and another to draft.8's carry of unmapped event fields (§8.0 item 23). It does not reach a repeated request in any other shape, or a copy the framework keeps in its own session store or model context. Where a plugin, a callback or a part converter changed the content so that the recorded artifacts' parts no longer come first, one content part for each, the omission can miss repeated parts or also omit an artifact's parts (a converter that maps one artifact part to two leaves more parts than k); the marker's `parts` counts every part omitted. One case emits no marker: an event that a plugin or callback marks `interrupted`, after a barge-in closed the Live turn it maps into, and whose parts are all omitted maps to nothing, so it emits no marker either (its parts are still omitted). On a non-blocking send ADK also stores the repeated message in its own session; to remove it there as well, drop it before the relay converts it, with an `afterRequestCallbacks` entry that deletes `status.message` from a submitted status update or task whose message is in the `"user"` role.
121
+ > **Repeated requests.** A remote agent can answer ADK's `RemoteA2AAgent` by repeating the request it was sent, as its first, submitted status in the `"user"` role (ADK-Python's A2A executor does on a new task, on a2a-sdk 0.3.x), and the relay turns that message into the relayed event's content. The facet maps such an event as if those parts, and the long-running ids of the calls among them, were absent, maps its other parts and members as usual, and emits one `ext.google.relay-echo-omitted` event inside the turn that event maps into (after its `turn.start`, with no `turnId` of its own), whose `parts` is the number it omitted. It recognizes the event by its `a2a:response` entry (in `customMetadata`, or `custom_metadata` in an event serialized from Python): a status update or a task in the `submitted` state whose `status.message` is in the `"user"` role, or, as a relay on a2a-sdk 1.x records it, a task with no `kind` in `TASK_STATE_SUBMITTED` whose message is `ROLE_USER`. The repeated parts are the event's content parts after the first k, where k is the number of parts the recorded task's artifacts hold (0 when it records none): ADK's relay converts a recorded task's artifact parts before its status message, and ADK-Python's relay, which records the whole task for a status update too, converts a submitted status update from its message alone and a submitted task from its artifacts alone. A user-role message in any other state, such as a remote workflow's tool result relayed while it is working, maps as before. This is the third exception to "carried losslessly", and another to draft.8's carry of unmapped event fields (§8.0 item 23). It does not reach a repeated request in any other shape, or a copy the framework keeps in its own session store or model context. Where a plugin, a callback or a part converter changed the content so that the recorded artifacts' parts no longer come first, one content part for each, the omission can miss repeated parts or also omit an artifact's parts (a converter that maps one artifact part to two leaves more parts than k); the marker's `parts` counts every part omitted. On a non-blocking send ADK also stores the repeated message in its own session; to remove it there as well, drop it before the relay converts it, with an `afterRequestCallbacks` entry that deletes `status.message` from a submitted status update or task whose message is in the `"user"` role.
116
122
 
117
123
  > **Cross-session state.** ADK's `user:` and `app:` state entries ride `state.delta` under their prefixed keys (SPEC §8.0 item 30) and a thread `state.snapshot` replaces them. The working copy holds the value ADK yielded — a point-in-time copy of the per-user / per-application store ADK re-merges on every session read — so a host that renders or restores the working copy across threads may show a value another session has since replaced. A mapping of these two prefixes onto `memory.write` (`user:` → scope `user`, `app:` → scope `agent`) is not part of this facet's output.
118
124
 
@@ -122,4 +128,4 @@ framework produced the stream.
122
128
 
123
129
  Spec: [silverprotocol.io/AgJSON](https://silverprotocol.io/AgJSON) — canonical
124
130
  in [silverprotocol/AgJSON](https://github.com/silverprotocol/AgJSON); wire
125
- version `1.0.0-draft.8`.
131
+ version `1.0.0-rc.1`.
package/dist/index.d.ts CHANGED
@@ -75,11 +75,11 @@
75
75
  * the model's reply share one turn: ADK yields the call generation's
76
76
  * turnComplete after the function response and before the reply (a
77
77
  * gemini-3.8-live capture `live-tool-gemini38live`), so a turnComplete with no
78
- * model output since the last function response does not close the turn. Two
79
- * limits remain. A generation that follows a completed generation with no
80
- * pending tool exchange, and with no barge-in, lands in the closed turn and
81
- * parks a reducer, unless `hostCompletion` defers that close.
82
- * And when text is buffered at the interrupt, ADK yields only the text
78
+ * model output since the last function response does not close the turn. A
79
+ * generation that follows a completed generation opens the next turn
80
+ * (liveTurnFor), and an `{interrupted}` that follows a completed generation
81
+ * interrupts the next one, which closes `turn.abort{interrupted}`. One limit
82
+ * remains. When text is buffered at the interrupt, ADK yields only the text
83
83
  * aggregate, without the flag (utils/live_connection_utils.js), so this facet
84
84
  * sees no interrupt and the turn closes at flush as `stream-truncated`.
85
85
  */
@@ -239,8 +239,11 @@ export interface AdkEvent {
239
239
  finishReason?: string;
240
240
  /** Provider error code (Gemini block reason) — surfaces a non-STOP finish. */
241
241
  errorCode?: string;
242
- /** Free-text error message accompanying errorCode for hard errors. When BOTH
243
- * errorCode AND errorMessage are set, a turn.error is emitted instead of turn.done. */
242
+ /** Free-text error message accompanying errorCode for hard errors. An event
243
+ * with BOTH errorCode AND errorMessage is an in-band invocation error: the
244
+ * facet emits a non-terminal `error` event when it arrives, and the
245
+ * invocation's turn closes with turn.error at the invocation's end (spec
246
+ * §8.0 item 35). */
244
247
  errorMessage?: string;
245
248
  /** Event id (stable per ADK event). */
246
249
  id?: string;
@@ -472,6 +475,20 @@ export declare function mapFinishReason(reason: string | undefined | null): AgFi
472
475
  * table — the lossy arms). Exported for the same testability reason as
473
476
  * mapFinishReason. */
474
477
  export declare function isLossyFinishReason(reason: string): boolean;
478
+ /**
479
+ * The errorCode values that mark an ADK event as a blocked prompt: genai
480
+ * 2.24.0's `BlockedReason` values and the Gemini API's spelling of the
481
+ * unspecified one. In StreamingMode NONE, @google/adk 2.1.0's
482
+ * `createLlmResponse` (models/llm_response.js) turns a blocked prompt into an
483
+ * event whose errorCode is the block reason, with no finishReason, no content
484
+ * and no safety ratings. Exported so the e2e suite's genai pin test
485
+ * (e2e/src/adk-prompt-block-reasons.pin.test.ts) can hold it against genai's
486
+ * own `BlockedReason`. It restates the peer's native values, so it changes
487
+ * when they do.
488
+ *
489
+ * @beta
490
+ */
491
+ export declare const ADK_PROMPT_BLOCK_REASONS: readonly string[];
475
492
  /** Options for {@link createAdkNormalizer}. */
476
493
  export interface AdkNormalizerOptions {
477
494
  /**
@@ -521,31 +538,15 @@ export declare const ADK_HOST_COMPLETE_TYPE = "__host_complete__";
521
538
  * SPEC §8.0 host obligation 1: when the ADK runtime THROWS instead of ending
522
539
  * the stream (e.g. its LLM-call limit), the host catches it and pushes
523
540
  * `{ type: "__host_error__", code, message, usage?, invocationId? }`. The
524
- * open turn closes `turn.error` with that code and message. The shape matches the OpenAI
541
+ * open turn closes `turn.error` with that code and message and the turn's
542
+ * usage plus `usage`, which covers only work the stream did not report (so
543
+ * a host passes the usage of unreported work, never a total); a turn whose
544
+ * pause was signalled closes paused first, and the error then closes on a
545
+ * new top-level turn (spec §8.0 item 26). The shape matches the OpenAI
525
546
  * facet's sentinel. A host may build it from the caught Error itself
526
547
  * (`Object.assign(err, { type: "__host_error__", code })`): the sentinel is
527
548
  * read from the raw native, so the Error's own message is kept.
528
549
  */
529
550
  export declare const ADK_HOST_ERROR_TYPE = "__host_error__";
530
- /**
531
- * The google-adk Normalizer: the inner, deterministic normalizer below wrapped
532
- * in core's withAtomicPush (the guard ruling). Every push() is atomic:
533
- * - The native is read once as plain JSON through core's toJsonValueSafe, so a
534
- * host may push the live Event objects ADK yields (undefined members, a
535
- * Date, an Error, a cycle) and they map exactly like the recorded corpus.
536
- * - If mapping one native throws (an event whose envelope is valid but whose
537
- * inner members have unexpected types), its partial batch is discarded
538
- * without consuming seq, the inner is rebuilt by re-driving every native
539
- * accepted so far (the inner never reads the clock or randomness; ids come
540
- * from the per-invoke stem, invocationId and per-invoke ordinals, and the
541
- * stem is drawn once, outside the inner, and kept), and
542
- * ONE core `error {message:
543
- * "normalizer error", code: <constructor name>}` takes the next seq, with no
544
- * payload and no message text.
545
- * - flush() is guarded the same way; the wrapper closes what the consumer saw
546
- * open itself, without calling the inner again.
547
- * So push() never throws (SPEC §8.0), and no facet state believes a turn,
548
- * message or block is open that never reached the wire.
549
- */
550
551
  export declare function createAdkNormalizer(options?: AdkNormalizerOptions): Normalizer;
551
552
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoFG;AACH,OAAO,EAKL,KAAK,cAAc,EAOnB,SAAS,EACT,KAAK,UAAU,EAKhB,MAAM,sBAAsB,CAAC;AAsB9B;;;;;;;GAOG;AACH,MAAM,WAAW,OAAO;IACtB,0EAA0E;IAC1E,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8EAA8E;IAC9E,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sEAAsE;IACtE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gFAAgF;IAChF,YAAY,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE;YAAE,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;SAAE,CAAC;QAAC,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,CAAC;IACvF;+EAC2E;IAC3E,gBAAgB,CAAC,EAAE;QACjB,IAAI,EA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