Skip to main content

Trajectory SDK

Trajectory SDK converts raw agent traces from observability platforms like LangSmith into our standardized Trajectory format - transforming product telemetry into training and evaluation-ready data.

Install

pip install trajectory-sdk

Key Features

  • Ingest traces from anywhere — LangSmith today, extensible to any trace source
  • Standardized Trajectory schema — typed dataclasses for messages, tool calls, rewards, and metrics
  • E2E bulk export — discover all conversations, trigger a LangSmith bulk export, download, parse, and upload in three lines
  • Local parquet import — parse existing parquet files without triggering a new export
  • Upload to Trajectory — upload trajectories to the Trajectory platform for training and evaluation
  • PII redaction — pluggable transform-based redaction before data leaves your environment
  • Three-line setup — go from raw traces to the Trajectory platform in minutes
All processing runs locally. Your API key and data never leave your environment.

Quickstart

Export your first trajectories in under 5 minutes.

Import Traces

Standard API import walkthrough.

Bulk Export

Export all conversations from a project at once.

API Reference

Full function signatures and parameters.