Skip to content

API Reference parrot_formdesigner.services.a2ui_translate

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot_formdesigner.services.a2ui_translate

View source

JSON Schema (legacy dialect) → A2UI createSurface by composition (FEAT-650, spec §3 M4).

Alias AbstractFormRenderer

Re-exported from parrot_formdesigner.renderers.base.AbstractFormRenderer.

Alias JsonSchemaExtractor

Re-exported from parrot_formdesigner.extractors.JsonSchemaExtractor.

Alias RenderedForm

Re-exported from parrot_formdesigner.core.schema.RenderedForm.

Attribute logger

Function translate_jsonschema_to_a2ui

JsonSchemaExtractor.extract → tenant stamp → A2UIFormRenderer.render.

translate_jsonschema_to_a2ui(schema: dict[str, Any], *, form_id: str | None = None, title: str | None = None, tenant: str | None = None, locale: str = 'en', renderer: AbstractFormRenderer | None = None) -> RenderedForm

Parameter Type Default Description
schema dict[str, Any] A JSON Schema document (typically JsonSchemaRenderer output).
form_id str | None None Slug for the resulting form (default "form").
title str | None None Title override.
tenant str | None None Stamped on the FormSchema so the surface's submit URL and parrot_tenant carry the caller's tenant (never read from the document).
locale str 'en' BCP 47 tag for label resolution.
renderer AbstractFormRenderer | None None Injected renderer (tests); default = the registered "a2ui" one.

Returns: RenderedForm — The rendered A2UI form.

Raises:

  • RuntimeError — When no "a2ui" renderer is available (ai-parrot extra missing).

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally