Skip to content

API Reference parrot.handlers.comm_center_placeholders

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

parrot.handlers.comm_center_placeholders

View source

Static placeholder catalog for the CommCenter bulk notification sender.

Served by GET /api/v1/comm_center/placeholders (wired in handlers/comm_center.py, TASK-2159). A template author has no other way to discover which record fields and computed functions a template body may reference, so this module documents all three groups plus the two safety disclosures that are not cosmetic (spec §3 Module 3, §7 Known Risks):

  • The bare-placeholder limitation of DebugUndefined (no filters or conditionals over record fields survive pass 1).
  • The reserved names (recipient/message/subject) that are bound by Notify itself and render an object repr rather than a value.

Pure/stdlib module plus :func:resolve_date — no aiohttp/DB imports, so it can be imported and unit tested without any web or database side effects.

Alias DATE_RESOLVERS

Re-exported from parrot.outputs.a2ui.recipes.params.DATE_RESOLVERS.

Function build_catalog

Build the full, serializable placeholder catalog payload.

build_catalog(now: datetime | None = None) -> dict[str, Any]

Parameter Type Default Description
now datetime | None None Injectable current time threaded into every computed-function sample, so callers (and tests) get deterministic output.

Returns: dict[str, Any] — A dict with keys recipient_fields, computed_functions, reserved, limitation, and extra_columns.

Alias resolve_date

Re-exported from parrot.outputs.a2ui.recipes.params.resolve_date.

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