Skip to main content
Change of provenance

The repository or configuration that created this release differ from a previous release. View details.

genkit-a2ui

Experimental A2UI middleware for Genkit Python.

Building with a coding agent? Install the Genkit Python skill first.

npx skills add genkit-ai/skills --skill developing-genkit-python

It teaches your agent the current Genkit Python APIs and common gotchas. Source, manual install and skills for other languages: genkit-ai/skills.

Add Surfaces() to use=[...] on ai.generate or define_agent. The model may emit ```a2ui fences; the middleware rewrites them into application/a2ui+json data parts. On the next turn, those parts become text again so the model can see prior surfaces and button clicks.

from genkit import Genkit
from genkit_a2ui import Surfaces, envelopes_from_parts
from genkit_google_genai import GoogleAI

ai = Genkit(plugins=[GoogleAI()])

response = await ai.generate(
    model='googleai/gemini-flash-latest',
    prompt='Show me the weather in Tokyo',
    use=[Surfaces()],
)
envelopes = envelopes_from_parts(response.message.content)

Surfaces() uses the bundled basic catalog. To use your own components, register a catalog and pass its id:

from genkit_a2ui import Surfaces, A2uiCatalog, A2uiCatalogComponent, load_catalog

catalog = A2uiCatalog(
    id='https://my-app.org/catalogs/custom.json',
    components=(
        A2uiCatalogComponent(name='Banner', description='A prominent alert.', props='title: string.'),
    ),
)
load_catalog(ai, catalog)

response = await ai.generate(
    model='googleai/gemini-flash-latest',
    prompt='Show a warning banner',
    use=[Surfaces(catalog=catalog.id)],
)

load_catalog_file(ai, './my-catalog.json') does the same from disk. register_basic_catalog(ai) puts the bundled catalog on the registry so the Developer UI can list it next to custom ones (GET /api/values?type=a2ui-catalog).

Status: experimental.

Metadata

Release files for genkit-a2ui 0.14.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Change of provenance

The repository or configuration that created these release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Source distribution (sdist)

Source distribution for genkit-a2ui 0.14.0
File Size Uploaded Provenance Actions
genkit_a2ui-0.14.0.tar.gz 26.6 kB With provenance Details for genkit_a2ui-0.14.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for genkit-a2ui 0.14.0
File Interpreter ABI Platform Actions
genkit_a2ui-0.14.0-py3-none-any.whl Python 3 none any Details for genkit_a2ui-0.14.0-py3-none-any.whl

Total release size: 50.3 kB

Release files / genkit_a2ui-0.14.0.tar.gz

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL genkit_a2ui-0.14.0.tar.gz
Size 26.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b8a2c3f187a1685993f419dd5efe50009db43ee077dc796eaa063948c9b9ff9b
BLAKE2b-256 checksum
How to use checksums
e25f26d5007598043752a706010243d01df0e052f45412563f19b910b1d31ecf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / genkit_a2ui-0.14.0-py3-none-any.whl

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL genkit_a2ui-0.14.0-py3-none-any.whl
Size 23.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
929a670e8973d8b1e6341ff566d6cb4237d0194b53599ef9f4a3cc3ca3fc0cbc
BLAKE2b-256 checksum
How to use checksums
a3e56b4d6cfce5e5cad1635e6ebca60099fea82ff547f16118bc6e4de0fcac66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Security for genkit-a2ui 0.14.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.

Change of provenance

The repository and configuration that created this release differ from a previous release.

While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.

Select from 2 files

Attestation for genkit_a2ui-0.14.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page