Skip to content

Releases

v0.12.1

Choose a tag to compare

@github-actions github-actions released this 28 Sep 08:47
eafbec3

Release v0.12.1

v0.12.0 — Typed archives, local traces, reproducible datasets

Choose a tag to compare

@github-actions github-actions released this 24 Aug 23:37
c13aa54

Cloud, archive, and local — one LangSmith CLI

v0.12.0 makes retained and offline LangSmith data first-class. Exact Dataset versions can move between cloud, S3 archive, and a local replica; traces can be pulled explicitly into a local Parquet cache and queried through the same Runs commands; and archive sync now stays bounded on project-days that previously exhausted memory.

Exact Dataset replicas

Preserve complete, reproducible evaluation snapshots — Dataset and Example IDs, exact version membership, tags, schemas, splits, metadata, and attachment bytes — without creating a parallel data model. Cloud remains the mutation authority, archive is the durable replica, and local is a disposable offline copy.

# Preserve complete history in the archive.
langsmith-cli --json datasets pull my-evals --to archive --all-versions

# Hydrate a local copy without contacting LangSmith.
langsmith-cli --json datasets pull my-evals \
  --source archive --to local --as-of baseline

langsmith-cli --json examples list --dataset my-evals --source local

Dataset publications use immutable, content-addressed Parquet and attachment objects with authenticated manifests and compare-and-swap heads. Repeated transfers are idempotent, concurrent versions are retained, and divergent content fails instead of being merged silently. See #167.

Explicit local trace workflows

Core Runs reads now accept --source cloud|archive|local. Pull complete traces deliberately, then use normal list, get, get-latest, and search workflows against the local DuckDB-over-Parquet inventory. Reads never populate the cache implicitly.

langsmith-cli --json runs pull --source cloud --to local \
  --project prd/my-agent --last 7d

langsmith-cli --json runs search "timeout" --source local \
  --project prd/my-agent --fields id,name,error

Pulls are additive and idempotent, publications are atomic, and local DuckDB reads are restricted to catalog-approved paths with external access disabled. See #170.

Archive sync is bounded by constants

The archive pipeline no longer builds working sets proportional to a whole project-day. JSONL staging is split into bounded pieces, Parquet is streamed row-group by row-group, canonicalization deduplicates IDs before copying wide payloads, and DuckDB thread count is explicit. A project-day that repeatedly OOMed at higher DuckDB limits completed with the stock 1 GiB limit in the measured production flow.

Operators can tune LANGSMITH_ARCHIVE_DUCKDB_MEMORY_LIMIT and LANGSMITH_ARCHIVE_DUCKDB_THREADS; invalid memory-limit values fail during connection setup. See #166 and #168.

Typed queryable archive dimensions

Canonical archive schema v2 promotes stable query dimensions while leaving arbitrary provider payloads as JSON text:

  • tags and parent_run_ids are native list<string> columns;
  • prompt/completion token-detail fields are map<string, bigint>;
  • prompt/completion cost-detail fields are map<string, decimal(38,18)>; and
  • extra.metadata is extracted as a map<string, string> accelerator while the authoritative extra JSON remains intact.

This enables native DuckDB list/map predicates without shape-inferred struct growth. Mixed v1/v2 archive days normalize transparently; unsealed v1 days upgrade atomically, while sealed v1 data remains readable and immutable. See #171.

Reliability and dependencies

  • Language detection is deterministic across calls, removing a randomized CI/runtime result (#169).
  • langsmith is updated from 0.10.18 to 0.11.1 (#174).
  • python-dotenv is updated from 1.2.2 to 1.2.3 (#172).

Compatibility notes

  • Omitting --source still selects LangSmith cloud.
  • --archive remains a compatibility alias for --source archive.
  • Existing JSONL local trace caches are not auto-discovered; local is disposable, so repopulate it with runs pull.
  • Legacy runs cache download delegates to the new cloud-to-local service and now writes Parquet.

Upgrade

uv tool upgrade langsmith-cli
# or
python -m pip install --upgrade langsmith-cli

The release workflow passed Ruff, formatting, Pyright, the full 1,380-test suite, package build, and trusted PyPI publication. See the full v0.11.1...v0.12.0 diff.

v0.11.1

Choose a tag to compare

@github-actions github-actions released this 22 Aug 09:53
4364d3e

PyPI now links to the release history

v0.11.1 is a package-metadata patch for the v0.11.0 archive release.

The PyPI project sidebar now includes a Changelog link to the complete GitHub release history. Homepage, Repository, Issues, and Documentation links also now point to the canonical gigaverse-app/langsmith-cli repository instead of the previous personal-repository URLs.

There are no runtime behavior changes in this patch. See the v0.11.0 release notes for the new export-and-archive capability.

A package-metadata regression test now protects the canonical Repository and Changelog links from drifting again.

v0.11.0

Choose a tag to compare

@github-actions github-actions released this 22 Aug 09:33
3f2db9b

Export LangSmith data. Keep the same CLI.

v0.11.0 adds a durable archive backend for LangSmith traces. Teams can export trace data into organization-owned S3, retain it beyond LangSmith's live retention window, and continue using the familiar langsmith-cli runs interface against canonical Parquet through DuckDB.

The key idea is one CLI facade across two data sources:

# Query live LangSmith data
langsmith-cli --json runs search "timeout" \
  --project prd/my-agent --last 7d

# Query exported data through the same command family
langsmith-cli --json runs search "timeout" --archive \
  --project prd/my-agent --last 365d

Export and retain

Backfill a historical range through LangSmith Bulk Export:

langsmith-cli --json archive backfill \
  --route production \
  --start-date 2025-08-01 \
  --end-date 2026-08-01 \
  --bulk-export-destination-id <uuid> \
  --import-workers 8

Then keep the archive current with a scheduled sync:

langsmith-cli --json archive sync \
  --route production \
  --bulk-export-destination-id <uuid> \
  --retention-days 14

The archive supports organization-defined project-to-S3 routing, high-volume managed Bulk Export, and the Runs API as export providers. Historical backfills are resumable: exact matching remote jobs are adopted, completed project-days are skipped, and independent projects can be imported concurrently.

Query through the common facade

Add --archive to use retained data with the existing run workflows:

  • runs list
  • runs search
  • runs get
  • runs get-latest

Archive queries support project and time selection, status, trace ID, roots, run type, tags, model/content search, regex search, sorting, field projection, counts, and JSON/CSV/YAML output. Archive readers need access to the configured object store, but do not need a LangSmith API key.

langsmith-cli --json runs list --archive \
  --project prd/my-agent --last 90d --failed

langsmith-cli --json runs get <run-id> --archive \
  --project prd/my-agent --last 1d --follow-children

langsmith-cli --json archive status --summary --all-routes

Durable by design

The archive pipeline:

  • normalizes Runs API and Bulk Export data into one canonical Parquet contract;
  • verifies partition coverage, row counts, and unique run IDs before publication;
  • reconciles late or updated traces before a day is sealed;
  • writes immutable raw and canonical generations, then publishes the manifest pointer last;
  • uses conditional manifest updates so concurrent or retried workers cannot overwrite a winning publication; and
  • bounds DuckDB memory and isolates spill storage for concurrent imports.

Raw FQL, trace/tree FQL, metadata predicates, and latency flags are not yet translated for archived queries; the CLI fails explicitly when those unsupported combinations are requested.

Documentation

v0.10.3

Choose a tag to compare

@github-actions github-actions released this 21 May 16:24

Release v0.10.3

v0.10.2

Choose a tag to compare

@github-actions github-actions released this 21 May 16:20

Release v0.10.2

v0.10.1

Choose a tag to compare

@github-actions github-actions released this 21 May 16:09

Release v0.10.1

v0.10.0

Choose a tag to compare

@github-actions github-actions released this 21 May 15:25
14d8eca

Release v0.10.0

v0.9.1

Choose a tag to compare

@github-actions github-actions released this 31 Mar 11:20

Release v0.9.1

v0.9.0

Choose a tag to compare

@github-actions github-actions released this 15 Mar 03:53

Discover cached schemas and retrieve complete trace trees

v0.9.0 made nested run data easier to understand and parent-chain traces easier to inspect. It added schema discovery for cached JSONL and an opt-in way to include the child runs that contain a chain's actual LLM outputs.

Discover structure before querying

langsmith-cli --json runs cache schema \
  --project dev/my-agent \
  --include inputs,outputs \
  --sample-size 500

runs cache schema samples cached runs and reports nested field paths, observed types, presence counts, and representative values. Use --include to focus on part of the document and --max-depth to bound traversal. JSON output gives agents a compact contract for writing reliable follow-up queries instead of guessing field names.

The accompanying cache recipes document demonstrated Python and DuckDB queries over the discovered JSONL structure, including nested extraction, aggregation, list expansion, and deduplication by run ID.

Follow child runs

langsmith-cli --json runs get <parent-run-id> \
  --follow-children \
  --fields id,name,inputs,outputs

LangChain parent runs such as RunnableSequence can have null outputs while their useful LLM results live on child runs. --follow-children retrieves the other runs in the trace, orders them by execution, and includes them as _children in the result.

Compare v0.8.1...v0.9.0

⌂ 换网址