Skip to main content

langchain-curt

LangChain chat loader for .curt — the open (MIT), single-file AI conversation format. One timestamped, attributed conversation per file; unknown fields are data and survive round-trips.

from langchain_curt import CurtChatLoader

loader = CurtChatLoader("./conversations/*.curt")
sessions = loader.lazy_load()   # one ChatSession per .curt file
  • Role mapping: user → HumanMessage, assistant → AIMessage, system → SystemMessage. tool messages are skipped and counted (loader.stats["tool_messages_skipped"]) — ToolMessage requires a tool_call_id that .curt v1 does not carry.
  • Metadata: per-message timestamps (epoch ms → ISO 8601 UTC), model, and all unknown/extension fields under additional_kwargs["curt"]; conversation-level metadata in loader.conversation_metadata.
  • Validation: spec-compliant whole-file rejection (bad magic, wrong version, missing fields → rejected, never half-loaded). on_error="skip" imports valid files and reports invalid ones in loader.errors.
  • Dependencies: langchain-core only. The .curt parser is stdlib-only.

Converters into .curt exist for Claude Code transcripts (curt-convert), Open WebUI exports (curt-openwebui), and the WildChat-1M research corpus (curt-wildchat).

Spec: https://github.com/JordanNewell/dot_curt · npm reference impl: curt-format

Development

pip install -e . pytest
pytest

MIT License.

Metadata

Release files for langchain-curt 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for langchain-curt 0.1.0
File Size Uploaded Provenance Actions
langchain_curt-0.1.0.tar.gz 8.3 kB Without provenance Details for langchain_curt-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for langchain-curt 0.1.0
File Interpreter ABI Platform Actions
langchain_curt-0.1.0-py3-none-any.whl Python 3 none any Details for langchain_curt-0.1.0-py3-none-any.whl

Total release size: 16.2 kB

Release files / langchain_curt-0.1.0.tar.gz

Download URL langchain_curt-0.1.0.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2e861e7706eac3a22a2056df8b22625f237bc71f68a33fe416008a6f4209eabd
BLAKE2b-256 checksum
How to use checksums
37a0befa68fbbed3133a4bcbfe76f0a9029916434b9b4359939d4e0239d06932
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Release files / langchain_curt-0.1.0-py3-none-any.whl

Download URL langchain_curt-0.1.0-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
adc9e6dc9d591b0108b0bf7cbefece00a6b02904035d1111e6fdcb5de58b06ee
BLAKE2b-256 checksum
How to use checksums
6672b481d6a94337ecbbe520eb03e0dea09a4e926da1dbfa310cd8b27bb87c6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Security for langchain-curt 0.1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page