Skip to content

API Reference parrot_formdesigner.core.partial

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

parrot_formdesigner.core.partial

View source

Ephemeral partial form answer cache model.

Represents work-in-progress form answers stored in Redis under the key parrot:partial:{form_id}:{session_id}. This model is the data contract between the PartialSaveStore service and the REST handlers.

Class PartialFormData

Ephemeral partial form answer cache entry.

Stored in Redis under key parrot:partial:{form_id}:{session_id}. Timezone-awareness is enforced via AwareDatetime — naive datetimes will be rejected at validation time.

Fields:

Field Type Default Description
form_id str The form whose answers are being cached.
session_id str The user session that owns this cache entry.
data dict[str, Any] Sparse mapping of field_uid (stringified UUID) to the cached value (FEAT-393 / TASK-2003 — re-keyed at the FormAPIHandler boundary so a mid-session field_id rename never orphans a saved answer; this model and PartialSaveStore stay schema-agnostic and do not resolve the keys themselves). New values always override existing cached values (last-write-wins). Handlers translate back to CURRENT field_id keys before serializing to the wire.
field_errors dict[str, list[str]] Per-field validation errors collected during the last save_partial call. Mapping of field_id (NOT field_uid — this is response-only, never persisted key-transformed) to a list of error message strings.
saved_at AwareDatetime UTC timezone-aware timestamp of the most recent write.
expires_at AwareDatetime UTC timezone-aware timestamp when this entry will expire in Redis.

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