Skip to content

fix(showcase): include tool implementations in tool-rendering highlight - #4900

Merged
marthakelly merged 3 commits into
mainfrom
fix/showcase-tool-rendering-highlight-tools
May 18, 2026
Merged

marthakelly merged 3 commits into
mainfrom
fix/showcase-tool-rendering-highlight-tools

Conversation

@marthakelly

@marthakelly marthakelly commented May 18, 2026 •

Copy link
Copy Markdown
Contributor

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

  1. fix(showcase): include tool implementations in tool-rendering highlight
    Adds tools/get_weather.py, tools/query_data.py, tools/schedule_meeting.py, tools/search_flights.py (or the .ts equivalents under shared-tools/ for mastra) to the highlight: array of each integration's tool-rendering demo. 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.

  2. fix(showcase/ms-agent-python): repair stale chat-slots and headless-complete highlights
    Two manifest entries in ms-agent-python pointed 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 in ms-agent-python changed. Adopted LGP's canonical highlight pattern for both demos.

  3. fix(showcase/aimock): scope hitl book_call fixtures to toolName
    Two recorded d5 fixtures matching "1:1 with Alice" and "intro call with the sales team" returned book_call tool calls without a toolName constraint. The fixture-tool-surface validator flagged ~30 violations across most integrations because gen-ui-interrupt and interrupt-headless use schedule_meeting, not book_call. Adding toolName: "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-surface check. 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

  • All 36 added tools/ paths exist on disk.
  • showcase/scripts/bundle-demo-content.ts runs clean (697 demos bundled across all three shells).
  • showcase/scripts/validate-fixture-tool-surface.ts runs clean (367 fixtures × 622 demos, no drift).

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]>
@vercel

vercel Bot commented May 18, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
chat-with-your-data Ready Ready Preview, Comment May 18, 2026 9:05pm
docs Ready Ready Preview, Comment May 18, 2026 9:05pm
form-filling Ready Ready Preview, Comment May 18, 2026 9:05pm
research-canvas Ready Ready Preview, Comment May 18, 2026 9:05pm
travel Ready Ready Preview, Comment May 18, 2026 9:05pm

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

📣 Social Copy Generator

Generate social media copies (Twitter/X, LinkedIn, Blog Post) for this PR using Claude.

  • Generate social media copies

…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]>
@marthakelly
marthakelly merged commit 4d51d72 into main May 18, 2026
34 checks passed
@marthakelly
marthakelly deleted the fix/showcase-tool-rendering-highlight-tools branch May 18, 2026 21:13

This branch was successfully deployed

5 active deployments
Preview – research-canvas — 0b69408b Deployed May 18, 2026 by vercel[bot]
Preview – travel — 0b69408b Deployed May 18, 2026 by vercel[bot]
Preview – docs — 0b69408b Deployed May 18, 2026 by vercel[bot]
Preview – form-filling — 0b69408b Deployed May 18, 2026 by vercel[bot]
Preview – chat-with-your-data — 0b69408b Deployed May 18, 2026 by vercel[bot]
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.

2 participants