Metadata-Version: 2.4
Name: ag-ui-a2ui-toolkit
Version: 0.0.1a0
Summary: Framework-agnostic helpers for building A2UI subagent tools — op builders, prompt assembly, history walkers, and validation against Google's a2ui-agent-sdk.
Author: Ran Shem Tov
Author-email: Ran Shem Tov <ran@copilotkit.ai>
License-Expression: MIT
Requires-Python: >=3.10, <3.15
Description-Content-Type: text/markdown

# 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`
- Op builders: `create_surface`, `update_components`, `update_data_model`
- `RENDER_A2UI_TOOL_DEF`
- State + history helpers: `build_context_prompt`, `find_prior_surface`
- Prompt composer: `build_subagent_prompt`
- Output: `assemble_ops`, `wrap_as_operations_envelope`

## See also

The TypeScript counterpart lives in
[`@ag-ui/a2ui-toolkit`](../../typescript/packages/a2ui-toolkit) and exposes the
same surface in camelCase.
