Repository navigation
Server & APIs Technical Guide to Structured Artifacts for Frontend
Audience: the Frontend team building the visualization UI (tables, charts and maps) on top of AI-Parrot.
Scope: STRUCTURED_TABLE (FEAT-218), STRUCTURED_CHART (FEAT-215) and STRUCTURED_MAP (FEAT-221), unified under the common contract of FEAT-223 (structured-artifact-contract).
Endpoint: AgentTalk (/api/v1/agents/chat/...).
This document is grounded in the actual code of the repository. The file paths and line numbers referenced are verification anchors (anti-hallucination) and may move over time; the semantic contract is what matters.
- Mental model: the common contract
- The AgentTalk response envelope
- AgentTalk endpoints
- STRUCTURED_TABLE
- STRUCTURED_CHART
- STRUCTURED_MAP
- Shared vocabularies (types and formats)
- Streaming
- Errors, edge cases and degradation
- Frontend integration checklist
The three structures (table, chart, map) share a single envelope
contract (FEAT-223). Understanding it once applies to all three.
Each artifact is split into two halves:
| Half | What it is | Who produces it | Where it travels (canonical contract) |
|---|---|---|---|
Presentation (config / definition) |
How to paint: chart type, columns, axes, tooltips, viewport, palette… | LLM and/or deterministic rules | Inside the artifact envelope response.artifacts[], in the definition field — without the rows
|
| Data (rows) | The actual rows / features | Deterministic (the DataFrame the agent computed, or the spatial result) | In the response.data field |
Read §2.5 — Canonical config location first. The implemented canonical contract (FEAT-224) is the artifact envelope in
response.artifacts[]. The config travels inartifacts[].definition(camelCase, withoutdata).response.outputremains as a deprecated mirror (G6);response.codeno longer carries config in the chart path. See §2.5 for the full status.
Invariant rules that the backend guarantees (verified in
packages/ai-parrot-visualizations/.../structured_base.py and in the parity
tests tests/outputs/formats/test_structured_parity.py):
-
The config (
definition) NEVER includes thedatakey. It is serialized withmodel_dump(mode="json", by_alias=True, exclude={"data"}). If you seedatainside the config, it is a bug. -
Rows ALWAYS go in
response.data. Never inside the config. -
The renderer never raises an exception. On failure it returns
(None, error_message)— the config will benulland the error text remains available. The frontend must handle a missing config. -
Field names in
camelCasein the output JSON (thanks topopulate_by_name=True+ alias). Internally the Python model usessnake_case, but what you receive over the API is camelCase. -
A prose explanation accompanies the artifact (the
wrapped/response), meant to be shown as the text message next to the visualization.
┌─────────────────────────── AgentTalk response (canonical) ────────────────────┐
│ artifacts[] → [{ type, artifactId, definition }] ← CONFIG (how to paint) │
│ definition = config WITHOUT rows, camelCase │
│ data → ROWS / FEATURES (what to paint) │
│ response → Explanatory text (prose for the user) │
│ output_mode → "structured_table" | "structured_chart" | "structured_map" │
│ artifact_id → id of the turn's primary artifact │
│ metadata → model, provider, tokens, session_id, turn_id, ... │
└────────────────────────────────────────────────────────────────────────────────┘
Key implication for the Frontend: to render any structured artifact you need to combine two fields: the config (the artifact's
definition) +response.data(rows). They do not arrive pre-merged (on purpose: it keeps the payload bounded and allows up to ~879k features without inflating the config).
OutputMode definition (packages/ai-parrot/src/parrot/models/outputs.py:37):
class OutputMode(str, Enum):
...
STRUCTURED_CHART = "structured_chart" # FEAT-215 — library-agnostic chart config
STRUCTURED_TABLE = "structured_table" # FEAT-218 — framework-agnostic table config
STRUCTURED_MAP = "structured_map" # FEAT-221 — framework-agnostic map configArtifactType (when the artifact is persisted —
packages/ai-parrot/src/parrot/storage/models.py:244):
class ArtifactType(str, Enum):
CHART = "chart"
MAP = "map" # added by FEAT-223 / TASK-1457
CANVAS = "canvas"
INFOGRAPHIC = "infographic"
DATAFRAME = "dataframe"
EXPORT = "export"All chat responses (JSON format) are serialized from the AIMessage model
(packages/ai-parrot/src/parrot/models/responses.py:72). The JSON envelope the
frontend receives has this shape:
{
"input": "string — la consulta original del usuario",
"output": "any — el artefacto / texto / config principal",
"response": "string — respuesta textual del modelo (prosa explicativa)",
"data": "any — datos estructurados (filas/features) cuando aplica",
"code": "string — código Python o definición JSON (charts)",
"output_mode": "structured_table | structured_chart | structured_map | json | html | ...",
"metadata": {
"model": "gpt-4",
"provider": "openai",
"session_id": "string",
"turn_id": "string",
"user_id": "string | null",
"response_time": 1234,
"usage": {
"prompt_tokens": 0,
"completion_tokens": 0,
"total_tokens": 0
},
"finish_reason": "stop",
"stop_reason": "string",
"created_at": "ISO-8601 (opcional)"
},
"sources": [
{
"source": "string",
"filename": "string",
"url": "string (opcional)",
"page_number": 0,
"score": 0.0,
"metadata": {}
}
],
"tool_calls": [
{ "name": "string", "status": "completed", "output": "any", "arguments": "any" }
]
}| Field | For structured artifacts |
|---|---|
output_mode |
Mode discriminator. structured_table|chart|map. Switch your renderer on this value. |
artifacts[] |
Canonical config container ({type, artifactId, definition}). definition = config without data. See §2.5. |
artifact_id |
Id of the turn's primary artifact (to retrieve / reference it). |
data |
Contains the rows (table/chart) or per-layer payloads (map). |
response |
Prose text to show the user next to the visualization. |
output |
Compat: today the backend still leaves the serialized config here (see §2.5). |
code |
Reserved for interpretable code (Python/TS) or null. It must not carry config (see §2.5). |
This section is the contract agreement between backend and frontend for FEAT-223. Explicitly decided; it supersedes any previous inference about
output/code.
The config of every structured artifact travels in response.artifacts[],
one envelope per artifact whose shape mirrors the persisted Artifact model
(storage/models.py):
{
"artifacts": [
{
"type": "chart", // "chart" | "map" | "table" (ArtifactType)
"artifactId": "art_abc123", // stable artifact id
"definition": { // = the CONFIG, camelCase, WITHOUT the data key
"type": "bar",
"x": "month",
"y": ["sales"],
"title": "Monthly Sales"
}
}
],
"data": [ { "month": "Jan", "sales": 100 } ], // rows/features (or per-layer payloads in map)
"response": "Las ventas crecieron de forma sostenida...", // prose
"output_mode": "structured_chart",
"artifact_id": "art_abc123" // echo of the turn's primary artifact
}Rules of the canonical contract:
-
artifacts[].definitionis the single source of truth for the config. It is themodel_dump(by_alias=True, exclude={"data"})of the correspondingStructured*Config. CamelCase, no rows. -
artifacts[].typeuses theArtifactTypevocabulary:"chart","map","table". It is the fine-grained discriminator that tells you the shape ofdefinition(StructuredChartConfig/StructuredMapConfig/StructuredTableConfig). -
response.datakeeps carrying the rows (table/chart) or the per-layer payloads (map). Same as before. -
response.codestaysnullunless the turn produces real code intended to be interpreted by the frontend (e.g. a TypeScript snippet) or the pandas analysis code. It never carries the artifact's config. -
artifact_id(root level) replicates the id of the turn's primary artifact, for deep-linking / persistence.
Note on
ArtifactType.TABLE: as of todayArtifactTypedefinesCHARTandMAPbut notTABLE(storage/models.py:244). The canonical contract assumesTABLE = "table"will be added as part of the unification refactor. Until then, a table might arrive typed asdataframe— confirm it with the backend before fixing the enum in the client.
The pipeline (bots/data.py + structured_chart.py) implements the canonical
contract since FEAT-224. All three modes produce:
| Mode | response.output |
response.data |
response.code |
artifacts[] |
|---|---|---|---|---|
structured_table |
rows (records) | pandas code or null
|
✅ [{type:"table", artifactId, definition}]
|
|
structured_map |
per-layer payloads | usually null
|
✅ [{type:"map", artifactId, definition}]
|
|
structured_chart |
rows (records) | ✅ null (config no longer duplicated) |
✅ [{type:"chart", artifactId, definition}]
|
Implemented contract:
-
Config: canonically in
response.artifacts[].definition(camelCase, withoutdata). -
Chart
code:null— the config is no longer duplicated here (FEAT-224 G3); theStructuredChartRendererreads its input fromresponse.output/structured_output. -
artifacts[]/artifact_id: populated for all three structured modes. -
response.output: still mirrors the config during the migration window (G6) so existing consumers don't break; deprecated — migrate toartifacts[]. -
Persistence (FEAT-103): the auto-save handler persists
definition(the config, not the rows) with the correctArtifactTypeper mode.
Implement a tolerant config selector that prefers the canonical contract and falls back to the current state, so that nothing breaks today or after the refactor:
function extractArtifact(resp) {
// 1) Canonical: artifacts[] with definition
const art = (resp.artifacts ?? []).find(a => a.definition);
if (art) return { type: art.type, config: art.definition };
// 2) Current compat: config in response.output, discriminated by output_mode
const typeByMode = {
structured_chart: "chart",
structured_map: "map",
structured_table: "table",
};
const type = typeByMode[resp.output_mode];
if (type && resp.output && typeof resp.output === "object") {
return { type, config: resp.output };
}
// 3) Last resort (legacy chart): config in response.code
if (resp.output_mode === "structured_chart" && resp.code && typeof resp.code === "object") {
return { type: "chart", config: resp.code };
}
return null; // no config → degrade to text (resp.response)
}
// Rows ALWAYS from response.data, under either contract:
const rows = resp.data ?? [];Once the backend completes the refactor, branch (1) will cover 100% of cases and you can retire (2) and (3). Until then, keep all three.
FEAT-473 adds a third channel, purely additive, to the three
structured_*modes: alongside the §2.5 contract (artifacts[]/output/data, unchanged), the response can now also carry a spec-conformant A2UI v1.0 envelope, built deterministically, without an LLM by the adapterparrot.outputs.a2ui.adapters.structured.
| Field | Before FEAT-473 | With FEAT-473 |
|---|---|---|
response.output |
Config (dict) |
Same + one new key: surfaceId
|
response.data |
Rows / per-layer payloads | Unchanged |
response.artifacts[] |
{type, artifactId, definition} (v1) |
{type, artifactId, surfaceId, schemaVersion: 2, definition} (v2) — definition is now an A2UI v1.0 component node, not the config dict |
response.a2ui_envelope |
Did not exist for structured_* modes |
New: {"version": "v1.0", "createSurface": {...}}
|
response.artifact_id |
Id of the v1 artifact | Same, but now == surfaceId
|
The only modification to
response.outputis thesurfaceIdkey. If your client strictly validates the shape ofoutput(closed JSON Schema), addsurfaceIdas an optional property before deploying this change.
{
"type": "chart",
"artifactId": "structured_chart-a1b2c3d4",
"surfaceId": "structured_chart-a1b2c3d4",
"schemaVersion": 2,
"definition": {
"id": "root",
"component": "Chart",
"catalogId": "https://parrot.dev/catalogs/v1",
"type": "bar",
"x": "month",
"y": ["sales"],
"title": "Monthly Sales",
"data": { "path": "/rows" }
}
}Rules:
-
schemaVersion: 2discriminates the new shape from v1 (schemaVersionabsent or1). Usecompat.is_legacy_artifact(entry)(backend) or check the key yourself in the client. surfaceId == artifactId == response.artifact_id.-
definitionis now an A2UI v1.0Componentnode (id,component,catalogId, top-level camelCase props,dataas a{"path": ...}binding) — not the flat config dict of v1. Its props match the config 1:1 (StructuredChartConfig/StructuredTableConfig/StructuredMapConfig), but the shape of the object changed. - If your client is not ready for v2, use the compatibility shim (next subsection) — supported until 0.31, removed in 0.32.
While you migrate, the backend exposes a pure helper (Python, backend side) that
downgrades a v2 definition to the exact v1 shape of FEAT-224 — useful if you
have persistence/BFF logic that still expects v1:
from parrot.outputs.a2ui.compat import is_legacy_artifact, artifact_definition_to_legacy
for entry in response.artifacts:
definition = (
entry["definition"] if is_legacy_artifact(entry)
else artifact_definition_to_legacy(entry)
)
# `definition` is now always the v1 dict (camelCase, without id/component/catalogId/data)On the client (TypeScript), the equivalent is simply to omit the A2UI wrapper keys of the component node:
function toLegacyDefinition(v2Definition: Record<string, any>) {
const { id, component, catalogId, data, datasets, ...config } = v2Definition;
return config; // == the v1 config (camelCase, no rows)
}response.a2ui_envelope is a complete A2UI v1.0 message — the same
format consumed by the satellite renderers (echarts, folium_map, pdf,
ssr_html, interactive_html, adaptive_cards) and any external
spec-conformant A2UI renderer. General shape:
{
"version": "v1.0",
"createSurface": {
"surfaceId": "string",
"catalogId": "https://parrot.dev/catalogs/v1",
"components": [ { "id": "root", "component": "Chart|DataTable|Map", "...": "props top-level" } ],
"dataModel": { "...": "filas/features, ver forma por componente abajo" }
}
}Rows/features of the dataModel, per component:
| Component | Binding pointer |
dataModel shape |
|---|---|---|
Chart / DataTable
|
{"path": "/rows"} |
{"rows": [ {...}, ... ]} |
Map |
per layer: {"path": "/layers/<i>/features"}
|
{"layers": [ {"features": [ {...}, ... ]}, ... ]} |
Overflow beyond the row_limit (1000 by default, same as in §4.3/§9.3):
Chart/DataTable carry no separate flag (the cap only applies to the
dataModel, response.data keeps the full set); DataTable does
expose totalRows/truncated as props (same as in v1); each Map layer
exposes totalCount/capped (same as MapLayer in v1 — see §6.3).
Complete, valid examples (all three pass validate_message on their
"lowered" form, the same two-layer check used by the rest of the backend —
see Appendix B):
- Chart → Appendix B.1
- Table → Appendix B.2
- Map (multi-layer) → Appendix B.3
function renderStructuredResponse(resp) {
// The v1 contract (§2.5) keeps working unchanged — use extractArtifact()
// if you haven't migrated yet. If you want the native A2UI path (external renderers,
// deep links, PDF/SSR/Adaptive Cards), use the envelope when present:
if (resp.a2ui_envelope) {
return renderA2UISurface(resp.a2ui_envelope); // your A2UI v1.0 renderer
}
return renderStructuredLegacy(resp); // fallback: extractArtifact() from §2.5
}Handler: AgentTalk(BaseView) in
packages/ai-parrot-server/src/parrot/handlers/agent.py. It is protected by
@is_authenticated() and @user_session().
Route registration (manager.py):
router.add_view('/api/v1/agents/chat/{agent_id}', AgentTalk)
router.add_view('/api/v1/agents/chat/{agent_id}/{method_name}', AgentTalk)| Method | Route | Purpose |
|---|---|---|
POST |
/api/v1/agents/chat/{agent_id} |
Chat with the agent (the main route for producing artifacts). |
POST |
/api/v1/agents/chat/{agent_id}/{method_name} |
Invoke a custom agent method. |
PATCH |
/api/v1/agents/chat/{agent_id} |
Configure the session's tools / MCP servers. |
PUT |
/api/v1/agents/chat/{agent_id} |
Upload data or query slugs. |
GET |
/api/v1/agents/chat/ |
Info / debug / MCP server listing. |
Authorization: Bearer <token>
Content-Type: application/json (POST/PATCH/PUT)
Accept: application/json | text/html | text/markdown | text/plain (optional)
Format negotiation (priority): explicit output_mode/output_format parameter
in the body > ?output_format= query string > Accept header > default json.
For structured artifacts, always work in JSON and set output_mode
explicitly.
{
"query": "string (REQUERIDO) — la pregunta / instrucción",
"agent_name": "string (opcional)",
"session_id": "string (opcional; se genera un UUID si falta)",
"user_id": "string (opcional)",
"stream": false,
"output_mode": "structured_table | structured_chart | structured_map",
"search_type": "similarity",
"return_sources": true,
"use_vector_context": true,
"use_conversation_history": true,
"message_id": "string (opcional; id de cliente para deduplicación)",
"turn_id": "string (opcional; para follow-up)",
"data": "any (opcional; datos de follow-up)",
"ws_channel_id": "string (opcional; canal WebSocket para notificaciones)",
"format_kwargs": {
"show_metadata": true,
"show_sources": true,
"include_sources": true,
"include_tool_calls": true,
"interactive": true
}
}Key fields for the visualization Frontend:
-
output_mode: sets the type of artifact you want (structured_table,structured_chart,structured_map). If you omit it, the agent decides its default mode and you might not receive a structured config. -
session_id: keep the same value across turns to preserve the conversation thread. -
message_id: client-generated id to deduplicate retries.
The POST can return, with HTTP 200, envelopes that are NOT a normal chat response:
HITL paused (PausedEnvelope, FEAT-204): the agent needs human input.
{
"status": "paused",
"turn_id": "string (interaction_id)",
"interaction_id": "string",
"interaction_type": "single_choice | free_text | form",
"question": "string",
"context": "string (opcional)",
"options": [{ "label": "string", "value": "string", "description": "string" }],
"form_schema": { "...": "JSON Schema (opcional)" },
"default_response": "any (opcional)",
"deadline": "ISO-8601 (opcional)",
"source_agent": "string"
}To resume, resend a POST with hitl_response:
{ "hitl_response": { "turn_id": "<interaction_id>", "value": "<respuesta>", "response_type": "string (opcional)" } }Authorization required (AuthRequiredEnvelope): a tool needs OAuth.
{
"type": "auth_required",
"provider": "jira",
"tool_name": "string (opcional)",
"auth_url": "string (opcional)",
"scopes": ["..."],
"message": "string legible"
}The Frontend must detect
status == "paused"andtype == "auth_required"BEFORE trying to parse an artifact. Both arrive with 200.
Return a framework-agnostic table: the minimal contract that any grid
library needs (column key, storage type, human-readable label and optional
format hint), plus the rows in response.data.
The presentation (column types) is deterministic (inferred from the actual
DataFrame via base_column_types). An optional LLM pass can refine the
format hints of ambiguous columns — but the deterministic result always wins and
hard types (number, datetime, boolean) are never mutated.
class TableColumn(BaseModel):
name: str # column key — matches a key in every row
type: str # storage type (see §7)
title: str # human-readable label
format: Optional[str] # optional display hint (see §7); does NOT change the base type
class StructuredTableConfig(BaseModel):
model_config = ConfigDict(populate_by_name=True)
columns: List[TableColumn]
data: List[dict] # INPUT-ONLY — excluded from the output, goes to response.data
explanation: Optional[str] # prose on how the table was derived (best-effort)
total_rows: Optional[int] # total rows BEFORE truncation
truncated: bool = False # True if trimmed to row_limit (default 1000)| Attribute (camelCase) | Type | Description |
|---|---|---|
columns |
TableColumn[] |
Per-column contract. Order matters — use it as the column order in the grid. |
columns[].name |
string |
Key that matches the key of each row object in response.data. |
columns[].type |
string |
Storage type (§7). Determines parsing/alignment/sorting. |
columns[].title |
string |
Human-readable header. |
columns[].format |
string? |
Presentation hint (currency, percent, email, uri, enum, id, code). Only a hint; it does not change the base type. |
explanation |
string? |
Prose description of the table's origin. Absent → omit. |
totalRows |
int? |
Real total before truncation. Useful to indicate "showing 1000 of N". |
truncated |
bool |
true if trimmed to row_limit. Show a truncation notice. |
Config = artifacts[].definition (canonical) / response.output (compat today) — without data, camelCase:
{
"columns": [
{ "name": "id", "type": "integer", "title": "ID" },
{ "name": "price", "type": "number", "title": "Price", "format": "currency" },
{ "name": "created_at", "type": "datetime", "title": "Created" }
],
"explanation": "Fetched from the orders table.",
"totalRows": 5000,
"truncated": true
}Rows (in response.data):
[
{ "id": 1, "price": 29.99, "created_at": "2026-06-01T10:30:00Z" },
{ "id": 2, "price": 49.99, "created_at": "2026-06-02T14:15:00Z" }
]function renderTable(resp) {
const { config: cfg } = extractArtifact(resp); // see §2.5 (canonical + compat)
const rows = resp.data ?? []; // actual rows
const grid = cfg.columns.map(c => ({
field: c.name,
header: c.title,
formatter: pickFormatter(c.type, c.format), // see §7
}));
if (cfg.truncated) showBanner(`Mostrando ${rows.length} de ${cfg.totalRows}`);
return <DataGrid columns={grid} rows={rows} caption={cfg.explanation} />;
}Return a library-agnostic chart config (mirror of the frontend's
AppChartConfig). Here the presentation is decided by the LLM (chart type,
x/y columns, palette, title, description), while the rows come
deterministically from the DataFrame the agent computed (injected into
response.data).
Anti-hallucination safeguard: if the LLM picks a column that does not exist in
the actual data, the renderer applies a deterministic fallback (first
non-numeric column as x, first numeric as y) so the frontend never
receives an invalid config. Rows are always read from response.data,
never from cfg.data.
ChartType = Literal["bar", "horizontalBar", "line", "area", "scatter",
"pie", "donut", "radar", "map"]
XAxisMode = Literal["category", "time"]
class StructuredChartConfig(BaseModel):
model_config = ConfigDict(populate_by_name=True)
type: ChartType # chart type
x: str # label/category column
y: List[str] # one or more value columns (multi-series)
stacked: Optional[bool]
trendline: Optional[bool]
split_series: Optional[bool] # alias: splitSeries
show_legend: Optional[bool] # alias: showLegend
x_axis_mode: Optional[XAxisMode] # alias: xAxisMode
palette: Optional[List[str]] # list of hex colors
color_by_sign: Optional[bool] # alias: colorBySign
negative_color: Optional[str] # alias: negativeColor
positive_color: Optional[str] # alias: positiveColor
x_axis_label: Optional[str] # alias: xAxisLabel
y_axis_label: Optional[str] # alias: yAxisLabel
map_name: Optional[str] # alias: mapName (REQUIRED if type="map")
title: Optional[str]
description: Optional[str]
data: List[dict] # INPUT-ONLY — excluded from the output
data_variable: Optional[str] # alias: dataVariable| Attribute (camelCase) | Type | Description |
|---|---|---|
type |
enum |
bar, horizontalBar, line, area, scatter, pie, donut, radar, map. |
x |
string |
Name of the categorical / label column. It is a column name, it must exist in response.data. |
y |
string[] |
One or more value columns (multi-series). |
stacked |
bool? |
Stack series (bar/area/line). |
trendline |
bool? |
Show a trend line. |
splitSeries |
bool? |
Render each y series as a separate chart. |
showLegend |
bool? |
Show legend. |
xAxisMode |
enum? |
"category" (labels) or "time" (requires ISO 8601 strings in x). |
palette |
string[]? |
List of hex colors. |
colorBySign |
bool? |
Color bars/points by sign (positive/negative). |
negativeColor / positiveColor
|
string? |
Hex for negative/positive values when colorBySign=true. |
xAxisLabel / yAxisLabel
|
string? |
Human-readable axis label (overrides the column name). |
mapName |
string? |
GeoJSON map identifier. REQUIRED if type="map" (choropleth-type chart). |
title |
string? |
Short title (≤1 line), card header. |
description |
string? |
Short natural-language paragraph summarizing how to read the chart; shown as the message text. |
dataVariable |
string? |
Name of the source DataFrame variable (disambiguates when there were multiple DataFrames). |
Model validation: the only hard constraint is that
type="map"requiresmapName. The alignment ofx/ywith the actual columns is NOT validated in the model (the renderer reconciles it with a fallback). Trust thatx/ypoint to existing columns inresponse.datawhen you receive it.
Config = artifacts[].definition (canonical) / today in response.output and duplicated in response.code (see §2.5) — without data, camelCase:
{
"type": "bar",
"x": "month",
"y": ["sales"],
"title": "Monthly Sales",
"description": "Sales trend over the past 6 months showing steady growth.",
"showLegend": true,
"xAxisMode": "category",
"palette": ["#1f77b4", "#ff7f0e"]
}Rows (in response.data):
[
{ "month": "Jan", "sales": 100 },
{ "month": "Feb", "sales": 120 },
{ "month": "Mar", "sales": 115 }
]{
"type": "line",
"x": "date",
"y": ["revenue", "cost"],
"xAxisMode": "time",
"showLegend": true,
"yAxisLabel": "USD"
}With xAxisMode="time", the x values in response.data will be ISO
8601 strings; parse them to dates on the time axis.
Return everything the frontend needs to paint a Leaflet map — without the backend rendering anything (invariant inherited from FEAT-219: "the backend returns only data, never a map").
The result is organized into one layer per dataset. Each layer brings its own
data schema (columns) + presentation schema (tooltip, label,
dataShape) + capping metadata. At the map level: viewport, query
geometry, base layer hint and prose.
Same as table: deterministic presentation (from DatasetSpatialProfile) +
optional LLM refine (deterministic wins). Rows/features go to
response.data as a list of per-layer payloads.
class MapColumn(BaseModel): # same vocabulary as TableColumn
name: str
type: str
title: str
format: Optional[str]
class MapLayer(BaseModel):
model_config = ConfigDict(populate_by_name=True)
layer: str # Leaflet layer id / GeoJSON source discriminator
columns: List[MapColumn]
tooltip_template: Optional[str] # alias: tooltipTemplate (str.format_map over properties)
label_field: Optional[str] # alias: labelField (property key for the marker label)
data_shape: Literal["geojson","rows"] # alias: dataShape (payload shape of this layer)
total_count: int = 0 # alias: totalCount (real count before capping)
capped: bool = False # True if truncated to the per-dataset cap
geodesic: Optional[bool] # True = geodesic path; False = spherical approx.
class MapViewport(BaseModel):
bbox: Optional[List[float]] # [min_lng, min_lat, max_lng, max_lat]
center: Optional[Tuple[float,float]] # (lat, lng) — optional, the front can derive it from bbox
zoom: Optional[int]
class MapQuery(BaseModel):
point: Tuple[float, float] # (lat, lng) — echo of the SpatialFilterSpec
radius: float
unit: Literal["mi","km","m"]
class StructuredMapConfig(BaseModel):
model_config = ConfigDict(populate_by_name=True)
layers: List[MapLayer]
data: List[dict] # INPUT-ONLY — excluded; goes to response.data
viewport: Optional[MapViewport]
query: Optional[MapQuery]
base_layer: Optional[str] # alias: baseLayer (tile/style hint)
title: Optional[str]
description: Optional[str]
explanation: Optional[str] # longer prose about the spatial resultMap level (StructuredMapConfig)
| Attribute (camelCase) | Type | Description |
|---|---|---|
layers |
MapLayer[] |
One layer per dataset. |
viewport |
MapViewport? |
Framing hints, computed from the features' bounds. |
query |
MapQuery? |
Echo of the original spatial query (point/radius/unit). Useful for drawing the search circle. |
baseLayer |
string? |
Tile/style hint (e.g. OSM tile URL or Mapbox style id). |
title |
string? |
Short map title. |
description |
string? |
Brief description. |
explanation |
string? |
Longer prose explanation of the spatial result. |
Layer level (MapLayer)
| Attribute (camelCase) | Type | Description |
|---|---|---|
layer |
string |
Layer id / source discriminator. Matches the entry in response.data. |
columns |
MapColumn[] |
Per-column contract over feature.properties (same vocabulary as table). |
tooltipTemplate |
string? |
str.format_map template for a client-side tooltip over the properties (compact — not per-item pre-rendered strings). |
labelField |
string? |
Property key for the marker label. |
dataShape |
enum |
"geojson" (FeatureCollection as is) or "rows" (flat rows + geometry ref). |
totalCount |
int |
Real per-dataset count before capping. |
capped |
bool |
true if this layer was truncated to the cap. |
geodesic |
bool? |
true = geodesic path; false = spherical approximation. |
MapViewport: bbox = [min_lng, min_lat, max_lng, max_lat]; center =
(lat, lng); zoom = optional integer.
MapQuery: point = (lat, lng); radius = number; unit = "mi"|"km"|"m".
Unlike table/chart (flat list of rows), in maps response.data is
a list of payloads, one per layer (verified in
structured_map.py):
[
{
"dataset": "places",
"layer": "places",
"data_shape": "geojson",
"payload": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": { "type": "Point", "coordinates": [-74.0, 40.71] },
"properties": { "name": "Place A", "rating": 4.8 }
}
]
}
}
]When dataShape="rows", the payload is not a FeatureCollection but:
{
"rows": [
{ "name": "Place A", "rating": 4.8, "_geometry": { "type": "Point", "coordinates": [-74.0, 40.71] } }
],
"truncated": false
}That is: each flat row includes a _geometry key with the GeoJSON
geometry, so the frontend can place the marker without a FeatureCollection.
Config = artifacts[].definition (canonical) / response.output (compat today) — without data, camelCase:
{
"layers": [
{
"layer": "places",
"columns": [
{ "name": "name", "type": "string", "title": "Place Name" },
{ "name": "rating", "type": "number", "title": "Rating" }
],
"tooltipTemplate": "{name} — Rating: {rating}",
"labelField": "name",
"dataShape": "geojson",
"totalCount": 125,
"capped": false,
"geodesic": true
}
],
"viewport": {
"bbox": [-74.01, 40.71, -73.99, 40.72],
"center": [40.715, -74.0],
"zoom": 13
},
"query": { "point": [40.715, -74.0], "radius": 5.0, "unit": "mi" },
"title": "Nearby Places",
"description": "Popular places within 5 miles of your location.",
"explanation": "Found 125 places matching your spatial filter."
}function renderMap(resp) {
const { config: cfg } = extractArtifact(resp); // see §2.5 (canonical + compat)
const payloads = resp.data ?? []; // [{dataset, layer, data_shape, payload}, ...]
const map = L.map('map');
if (cfg.viewport?.bbox) {
const [minLng, minLat, maxLng, maxLat] = cfg.viewport.bbox;
map.fitBounds([[minLat, minLng], [maxLat, maxLng]]);
}
for (const layerCfg of cfg.layers) {
const entry = payloads.find(p => p.layer === layerCfg.layer);
const features = layerCfg.dataShape === 'geojson'
? entry.payload.features
: entry.payload.rows.map(rowToFeature); // use _geometry
const leafletLayer = L.geoJSON(features, {
onEachFeature: (f, lyr) => {
if (layerCfg.tooltipTemplate)
lyr.bindTooltip(formatTemplate(layerCfg.tooltipTemplate, f.properties));
}
}).addTo(map);
if (layerCfg.capped) showBanner(`${layerCfg.layer}: mostrando cap de ${layerCfg.totalCount}`);
}
if (cfg.query) drawSearchCircle(map, cfg.query); // point + radius + unit
}Tooltips:
tooltipTemplateis a Pythonstr.format_map-style template ({key}placeholders filled fromfeature.properties). The frontend must implement the replacement of{field}withfeature.properties[field]. It is deliberately compact so as not to inflate the payload with thousands of strings.
Shared by TableColumn and MapColumn. Inferred deterministically from the
actual DataFrame (base_column_types).
type |
Meaning | Render suggestion |
|---|---|---|
string |
Text | Left alignment |
integer |
Integers | Right alignment, no decimals |
number |
Floats/decimals | Right alignment, decimals/locale |
boolean |
true/false | Check / chip |
date |
Date without time (ISO 8601) | Local date format |
datetime |
Date + time (ISO 8601) | Local datetime format |
time |
Time of day | Time format |
duration |
Time interval | Duration format |
any |
Unknown / fallback | Raw text |
Optional and only applied to ambiguous columns by the LLM refine pass (hard types never change). They are a display hint, they do not alter the base type.
format |
Suggested render |
|---|---|
currency |
Currency symbol + separators |
percent |
% suffix |
email |
mailto: link |
uri |
Hyperlink |
enum |
Categorical chip / badge |
id |
Monospaced, copyable |
code |
Monospaced |
The output JSON uses camelCase. Quick reference:
| Python (snake_case) | API (camelCase) |
|---|---|
split_series |
splitSeries |
show_legend |
showLegend |
x_axis_mode |
xAxisMode |
x_axis_label |
xAxisLabel |
y_axis_label |
yAxisLabel |
color_by_sign |
colorBySign |
negative_color |
negativeColor |
positive_color |
positiveColor |
map_name |
mapName |
data_variable |
dataVariable |
tooltip_template |
tooltipTemplate |
label_field |
labelField |
data_shape |
dataShape |
total_count |
totalCount |
base_layer |
baseLayer |
total_rows |
totalRows |
If you send "stream": true, AgentTalk responds with HTTP chunked transfer
(not classic SSE). Headers:
Content-Type: text/plain; charset=utf-8
Transfer-Encoding: chunked
X-Parrot-Stream: chunked-aimessage
X-Accel-Buffering: no
Stream format:
- Text chunks — the textual content is emitted as is while it is generated.
-
Binary separator — the sentinel sequence
\n\x00. -
Final envelope — a JSON with the
AIMessagemetadata (model, provider, session_id, turn_id, usage, sources, tool_calls).
Client-side parsing: accumulate bytes until you find \n\x00; everything before is
the streamed text, everything after is the final JSON envelope.
Recommendation for structured artifacts: use the non-streaming mode (
stream:false). The config + data payload is a single object that you need complete to render; streaming is designed for incremental text, not for structured configs.
The renderer never raises; on failure it returns (None, error_message). In
the envelope this translates into a missing/null config and an error text in
the prose. The frontend must handle a null config and fall back to showing the
explanatory text (response) or a graceful error message.
- Table/chart:
response.datamay be[]. Show an empty state. - Map: a layer with zero features is preserved as an empty layer (not dropped);
columnsmay come from the profile even if there are no features.
- Table:
truncated:true+totalRows→ "showing N of total" banner. - Map: per layer
capped:true+totalCount→ per-layer banner. The defaultrow_limitof the table renderer is 1000.
| Code | When |
|---|---|
200 OK |
Successful chat, or PausedEnvelope (HITL), or AuthRequiredEnvelope. |
202 Accepted |
PUT (file upload / slug in background). |
204 No Content |
PATCH with no refresh result. |
400 Bad Request |
Missing agent_name/query, invalid JSON. |
403 Forbidden |
PBAC denies access, or unauthenticated HITL resume. |
404 Not Found |
Agent not found. |
500 Internal Server Error |
LLM/tool error, corrupt HITL state. |
const r = await postChat(...);
if (r.status === 'paused') return handleHITL(r); // §3.3
if (r.type === 'auth_required') return handleAuth(r); // §3.3
const art = extractArtifact(r); // §2.5
if (!art) return renderText(r.response ?? r.output); // no config → text
switch (art.type) { // "chart" | "map" | "table"
case 'table': return renderTable(r);
case 'chart': return renderChart(r);
case 'map': return renderMap(r);
default: return renderText(r.response ?? r.output);
}The
switchis done onart.type(ArtifactTypevocabulary), which is equivalent to switching onoutput_mode. Use whichever is available depending on the contract (canonical →art.type; compat →output_mode).
- Send an explicit
output_mode(structured_table|chart|map) in the POST. - Keep
session_idstable across turns; usemessage_idfor dedup. - Read the config with
extractArtifact()(§2.5): preferartifacts[].definition(canonical) and fall back toresponse.output/response.code(current compat). Combine with the rows fromresponse.data— they do not arrive merged. - Treat all config field names as camelCase.
- Detect
status:"paused"andtype:"auth_required"(both arrive with 200) before parsing artifacts. - Handle a
nullconfig (graceful degradation → showresponse). - Table: respect the order of
columns; maptype/formatto formatters; handletruncated/totalRows. - Chart: switch on
type; support multi-series (y[]); handlexAxisMode:"time";type:"map"requiresmapName. - Map: match
cfg.layers[].layerwithresponse.data[].layer; supportdataShapegeojsonandrows(with_geometry); rendertooltipTemplateclient-side; frame withviewport.bbox; drawquery(point/radius/unit). - Streaming is discouraged for structured artifacts; if used, parse with the
\n\x00sentinel. - (FEAT-473, optional) If you consume the native A2UI envelope, read
response.a2ui_envelopewhen present (§2.6); remember thatresponse.outputonly gains thesurfaceIdkey — nothing else changes. If your backend/BFF still expectsartifacts[].definitionv1, use theartifact_definition_to_legacyshim (§2.6) until 0.32.
| Component | Path |
|---|---|
OutputMode enum |
packages/ai-parrot/src/parrot/models/outputs.py:37 |
StructuredChartConfig |
packages/ai-parrot/src/parrot/models/outputs.py:309 |
TableColumn / StructuredTableConfig
|
packages/ai-parrot/src/parrot/models/outputs.py:483,520 |
MapColumn/MapLayer/MapViewport/MapQuery/StructuredMapConfig
|
packages/ai-parrot/src/parrot/models/outputs.py:592–820 |
ArtifactType enum |
packages/ai-parrot/src/parrot/storage/models.py:244 |
| Common contract mixin | packages/ai-parrot-visualizations/src/parrot/outputs/formats/structured_base.py |
| Chart renderer | packages/ai-parrot-visualizations/src/parrot/outputs/formats/structured_chart.py |
| Table renderer | packages/ai-parrot-visualizations/src/parrot/outputs/formats/structured_table.py |
| Map renderer | packages/ai-parrot-visualizations/src/parrot/outputs/formats/structured_map.py |
| Parity tests | packages/ai-parrot/tests/outputs/formats/test_structured_parity.py |
| Config/data routing (PandasAgent) |
packages/ai-parrot/src/parrot/bots/data.py:1561-1606 (map/chart staging), :1869-1872 (final assignment to output/response) |
| Chart renderer input read |
packages/ai-parrot-visualizations/.../structured_chart.py (steps 1a/1b: reads response.code) |
Persisted Artifact model (mirror of artifacts[].definition) |
packages/ai-parrot/src/parrot/storage/models.py:273 (from_chart_config, definition) |
| AgentTalk handler | packages/ai-parrot-server/src/parrot/handlers/agent.py |
AIMessage (envelope) |
packages/ai-parrot/src/parrot/models/responses.py:72 |
| FEAT-215 spec | sdd/specs/structured-chart-output.spec.md |
| FEAT-218 spec | sdd/specs/structured-table.spec.md |
| FEAT-221 spec | sdd/specs/structured-map-output.spec.md |
| FEAT-223 spec (common contract) | sdd/specs/structured-artifact-contract.spec.md |
| A2UI v1.0 adapter (FEAT-473) | packages/ai-parrot/src/parrot/outputs/a2ui/adapters/structured.py |
_route_envelope hook (dual-emit, FEAT-473) |
packages/ai-parrot-visualizations/src/parrot/outputs/formats/structured_base.py |
artifacts[] v1↔v2 compatibility shim |
packages/ai-parrot/src/parrot/outputs/a2ui/compat.py |
attach_structured_artifact helper |
packages/ai-parrot/src/parrot/outputs/a2ui/artifacts.py |
| FEAT-473 spec | sdd/specs/a2ui-v1-structured-outputs.spec.md |
| FEAT-473 migration note | wiki/migration/feat-473-structured-a2ui.md |
The three envelopes below are real output of
parrot.outputs.a2ui.adapters.structured (not handwritten) — each one
passes validate_envelope(origin=TOOL) and, in its "lowered" form (see
adapters/structured.py's _validate_wire), validate_message against the
official JSON Schema agent_to_renderer.json.
{
"version": "v1.0",
"createSurface": {
"surfaceId": "structured_chart-a1b2c3d4",
"catalogId": "https://parrot.dev/catalogs/v1",
"sendDataModel": false,
"components": [
{
"id": "root",
"component": "Chart",
"type": "bar",
"x": "month",
"y": ["sales"],
"showLegend": true,
"xAxisMode": "category",
"palette": ["#1f77b4", "#ff7f0e"],
"title": "Monthly Sales",
"description": "Sales trend over the past 6 months showing steady growth.",
"data": { "path": "/rows" }
}
],
"dataModel": {
"rows": [
{ "month": "Jan", "sales": 100 },
{ "month": "Feb", "sales": 120 },
{ "month": "Mar", "sales": 115 }
]
}
}
}{
"version": "v1.0",
"createSurface": {
"surfaceId": "structured_table-b2c3d4e5",
"catalogId": "https://parrot.dev/catalogs/v1",
"sendDataModel": false,
"components": [
{
"id": "root",
"component": "DataTable",
"columns": [
{ "name": "id", "type": "integer", "title": "ID", "format": null },
{ "name": "price", "type": "number", "title": "Price", "format": "currency" }
],
"truncated": false,
"totalRows": 2,
"data": { "path": "/rows" }
}
],
"dataModel": {
"rows": [
{ "id": 1, "price": 29.99 },
{ "id": 2, "price": 49.99 }
]
}
}
}{
"version": "v1.0",
"createSurface": {
"surfaceId": "structured_map-c3d4e5f6",
"catalogId": "https://parrot.dev/catalogs/v1",
"sendDataModel": false,
"components": [
{
"id": "root",
"component": "Map",
"layers": [
{
"layer": "places",
"columns": [
{ "name": "name", "type": "string", "title": "Place Name", "format": null },
{ "name": "rating", "type": "number", "title": "Rating", "format": null }
],
"tooltipTemplate": "{name} — Rating: {rating}",
"labelField": "name",
"dataShape": "geojson",
"totalCount": 1,
"capped": false,
"geodesic": null,
"markerColor": null,
"data": { "path": "/layers/0/features" }
}
],
"viewport": {
"bbox": [-74.01, 40.71, -73.99, 40.72],
"center": [40.715, -74.0],
"zoom": 13
},
"title": "Nearby Places",
"description": "Popular places within 5 miles of your location."
}
],
"dataModel": {
"layers": [
{
"features": [
{
"name": "Place A",
"rating": 4.8,
"_geometry": { "type": "Point", "coordinates": [-74.0, 40.71] }
}
]
}
]
}
}
}Document generated for the AI-Parrot Frontend team. Source: code on the
dev branch as of 2026-06-04, extended for FEAT-473 (A2UI v1.0 envelope,
dual-emit) as of 2026-08-29. For changes to the field names of the map
contract (pending frontend confirmation in FEAT-221 §8), coordinate with the
backend before fixing types in the client.
- 1. MCP Server — exposing tools as a service
- 2. A2A — exposing agents and orchestrators as services
- 3. Toolkits for third party services and Cloud Security composition
- 4. Interaction surface — WebSockets, audio, integrations
- 5. Hardening — anti prompt injection, PBAC and tool gating
- 6. Cross cutting concerns and reference deployment
- 7. AgentCrew — Sequential, Parallel, Flow and Loop execution
- 8. AgentsFlow — DAG first orchestration with per node FSM
- 9. Ontologic RAG — graph first retrieval, intent routing & multi tenant knowledge
- 10. Observability — OpenLIT + OpenTelemetry
- Class Catalog by Module
- Module level Functions Catalog
- AI Parrot — Exposure, Interoperability & Hardening Architecture
- Agent Mesh
- AgentService — Standalone Runtime for Autonomous Agents
- AbstractClient: The Provider Client Family
- Anthropic client
- Bedrock Mantle Client
- TypeSafe System One Client (
JevClient) - Meta Model API Client (Muse Spark)
- OpenAI Compatible Client Base (
OpenAIBaseClient) - Per Loop LLM Client Cache
- Question Token Budgets (Bedrock Converse, Nova text, Bedrock Mantle)
- Agent Configure Lifecycle
- AgentTalk Integration Guide
- Agent Configuration via
agents.yaml - AgentFactory HTTP API
- Agent Studio — API Reference
- Agent CLI Daemon (agentd)
- FirefliesInsightsAgent
- Follow up Suggestion Chips (FEAT 752)
- Agents and Chatbots: The Bot Class Hierarchy
- Agent Studio — database storage (host guide)
- Ephemeral User Agents — Frontend Integration Handoff
parrot agent— Agent Terminal Workspace- Crew Handler
- Database Agent
- Running the CVE Experts
- Domain Experts (FEAT 778)
- FEAT 437
- Technical Voice Guide (AgentTalk Voice) for Frontend
- AgentDashboard — A2UI v1.0 Technical Reference for
navigator frontend next - Semantic UI Model → Adaptive Cards (FEAT 303)
- Exposing an AI Parrot Agent as an MCP Server
- AgentCrew User Guide
- AgentsFlow User Guide
- Crew Definition Storage
- A2UI Agent Functions Runtime — the v1.0 RPC leg (FEAT 469)
- Capabilities of an AI Parrot Analytical Agent (PandasAgent)
- Agent Security Guardrails (FEAT 761)
- SpawnSubAgentTool
- Testagent
- Agentic End to End Testing (FEAT 581)
- Uiagent
- WebAgent — Browser Interaction via Chrome DevTools
- WebNavigatorAgent — Catalogued Web Navigation on Your Chrome Profile
- ExecutionMemory Integration Guide
- Agent Brain
- Agent Memory
- Conversation History Ownership
- Conversation Memory Subsystem Overview
- Dream Cycle — episodic → wiki brain consolidation
- Durable Conversation Memory
- Memory Dynamics
- Per Turn Conversation Compaction
- Recoverable Task Memory (FEAT 538)
- Task Memory — Phase 0 Integration Map (FEAT 538 / TASK 2970)
- User Memory
- Bookstore Agentic Retrieval
- Bookstore in Codex
- Bookstore Conceptual Relations — the book graph (FEAT 533)
- Bookstore notebooks
- Contracts catalog performance (FEAT 539, AC14)
- Contracts pilot acceptance — Bob's twelve cases (FEAT 539, AC15)
- Contracts Card & Ontology (FEAT 539)
- Luau parser resource policy (FEAT 532 TASK 2896)
- Glossary of Terms (FEAT 917)
- GraphIndex core seams (FEAT 540)
- GraphIndex — Structured Knowledge Graph Indexing
- Local Knowledge Base
- Procedure Graph — Assembly Manuals (FEAT 601)
- Ontology backend programme
- Ontology vocabulary store
- PageIndex Agentic Retrieval and Citations
- PageIndex Generation Publication
- PageIndex Layout Structure Builder
- PageIndex Local MCP Toolkit
- PageIndex Segment Store
- PageIndex Tree Optimizer
- PageIndex — Tree Based RAG for Document Retrieval
- ArxivTool for AI Parrot
- Accounting metrics layer
- Tool Result Compression Pipeline (FEAT 380)
- DatasetManager Implementation Walkthrough
- FredAPITool Documentation
- EmployeesTool Employee Hierarchy Tool for AI Parrot
- HoobaToolkit
- Jira text templates (JiraToolkit)
- Expose Toolkits as Local MCP (
parrot mcp local) - MultiStoreSearch Toolkit — Multi Origin Retrieval for Agents
- Supervised Obscura Browser Integration
- OdooHelpdeskToolkit — Softhealer helpdesk on Odoo 19
- OdooToolkit Capabilities
- QuerysourceToolkit
- ReadOnlyRepoToolkit (FEAT 484)
- PythonREPLTool Sandbox: Worker Process Execution Model
- Research Tools for Agents
- gVisor Installation Guide for AI Parrot Secure Sandbox
- SDD Sandbox — OS Setup
- Governed semantic layer
- Tool optimizations for Claude Code and Codex (FEAT 543)
- AbstractTool Clone Method
- Toolbar API Documentation
- AudioNoteCaptureToolkit
- ExecutionPlanToolkit — Reference
- Host toolkits for Agent Studio
- Infographic Authoring for Data Agents (FEAT 326)
- InfographicToolkit — Reference
- Tool System Internals: Tools, Toolkits and ToolManager
- AI Parrot Tools Documentation
- What If Scenario Analysis
- Workday worker history
- DecisionFlowNode Usage Guide
- Multi Agent Orchestration: AgentCrew and AgentsFlow
- Docker Tool Executor & Execution Policy
- Generic Gate Host
- HeartbeatManager — Per Agent Autonomous Heartbeat Loop
- JobManager
- Node Types Reference
- OrchestratorAgent — Multi Party Conferencing (
confer) - Planogram compliance cycle (perceive → identify → compare)
- Planogram compliance — migrating configurations to the new cycle (FEAT 574, FEAT 612)
- Planogram perception spike — FEAT 574
- Scheduler backends in multi worker deployments
- Thales User Guide
- Per tenant skills (FEAT 707)
- Skill routing and trigger caching
- Skills system: discovery, toolkits and mixin
- Contextual Embedding Headers
- DocumentDB Usage Patterns
- DocumentDB Interface Guide
- DynamoDB Local (docker compose)
- Fully offline local agent with LanceDB (FEAT 542)
- LanceDB vector, full text and hybrid store (FEAT 542)
- Loader Metadata Standard
- Document Loaders for RAG
- Matryoshka Embedding Truncation
- Parent Child Retrieval (Small to Big)
- Storage Backends Guide
- User stores (Redis by default)
- Vector Stores and Embeddings Reference
- Vector Store Handler — API Reference
- A2A Secure Communication Demo
- Agent as a Local MCP Server (parrot toolkits install agent)
- add repository:
- GitHub MCP Installation and Usage
- MCP integration: client, server and agent tools
- Create and configure agent
- Roost — local inter agent sub protocol
- Roost carriers
- Roost performatives, protocols and obligations
- Simple Mcp Server
- SimpleMCPServer Configuration
- API Endpoints Reference
- Admin UI (FEAT 468)
- Infographic Render Endpoint — Reference
- EventBus v2 Configuration Reference (
[bus]/[bus.alerts]) - EventBus v2 Migration Notes (FEAT 310)
- EventBus v2 — Unified Event Fabric (FEAT 310)
- Session file store
- A2UI Dashboard + Widget Renderer — Frontend Build Guide
- Avatar Technical Guide (LiveAvatar Phase A) for Frontend
- Frontend Guide for SvelteKit: LiveAvatar FULL Mode and VoiceBot (FEAT 248)
- DEPRECATED: Native Voice Avatar (LiveAvatar Phase C) Technical Guide for Frontend
- Technical Guide to Structured Artifacts for Frontend
- VoiceBot · VoiceChatHandler · FEAT 245 — Frontend Guide for Realtime Conversation with Agents
- Server Layer: BotManager and HTTP Handlers
- Infographic Handler — Frontend API Contract
- Interactive Artifacts — Frontend API Contract
- Google Drive file manager
- SharePoint & OneDrive file managers
- WhatsApp Integration Implementation Summary
- WhatsApp Integration for AI Parrot
- P3 — parrot admin ui inventory (canvases / A2UI / infographic / builders)
- WhatsApp + AutonomousOrchestrator Integration
- Audio Form Voice Modes — Developer Guide
- Who owns an OAuth2 (3LO) credential
- CommCenter — Bulk Notification Sender (FEAT 417)
- FormDesigner → MS Teams: Adaptive Card renderer and bot submit path (FEAT 551)
- GitHub reviewer
- Google OAuth 2.0 — AI Parrot Integration
- Fireflies Agent Examples
- HITL Tool Call Confirmation (FEAT 235)
- Teams HITL Channel Setup Guide (FEAT 205)
- JiraSpecialist Prompt Layer Stack
- JiraSpecialist — Daily Standup Lanes
- Jira Transition Actions — Activating
TRIGGER_AGENTDispatch - Jupyter Output Mode Documentation
- Knowledge upload from chat (FEAT 647)
- LiveAvatar over your own LiveKit (Cloud or self hosted)
- Matrix Bridges for the AI Parrot Swarm (FEAT 463)
- Matrix Clients for the AI Parrot Swarm (FEAT 463)
- Migration Guide: FEAT 202 — ai parrot integrations
- Connections on Microsoft Teams
- MS Teams Toolkit for AI Parrot
- Nova Sonic Voice Protocol Reference
- Office 365 OAuth 2.0 (Delegated) — AI Parrot Integration
- PR Review Command — Setup Guide
- Queued chat commands
- Runbook — the
issuesnamespace (Jira ticket corpus) - Dev loop kick off from Slack (FEAT 555)
- Telegram Auth Open Mode (webview | browser)
- Telegram connections
- Telegram Bot Integration Guide
- FEAT 536 — VoiceBot Nova Dual Output + LiveAvatar: Real Live Operational Acceptance
- FEAT 537 — Nova VoiceBot avatar broadcast: operational acceptance
- FEAT 537 — Nova PCM → LiveAvatar LITE → LiveKit multi subscriber live gate
- speech_report TTS backends
- Nova VoiceBot avatar broadcast for multiple browsers (FEAT 537)
- 🦜 AI Parrot Voice Chat
- WhisperX Setup Guide for AI Parrot
- A2UI Linked Surfaces (FEAT 598)
- A2UI v1.0 Wire (FEAT 470)
- === D3.js ===
- Backend HTML Design System (FEAT 493)
- FEAT 488
- FormDesigner Audio Renderer
- Form Designer — Autonomous FormSchema Persistence (Standalone Forms)
- Form Designer — Conditional Sections: Pre/Post Dependencies
- FormBuilder — LLM answer plausibility enforcement
- FormDesigner — orphan upload cleanup (FEAT 731)
- FormDesigner — public response controls
- Form Designer — Relational Fields
- Serving FormDesigner forms from a Teams agent
- Form Designer — Unknown Field Capture Policy for Form Submissions
- FormDesigner — validation audit trail
- Infographic Recipes (FEAT 324)
- Inline A2UI Component Routing (FEAT 755)
- Metric Definition Registry (FEAT 756)
- Smart OutputFormatter Documentation
- N4 — navigator api backend inventory (dashboards / widgets / templates / modules / programs)
- P1 — ai parrot HTTP/WS endpoint inventory (report builder lens)
- P2 — ai parrot (Python) UI components, models, renderers, persistence — inventory for a REPORT BUILDER
- P4 — ai parrot prior art for a Report Builder (SDD inventory)
- ai parrot server — Admin / Bots / Studio / misc endpoint inventory
- P1 — ai parrot HTTP/WS endpoint inventory (report builder lens) ( core)
- parrot formdesigner — HTTP/WS endpoint inventory
- Report Builder — ai parrot inventory and analysis
- WeasyPrint 69.0 CSS Support — Empirical Findings
- Identity Capability User Guide
- Layers Reference
- Output Language (FEAT 638)
- PromptBuilder — User Modifiable Variables
- PromptBuilder User Guide
- Delegated OAuth2 connections
- Delegated OAuth2 connections on the web channel — deployment recipe and live harness
- Deterministic Groundedness Scoring
- ONNX Backend for the Prompt Injection Guardrail (FEAT 439)
- PBAC Guardrails — Policy Driven Tool Call Denial (FEAT 406)
- SecurityAdvisor — SOC2 Oriented Read Only Advisory Agent
- User Profile Management
- AI Parrot MCP Server AWS Deployment Guide
- Bot Cleanup Lifecycle
- Business Automation — Operator Runbook
parrot loginand connections- CompanyInfoToolkit
- Per component and per agent LLM defaults (FEAT 796, FEAT 882)
- Answer Accuracy Metrics for the Evaluation Harness (FEAT 652)
- Infographic CSP and Signed URLs — Operations Guide
- Global install: the parrot managed runtime (reference)
- Runbook — the Fireflies Meeting Registry
- Wiki standup briefs — runbook
parrot.finance— the finance satellite- Migration — FEAT 201: ai parrot embeddings
- Migration — FEAT 203: ai parrot server
- FEAT 223 — Structured Artifact Contract: Migration Guide
- FEAT 273 — Legacy output mode deprecations → A2UI
- Migration — FEAT 315: Unified NovaClient for all Amazon Nova models
- Migration — FEAT 421: Client declared tenant in the forms URL
- Migration — FEAT 446: SaaS Auth Hardening (S0 of Parrot Research Cloud)
- Migration — FEAT 473: A2UI v1.0 for STRUCTURED_CHART / STRUCTURED_TABLE / STRUCTURED_MAP
- Migration — FEAT 523: PEP 420 LLM Client Extraction
- Gemini 2.5 retirement (FEAT 798)
- Migration — FEAT 564: Reliable video reels with Gemini Omni and Veo 3.1
- Native Claude sandbox for SDD sessions (FEAT 768)
- Complementary (collaborative) research partner (FEAT 482)
- Dev flow per seat LLM configuration (
DevFlowModelPlan) - Dev loop
novabackend (AWS Bedrock) - sdd worker as orchestrator of parallel sdd coder seats (FEAT 549)
- SDD compaction capability record
- SDD execution optimization — operation and rollout
- Proposals to Reduce SDD Execution Time
- Dev flow / dev loop telemetry accounting
- Language Agnostic Validation Runners (FEAT 709)
- Spec Driven Development in Google Gemini / Antigravity CLI
- Guide to using the SDD slash commands
- AI Parrot Spec Driven Development (SDD) Platform
- SDD on Google Antigravity (agy)
/sdd donecloseout hooks- Decision Audit (FEAT 784)
- SDD experience memory
- SDD Expert Consult
- Ledger outbox (FEAT 758)
- FEAT 580 LSP Pilot — Live Evaluation Results
- SDD LSP research pilot (FEAT 580)
- Necessity Ladder (FEAT 908)
- Procedure Graph
- Test selection in the SDD flow — the Validation Contract (FEAT 699)
- wikitoolkit Cheatsheet
- wikitoolkit inbox
- wikitoolkit lint
- LLM Wiki — an agent maintained knowledge repository
- Schema Plane — Operator Guide (FEAT 600)
- SQLite concurrency for wiki and ledger
- wikitoolkit standup
- WikiToolkit as Claude Code infrastructure
- Authentication uses Navigator Auth
- AbstractClient base changes require a decision
- Clients are memory less
- Configuration uses NavConfig
- Graph backends — retire ArangoDB for PostgreSQL + SurrealDB
- Conversation history has one writer
- HTTP stack uses aiohttp
- LangChain is not part of the stack
- Async code remains non blocking
- Concrete tools live in ai parrot tools