Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: Enable Rizzcharts sample and enhance client message handling #396

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
doitundoit wants to merge 1 commit into google:main
base: main
Choose a base branch
Loading
from doitundoit:refactor-rizzcharts

Conversation

@doitundoit
Copy link

@doitundoit doitundoit commented Dec 28, 2025

Summary

This PR enables the rizzcharts sample agent with improved map support and significantly hardens the Lit client's message handling capabilities. It addresses issues with MIME type definitions and improves the client's ability to handle various data formats.

Changes

Rizzcharts Agent

Map Support: Updated agent.py and map.json to support map images, allowing for either Google Maps API integration or fallback placeholders.

Lit Client Improvements

Robust Message Handling:

  • Implemented a fallback mechanism to retrieve agent messages from history when needed.
  • Added support for parsing string-encoded JSON data parts.

Configuration:

  • Fixed the A2UI MIME type constant to application/json+a2ui.
  • Added debug logging (console.debug) for better traceability.

Demo Setup:

  • Added rizzcharts demo scripts and configuration to samples/client/lit/package.json.

Verification

  • Python: Verified syntax and build configuration for rizzcharts agent.
  • TypeScript: Successfully built the lit shell client (npm run build:tsc).

- Update rizzcharts agent to support map images (Google Maps API or placeholder).
- Add rizzcharts demo scripts and config to Lit client.
- Fix MIME type constant in client (application/json+a2ui).
- Improve client robustness: fallback to history for agent messages and handle string-encoded JSON data parts.
- Add debug logging to client.
Copy link
Collaborator

wrenj commented Dec 30, 2025

suyang/jon/yuzuru do you mind taking a look? thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@jonsharkey jonsharkey Awaiting requested review from jonsharkey

@sugoi-yuzuru sugoi-yuzuru Awaiting requested review from sugoi-yuzuru

@suyangw-g suyangw-g Awaiting requested review from suyangw-g

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /