Skip to content

API Reference parrot.memory.dynamics.fsrs

github-actions[bot] edited this page Dec 2, 2026 · 1 revision

parrot.memory.dynamics.fsrs

View source

Pure FSRS calculations using an explicit clock and immutable parameters.

The equations are adapted from open-spaced-repetition/py-fsrs v6.3.2, commit 9446cb06605c597a063aeee49f7d188d42e34dc2. Copyright (c) 2022 Open Spaced Repetition, licensed under the MIT License. The pinned reference and license are retained in sdd/state/FEAT-571/spikes/s1-fsrs-parity/reference.

Alias Grade

Re-exported from parrot.memory.dynamics.models.Grade.

Alias MemoryParameters

Re-exported from parrot.memory.dynamics.models.MemoryParameters.

Alias MemoryState

Re-exported from parrot.memory.dynamics.models.MemoryState.

Function retrievability

Return bounded retrievability, with neutral treatment of uninitialized legacy state.

retrievability(state: MemoryState, *, now: datetime, parameters: MemoryParameters) -> float

Parameter Type Default Description
state MemoryState
now datetime
parameters MemoryParameters

Returns: float

Function transition

Compute a new state without I/O or modifying the input parameter/state objects.

transition(state: MemoryState, grade: Grade, *, reviewed_at: datetime, parameters: MemoryParameters) -> MemoryState

Parameter Type Default Description
state MemoryState
grade Grade
reviewed_at datetime
parameters MemoryParameters

Returns: MemoryState

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