halo-format-openai
Halo host adapter for the OpenAI Agents SDK (Python).
install_halo() wires it in one call:
- a
call_model_input_filter— the interception seam on this host. The OpenAI Agents SDK has no tool-return output-replacement hook (on_tool_endis observational), so this filter, which rewrites the assembled model input before each model call, is the only generic point that catches every tool — including external/MCP/hosted tools your app does not own. Above a size threshold it 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; - a single
halo_fetchfunction 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 separatehalo_walk).
from agents import Agent, Runner, RunConfig
from halo_format_openai import install_halo
result = install_halo(tools=my_tools)
agent = Agent(name="assistant", tools=result.tools)
out = await Runner.run(
agent, "…",
run_config=RunConfig(call_model_input_filter=result.call_model_input_filter),
)
# result.session holds the shared store for audit/inspection
Because the filter fires before every model call over the whole input list (not once per tool return),
the adapter correlates each function_call_output to its function_call by call_id — both to skip
halo_fetch's own output (the mandatory no-re-encode rule) and to feed entity accumulation the real
tool name/args — and caches each encoded result by call_id so repeated firings stay idempotent. The
filter is deterministic plumbing (it always runs, 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-openai 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_openai-0.4.0.tar.gz | 15.5 kB | With provenance | Details for halo_format_openai-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| halo_format_openai-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for halo_format_openai-0.4.0-py3-none-any.whl |
Total release size: 32.1 kB
Release files / halo_format_openai-0.4.0.tar.gz
| Download URL | halo_format_openai-0.4.0.tar.gz |
|---|---|
| Size | 15.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4c4d3bd1e2ff3b7aff9c64119d8d043cd3d6c4edaa1ab9a9fda8ae72110e9949
|
|
BLAKE2b-256 checksum How to use checksums |
dd0e764f82783ea5addacca8f440284e7a426539a461c3d44314a65b626097dd
|
| 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_openai-0.4.0-py3-none-any.whl
| Download URL | halo_format_openai-0.4.0-py3-none-any.whl |
|---|---|
| Size | 16.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
180655aed345d0be52c1a18ffd0a3db6dd1b72e737bfc71afc603b0f52cb2849
|
|
BLAKE2b-256 checksum How to use checksums |
9d8b076ad8d5bb8327946d1cb7acbfb80fec433e7f2e883864d7168e540f4597
|
| 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-openai 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_openai-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.