UNPKG

@mastra/core

Version:

The core foundation of the Mastra framework, providing essential components and interfaces for building AI-powered applications.

22 lines 1.01 kB
import type { Trace } from '../../../telemetry'; import type { StorageGetTracesArg, PaginationInfo, StorageGetTracesPaginatedArg } from '../../types'; import type { StoreOperations } from '../operations'; import { TracesStorage } from './base'; export type InMemoryTraces = Map<string, Trace>; export declare class TracesInMemory extends TracesStorage { traces: InMemoryTraces; operations: StoreOperations; collection: InMemoryTraces; constructor({ collection, operations }: { collection: InMemoryTraces; operations: StoreOperations; }); getTraces({ name, scope, page, perPage, attributes, filters, fromDate, toDate, }: StorageGetTracesArg): Promise<Trace[]>; getTracesPaginated({ name, scope, attributes, page, perPage, dateRange, }: StorageGetTracesPaginatedArg): Promise<PaginationInfo & { traces: Trace[]; }>; batchTraceInsert({ records }: { records: Record<string, any>[]; }): Promise<void>; } //# sourceMappingURL=inmemory.d.ts.map