Skip to main content

LaminarSpanContext

interface LaminarSpanContext {
  traceId: string;      // UUID
  spanId: string;       // UUID
  isRemote: boolean;
  spanPath: string[];
  spanIdsPath: string[];
}

Datapoint

interface Datapoint<D = Record<string, any>, T = Record<string, any>> {
  data: D;
  target?: T;
  metadata?: Record<string, any>;
  id?: string;        // UUID
  createdAt?: string; // ISO timestamp
}

HumanEvaluator

class HumanEvaluator {
  constructor(options?: { value: number; label: string }[]);
}

LaminarDataset

class LaminarDataset<D = Record<string, any>, T = Record<string, any>> {
  constructor(name?: string, options?: { id?: string; fetchSize?: number });
}

SessionRecordingOptions

interface SessionRecordingOptions {
  maskInputOptions?: MaskInputOptions;
}

MaskInputOptions

interface MaskInputOptions {
  textarea?: boolean;
  text?: boolean;
  number?: boolean;
  select?: boolean;
  email?: boolean;
  tel?: boolean;
}

Other Exports

  • ChatMessage — Chat message type
  • NodeInput — Node input type
  • Event — Event type
  • Dataset — Alias for EvaluationDataset
  • Span — Re-export of OTel Span