Skip to content

API Reference parrot_pipelines.models

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

parrot_pipelines.models

View source

Alias DetectionGridConfig

Re-exported from parrot_pipelines.planogram.grid.models.DetectionGridConfig.

Class EndcapGeometry

Configurable endcap geometry parameters

Fields:

Field Type Default Description
aspect_ratio float 1.35 Endcap width/height ratio
left_margin_ratio float 0.01 Left margin as ratio of panel width
right_margin_ratio float 0.03 Right margin as ratio of panel width
top_margin_ratio float 0.02 Top margin as ratio of panel height
bottom_margin_ratio float 0.05 Bottom margin as ratio of panel height
inter_shelf_padding float 0.02 Padding between shelves as ratio of ROI height
width_margin_percent float 0.25 Panel width margin percentage
height_margin_percent float 0.3 Panel height margin percentage
top_margin_percent float 0.05 Panel top margin percentage
side_margin_percent float 0.05 Panel side margin percentage

Class PlanogramConfig

Complete configuration for planogram analysis pipeline. Contains planogram description, prompts, and reference images.

Fields:

Field Type Default Description
planogram_id Optional[int] None Optional unique identifier for the planogram (if any)
config_name str 'default_planogram_config' Name of the planogram configuration
planogram_type str 'product_on_shelves' Registered planogram type: product_on_shelves, ink_wall, endcap_backlit_multitier, endcap_no_shelves_promotional, graphic_panel_display or product_counter
planogram_config Dict[str, Any] Planogram configuration dictionary (converted to PlanogramDescription); may carry 'layout_profile' overrides of the type's default LayoutProfile and 'rule_bindings'
roi_detection_prompt Optional[str] None Prompt that locates the fixture ('endcap') and its header ('poster_panel'). Used before LLM detection so shapes are proposed only inside the fixture; placeholders: {brand}, {tag_hint}
object_identification_prompt Optional[str] None Prompt for object identification. Accepted and ignored since ai-parrot-pipelines 1.1.0 (FEAT-612); kept one release for stored rows
reference_images Dict[str, Union[str, Path, List[str], List[Path], Image.Image]] Local reference images per catalogue key: a path, a list of paths or a PIL image. Loaded once per run into the identification reference bank (opaque labels; never used as expected placement).
confidence_threshold float 0.25 YOLO detection confidence threshold. Accepted and ignored since ai-parrot-pipelines 1.1.0 (FEAT-612); kept one release for stored rows
detection_model str 'yolo11l.pt' YOLO model to use for detection. Accepted and ignored since ai-parrot-pipelines 1.1.0 (FEAT-612); kept one release for stored rows
endcap_geometry EndcapGeometry Endcap geometry and margin configuration
detection_grid Optional[DetectionGridConfig] None Detection grid configuration. Accepted and ignored since ai-parrot-pipelines 1.1.0 (FEAT-612); kept one release for stored rows
slots_definition Optional[Union[Dict[str, Any], str, Path]] None Shelves/slots/zones definition (dict or JSON file path). Required at runtime; convert legacy rows as described in wiki/flows/pipelines/planogram-cycle-migration.md
llm_backend Optional[str] None LLM backend as "provider:model"; explicit PlanogramCompliance arguments still win

Method PlanogramConfig.get_planogram_description

Load and validate a planogram description from a configuration dictionary. Uses PlanogramDescriptionFactory to parse and validate the config.

get_planogram_description() -> PlanogramDescription

Returns: PlanogramDescription

Class PlanogramConfig.Config

Pydantic configuration.

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