halo-format-langgraph
Halo host adapter for LangChain agents and
LangGraph graphs (Python). install_halo() wires it in
one call:
- a
wrap_tool_callencode 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 theToolMessageartifact(kept in graph state, never sent to the model) for audit/replay; - a single plain LangChain
halo_fetchtool 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 separatehalo_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)
| 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)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| 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 logRelease 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 logSecurity 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.
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 logA 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.