@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
15 lines • 1.02 kB
TypeScript
import type { LangfuseAccessor } from '../../accessor/langfuse.ts';
import type { PathSpec } from '../../types.ts';
import type { ScopeMatch } from '../hierarchy/scope.ts';
/**
* The trace a trace path names, or ENOENT.
*
* A trace is addressed by its id whatever the listing holds: the listing
* stops at `defaultTraceLimit` and `defaultFromTimestamp`, and an older
* trace is still the project's. Under `sessions/<id>/` the trace must have a
* root observation in that session, the rule its listing uses, so a path
* cannot name another session's trace. Mirrors python's `fetch_trace_file`.
*/
export declare function fetchTraceFile(accessor: LangfuseAccessor, match: ScopeMatch, path: PathSpec): Promise<Record<string, unknown>>;
export declare const read: (accessor: LangfuseAccessor, path: PathSpec, entry?: import("../../types.ts").FileStat | null, parent?: import("../../types.ts").FileStat | null, window?: import("../hierarchy/read.ts").ReadWindow) => Promise<Uint8Array>;
//# sourceMappingURL=read.d.ts.map