@silverprotocol/google-adk 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Loqu, Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,32 @@
1
+ # @silverprotocol/google-adk
2
+
3
+ AgJSON normalizer for the Google Agent Development Kit (ADK `Event` / Gemini
4
+ `Content.parts[]` → `AgEvent[]`) — fixture-tested.
5
+
6
+ ## Install
7
+
8
+ ```sh
9
+ npm install @silverprotocol/google-adk
10
+ ```
11
+
12
+ `@silverprotocol/core` is a required peer (installed automatically as a
13
+ dependency). `@iqai/adk` is an OPTIONAL peer — only needed if you want its
14
+ native ADK `Event` types; it is not required at import time.
15
+
16
+ ## Usage
17
+
18
+ ```ts
19
+ import { createAdkNormalizer } from "@silverprotocol/google-adk";
20
+
21
+ const n = createAdkNormalizer();
22
+ const events = [];
23
+ for (const native of stream) events.push(...n.push(native));
24
+ events.push(...n.flush());
25
+ ```
26
+
27
+ `stream` is whatever async/sync iterable of native ADK `Event`s your agent
28
+ run yields. `push()` returns the `AgEvent[]` synthesized from that native
29
+ event; `flush()` drains any buffered end-of-stream state.
30
+
31
+ Spec: `SPEC.md` at the repo root of [silverprotocol/typescript-sdk](https://github.com/silverprotocol/typescript-sdk) (published with the first
32
+ release); wire version `1.0.0-draft.1`.
@@ -0,0 +1,283 @@
1
+ /**
2
+ * `@silverprotocol/google-adk` — the Google Agent Development Kit normalizer.
3
+ *
4
+ * Translates a Google ADK `Event` (a Gemini `Content` — role + `parts[]` — plus
5
+ * the event metadata `partial` / `turnComplete` / `errorCode` / `finishReason` /
6
+ * `actions`, inherited from `LlmResponse`) into AgJSON events (`AgEvent[]`,
7
+ * spec §4). The `content.parts[]` fan-out is the HIGHEST structural fan-out in
8
+ * the family: one event maps to a BURST of lifecycle events (`seq` monotonic
9
+ * from 0 within the call; the Router rebases to a global ordinal downstream, out
10
+ * of scope here).
11
+ *
12
+ * The normalizer is STATEFUL across calls (spec §8): it tracks the per-thread
13
+ * already-streamed parts so the ADK `partial:false` AGGREGATE event (which
14
+ * re-sends the full accumulated content) is SUPPRESSED — the #1 ADK
15
+ * double-render quirk (§8.3). It also synthesizes a stable `toolCallId` +
16
+ * records the positional `providerCallIndex` when a Gemini `functionCall.id` is
17
+ * null on the Developer API (§8.2), and preserves the Gemini `thoughtSignature`
18
+ * on EVERY signed part (§8.8) — on the reasoning block's `opaque` for a thought
19
+ * part, on the text event's `providerMetadata.google` for a signed NON-thought
20
+ * (Google-Search-grounded) text part, and on `tool.args.assembled.signature` for
21
+ * a functionCall part. Echo-or-400: a dropped signature breaks turn N+1.
22
+ *
23
+ * ── PRIMARY-SOURCE VERIFICATION (June 2026; the ADK SDK is NOT installed —
24
+ * `@iqai/adk` is an OPTIONAL peerDependency, NOT imported). The `AdkEvent` type
25
+ * below is a faithful PROJECTION of the verified shapes, hand-defined as the
26
+ * fixture contract until the ADK runtime is wired:
27
+ * - google/adk-python src/google/adk/events/event.py — the `Event` class
28
+ * (`author`, `invocationId`, `id`, `actions`, `branch`) extends `LlmResponse`
29
+ * (`content`, `partial`, `turnComplete`, `errorCode`, `finishReason`).
30
+ * `is_final_response()` = no functionCalls AND no functionResponses AND not
31
+ * `partial` AND no trailing codeExecutionResult (or skipSummarization /
32
+ * longRunningToolIds short-circuit) — the aggregate/final disposition (§8.3).
33
+ * - Gemini API `Content` (role + parts[]) and the `Part` union
34
+ * (`Content` REST reference + the Thought-Signatures / Function-Calling /
35
+ * Code-Execution docs): `{ text, thought?: boolean, thoughtSignature?: base64
36
+ * string }`, `{ functionCall: { name, args: OBJECT/dict, id? } }`,
37
+ * `{ functionResponse: { name, response: OBJECT, id? } }`,
38
+ * `{ inlineData: { mimeType, data: base64 } }`,
39
+ * `{ executableCode: { language: enum, code } }`,
40
+ * `{ codeExecutionResult: { outcome: "OUTCOME_OK"|"OUTCOME_FAILED"|
41
+ * "OUTCOME_DEADLINE_EXCEEDED", output } }`, `{ fileData }`.
42
+ * - `thoughtSignature` is a PER-PART base64 field; `functionCall.id` is OFTEN
43
+ * null on the Developer API (echoed parts must restore name+position).
44
+ *
45
+ * NOTE on field casing: the verified Gemini wire shape uses camelCase
46
+ * (`functionCall`, `thoughtSignature`, `inlineData`, `mimeType`, `executableCode`,
47
+ * `codeExecutionResult`, `turnComplete`, `finishReason`) — the genai REST/JS
48
+ * surface. The Python ADK uses the snake_case aliases (`turn_complete`,
49
+ * `function_call`); a runtime adapter would map those before this seam. This
50
+ * fixture contract is the camelCase wire projection.
51
+ */
52
+ import { type AgFinishReason, JsonValue, type Normalizer } from "@silverprotocol/core";
53
+ /** A Gemini `Part` — the discriminated-by-presence union (one of the arms
54
+ * carries content; `thought` / `thoughtSignature` ride alongside). Fields are
55
+ * optional so a fixture sets exactly the arm it exercises. `args` / `response`
56
+ * are JSON OBJECTS/dicts (NOT JSON strings — do NOT JSON.parse). */
57
+ export interface AdkPart {
58
+ /** Visible text (or, with `thought:true`, the visible reasoning text). */
59
+ text?: string;
60
+ /** Marks a reasoning part (the model's thought) — routes to `reasoning.*`. */
61
+ thought?: boolean;
62
+ /** Per-part base64 thought signature — replay-load-bearing (§8.8). */
63
+ thoughtSignature?: string;
64
+ /** A tool call. `args` is an OBJECT/dict; `id` is OFTEN null on the Dev API. */
65
+ functionCall?: {
66
+ name: string;
67
+ args?: {
68
+ [k: string]: JsonValue;
69
+ };
70
+ id?: string | null;
71
+ };
72
+ /** A tool result. `response` is an OBJECT (the function result, JSON object).
73
+ * `thoughtSignature` carries the per-response replay signature (§8.8). */
74
+ functionResponse?: {
75
+ name: string;
76
+ response?: {
77
+ [k: string]: JsonValue;
78
+ };
79
+ id?: string | null;
80
+ thoughtSignature?: string;
81
+ };
82
+ /** Embedded media bytes (base64). */
83
+ inlineData?: {
84
+ mimeType: string;
85
+ data: string;
86
+ };
87
+ /** Model-generated code (the Code Execution tool). */
88
+ executableCode?: {
89
+ language?: string;
90
+ code: string;
91
+ };
92
+ /** Code-execution result (the Code Execution tool). */
93
+ codeExecutionResult?: {
94
+ outcome?: string;
95
+ output?: string;
96
+ };
97
+ /** A reference to an uploaded file (passed through opaquely). */
98
+ fileData?: {
99
+ mimeType?: string;
100
+ fileUri: string;
101
+ };
102
+ /** Media resolution hint for the input media (fixture-drift ratchet finding,
103
+ * google-adk-ratchet task) — carried opaquely via `driveAdkPart`'s
104
+ * unmapped-part-fields provider-raw block; never interpreted. */
105
+ mediaResolution?: JsonValue;
106
+ /** Video metadata accompanying `inlineData`/`fileData` (fixture-drift
107
+ * ratchet finding): the genai `Part` doc states it "should only be
108
+ * specified while the video data is presented in inline_data or
109
+ * file_data" — i.e. it normally rides ALONGSIDE an already-handled kind,
110
+ * not standalone. Carried opaquely via the same unmapped-part-fields
111
+ * provider-raw block (checked unconditionally, before the primary
112
+ * if-chain's early return — see `driveAdkPart`). */
113
+ videoMetadata?: JsonValue;
114
+ /** A server-side tool call the model predicts, which the client is
115
+ * expected to echo back (fixture-drift ratchet finding) — distinct from
116
+ * the client-executed `functionCall`. Carried opaquely via provider-raw. */
117
+ toolCall?: JsonValue;
118
+ /** The client-supplied result of a server-side `toolCall` (fixture-drift
119
+ * ratchet finding). Carried opaquely via provider-raw. */
120
+ toolResponse?: JsonValue;
121
+ /** Free-form per-part custom metadata, e.g. a source-file name or a
122
+ * multiplex hint for multiple Part streams (fixture-drift ratchet
123
+ * finding). Carried opaquely via provider-raw. */
124
+ partMetadata?: JsonValue;
125
+ }
126
+ /** A Gemini `Content` — the role + the part list. ADK normalizes Gemini's
127
+ * "model" role; we map "model" → "assistant" downstream where needed. */
128
+ export interface AdkContent {
129
+ role?: string;
130
+ parts?: AdkPart[];
131
+ }
132
+ /** A Google ADK `Event` — a Gemini `Content` plus the `LlmResponse` /
133
+ * `Event` metadata (verified shapes; see file header). */
134
+ export interface AdkEvent {
135
+ content?: AdkContent;
136
+ /** true on an incremental/streamed event; false (or absent) on the FINAL
137
+ * aggregate that re-sends the full content (§8.3). */
138
+ partial?: boolean;
139
+ /** Signals the user-input gate may re-open — the turn boundary (§4 turn.done). */
140
+ turnComplete?: boolean;
141
+ /** Provider finish reason (Gemini `Candidate.finishReason`): STOP / MAX_TOKENS
142
+ * / SAFETY / RECITATION / … — mapped to the AgFinishReason superset. */
143
+ finishReason?: string;
144
+ /** Provider error code (Gemini block reason) — surfaces a non-STOP finish. */
145
+ errorCode?: string;
146
+ /** Free-text error message accompanying errorCode for hard errors. When BOTH
147
+ * errorCode AND errorMessage are set, a turn.error is emitted instead of turn.done. */
148
+ errorMessage?: string;
149
+ /** Event id (stable per ADK event). */
150
+ id?: string;
151
+ /** The whole-interaction run id (the turn key). */
152
+ invocationId?: string;
153
+ /** 'user' or the agent name. */
154
+ author?: string;
155
+ /** Side-effect / control signals. */
156
+ actions?: {
157
+ skipSummarization?: boolean;
158
+ /** Transfer control to another named agent. */
159
+ transferToAgent?: string;
160
+ /** Escalate to a human or supervisor. */
161
+ escalate?: boolean;
162
+ /** Request OAuth/auth configs from the caller. ADK serializes this as a
163
+ * dict keyed by the function-call-id (`dict[str, AuthConfig]`); the value
164
+ * is a complex, framework-specific AuthConfig (auth-scheme union +
165
+ * credentials) we carry opaquely. Empty -> `{}` (NOT an array, NOT
166
+ * omitted) — iterating it as an array throws "not iterable". */
167
+ requestedAuthConfigs?: {
168
+ [callId: string]: JsonValue;
169
+ };
170
+ /** Request user confirmation before executing a tool. ADK serializes this
171
+ * as a dict keyed by the function-call-id (`dict[str, ToolConfirmation]`).
172
+ * Empty -> `{}`. */
173
+ requestedToolConfirmations?: {
174
+ [callId: string]: {
175
+ hint?: string;
176
+ confirmed?: boolean;
177
+ payload?: JsonValue;
178
+ };
179
+ };
180
+ /** State deltas to merge into the shared working copy. */
181
+ stateDelta?: {
182
+ [k: string]: JsonValue;
183
+ };
184
+ /** Artifact deltas (keyed artifact patches). */
185
+ artifactDelta?: {
186
+ [k: string]: JsonValue;
187
+ };
188
+ /** UI widgets to render inline. */
189
+ renderUiWidgets?: Array<{
190
+ name?: string;
191
+ code?: string;
192
+ }>;
193
+ /** Opaque agent state string (runtime passthrough). */
194
+ agentState?: string;
195
+ /** Signals the end of the agent processing pipeline for this turn. */
196
+ endOfAgent?: boolean;
197
+ };
198
+ /** Gemini token usage metadata (maps to AgUsage on turn.done). */
199
+ usageMetadata?: {
200
+ promptTokenCount?: number;
201
+ candidatesTokenCount?: number;
202
+ totalTokenCount?: number;
203
+ cachedContentTokenCount?: number;
204
+ thoughtsTokenCount?: number;
205
+ toolUsePromptTokenCount?: number;
206
+ };
207
+ /** Per-part safety ratings from the Gemini Candidate. */
208
+ safetyRatings?: Array<{
209
+ category?: string;
210
+ probability?: string;
211
+ score?: number;
212
+ blocked?: boolean;
213
+ }>;
214
+ /** Prompt-level safety feedback (block reason + ratings). */
215
+ promptFeedback?: {
216
+ blockReason?: string;
217
+ safetyRatings?: Array<{
218
+ category?: string;
219
+ probability?: string;
220
+ score?: number;
221
+ blocked?: boolean;
222
+ }>;
223
+ };
224
+ /** Gemini grounding metadata (search result chunks, citations, search widget). */
225
+ groundingMetadata?: {
226
+ groundingChunks?: Array<{
227
+ web?: {
228
+ uri?: string;
229
+ title?: string;
230
+ };
231
+ }>;
232
+ groundingSupports?: Array<{
233
+ groundingChunkIndices?: number[];
234
+ confidenceScores?: number[];
235
+ segment?: {
236
+ startIndex?: number;
237
+ endIndex?: number;
238
+ text?: string;
239
+ };
240
+ }>;
241
+ searchEntryPoint?: {
242
+ renderedContent?: string;
243
+ };
244
+ };
245
+ /** Citation metadata (Gemini Candidate.citationMetadata). */
246
+ citationMetadata?: {
247
+ citations?: Array<{
248
+ uri?: string;
249
+ title?: string;
250
+ startIndex?: number;
251
+ endIndex?: number;
252
+ }>;
253
+ };
254
+ /** When true, the turn was interrupted mid-stream — emit turn.abort. */
255
+ interrupted?: boolean;
256
+ /** Tool call ids that are long-running (hint: set longRunning:true on tool.start). */
257
+ longRunningToolIds?: string[];
258
+ /** ADK event branch (multi-agent routing). */
259
+ branch?: string;
260
+ /** ISO timestamp of the event. */
261
+ timestamp?: string;
262
+ /** Speech-to-text transcription of the user's audio input. */
263
+ inputTranscription?: {
264
+ text?: string;
265
+ };
266
+ /** Text-to-speech transcription of the model's audio output. */
267
+ outputTranscription?: {
268
+ text?: string;
269
+ };
270
+ /** Opaque per-event custom metadata bag. */
271
+ customMetadata?: {
272
+ [k: string]: JsonValue;
273
+ };
274
+ /** Index of the candidate response (meaningful when the request's
275
+ * candidateCount > 1) — fixture-drift ratchet finding (google-adk-ratchet
276
+ * task): absent from this contract entirely until now. Carried via the
277
+ * event-level unmapped-fields provider-raw block (`driveAdkTopLevel`,
278
+ * alongside `citationMetadata`/`customMetadata`; SPEC §8 item 23). */
279
+ candidateIndex?: number;
280
+ }
281
+ export declare function mapFinishReason(reason: string | undefined | null): AgFinishReason;
282
+ export declare function createAdkNormalizer(): Normalizer;
283
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,OAAO,EAIL,KAAK,cAAc,EAKnB,SAAS,EACT,KAAK,UAAU,EAGhB,MAAM,sBAAsB,CAAC;AAQ9B;;;qEAGqE;AACrE,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,EAAE,MAAM,CAAC;QACb,QAAQ,CAAC,EAAE;YAAE,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;SAAE,CAAC;QACtC,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;KAC3B,CAAC;IACF,qCAAqC;IACrC,UAAU,CAAC,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAChD,sDAAsD;IACtD,cAAc,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACrD,uDAAuD;IACvD,mBAAmB,CAAC,EAAE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