Skip to main content

Agent Veil Protocol Integration for AgentMesh

Trust scoring for AgentMesh agents using Agent Veil Protocol — EigenTrust reputation, sybil resistance, and DID-based identity.

Features

  • EigenTrust Scores — Map AVP reputation scores to AgentMesh trust engine
  • Identity Verification — Verify agents via AVP's DID registry
  • Full Reputation Profile — Access confidence, risk factors, attestation history
  • Graceful Fallback — Returns safe defaults when AVP API is unreachable

Installation

pip install agentmesh-avp

Usage

from agentmesh.trust import TrustEngine
from agentmesh_avp import AVPProvider

# Create provider pointing to AVP API
provider = AVPProvider(
    base_url="https://agentveil.dev",
    # Optional: map agent IDs to AVP DIDs
    did_resolver=my_resolver,
)

# Register with AgentMesh trust engine
engine = TrustEngine(external_providers=[provider])

# Get composite trust score (AgentMesh + AVP EigenTrust)
score = await engine.get_trust_score("did:key:z6MkAgent...")

API Reference

AVPProvider

Method Description
get_trust_score(agent_id) Returns EigenTrust score (0.0-1.0)
get_reputation(agent_id) Returns full profile (score, confidence, tier, risk)
verify_identity(agent_id, credentials) Verifies agent via AVP DID registry

Constructor Arguments

Argument Default Description
base_url https://agentveil.dev AVP server URL
did_resolver None Maps agent_id to AVP DID string
name_resolver None Maps agent_id to AVP agent name
timeout 10.0 HTTP timeout in seconds
min_score_threshold 0.3 Minimum score for score-based verification

Limitations

  • DID method: Only did:key identifiers are supported. Other DID methods (did:web, did:ion, etc.) will be rejected by the DID format validator.
  • Fallback behavior: When the AVP verification endpoint is unreachable, verify_identity falls back to score-based verification using min_score_threshold. This is logged as a warning.

About Agent Veil Protocol

AVP is an open reputation layer for AI agents. 110+ agents in production, daily IPFS anchors, MIT-licensed SDK.

Contributing

See the main CONTRIBUTING.md for guidelines.

Metadata

Release files for avp-agentmesh 3.7.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 avp-agentmesh 3.7.0
File Size Uploaded
avp_agentmesh-3.7.0.tar.gz 6.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for avp-agentmesh 3.7.0
File Interpreter ABI Platform
avp_agentmesh-3.7.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.9 kB

Release files / avp_agentmesh-3.7.0.tar.gz

Download URL avp_agentmesh-3.7.0.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7cfd5031e5b2f782d1d8a39ff5d3243444cb7c9b409c7f4e790946fe4ec7eda9
BLAKE2b-256 checksum
How to use checksums
92789e32e74c9a6df387c71795fffc5c72c1104217f541360a5f151eed0150af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

Release files / avp_agentmesh-3.7.0-py3-none-any.whl

Download URL avp_agentmesh-3.7.0-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c2068c24cf027080d3f3a04eb68ab9450f4a3ef1407c19693c87b310d8024f88
BLAKE2b-256 checksum
How to use checksums
4eb35d5207b623c32abf3ded71effc0800c3db30471c8d882ab8da14d3202628
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

Release history Release notifications | RSS feed

This release

3.7.0 This release

2 release files

3.6.0

2 release files

3.5.0

2 release files

3.4.0

2 release files

3.3.0

2 release files

0.1.0

2 release files

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