Skip to main content

nerq-langgraph

Trust-check node for LangGraph agents. Verify AI agent safety before execution with the Nerq Trust Index.

Install

pip install nerq-langgraph

Quick Start — 3 Lines

from nerq_langgraph import trust_check_node
from langgraph.graph import StateGraph

graph = StateGraph(dict)
graph.add_node("trust_check", trust_check_node(min_trust=70))
# trust_check returns state with trust_score, trust_grade, trust_approved

Full Example

from nerq_langgraph import trust_check_node
from langgraph.graph import StateGraph, END

def agent_action(state):
    if not state.get("trust_approved", False):
        return {**state, "result": "Blocked: agent failed trust check"}
    return {**state, "result": f"Executed with trust score {state['trust_score']}"}

graph = StateGraph(dict)
graph.add_node("trust_check", trust_check_node(min_trust=70))
graph.add_node("action", agent_action)
graph.set_entry_point("trust_check")
graph.add_edge("trust_check", "action")
graph.add_edge("action", END)

app = graph.compile()
result = app.invoke({"agent_name": "langchain"})
print(result["trust_approved"])  # True/False
print(result["trust_score"])     # 88.5

Configuration

Parameter Default Description
min_trust 60 Minimum trust score to approve
api_base https://nerq.ai Nerq API endpoint
cache_ttl 300 Cache TTL in seconds

State Keys

The node reads agent_name or target from state and adds:

  • trust_score — numeric score (0-100)
  • trust_grade — letter grade (A+, A, B+, etc.)
  • trust_approved — boolean

Links

Metadata

Release files for nerq-langgraph 0.1.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 nerq-langgraph 0.1.0
File Size Uploaded Provenance
nerq_langgraph-0.1.0.tar.gz 4.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for nerq-langgraph 0.1.0
File Interpreter ABI Platform
nerq_langgraph-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.6 kB

Release files / nerq_langgraph-0.1.0.tar.gz

Download URL nerq_langgraph-0.1.0.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9c9d4fc2d1a8f3cbbceba08a8513bf7e6d90b886333b350454d2cebe5af11f60
BLAKE2b-256 checksum
How to use checksums
3d9962209784e355bf8560474f3b65f8f2ec18262ceefe0b79cfbf23300f58ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / nerq_langgraph-0.1.0-py3-none-any.whl

Download URL nerq_langgraph-0.1.0-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cdd299bbfe6dd51c24b5264c853961f2680368e7be00a3ebdb9bc9cad02427aa
BLAKE2b-256 checksum
How to use checksums
568cd68acc561e43faf98701ac66c5cedfd992f5b30546fca66cb0d636a09e7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Security for nerq-langgraph 0.1.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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