#2900·a2ui

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.md only writes the generic Catalog<TComponent, TFunction> and gives the schema-only case no name.
  • Dart a2ui_core exports typedef SchemaCatalog = Catalog<ComponentApi, FunctionApi> (published in 0.2.x). a2ui_core and a2ui_agent use it in about 30 files.
  • blueprints/codebases/typescript/a2ui_agent/design_doc.blueprint.md uses SchemaCatalog too.
  • The other SDKs write the generic type out, or use their own names.

Tasks

  1. Blueprint: in blueprints/modules/a2ui_core.blueprint.md (Catalog Layer), define CatalogApi as the name for Catalog<ComponentApi, FunctionApi>. Next to FunctionImplementation, explain when to use it (agents, validation, prompts) and when not (renderers that execute functions). Use CatalogApi in blueprints/modules/a2ui_agent.blueprint.md wherever the agent SDK takes schema-only catalogs.
  2. Dart (dart/a2ui_core, dart/a2ui_agent): add typedef CatalogApi = Catalog<ComponentApi, FunctionApi> and export it from the public facade. Keep SchemaCatalog as a @Deprecated alias for at least one release. Move all uses to CatalogApi, and update the CHANGELOGs and READMEs.
  3. TypeScript (typescript/web_core, typescript/a2ui_agent): export a CatalogApi type alias from the public barrel, use it, and update blueprints/codebases/typescript/a2ui_agent/design_doc.blueprint.md.
  4. Python (python/a2ui_core, python/a2ui_agent): add a CatalogApi alias, include it in __all__, and use it in type hints.
  5. Swift (swift/core) and Kotlin: add the equivalent alias where the language supports one, or document why it doesn't apply.
  6. 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 CatalogApi from its public facade.
  • The only remaining SchemaCatalog is the deprecated Dart alias.