Skip to content

API Reference parrot_pipelines.planogram.comparison.tags

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

parrot_pipelines.planogram.comparison.tags

View source

Fact/price tag helpers shared by type hooks and rule evaluation (FEAT-624).

Alias Identification

Re-exported from parrot_pipelines.planogram.contracts.Identification.

Alias Shape

Re-exported from parrot_pipelines.planogram.contracts.Shape.

Alias Slot

Re-exported from parrot_pipelines.planogram.contracts.Slot.

Function slot_above

Return the slot whose lower area is labelled by a tag, or None.

slot_above(tag: Shape, slots: Sequence[Slot]) -> Optional[Slot]

Parameter Type Default Description
tag Shape
slots Sequence[Slot]

Returns: Optional[Slot]

Function tag_price

First 12.99 / 12,99 amount in a text, else the last superscript-cents run (149999); or None.

tag_price(text: Optional[str]) -> Optional[float]

Parameter Type Default Description
text Optional[str]

Returns: Optional[float]

Function tag_text

Return own-box OCR of a tag, falling back to shape or vision text; None when blank.

tag_text(tag: Shape, readings: Mapping[str, object], reads: Mapping[str, Identification]) -> Optional[str]

Parameter Type Default Description
tag Shape
readings Mapping[str, object]
reads Mapping[str, Identification]

Returns: Optional[str]

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