Skip to content

API Reference parrot.outputs.formats.card

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

parrot.outputs.formats.card

View source

Card Renderer for AI-Parrot Displays metrics in HTML card format with comparisons (vs last month, vs last year, etc.)

Alias BaseRenderer

Re-exported from parrot.outputs.formats.base.BaseRenderer.

Attribute CARD_SYSTEM_PROMPT

Class CardRenderer

Renderer for metric cards with comparison data. Extends BaseRenderer to display metrics in styled HTML cards.

Method CardRenderer.render

Render card(s) as HTML.

render(response: Any, environment: str = 'html', **kwargs) -> Tuple[str, str]

Parameter Type Default Description
response Any AIMessage with PandasAgentResponse output
environment str 'html' Output environment (default: 'html')
**kwargs {} Additional options

Returns: Tuple[str, str] — Tuple[str, str]: (code, html_content)

Alias OutputMode

Re-exported from parrot.models.outputs.OutputMode.

Alias register_renderer

Re-exported from parrot.outputs.formats.register_renderer.

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