export { MorphTracing, morphTracing } from './core.js'; export { Interaction, Tracer } from './interaction.js'; export { m as metadata, o as otel } from '../otel-CG0uqXjp.js'; import { EvalSelection } from './types.js'; export { FinishOptions, InstrumentModules, MetadataOptions, MorphTracingConfig, SpanParams, ToolParams, ToolSpan, TraceContext, TrackToolParams } from './types.js'; import '@traceloop/node-server-sdk'; /** * Morph Tracing — eval selection (which Reflexes to run on a trace). * * The public API is `evals` (see {@link EvalSelection}): `{ user, assistant }` choosing which role * each model classifies. We deliberately keep the public surface to plain nouns and hide the wire * detail: the selection is serialized onto a single * `morph.reflex.run` attribute on the interaction's workflow span (NOT an association property, * so it is not copied onto child LLM spans), and the per-role choice maps to the backend's * transform ids. Morph's ingest reads that attribute and runs the classifications async; results * land in the traces dashboard already labeled. */ /** Raw span attribute key carrying the serialized selection (internal wire detail). */ declare const REFLEX_RUN_ATTRIBUTE = "morph.reflex.run"; /** One serialized entry on the wire: the model alias and the transform to run it on. */ interface EvalRunEntry { model: string; transform: string; } /** * Normalize a public `evals` selection into deduped `{ model, transform }` wire entries. * `user` models run on the user turn, `assistant` models on the agent turn. Drops blank models; * preserves first-seen order. Exported for tests and so callers can see exactly what runs. */ declare function normalizeEvals(evals: EvalSelection | undefined): EvalRunEntry[]; /** * Serialize an `evals` selection to the `morph.reflex.run` attribute string, or `null` when * there is nothing to run (so the attribute is simply omitted and no classification is enqueued). */ declare function serializeEvals(evals: EvalSelection | undefined): string | null; export { type EvalRunEntry, EvalSelection, REFLEX_RUN_ATTRIBUTE, normalizeEvals, serializeEvals };