Skip to main content
Official TypeScript SDK for reliability-first observability in production agents.

Install

Quick Start

Providers

TraceLM supports provider: 'openai' | 'anthropic' | 'google' with provider routing through /v1/chat/completions. You can also use:
  • AnthropicTraceLM
  • GeminiTraceLM

Task Grouping + Detection

Manual Detection (No Completion)

Conversation Tracking

Query APIs

Use these queries to move from single requests to execution-level diagnosis.

Environment Variables

Notes

  • task.complete() returns null if the backend task record does not exist yet.
  • Use task.complete({ runDetection: false }) for completion without detection.
  • Detection results are cached in task metadata under detection_results.