Skip to content

API Reference parrot_pipelines.abstract

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

parrot_pipelines.abstract

View source

Class AbstractPipeline

Abstract base class for all pipelines.

Parameter Type Default Description
llm Any None An LLM client instance, a "provider:model" string, or None.
llm_provider Union[str, _Unset] UNSET Explicit provider name; omitted when UNSET.
llm_model Union[str, None, _Unset] UNSET Explicit model name; omitted when UNSET or None.
config_backend Optional[str] None The configuration's llm_backend ("provider:model"); consumed here and never forwarded to the client constructor.
**kwargs Any {} Extra keyword arguments forwarded to the client constructor.

Attributes:

Attribute Type Description
resolved_backend ResolvedBackend

Method AbstractPipeline.open_image

Open an image from a file path (or pass a PIL image through) as RGB.

open_image(image_path: Union[Path, Image.Image], *, enhance: bool = True) -> Image.Image

Parameter Type Default Description
image_path Union[Path, Image.Image] Path/str to an image file, or an already opened PIL image.
enhance bool True When True (default, legacy behaviour) apply _enhance_image (brightness/contrast). The FEAT-574 cycle passes False so perception, OCR and LLM crops use the untouched full-resolution image.

Returns: Image.Image — The RGB image.

Method AbstractPipeline.run

Run the pipeline with the provided arguments

run(*args: Any, **kwargs: Any) -> Dict[str, Any]

Parameter Type Default Description
*args Any () Positional arguments for the pipeline
**kwargs Any {} Keyword arguments for the pipeline

Returns: Dict[str, Any] — Dictionary with results of the pipeline execution

Alias ResolvedBackend

Re-exported from parrot_pipelines.planogram.backend.ResolvedBackend.

Alias UNSET

Re-exported from parrot_pipelines.planogram.backend.UNSET.

Alias resolve_backend

Re-exported from parrot_pipelines.planogram.backend.resolve_backend.

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