Kitaru LangSmith importer
Import LangSmith run-query and bulk-export records as Kitaru sessions. This package backs the built-in kitaru/langsmith importer and runs on a Kitaru worker, so the export is parsed in your environment.
Most users do not install or call this package directly. Start a Kitaru worker, then select the built-in importer:
kitaru session import langsmith-runs.jsonl \
--importer kitaru/langsmith@latest \
--agent support-agent@latest \
--wait
The importer accepts LangSmith JSON and JSONL export shapes, reconstructs run hierarchy, and groups traces using thread-like metadata or an explicit grouping path. Re-importing the same source identity skips sessions that Kitaru already stores.
See the LangSmith import guide for accepted formats, grouping parameters, deduplication behavior, and fidelity limits.
Validation limits
Nested node trees support at most 64 nodes along a parent path, counting the root as level 1. Tool-activity scans have a separate limit of 64 container or embedded-JSON decoding steps. Costs must be finite and nonnegative, token counts must be nonnegative, and returned sessions must serialize as JSON.
Duplicate run IDs reject the complete LangSmith trace before grouping, including identical repeated records. Reusing a run ID in another trace remains valid; a self-parent link is treated as a root. A failure discovered before grouping leaves other traces available, even when they share a session key. Invalid fields or serialization failures found after grouping reject that grouped session; unrelated sessions still import.
Adapter
Install the package with the adapter extra to use the adapter, which adds the provider SDK it needs:
uv add "kitaru-langsmith-importer[adapter]"
The package also ships an adapter that imports LangSmith traces of wrapped agent runs. The adapter uses the LangSmith SDK already configured in your process and the Kitaru connection from your environment. Set LANGSMITH_API_KEY (plus LANGSMITH_ENDPOINT for a self-hosted instance) to the credentials the trace fetch authenticates with, then wrap your agent entrypoint in a LangSmithAdapter and run it through the adapter.
from kitaru_langsmith_importer.adapter import LangSmithAdapter
adapter = LangSmithAdapter()
result = adapter.run(my_agent, "Hello")
The adapter runs the function inside a LangSmith trace, waits for LangSmith to finish ingesting the trace, fetches it, and imports it as one Kitaru session. Use run_async for async functions. When the trace does not complete within the completeness timeout, the adapter creates a failed session carrying the trace id.
Links
Licensed under Apache-2.0.
Metadata
Release files for kitaru-langsmith-importer 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| kitaru_langsmith_importer-0.2.0.tar.gz | 16.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kitaru_langsmith_importer-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.2 kB
Release files / kitaru_langsmith_importer-0.2.0.tar.gz
| Download URL | kitaru_langsmith_importer-0.2.0.tar.gz |
|---|---|
| Size | 16.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4ed2078483460a6bd8d8c5b39b1f3886c7bd902dc778ebc71a526b99c6d13443
|
|
BLAKE2b-256 checksum How to use checksums |
42602ceb88a507ca7b048de8124ef517a39628540ea00708008a7afecc88fb83
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 3, 2026.
Transparency logRelease files / kitaru_langsmith_importer-0.2.0-py3-none-any.whl
| Download URL | kitaru_langsmith_importer-0.2.0-py3-none-any.whl |
|---|---|
| Size | 15.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a4ac04e69f37010d2780c927ecf88578491dd94347b805d9ed08c882da619457
|
|
BLAKE2b-256 checksum How to use checksums |
98f08afd4c46179392169294a00d2ec60d1a89f66c049e1bd60dd3fc8ed15171
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 3, 2026.
Transparency log