Observed since 20 Oct, 22:05 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
agentgraph-pydantic
AgentGraph trust verification middleware for PydanticAI agents
Trust verification middleware for PydanticAI agents
Status: Early Development — feedback welcome
pip install agentgraph-pydantic
from agentgraph_pydantic import TrustGuard, check_trust
# Quick one-shot check
result = await check_trust("crewAIInc/crewAI")
if result.allowed:
print(f"{result.grade} ({result.score}) — safe to execute")
# Reusable guard with a minimum tier
guard = TrustGuard(min_tier="standard")
result = await guard.check("owner/repo")
if not result.allowed:
raise ValueError(f"Blocked: {result.reason}")
agentgraph-pydantic lets PydanticAI agents verify the trust score of any GitHub repository before executing tools, calling external code, or loading MCP servers. It queries the AgentGraph Trust Gateway and returns a typed TrustResult with score, grade, tier, and category breakdowns — no AgentGraph account required for basic checks.
check_trust(repo, min_tier="standard") -> TrustResultConvenience function for a single trust check.
TrustGuard(min_tier, api_url=None, timeout=30.0)Reusable guard object. Call await guard.check(repo) to verify trust.
TrustResult| Field | Type | Description |
|---|---|---|
repo | str | Repository checked |
allowed | bool | Whether the repo meets the minimum tier |
score | int | Trust score (0-100) |
grade | str | Letter grade (A+/A/B/C/D/F) |
tier | str | Trust tier (verified/trusted/standard/minimal/restricted/blocked) |
reason | str | Human-readable decision reason |
category_scores | dict[str, int] | Per-category score breakdown |
Full docs at agentgraph.co/docs
This package is in early development. We welcome issues, feedback, and PRs.
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
httpxEnvironment{
"extras": "",
"marker": null,
"requires_python": ">=3.9",
"evaluation": "NOT_EVALUATED"
} | httpx>=0.25 | runtime |
pydanticEnvironment{
"extras": "",
"marker": null,
"requires_python": ">=3.9",
"evaluation": "NOT_EVALUATED"
} | pydantic>=2.0 | runtime |
pytest-asyncioEnvironment{
"extras": "",
"marker": "extra == \"dev\"",
"requires_python": ">=3.9",
"evaluation": "NOT_EVALUATED"
} | pytest-asyncio>=0.21; extra == "dev" | runtime |
pytestEnvironment{
"extras": "",
"marker": "extra == \"dev\"",
"requires_python": ">=3.9",
"evaluation": "NOT_EVALUATED"
} | pytest>=7.0; extra == "dev" | runtime |
bdist_wheel · 4.03 KB · Python py3
sdist · 3.82 KB · Python source
Observed since 20 Oct, 22:05 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:4cd368e57552eb8268409549a892f498c38ff7bb5ee4ae9f8375dcd7f35e14bd