Repository navigation
fix(showcase): include tool implementations in tool-rendering highlight - #4900
Merged
Merged
Conversation
QA team identified that the Tool Rendering demo across 9 integrations imports `get_weather_impl`, `query_data_impl`, `schedule_meeting_impl`, and `search_flights_impl` from `tools/`, but the bundled code view does not include the `tools/` files. New users see the imports but cannot see the implementations. Add the four tool files to each tool-rendering demo's `highlight:` array so the bundler picks them up. Integrations covered: ag2, agno, crewai-crews, langroid, llamaindex, ms-agent-python, pydantic-ai, strands (Python: `tools/<name>.py`), and mastra (TypeScript: `shared-tools/<name>.ts`). Reasoning-chain variants left untouched (they define tools inline). Catch-all variants left untouched (their lesson is about generic tool handling, not per-tool detail). Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
marthakelly
requested review from
jpr5,
mme,
ranst91 and
tylerslaton
as code owners
May 18, 2026 20:27
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
📣 Social Copy GeneratorGenerate social media copies (Twitter/X, LinkedIn, Blog Post) for this PR using Claude.
|
…omplete highlights Both manifest entries point at file names that no longer exist on disk after the LGP-cells port (PR #4895). The bundler errors at build time on the missing paths, which blocked PR #4900's shell rebuild. Adopt LGP's canonical highlight pattern for both demos. - chat-slots: drop the three custom-* refs, keep page.tsx + slot-wrappers.tsx - headless-complete: drop message-list.tsx + use-rendered-messages.tsx, add the chat/, hooks/, attachments/ subpaths that LGP uses Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Two recorded d5 fixtures matching `userMessage: "1:1 with Alice"` and `userMessage: "intro call with the sales team"` returned `book_call` tool calls without a `toolName` constraint in their match block. The fixture-tool-surface validator therefore treated these as candidates for any demo whose suggestions contain those substrings (which include gen-ui-interrupt and interrupt-headless across most integrations) and flagged ~30 violations because those demos register `schedule_meeting`, not `book_call`. Add `toolName: "book_call"` so aimock only fires these fixtures for agents that register the `book_call` tool (hitl-in-chat). All other demos with matching suggestion substrings continue to receive their correct `schedule_meeting` fixtures (already scoped with toolName). Validator: 367 fixtures × 622 demos — no drift. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
samjulien
approved these changes
May 18, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Original intent: make 9 integrations' Tool Rendering demos show the tool implementations they import (QA team finding).
Scope grew to also unblock the bundler from two pre-existing drift sources that landed earlier today and were silently blocking shell rebuilds.
Commits
fix(showcase): include tool implementations in tool-rendering highlightAdds
tools/get_weather.py,tools/query_data.py,tools/schedule_meeting.py,tools/search_flights.py(or the.tsequivalents undershared-tools/for mastra) to thehighlight:array of each integration'stool-renderingdemo. Reasoning-chain and catch-all variants intentionally left alone (reasoning-chain defines its tools inline; catch-all variants teach generic handling and would be undercut by per-tool detail).Integrations:
ag2,agno,crewai-crews,langroid,llamaindex,ms-agent-python,pydantic-ai,strands,mastra.fix(showcase/ms-agent-python): repair stale chat-slots and headless-complete highlightsTwo manifest entries in
ms-agent-pythonpointed at filenames that no longer exist on disk after PR feat(showcase/ms-agent-python): port LGP showcase cells to MAF (beautiful-chat + 8 more) #4895's port. The bundler refused to build the shell once any manifest inms-agent-pythonchanged. Adopted LGP's canonical highlight pattern for both demos.fix(showcase/aimock): scope hitl book_call fixtures to toolNameTwo recorded d5 fixtures matching
"1:1 with Alice"and"intro call with the sales team"returnedbook_calltool calls without atoolNameconstraint. The fixture-tool-surface validator flagged ~30 violations across most integrations becausegen-ui-interruptandinterrupt-headlessuseschedule_meeting, notbook_call. AddingtoolName: "book_call"scopes the fixtures to hitl-in-chat only.Why this PR grew
The QA-team finding only required commit 1. Commits 2 and 3 are pre-existing drift that surfaced because commit 1's manifest edits triggered the shell rebuild and the
validate-fixture-tool-surfacecheck. Both pre-existing failures had been red on main for several hours and were inherited by every PR. Fixing them inline was the only path to a green CI on this branch.Test plan
tools/paths exist on disk.showcase/scripts/bundle-demo-content.tsruns clean (697 demos bundled across all three shells).showcase/scripts/validate-fixture-tool-surface.tsruns clean (367 fixtures × 622 demos, no drift).