Skip to content

feat(examples): bring examples to parity with adk-python v0.1.0 - #931

Merged
AmaadMartin merged 1 commit into
google:mainfrom
AmaadMartin:v0.1.0-examples
Sep 28, 2026
Merged

AmaadMartin merged 1 commit into
google:mainfrom
AmaadMartin:v0.1.0-examples

Conversation

@adk-foundry-bot

@adk-foundry-bot adk-foundry-bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Collaborator

Brings the examples subsystem up to adk-python v0.1.0: 2 modules, their ported tests, one guide and one sample.

13 files, 680 insertions, 20 deletions.

Part Where Files
Functional code core/src/examples/ 5
Tests core/test/examples/ 2
Unit guide docs/guides/examples/index.md 1
Sample samples/examples/README.md 2

Modules

adk-python v0.1.0 module Had What this adds
example_util.py nothing convertExamplesToText and buildExampleSi are ported with matching constants, gemini-2 fence selection, role-pr
vertex_ai_example_store.py nothing The reference module is the VertexAiExampleStore provider backed by the Vertex AI Example Store API, and neith

One feature, so one guide (docs/guides/examples/index.md) and one sample (samples/examples/README.md).

Interface discrepancies

Only what is not a direct translation; same member in camelCase with the same
meaning is omitted, and that is most of the surface.

Reaches a caller

Module Change Why
example_util Additive v0.1.0 surface + camelCase/snake_case aliases on core/src/examples/example_util.ts Preserves existing adk-js callers on main while exposing the adk-python v0.1.0 interface.
vertex_ai_example_store Additive v0.1.0 surface + camelCase/snake_case aliases on core/src/examples/example.ts Preserves existing adk-js callers on main while exposing the adk-python v0.1.0 interface.

Not a caller-visible difference

Both camelCase and snake_case method aliases are exported on new and updated
classes so callers following either convention resolve cleanly without breaking
existing adk-js imports.

Merge decisions

Shared barrel exports were settled once, after every module was in place, yielding 0 file merge conflicts.

# Decision Resolution
1 Shared barrel exports across examples modules Consolidated into core/src/examples/index.ts and core/src/index.ts.

Deletions

20 lines across 7 files; no file on main is deleted.

File − Reason
common.ts 1 In-place signature/export expansion for v0.1.0 parity; no public symbol or test removed
base_example_provider.ts 2 In-place edit; the file stays
example.ts 1 In-place signature/export expansion for v0.1.0 parity; no public symbol or test removed
example_util.ts 4 In-place edit; the file stays
example_tool.ts 1 In-place edit; the file stays
example_util_test.ts 10 In-place edit; the file stays
example_tool_test.ts 1 In-place edit; the file stays

Evidence

Verified on this exact commit (the reviewed change squashed onto current main):

Command Result
npx vitest run core/test/examples core/test/tools 961 passed
bash scripts/check_license.sh clean
npm run build exit 0

The sample in samples/examples/ was not run as part of this verification.

What a reviewer should decide

  • Additive v0.1.0 parity surface: All new classes and methods are exported alongside main's existing signatures so no downstream callers break.

@AmaadMartin
AmaadMartin merged commit 9cb0cbe into google:main Sep 28, 2026
16 checks passed
@kalenkevich kalenkevich mentioned this pull request Sep 28, 2026
prasanna8585 pushed a commit to prasanna8585/adk-js that referenced this pull request Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants