Repository navigation
Replies: 1 comment
|
Most of this works today without a spec change. Subset per turn. The renderer implements the full catalog. On the agent side, from a2ui.catalog_transformers import ComponentPruningTransformer
from a2ui.processor import A2uiRequestProcessor, CatalogConfig
media = CatalogConfig.from_path(
"cockpit_catalog.json",
protocol_version="0.9.1",
transformers=[ComponentPruningTransformer(["MediaCard", "Row", "Text", "Button"])],
)
processor = A2uiRequestProcessor([media.transformed_catalog])Build one processor per subset at startup and pick one per turn. Examples must only use components in their subset, since they're validated when the processor is created. See agent_development.md. Load on demand. Not in the spec (#1328 proposed layers, nothing landed). Hot paths. No model call. Send Multiple displays. One surface per display. Each So subsetting is an agent runtime concern today. Whether the active subset should be visible on the wire (#1328) is a question for the maintainers. |
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone,
I came across the earlier discussion on scaling catalogs beyond prompt size and would like to explore the problem further in the context of real-time UI in automotive smart cockpits.
I could not find a published A2UI example that documents its use in an automotive smart cockpit. Most examples I found focus on general web, mobile, or enterprise scenarios. If there is an existing in-vehicle implementation or discussion, pointers would be very welcome.
In a smart cockpit, some UI updates are time-sensitive. When vehicle states or service workflows change, the system needs to present relevant information promptly. A detailed catalog can help an LLM compose richer, more suitable interfaces. However, sending the full catalog and its examples on every turn increases the input context and may add inference latency. Limiting the model to a small set of fixed templates improves predictability, but also restricts A2UI's dynamic composition capabilities.
We are also looking at decision models such as TypeSafe's Jev. A model that returns structured choices could potentially select a UI category, recipe, or catalog layer quickly. However, this kind of model cannot generate a new A2UI composition. Calling a routing model first and an LLM afterwards may also add a serial network round trip.
This raises a few questions:
Our current hypothesis is to use deterministic recipes for frequent, time-critical UI updates; use a lightweight decision step to route ambiguous requests when the latency budget allows; and load a relevant catalog subset only when dynamic composition is needed.
We would like to understand whether this belongs in A2UI's design guidance or should remain an Agent Runtime implementation concern. The goal is to reduce repeated catalog context without making the protocol dependent on any particular model, while learning how these trade-offs apply to real vehicle deployments.
All reactions