Skip to content

StateMachineSaveData

Defined in: StateMachine.ts:120

Save data for a StateMachine.

S extends string

readonly optional duration?: number

Defined in: StateMachine.ts:127

The duration this entry is running to, when state computes its for. Saved because a computed duration belongs to the entry, not to the table.


readonly elapsed: number

Defined in: StateMachine.ts:122


readonly optional parentDuration?: number

Defined in: StateMachine.ts:131

The parent’s duration, on the same terms as duration.


readonly optional parentElapsed?: number

Defined in: StateMachine.ts:129

Seconds in the parent of state. Absent when state has no parent.


readonly state: S

Defined in: StateMachine.ts:121

Coding agents: fetch https://yage.dev/llms.txt first and prefer the Markdown references it links over these HTML pages. This page's Markdown counterpart is /llms/packages/core.md.