Skip to content

API Reference parrot.semantic.accounting.evaluation

github-actions[bot] edited this page Dec 2, 2026 · 1 revision

parrot.semantic.accounting.evaluation

View source

Shared exact formula evaluation (FEAT-713, spec numeric contract rev 0.3). Standard library only.

Alias AccountingExecutionError

Re-exported from parrot.semantic.accounting.errors.AccountingExecutionError.

Alias MetricPlan

Re-exported from parrot.semantic.accounting.models.MetricPlan.

Alias PlanExpr

Re-exported from parrot.semantic.accounting.models.PlanExpr.

Function evaluate_rows

Validate exact aggregates, evaluate formulas and round final columns once; preserve grain/dimensions.

evaluate_rows(plan: MetricPlan, rows: Sequence[Mapping[str, Any]]) -> tuple[dict, ...]

Parameter Type Default Description
plan MetricPlan
rows Sequence[Mapping[str, Any]]

Returns: tuple[dict, ...]

Raises:

  • AccountingExecutionError — floats, malformed aggregates or precision/scale overflow.

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