mirror of
https://github.com/google/adk-docs.git
synced 2026-09-14 16:16:59 +08:00
9f21af3c0c
Three of these five examples do not type-check against the version they
pin, so anyone who copies them gets compile errors before they get an
agent. Bumping to the current 1.5.0 release fixes all three.
Verified by running `npm install` and `tsc --noEmit` in each directory
against the pinned version and against 1.5.0:
example pinned before after
agents/custom-agent ^0.2.0 pass pass
agents/llm-agent ^0.2.0 FAIL pass
get-started/multi_tool_agent ^0.2.0 FAIL pass
sessions ^0.6.1 pass pass
skills ^0.6.1 FAIL pass
The two 0.2.x failures are the zod v3 -> v4 change in `ToolInputParameters`
(TS2322); the `skills` failure is that `Skill`, `SkillToolset` and
`loadSkillFromDir` were not exported until after 0.6.1 (TS2305).
`@google/adk-devtools` is bumped alongside `@google/adk` in the same five
files. The two packages are released together from the adk-js monorepo and
share a version line, so leaving devtools on 0.2.x/0.6.x while the runtime
moves to 1.5.0 would pin a combination that is never published or tested
together. This is a three-major bump and is called out here deliberately
rather than being buried in the diff.
Four other examples stay pinned at ^0.2.0 and are deliberately not bumped:
agents/workflow-agents tsconfig `include` points at a nonexistent src/,
plus an invalid --ignoreDeprecations value
callbacks invalid --ignoreDeprecations value
tools/function-tools unused locals/parameters (TS6133)
tools/overview unchecked `m.content.parts` (TS18048)
All four fail `tsc --noEmit` at 1.5.0 as well as at 0.2.x, and none of the
failures is an ADK API incompatibility -- they are tsconfig mistakes and
bugs in the sample sources. Bumping them would add churn without making a
single one of them work, and would put unverified entries in a change whose
whole claim is that every bump was type-checked. Repairing those four
examples is a separate change.
Co-authored-by: Amaad Martin <amaadmartin@google.com>