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.1.tar.gz (7.3 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.1-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ag_ui_a2ui_toolkit-0.0.1.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.11.9 Darwin/24.1.0

File hashes

Hashes for ag_ui_a2ui_toolkit-0.0.1.tar.gz
Algorithm Hash digest
SHA256 82cf57e363a3967b4564369e9e329900b65899aac685f7cea1dac1263f5b898d
MD5 c180c2ab9d6953597bf1c78d85df893d
BLAKE2b-256 f66bed6e0beb464e1bb86b5ee0f9918fd5e46839e33c238a93700faac728f607

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ag_ui_a2ui_toolkit-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.11.9 Darwin/24.1.0

File hashes

Hashes for ag_ui_a2ui_toolkit-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5d79376d39ef8f3e33b709364f67ef30f2dace5bedd83be5fdcdd9f019cc0472
MD5 d1806d391fe4c1205078753169487043
BLAKE2b-256 1a6ff0f25fd95ecea0bcede67396f4ab1182ebd1aa0491d9b8262af60c51e4b4

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