Skip to main content

Framework-agnostic helpers for building A2UI subagent tools — op builders, prompt assembly, history walkers, and request/envelope orchestration shared across framework adapters.

Project description

ag-ui-a2ui-toolkit

Framework-agnostic helpers for building A2UI subagent tools.

Each per-framework adapter (LangGraph, ADK, Mastra, …) composes these helpers with its own framework-specific glue: tool decorator, runtime accessor, model binding + invoke. Nothing in this package depends on any agent framework.

Surface

  • Constants: A2UI_OPERATIONS_KEY, BASIC_CATALOG_ID, DEFAULT_SURFACE_ID, GENERATE_A2UI_TOOL_NAME, GENERATE_A2UI_TOOL_DESCRIPTION, GENERATE_A2UI_ARG_DESCRIPTIONS
  • Op builders: create_surface, update_components, update_data_model
  • RENDER_A2UI_TOOL_DEF — JSON schema for the inner structured-output tool
  • State + history helpers: build_context_prompt, find_prior_surface
  • Prompt composer: build_subagent_prompt
  • High-level orchestration: prepare_a2ui_request, build_a2ui_envelope
  • Output wrappers: assemble_ops, wrap_as_operations_envelope, wrap_error_envelope

See also

The TypeScript counterpart lives in @ag-ui/a2ui-toolkit and exposes the same surface in camelCase.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ag_ui_a2ui_toolkit-0.0.3.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ag_ui_a2ui_toolkit-0.0.3-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file ag_ui_a2ui_toolkit-0.0.3.tar.gz.

File metadata

  • Download URL: ag_ui_a2ui_toolkit-0.0.3.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for ag_ui_a2ui_toolkit-0.0.3.tar.gz
Algorithm Hash digest
SHA256 468f25473ac00d098878da54c0069b7fa27dc63b4c1ff61315d4349a324c2fb7
MD5 f03c92e94276d612f55b6189f7228466
BLAKE2b-256 16b1ea7ad7f0b3d1b20388d072ffbe4416577b4d4ab5471d45dfc04791a91602

See more details on using hashes here.

File details

Details for the file ag_ui_a2ui_toolkit-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: ag_ui_a2ui_toolkit-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 16.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for ag_ui_a2ui_toolkit-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e0354bd361c09f342fbe671cf870cbd19fdcb1b27e7a5bb2d8a392a4f00c2ba9
MD5 6db3a878b11e829615aba779217da86f
BLAKE2b-256 c975fc87bdf81bb1bf6d0fac09179e8bb17807d1bc5b3c0e8640f32e843b0857

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page