Catalog PyPI
PACKAGE EXPLORERView in registry

acty-langchain

PyPI

LangChain helpers for acty payloads

langchainmessagesretryworkflow
Versions collected1
Direct dependencies8From release 0.1.0
Last observed20 Oct, 18:43 UTC

README

Version 0.1.0 documentation

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-core at runtime
  • tests also install acty so runnable executor integration can be exercised

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.05 Apr 20268

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
conspol/acty-langchain

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:43 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:67258b826465100af64d302b9a31a3d17d5f6acf1ee3a6b0409805e616c308c6