Skip to main content

halo-format-langgraph

Halo host adapter for LangChain agents and LangGraph graphs (Python). install_halo() wires it in one call:

  • a wrap_tool_call encode middleware — the deterministic wrap-the-tool-call hook, LangChain's analog of the Claude SDK's PostToolUse — that replaces a large tool result with a halo shape map (root kind + one line per field: ref, kind, and a bounded preview), so the payload stays out of the model's context while it still sees what's there. The full envelope rides in the ToolMessage artifact (kept in graph state, never sent to the model) for audit/replay;
  • a single plain LangChain halo_fetch tool the model uses to pull back only the leaves it needs, verified on read — a ref that lands on a branch returns that branch's sub-refs, so one batch API both pulls and expands (there is no separate halo_walk).
from langchain.agents import create_agent
from halo_format_langgraph import install_halo

result = install_halo(tools=my_tools)
agent = create_agent(model, tools=result.tools, middleware=result.middleware)
# result.session holds the shared store for audit/inspection

For hand-built StateGraphs, use halo_tool_node(tools=...) instead — it returns a ToolNode with the same wrapper attached as wrap_tool_call / awrap_tool_call, plus the tools list (to bind to your model) and the session.

The middleware is deterministic plumbing (it always fires, for every tool); the Halo Skill (or prompt-mode guidance) is the navigation behavior. Pass store=FileStore(dir) for the heavy/persistent deployment. The core engine is halo-format; this package is only the shim.

Metadata

Release files for halo-format-langgraph 0.4.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 halo-format-langgraph 0.4.0
File Size Uploaded Provenance Actions
halo_format_langgraph-0.4.0.tar.gz 15.8 kB With provenance Details for halo_format_langgraph-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for halo-format-langgraph 0.4.0
File Interpreter ABI Platform Actions
halo_format_langgraph-0.4.0-py3-none-any.whl Python 3 none any Details for halo_format_langgraph-0.4.0-py3-none-any.whl

Total release size: 32.1 kB

Release files / halo_format_langgraph-0.4.0.tar.gz

Download URL halo_format_langgraph-0.4.0.tar.gz
Size 15.8 kB
Tags Source
SHA-256 checksum
How to use checksums
118647825c76fea38689e9834cd9457d117be442ee381a823b78fc65b24e1eb1
BLAKE2b-256 checksum
How to use checksums
584a067bb5ff6c7255eb3dea2901ff6f139872f476d86ab9e5308062e4a0ab44
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 7, 2026.

Transparency log

Release files / halo_format_langgraph-0.4.0-py3-none-any.whl

Download URL halo_format_langgraph-0.4.0-py3-none-any.whl
Size 16.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cd1bc0f014d085889d6ac986c1e9238c76ef6a67450b93dfdf4922c1d0cdfd0f
BLAKE2b-256 checksum
How to use checksums
1df4cf440f28174f184dde7a7c6744aa7062d7825d54d81ea51e19fb36c3431d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 7, 2026.

Transparency log

Security for halo-format-langgraph 0.4.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for halo_format_langgraph-0.4.0.tar.gz

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 Jun 7, 2026.

Transparency log

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.

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