Repository navigation
Description
Stage
Ready: integration exists and works, proposing to list it
Integration or project name
NeuralTrust
Integration type
Custom Component
Published package or repo (if it exists)
- PyPI: https://pypi.org/project/neuraltrust-haystack/ (current release: 0.1.1) - Source: https://github.com/NeuralTrust/neuraltrust-haystack - Docs: https://docs.neuraltrust.ai/integrations/haystack - Earlier registry page (closed under the new process, not rejected): Add NeuralTrust integration #605
Need or proof of use
The integration is already published and works in standard Haystack pipelines.
- Install:
pip install neuraltrust-haystack(MIT-licensed, Python 3.10+,haystack-ai>=2.31.0,<4). - Runnable examples in the package repo:
- Official setup guide: https://docs.neuraltrust.ai/integrations/haystack
- The repository includes an offline test suite for the components, client lifecycle, pipeline routing, and serialization, run in CI across Python 3.10–3.14 and Haystack 2.31.0 and 3.1.1. Opt-in live tests against production TrustGuard are also included.
Haystack users who need runtime policy checks can place an input guard before a generator and an output guard after it, and connect downstream components to the guard's content output so only accepted or policy-transformed content continues. This avoids writing a custom TrustGuard HTTP client and keeps verdict handling (raise or route) inside the pipeline.
Short description
NeuralTrust TrustGuard evaluates application input and output against the policy assigned to a collector (allow, report, transform, block, or hold for approval). The NeuralTrust-maintained neuraltrust-haystack package adds two native Haystack components:
NeuralTrustGuard: evaluates a text string (input or completed output)NeuralTrustChatGuard: evaluates a list of text-onlyChatMessages, preserving names and metadata
Both support sync and async execution and Haystack pipeline serialization. Credentials use a Haystack Secret (default: TRUSTGUARD_API_KEY).
Known limits: the chat component rejects multimodal content, multiple content parts, reasoning, and tool calls/results; output evaluation covers completed replies and does not intercept streamed tokens or an Agent's internal tool actions; an ask verdict stays stopped, since human approval is not implemented.
I'm Alessandro Pignati (@alespignaNT) at NeuralTrust, taking this integration over from Albert (@AlbertNeuralTrust) as noted on #605. Once approved, I'll open a PR for the registry page linking this issue. Thanks for pointing us to the new process!
Activity