Skip to content

symfonic.agent.fastapi.memory_create_models

memory_create_models

Pydantic request/response models for the memory-create endpoints.

Extracted from memory_create_router.py so the router file stays under the 300-LOC cap. Every request model sets extra="forbid" so typos / stale clients surface as 422 rather than silent no-op, and so stray tenant_id fields in the body are rejected (tenant is derived from the X-Tenant-ID header).

EpisodicCreateRequest

Bases: BaseModel

Create a timestamped narrative event in the episodic layer.

MemoryCreateResponse

Bases: BaseModel

Echo of the stored record so clients can reuse their GET read model.

ProceduralCreateRequest

Bases: BaseModel

Create a skill/workflow node in the procedural layer.

ProspectiveCreateRequest

Bases: BaseModel

Create a prospective trigger/reminder node.

SemanticCreateRequest

Bases: BaseModel

Create a permanent fact node in the semantic layer.

WorkingCreateRequest

Bases: BaseModel

Push an entry into the bounded working-memory buffer.