Skip to content

API Reference parrot.outputs.a2ui.catalog.basic.inputs

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

parrot.outputs.a2ui.catalog.basic.inputs

View source

A2UI v1.0 Basic Catalog — input/actionable primitives (TASK-2536).

Button, TextField, CheckBox, ChoicePicker, Slider, DateTimeInput — the six primitives the official schema composes with common_types.json#/$defs/Checkable. Every field, enum, and default is transcribed from the vendored catalog/basic/spec/catalog.json (pinned SHA 90157ec10f36cf8e192daa71c95d2684af20c756) — see test_basic_primitives.py for the anti-drift comparison.

One-way import rule (G8): this module MUST NEVER import from parrot.bots, parrot.clients, agents, or DatasetManager.

Class Button

A clickable button dispatching an :class:Action.

Attributes:

Attribute Type Description
INSTRUCTIONS str
component Literal['Button']
child str
variant Literal['default', 'primary', 'borderless']
action Action

Class CheckBox

A boolean toggle with a label.

Attributes:

Attribute Type Description
INSTRUCTIONS str
component Literal['CheckBox']
label DynamicString
value DynamicBoolean

Class Checkable

Marks a primitive as one the official schema composes with Checkable.

Purely a documentation/typing marker in this codebase: the wire :class:~parrot.outputs.a2ui.models.Component already declares checks: list[CheckRule] | None on EVERY component (spec §2 — the generic top-level-props envelope). The official schema only actually composes common_types.json#/$defs/Checkable into these six primitives; mixing this in documents that fact and mirrors the schema's own allOf composition, without re-declaring the (already-inherited) checks field.

Class ChoiceOption

A single selectable option for :class:ChoicePicker.

Fields:

Field Type Default Description
label DynamicString
value str

Class ChoicePicker

Selects one or more options from a list.

Attributes:

Attribute Type Description
INSTRUCTIONS str
component Literal['ChoicePicker']
label DynamicString | None
variant Literal['multipleSelection', 'mutuallyExclusive']
options list[ChoiceOption]
value DynamicStringList
display_style Literal['checkbox', 'chips']
filterable bool

Class DateTimeInput

A date/time picker.

Attributes:

Attribute Type Description
INSTRUCTIONS str
component Literal['DateTimeInput']
value DynamicString
enable_date bool
enable_time bool
min DynamicString | None
max DynamicString | None
label DynamicString | None

Class Slider

A numeric range input.

Attributes:

Attribute Type Description
INSTRUCTIONS str
component Literal['Slider']
label DynamicString | None
min float
max float
value DynamicNumber
steps int | None

Class TextField

A single-line or multi-line text input.

Attributes:

Attribute Type Description
INSTRUCTIONS str
component Literal['TextField']
label DynamicString
value DynamicString | None
placeholder DynamicString | None
variant Literal['longText', 'number', 'shortText', 'obscured']

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