a4ui-agent
Agent-side A2UI chart producer for @haystackedai/a4react clients.
This package does not wrap your runtime — bedrock, agentcore, strands and your own
business logic stay yours. It packages the one reusable, hard part: the A2UI chart
(richer than a hand-rolled one, validated against the shared catalog). You keep your agent
and add a few lines where you already build the response — mirroring how a React dev drops
in useA4Chart + A4ChartView without wrapping their server.
from a4ui_agent import Chart, a2ui_frame
chart = Chart() # once (baked contract)
# in your existing entrypoint, where YOUR pipeline already produced the data:
rows, columns, answer = my_pipeline(prompt) # your biz logic, untouched
yield a2ui_frame(chart.surface(rows, columns, answer))
# the UI's chart-type toggle:
if action and action["name"] == "rechart":
yield a2ui_frame(chart.rechart(action["context"]["plotType"]))
No a2ui-core wiring, catalog assembly, surface-message building or validation to write.
Dependencies are only a2ui-core + pydantic — nothing about your runtime. The contract
(catalogId + schemas) is baked and overridable.
See ../instruction_a4.md (the a4ui-agent section) for the full DO list, the 2 insertion
points, drill/rechart handling, and the contract rules.
Metadata
Release files for a4ui-agent 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| a4ui_agent-0.2.0.tar.gz | 61.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| a4ui_agent-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 75.6 kB
Release files / a4ui_agent-0.2.0.tar.gz
| Download URL | a4ui_agent-0.2.0.tar.gz |
|---|---|
| Size | 61.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7e5077385b437c7613eb13cb943ecccfb8499d131b3891bf4b6cab69f0f6cc89
|
|
BLAKE2b-256 checksum How to use checksums |
0e367d8727be2c353fe93b682806c93a31453d3732a6b6c255255ba6952020b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / a4ui_agent-0.2.0-py3-none-any.whl
| Download URL | a4ui_agent-0.2.0-py3-none-any.whl |
|---|---|
| Size | 13.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b8d62fe5b558ea9ec71b04aa40a28fa475e62d16294278d4d4974ea0e633edda
|
|
BLAKE2b-256 checksum How to use checksums |
698af17232f7da589495e38a2e38b41aacadb6d359cb2442dfb37cadbe697c11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for a4ui-agent 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.