Name the schema-only catalog CatalogApi in the blueprint and across SDKs
Author: polina-cCreated Sep 30, 2026Updated Sep 30, 2026
LabelsP2
Summary
Name the schema-only catalog type CatalogApi in the core blueprint and use that name in every SDK. CatalogApi sits alongside ComponentApi and FunctionApi.
Came up in review of #2890 (https://github.com/a2ui-project/a2ui/pull/2890#discussion_r4140052735).
Background
A catalog whose components and functions carry schemas only, with no function implementations, is Catalog<ComponentApi, FunctionApi>. Agents use it to write prompts and validate payloads. Renderers use Catalog<..., FunctionImplementation>.
Today:
blueprints/modules/a2ui_core.blueprint.mdonly writes the genericCatalog<TComponent, TFunction>and gives the schema-only case no name.- Dart
a2ui_coreexportstypedef SchemaCatalog = Catalog<ComponentApi, FunctionApi>(published in 0.2.x).a2ui_coreanda2ui_agentuse it in about 30 files. blueprints/codebases/typescript/a2ui_agent/design_doc.blueprint.mdusesSchemaCatalogtoo.- The other SDKs write the generic type out, or use their own names.
Tasks
- Blueprint: in
blueprints/modules/a2ui_core.blueprint.md(Catalog Layer), defineCatalogApias the name forCatalog<ComponentApi, FunctionApi>. Next toFunctionImplementation, explain when to use it (agents, validation, prompts) and when not (renderers that execute functions). UseCatalogApiinblueprints/modules/a2ui_agent.blueprint.mdwherever the agent SDK takes schema-only catalogs. - Dart (
dart/a2ui_core,dart/a2ui_agent): addtypedef CatalogApi = Catalog<ComponentApi, FunctionApi>and export it from the public facade. KeepSchemaCatalogas a@Deprecatedalias for at least one release. Move all uses toCatalogApi, and update the CHANGELOGs and READMEs. - TypeScript (
typescript/web_core,typescript/a2ui_agent): export aCatalogApitype alias from the public barrel, use it, and updateblueprints/codebases/typescript/a2ui_agent/design_doc.blueprint.md. - Python (
python/a2ui_core,python/a2ui_agent): add aCatalogApialias, include it in__all__, and use it in type hints. - Swift (
swift/core) and Kotlin: add the equivalent alias where the language supports one, or document why it doesn't apply. - Docs: update any public docs or samples that name the schema-only catalog type.
Acceptance criteria
- The core blueprint defines
CatalogApi. - Every SDK that has a schema-only catalog exports it as
CatalogApifrom its public facade. - The only remaining
SchemaCatalogis the deprecated Dart alias.
Source: a2ui-project/a2ui