Catalog PyPI
Back to packageRELEASE DETAILS

0.1.0

PyPI

agentgraph-pydantic

AgentGraph trust verification middleware for PydanticAI agents

agentgraphagentspydanticpydantic-aisecuritytrust
Published10 Apr 2026
Direct dependencies4
Transitive dependenciesNot calculated

README

Version 0.1.0 documentation

agentgraph-pydantic

Trust verification middleware for PydanticAI agents

Status: Early Development — feedback welcome

Install

pip install agentgraph-pydantic

Quick Start

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}")

What This Does

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.

API

check_trust(repo, min_tier="standard") -> TrustResult

Convenience 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

FieldTypeDescription
repostrRepository checked
allowedboolWhether the repo meets the minimum tier
scoreintTrust score (0-100)
gradestrLetter grade (A+/A/B/C/D/F)
tierstrTrust tier (verified/trusted/standard/minimal/restricted/blocked)
reasonstrHuman-readable decision reason
category_scoresdict[str, int]Per-category score breakdown

How It Differs from agentgraph-bridge-pydantic

  • agentgraph-pydantic (this package) — trust verification middleware. Checks whether external tools/repos are safe to use. No account needed.
  • agentgraph-bridge-pydantic — registration bridge. Registers your PydanticAI agents on the AgentGraph network. Requires an API key.

Documentation

Full docs at agentgraph.co/docs

Contributing

This package is in early development. We welcome issues, feedback, and PRs.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 4

Native requirements
4 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
httpx
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.9",
  "evaluation": "NOT_EVALUATED"
}
httpx>=0.25runtime
pydantic
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.9",
  "evaluation": "NOT_EVALUATED"
}
pydantic>=2.0runtime
pytest-asyncio
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.9",
  "evaluation": "NOT_EVALUATED"
}
pytest-asyncio>=0.21; extra == "dev"runtime
pytest
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.9",
  "evaluation": "NOT_EVALUATED"
}
pytest>=7.0; extra == "dev"runtime

Distribution files

2 collected
agentgraph_pydantic-0.1.0-py3-none-any.whl

bdist_wheel · 4.03 KB · Python py3

Source file
agentgraph_pydantic-0.1.0.tar.gz

sdist · 3.82 KB · Python source

Source file

Repository

PENDING
agentgraph-co/agentgraph

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:05 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:4cd368e57552eb8268409549a892f498c38ff7bb5ee4ae9f8375dcd7f35e14bd

Other collected versions

View all collected versions →