Skip to content

API Reference parrot_tools.metrics.models

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

parrot_tools.metrics.models

View source

Result models of MetricsToolkit (spec §3 M5).

Class MetricExplanation

Deterministic explanation of how a metric is computed.

Fields:

Field Type Default Description
definition MetricDefinition
lineage str
source_detail Any None

Class MetricSummary

One row of list_metrics.

Fields:

Field Type Default Description
id str
name str
unit str | None None
default_component str
tenant str | None None
program str | None None
dimensions list[str]
source_kind str

Class QueryMetricResult

Value, comparison and ready A2UI envelope of one metric query.

Fields:

Field Type Default Description
metric_id str
period ResolvedPeriod
comparison_period ResolvedPeriod | None None
value Any None
previous Any None
delta float | None None
delta_pct float | None None
trend Literal['up', 'down', 'flat'] | None None
rows list[dict[str, Any]]
envelope dict[str, Any]
linked bool False
surface_id str | None None
duration_ms int 0

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