UNPKG

@mastra/core

Version:
12 lines • 700 B
/** * Builds the JSON-safe requestContext snapshot persisted on score rows. * * Extracts primitive (string | number | boolean) values, flattening nested objects * into dotted keys. Non-primitive values (circular refs, buffers, functions, arrays) * are skipped. Reserved Mastra keys (`mastra__*`, `__mastra_*`) are never included: * they hold framework state such as the bearer token and live channel adapters. * Objects that define `serializeForSpan()` contribute that projection instead of * their internals. */ export declare function snapshotRequestContextForScore(requestContext: unknown): Record<string, string | number | boolean>; //# sourceMappingURL=request-context-snapshot.d.ts.map