The type of value stored in this field.
Create a new untracked value state field.
Optionalschema: SerializableSchema<Value, Value>Optional type schema describing the value (e.g. a Zod schema).
Optionalinit: UntrackedValueInitOptional options for tracking updates or enabling multiple-writes-per-step.
ReadonlyguardWhether to guard against multiple updates to this untracked value in a single step.
true (default), throws an error if multiple updates are received in one step.false, only the last value from that step is kept, others are ignored.This helps prevent accidental state replacement within a step.
Optional ReadonlyschemaOptional schema describing the type and shape of the value stored in this field.
If provided, this can be used for runtime validation or code generation.
Represents the type of value stored in this untracked state field.
StaticisType guard to check if a value is an UntrackedValue instance.
Type guard to check if a value is an UntrackedValue instance.
Represents a state field whose value is transient and never checkpointed.
Use UntrackedValue for state fields that should be tracked for the lifetime of the process, but should not participate in durable checkpoints or recovery.
Example