Skip to content

API Reference parrot.outputs.a2ui.linked.models

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

parrot.outputs.a2ui.linked.models

View source

Wire models of parrot_data_sources and the transform DSL v1 (FEAT-598).

Attribute Aggregate

Class Derive

Fields:

Field Type Default Description
op Literal['derive'] 'derive'
name str
expr DeriveOperand

Class DeriveBinary

Fields:

Field Type Default Description
operator Literal['+', '-', '*', '/']
left DeriveOperand
right DeriveOperand

Attribute DeriveOperand

Class DerivedDataSource

A dashboard-owned view computed from a sibling source's frame — never fetched (linked dashboards).

The base frame is the full fetched (and transformed) frame of from (bounded by max_fetch_rows), not its ≤500-row snapshot; the derived rows are snapshotted like any other source so bake/HTML lanes see the computed view. Only inline transform.ops are allowed: a renderer-side ref cannot run in the Python executor, which would break Python ↔ renderer parity.

Fields:

Field Type Default Description
kind Literal['derived']
from_ str
transform TransformSpec
target str
snapshot_at datetime | None None
snapshot_truncated bool False

Class Filter

Fields:

Field Type Default Description
op Literal['filter'] 'filter'
column str
operator Literal['eq', 'ne', 'gt', 'ge', 'lt', 'le', 'in', 'contains']
value Any None

Class GroupBy

Fields:

Field Type Default Description
op Literal['group_by'] 'group_by'
by list[str]
aggregate dict[str, Aggregate]

Class Join

Fields:

Field Type Default Description
op Literal['join'] 'join'
with_ str
how Literal['inner', 'left'] 'inner'
on list[JoinKey]

Class JoinKey

Fields:

Field Type Default Description
left str
right str

Class Limit

Fields:

Field Type Default Description
op Literal['limit'] 'limit'
n int

Class LinkedDataSource

One data source of a linked surface (spec §2 Data Models).

Fields:

Field Type Default Description
kind Literal['query_slug'] 'query_slug'
slug str
tenant str | None None
is_multiquery bool False
multi_output str | None None
conditions dict[str, Any]
request SourceRequest
params dict[str, ParamSpec]
locked list[str]
transform TransformSpec | None None
target str
snapshot_at datetime | None None
snapshot_truncated bool False
refresh RefreshPolicy

Attribute LinkedSource

Class LinkedSources

Value of metadata.extensions['parrot_data_sources'] keyed by data-model root.

Attribute MIN_INTERVAL_SECONDS

Class ParamSpec

One user-editable query parameter (placeholder) of a source.

Fields:

Field Type Default Description
type str | None None
default Any None
required bool False
editable bool True
accepts_keywords bool False

Class Pivot

Fields:

Field Type Default Description
op Literal['pivot'] 'pivot'
index list[str]
columns str
values str
aggregate Aggregate 'sum'

Class PythonTransform

Server-side registered transformer applied to a fetched frame (G1: referenced by name, never code).

Runs ONLY in the Python lanes (bake, persist, server refresh, the per-source data endpoint) — the mirror image of transform.ref, which runs only in the renderer.

Fields:

Field Type Default Description
transformer str
params dict[str, Any]
input_alias str 'source'
output str | None None

Class RefreshPolicy

Renderer refresh policy: on_mount, manual, or interval.

Fields:

Field Type Default Description
policy Literal['on_mount', 'manual', 'interval'] 'on_mount'
interval_seconds int | None None

Class Rename

Fields:

Field Type Default Description
op Literal['rename'] 'rename'
mapping dict[str, str]

Class Select

Fields:

Field Type Default Description
op Literal['select'] 'select'
columns list[str]

Class Sort

Fields:

Field Type Default Description
op Literal['sort'] 'sort'
by list[SortKey]

Class SortKey

Fields:

Field Type Default Description
column str
direction Literal['asc', 'desc'] 'asc'

Class SourceRequest

Canonical, structured condition representation (S5).

Fields:

Field Type Default Description
placeholders dict[str, Any]
filter dict[str, Any]
fields list[str]
ordering list[str]
grouping list[str]
limit int | None None
offset int | None None

Attribute TransformOp

Class TransformRef

Catalogued renderer-side transform: opaque name@semver id plus SRI pin.

Fields:

Field Type Default Description
name str
integrity str

Class TransformSpec

Exactly one of inline DSL operations, a catalogued renderer module, or a server-side Python transformer.

Fields:

Field Type Default Description
ops list[TransformOp] | None None
ref TransformRef | None None
python PythonTransform | None None

Class Union_

Fields:

Field Type Default Description
op Literal['union'] 'union'
sources list[str]

Alias is_valid_pointer

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

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