Skip to content

API Reference parrot_pipelines.planogram.backend

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

parrot_pipelines.planogram.backend

View source

LLM backend (provider + model) resolution for planogram pipelines (FEAT-574).

Attribute BackendOrigin

Attribute DEFAULT_LLM_BACKEND

Type: str

Class ResolvedBackend

Provider/model a pipeline run resolved to, and where the decision came from.

Fields:

Field Type Default Description
provider str
model Optional[str] None
origin BackendOrigin

Method ResolvedBackend.as_string

Return "provider:model", or just "provider" when no model is pinned.

as_string() -> str

Returns: str

Attribute UNSET

Function resolve_backend

Resolve the backend by the FEAT-574 precedence.

Order: explicit llm (instance or "provider:model" string) → explicit llm_provider / llm_model overrides applied to the configured backend → config_backend → DEFAULT_LLM_BACKEND. A provider switch without a model never inherits the other provider's model id.

resolve_backend(llm: Any, llm_provider: Union[str, _Unset], llm_model: Union[str, None, _Unset], config_backend: Optional[str]) -> ResolvedBackend

Parameter Type Default Description
llm Any A client instance, a "provider[:model]" string, or None.
llm_provider Union[str, _Unset] Explicit provider, or UNSET when omitted.
llm_model Union[str, None, _Unset] Explicit model, None or UNSET (both mean "not given").
config_backend Optional[str] PlanogramConfig.llm_backend (may be None).

Returns: ResolvedBackend — The resolved backend with its origin.

Raises:

  • ValueError — For an unparseable backend string.

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