acty-langchain
acty-langchain provides LangChain-specific helpers for the Acty ecosystem:
message serialization, repair hints for malformed JSON outputs, and runnable
executor utilities that integrate with acty.
Install
Runtime helpers only:
pip install acty-langchain
If you want to run LangChain runnables through ActyEngine:
pip install acty acty-langchain
For local development:
pip install -e .[dev]
Message Payload Helpers
from langchain_core.messages import HumanMessage
from acty_langchain import messages_to_acty_payload, messages_from_acty_payload
payload = messages_to_acty_payload(
[HumanMessage(content="hello")],
payload={"exec_id": "chat"},
)
roundtrip = messages_from_acty_payload(payload)
These helpers convert LangChain messages into JSON-safe payload structures that can be stored, retried, or cached inside Acty workflows.
Runnable Payload Shape
The runnable executor accepts payloads shaped like:
{
"runnable": my_chain,
"input": {"question": "hi"},
}
Resolver-based execution can also use:
{
"exec_id": "qa",
"input": {"question": "hi"},
}
Runnable Execution
from acty import ActyEngine, EngineConfig
from acty_langchain import LangChainRunnableExecutor, runnable_retry_factory
engine = ActyEngine(
executor=LangChainRunnableExecutor(),
config=EngineConfig(
attempt_retry_policy=runnable_retry_factory(),
),
)
JSON Repair Helpers
acty-langchain also includes repair utilities for invalid JSON responses:
from acty_langchain import DefaultPromptedJsonRepairer
repairer = DefaultPromptedJsonRepairer(
system_instruction="Return only valid JSON.",
repair_request="Please repair the assistant output above.",
)
Development
- tests live under
tests/ - the package depends on
acty-coreat runtime - tests also install
actyso runnable executor integration can be exercised
Metadata
Release files for acty-langchain 0.1.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 | Provenance | |
|---|---|---|---|---|
| acty_langchain-0.1.0.tar.gz | 14.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| acty_langchain-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.1 kB
Release files / acty_langchain-0.1.0.tar.gz
| Download URL | acty_langchain-0.1.0.tar.gz |
|---|---|
| Size | 14.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec18fee3fddc2482e3c59ea940e0f725074fe8be525128dafe936d33e1337a12
|
|
BLAKE2b-256 checksum How to use checksums |
207f7069bccb6ec81e5e65e74409c2d81a2914134b80b8b265b11b8583f4dd1d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / acty_langchain-0.1.0-py3-none-any.whl
| Download URL | acty_langchain-0.1.0-py3-none-any.whl |
|---|---|
| Size | 12.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
11690240faea35816108b31c4de547fc00fee2ad840c3ed54d94e751e876cda0
|
|
BLAKE2b-256 checksum How to use checksums |
7ee767992863aa6bff6c2bb9a7727797a76272a687d5987a1d3a5dc7a96a4192
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Security for acty-langchain 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.