Function: snapshotRequestContext()
snapshotRequestContext<
TValues>(source):MastraRequestContextSnapshot|undefined
Materialize and validate one run’s application context. Infrastructure keys remain server-owned; this only snapshots caller-provided JSON values.
Type Parameters
Section titled “Type Parameters”TValues
Section titled “TValues”TValues extends Record<string, unknown>
Parameters
Section titled “Parameters”source
Section titled “source”MastraRequestContextSource<TValues> | undefined
Returns
Section titled “Returns”MastraRequestContextSnapshot | undefined