Skip to content

API Reference parrot.outputs.a2ui.inline.prompt

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

parrot.outputs.a2ui.inline.prompt

View source

System-prompt addon for authoring one inline A2UI component (FEAT-755).

The addon carries PROSE ONLY — the component's catalog instructions plus any inline-specific authoring notes. The schema reaches the model as structured_output=component_model(component) (catalog/_model.py), mirroring how STRUCTURED_CHART advertises StructuredChartConfig instead of inlining its schema (bots/data.py:1504-1515). Keeping the two apart is what keeps prompt and schema from drifting (spec G6).

Attribute INLINE_AUTHORING_NOTES

Type: Final[dict[str, str]]

Attribute INLINE_COMPONENTS

Type: Final[frozenset[str]]

Function build_component_prompt

Return the system-prompt addon for authoring component inline.

Sections, in order: a header ("INLINE A2UI <Name> OUTPUT MODE"), the component's catalog instructions, INLINE_AUTHORING_NOTES for it (when present), and the fixed rules.

build_component_prompt(component: str) -> str

Parameter Type Default Description
component str The registered component name (e.g. "KPICard").

Returns: str — The prompt addon text.

Raises:

  • KeyError — If component is not registered in any catalog.

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