Repository navigation
docs(rust-adk): add NVIDIA provider to Rust ADK docs - #345
Conversation
Co-authored-by: Eden Reich <[email protected]>
|
@claude did you use |
|
Claude finished @edenreich's task in 2m 40s —— View job Answer:
|
| File | Generated regions |
|---|---|
configuration.md |
provider-settings, provider-config-sections |
supported-providers.md |
providers-table, provider-uppercase, vision-list |
NVIDIA was already onboarded into that pipeline in the earlier gateway-level work (it's in scripts/provider-overrides.json and the schema/fixture). I confirmed there's zero drift - running the generator now touches only those two files and produces no diff:
$ task generate
Generated 13 providers (..., nvidia) from .../schemas/main/openapi.yaml.
Updated: supported-providers.md, configuration.md
$ git status --porcelain # <- empty, no changes
$ bun test # 6 pass, 0 fail
Why rust-adk.md had to be edited by hand: its "Switching providers and models" table (rust-adk.md:213) has no GENERATED: markers - it's hand-authored prose, exactly like the sibling typescript-adk.md table (typescript-adk.md:1092). The generator never reads or writes either ADK page, so there was no region to regenerate; adding the NVIDIA row by hand was the only path. Your two earlier review suggestions (the Nvidia row + the prose paragraph) are already applied on the branch.
Optional follow-up
If the intent is that adding a provider should be a single task generate across all pages (so the ADK tables can't drift), I'd be glad to bring the two ADK provider tables into the generator - add GENERATED: markers to rust-adk.md and typescript-adk.md, write a renderer for the Provider / env / example-model / API-key table (the example-model column is display-only, so it'd live in provider-overrides.json), and extend the fixture test. That would also fix a small casing divergence this hand-editing introduced: the generated gateway docs render NVIDIA (from the override displayName), whereas the ADK table uses Nvidia.
That's a larger, separate change than this PR's scope, so I left it out. Want me to open it as a follow-up?
|
@claude Create a follow up for it, it should be a part of the generated markers if we on board a new provider I don't want to hand maintain it. |
|
Claude finished @edenreich's task in 5m 6s —— View job Follow-up created: #346Opened #346 - [DOCS] Generate the ADK provider tables from the schema (task generate) to bring the ADK "Switching providers and models" tables under the generator, so onboarding a provider is schema +
What #346 covers
It also flags the design decisions to settle (canonical row order, No changes were made to this PR - this task was scoped to creating the tracking issue. This PR (#345) can merge as-is; #346 tracks eliminating the hand-maintenance going forward. |
|
@claude Try the generator now instead of handwriting the docs |
|
Claude finished @edenreich's task in 11m 41s —— View job Done - the ADK tables are now generated, not hand-writtenSwitched from hand-editing to the generator. Committed as
What changed
Table is now schema-driven (canonical order, all 13 providers)Both ADK tables render identically from the schema. Because the table is now generated from the canonical provider set, it picked up three providers the hand-written tables were missing and normalized display via the overrides:
The NVIDIA context paragraph you requested in review is kept (hand-authored prose, outside the markers); I only bumped its VerificationThis effectively delivers the follow-up tracked in #346, so that issue can be closed once this merges. To change an ADK example model going forward, edit |
Bring the "Switching providers and models" tables in rust-adk.md and typescript-adk.md under the provider-docs generator, so onboarding a provider is schema + provider-overrides.json + `task generate` with no hand-editing. - add renderAdkProviderTable + adk-provider-table markers in both pages - add display-only adkExampleModel field per provider in the overrides - add both files to GENERATED_FILES and extend the fixture test (8 pass) This expands both tables to the full canonical provider set (adds Ollama Cloud, MiniMax, Moonshot) and normalizes casing via the schema overrides (Nvidia -> NVIDIA, Local Ollama -> Ollama).
|
@claude there was a merge conflict - I've resolved it, can you check it's merged as expected? also we should have a dirty check in the CI for docs drifts - can you confirm? |
|
Claude finished @edenreich's task in 20m 43s —— View job Checked the merge - it needed two fixes, plus a guard so this can't recurShort version: the merge (
1. What the merge duplicated (and why nobody saw it)Your branch and
On #2 I kept the NVIDIA note you asked for in review - moved it under the surviving section, trimmed only the one sentence that would have repeated the base-URL guidance already sitting above it.
2. CI docs-drift check - confirmed not present today
An honest caveat: even a drift check wouldn't have caught this particular merge - artifact #1 produced identical output (no drift), and #2 slipped past
I can't commit the workflow change myself (the GitHub App can't modify drift:
name: Docs drift
runs-on: ubuntu-24.04
steps:
- uses: actions/[email protected]
- uses: oven-sh/setup-bun@v2
with:
bun-version-file: .bun-version
- run: bun install --frozen-lockfile
- name: Provider-docs regression tests (offline)
run: bun test
- name: Fail on schema drift
run: |
bun scripts/generate-provider-docs.mjs
bunx prettier --write supported-providers.md configuration.md rust-adk.md typescript-adk.md
git diff --exit-code -- supported-providers.md configuration.md rust-adk.md typescript-adk.md \
|| { echo 'Provider docs drifted from openapi.yaml - run `task generate` and commit.'; exit 1; }Notes: the drift step needs outbound network to fetch the schema ( Verification (all green on the branch head)Commits pushed: • branch |
The main-into-branch merge kept both parents' copies of renderAdkProviderTable (a duplicate export - illegal ESM that bun happens to tolerate, with the second definition silently winning). Collapse to one function that keeps main's adkKeyNote handling and reuses the shared formatTable helper. Output is byte-identical, so the committed ADK tables are unchanged and all 8 generator tests still pass.
The main-into-branch merge left rust-adk.md with two "Switching providers and models" sections: the branch's (under AgentBuilder) and main's #347 canonical one (after the minimal server). Because they sat at non-overlapping lines git auto-merged both with no conflict marker, so the manual resolution never saw it, and the regression test only checks the first GENERATED region so it stayed green. Keep main's canonical section (parallel with typescript-adk.md, table in sync with the overrides) and drop the duplicate, preserving the requested NVIDIA note (trimmed to avoid repeating the base-URL guidance already above it).
injectRegion used findIndex, so a file with two same-key GENERATED regions (as this merge produced in rust-adk.md) would have only its first region rewritten and the stale duplicate left in place - an empty diff that task generate:check reports as clean. Count the markers and throw when a key has more than one region, turning that silent merge trap into a hard failure. Export injectRegion and cover both paths in the regression tests (now 10).
## [0.9.0](0.8.0...0.9.0) (2026-07-09) ### ✨ Features * generate ADK provider tables from the schema ([#347](#347)) ([aece944](aece944)), closes [#346](#346) ### 👷 CI * **claude:** centralize claude.yml via reusable workflow ([#372](#372)) ([9a41158](9a41158)) * **infer:** centralize infer.yml via reusable workflow ([#367](#367)) ([47d5fb2](47d5fb2)) * **infer:** centralize infer.yml via reusable workflow ([#368](#368)) ([305d621](305d621)) ### 📚 Documentation * add Wait tool documentation to CLI reference ([#371](#371)) ([8018c50](8018c50)), references [inference-gateway/cli#792](inference-gateway/cli#792) * add Z-AI provider documentation ([#363](#363)) ([3c3db53](3c3db53)) * document agent.skills.max_chars, line-boundary truncation, and date-only system prompt ([#359](#359)) ([73d49b5](73d49b5)) * document infer chat --session-id flag ([#351](#351)) ([d6b3cf6](d6b3cf6)) * document infer-action system prompt override semantics ([#357](#357)) ([58c8bc4](58c8bc4)) * **github-action:** add zai-api-key input to the inputs table ([#366](#366)) ([a129831](a129831)) * remove Claude Code subscription mode documentation ([#374](#374)) ([442a9fa](442a9fa)), references [inference-gateway/cli#812](inference-gateway/cli#812) * **rust-adk:** add NVIDIA provider to Rust ADK docs ([#345](#345)) ([a329e43](a329e43)), references [#347](#347) * update memory documentation for per-project fact organization and entry caps ([#350](#350)) ([8dca0cd](8dca0cd)), closes [#348](#348) ### 🔧 Miscellaneous * **deps:** bump claude-code 2.1.197 -> 2.1.201 ([#353](#353)) ([5f714de](5f714de)) * **deps:** bump claude-code-action v1.0.165 -> v1.0.169 ([#370](#370)) ([293e9b8](293e9b8)) * **deps:** bump infer CLI v0.130.1 -> v0.133.0, infer-action v0.24.0 -> v0.26.0 ([#354](#354)) ([824a288](824a288)) * **deps:** bump infer CLI v0.133.0 -> v0.133.1, infer-action v0.27.0 -> v0.27.1 ([#360](#360)) ([03ec147](03ec147)) * **deps:** bump infer CLI v0.133.1 -> v0.137.0, infer-action v0.27.1 -> v0.29.0 ([#361](#361)) ([e7bec3e](e7bec3e)) * **deps:** bump infer CLI v0.137.0 -> v0.138.0, infer-action v0.29.0 -> v0.30.1 ([#365](#365)) ([02be4c8](02be4c8)) * **deps:** bump infer CLI v0.138.0 -> v0.140.1 ([#375](#375)) ([2fd4097](2fd4097)) * **deps:** bump infer-action v0.26.0 -> v0.26.1 ([#356](#356)) ([17f74f8](17f74f8)) * **deps:** bump infer-action v0.26.1 -> v0.27.0 ([#358](#358)) ([89c944b](89c944b)) * enable debug mode in infer.yml workflow ([9e373c6](9e373c6))
|
🎉 This PR is included in version 0.9.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Summary
The Rust ADK now accepts
A2A_AGENT_CLIENT_PROVIDER=nvidia(rust-adk#86). NVIDIA was already documented at the gateway level (supported-providers.md,configuration.md, generator fixture + overrides), but the Rust ADK page had no provider enumeration at all - unlike the sibling TypeScript ADK page.rust-adk.mdmirroring the sibling TypeScript ADK page, including NVIDIA (nvidia/nvidia/meta/llama-3.1-8b-instruct/NVIDIA_API_KEY, bearer auth athttps://integrate.api.nvidia.com/v1).nvidiato theA2A_AGENT_CLIENT_PROVIDERenv-var reference examples.Verification
bun run format:check,bun run lint:md,bun run build, andbun test(6 pass) all succeed.Note
The sibling TypeScript ADK provider table (
typescript-adk.md) also predates NVIDIA (and MiniMax/Moonshot); aligning it would be a reasonable follow-up, but this PR is scoped to the Rust ADK per the issue.Closes #343