#genui-a2ui package
#Classes
|
Class |
Description |
|---|---|
#Functions
|
Function |
Description |
|---|---|
|
Build a single-Text fallback message stream from a plain string. Used by transports / | |
|
Build a Card-wrapped Text fallback message stream from a plain string. Used when the agent emits text payloads with | |
|
Build a catalog from a list of components, | |
|
Build a function entry for | |
|
executeFunctionCall(processor, fn, surfaceId, dataContextPath, options) |
Resolve arguments, look the function up in the registry, and invoke it. When no impl is registered, log once and return |
|
Merge multiple catalogs. Last write wins on duplicate names — useful when a page-level catalog overrides a brand-level one which overrides built-ins. | |
|
Normalize an arbitrary payload (string, array, object) into a flat list of | |
|
prepareMessagesForProcessing(rawMessages, messageId, activeSurfaceIds) |
Tag messages with the given messageId and report whether any of them carries a non-empty |
|
Manual escape hatch for consumers who build their own renderer and don't go through | |
|
Build a name → component lookup map from a catalog. The renderer uses this to resolve | |
|
resolveDynamicValue(processor, value, surfaceId, dataContextPath, options) | |
|
Produce the JSON manifest the client should announce to the agent during channel handshake. Component entries without an attached schema serialize to | |
|
Evaluate an input component's | |
|
useDataBinding(dynamicValue, surface, dataContextPath, fallbackValue) | |
|
useResolvedProps(properties, surface, dataContextPath, processor, functions) |
#Interfaces
|
Interface |
Description |
|---|---|
|
A function entry — pair an impl with its name, plus an optional manifest so the handshake can announce the schema to the agent. | |
|
A v0.9 | |
|
Runtime context passed to client-side function implementations. It mirrors the small DataContext subset used by upstream A2UI basic functions while staying tied to this renderer's | |
|
A pure append-only buffer of raw protocol messages produced by the developer's IO module. The store knows nothing about the v0.9 protocol — it does not parse, process, or interpret messages. It only:
Protocol-aware processing — surfaces, signals, resources, action dispatch — is the responsibility of | |
|
A resolved catalog entry. Internal representation; consumers don't usually construct these directly — they pass | |
|
The serialized payload sent to the agent during channel handshake. | |
#Variables
|
Variable |
Description |
|---|---|
|
The A2UI 0.9 basic-catalog function implementations packaged as | |
#Type Aliases
|
Type Alias |
Description |
|---|---|
|
Loose component type — entries receive runtime-shaped props from the protocol stream, so we don't enforce per-component prop typing here. | |
|
The structured function definition that flows from the extractor (or the upstream basic-catalog manifests) into the catalog and out to the agent during the handshake. Aliased onto the store's | |
|
What the developer passes into | |
|
The shape produced by the extractor as | |
|
JSON Schema fragment describing a component's props. Produced at build time by | |
|
Function implementations live on the client; the agent only references functions by name. The registry is the bridge from the wire-level | |