Skip to content

symfonic.core.contracts.prompt_state

prompt_state

The prompt-state alias, split out so a kernel-contracts module can carry it.

PromptState is the read-only mapping a prompt section renders from. It is named by the prompting capability (symfonic.agent.prompts, symfonic.core.prompt) and by the facade, so under LAY-ADR it has to live where every row of the dependency matrix reads yeskernel-contracts.

It used to be declared in :mod:symfonic.core.contracts.types, which imports Pydantic and therefore cannot satisfy the kernel-contracts purity rule (stdlib only). TA2.2 moved the alias here — one stdlib-only module — and types re-exports it, so from symfonic.core.contracts.types import PromptState keeps working and there is still exactly one definition.