Skip to content

API Reference parrot.outputs.a2ui.catalog.parrot.filterbar

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

parrot.outputs.a2ui.catalog.parrot.filterbar

View source

A2UI FilterBar catalog component (Module 5, FEAT-493 TASK-2715 — net-new).

The ONE net-new catalog vocabulary this feature adds — "a bar of filters over this surface's data model". Nothing in the 8 pre-existing Parrot composites expresses this. Display-only (requires_actions=False): a FilterBar declares available filters and each one's options; it carries no client-side state of its own in v1 (TASK-2716 adds the interactive multiselect behaviour on top of this vocabulary, on JS-capable surfaces only — JS-less surfaces degrade to a static summary, see a2ui_renderers/ssr_html.py).

Each declared filter lowers to a Basic Catalog ChoicePicker primitive, tagged parrot_role: "filter" + parrot_filter_column (the data-model column it applies to) so renderers can recognise a filter without needing to know this composite's own schema. A filter with exactly ONE declared option is lowered with that option pre-selected (value) — an unambiguous single choice; a filter with zero or multiple options starts unconstrained (value: [], meaning "all").

Alias BasicNode

Re-exported from parrot.outputs.a2ui.catalog.base.BasicNode.

Alias BasicTree

Re-exported from parrot.outputs.a2ui.catalog.base.BasicTree.

Alias Component

Re-exported from parrot.outputs.a2ui.models.Component.

Attribute FILTERBAR_INSTRUCTIONS

Attribute FILTERBAR_SCHEMA

Type: dict[str, Any]

Class FilterBarComponent

The FilterBar catalog component (display-only).

Method FilterBarComponent.lower

Lower a FilterBar to a Basic Catalog Row of ChoicePicker filters.

lower(component: Component, data_model: dict[str, Any]) -> BasicTree

Parameter Type Default Description
component Component
data_model dict[str, Any]

Returns: BasicTree

Alias register_component

Re-exported from parrot.outputs.a2ui.catalog.register_component.

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