Skip to main content

LlamaIndex AgentMesh IntegrationAgentMesh trust layer integration for LlamaIndex - enabling cryptographic identity verification and trust-gated agent workflows.## OverviewThis integration provides:- TrustedAgentWorker: Agent worker with cryptographic identity and trust verification- TrustGatedQueryEngine: Query engines with access control based on trust- Secure Data Access: Governance layer for RAG pipelines with identity-based policies## Installationbashpip install llama-index-agent-agentmesh## Quick Start### Creating a Trusted Agentpythonfrom llama_index.agent.agentmesh import TrustedAgentWorker, VerificationIdentity# Generate cryptographic identityidentity = VerificationIdentity.generate( agent_name="research-agent", capabilities=["document_search", "summarization"],)# Create trusted agent workerworker = TrustedAgentWorker.from_tools( tools=[search_tool, summarize_tool], identity=identity, llm=llm,)# Create agent with trust verificationagent = worker.as_agent()### Trust-Gated Query Enginepythonfrom llama_index.agent.agentmesh import TrustGatedQueryEngine, TrustPolicy# Wrap query engine with trust policytrusted_engine = TrustGatedQueryEngine( query_engine=base_engine, policy=TrustPolicy( min_trust_score=0.8, required_capabilities=["document_access"], audit_queries=True, ),)# Query requires verified identityresponse = trusted_engine.query( "What are the quarterly results?", invoker_card=requester_card,)### Multi-Agent Trust Handoffspythonfrom llama_index.agent.agentmesh import TrustHandshake, TrustedAgentCard# Create agent card for discoverycard = TrustedAgentCard( name="research-agent", description="Performs document research", capabilities=["search", "summarize"], identity=identity,)card.sign(identity)# Verify peer before task handoffhandshake = TrustHandshake(my_identity=identity)result = handshake.verify_peer(peer_card)if result.trusted: # Safe to delegate task pass## Features### TrustedAgentWorkerAn agent worker that:- Has cryptographic identity for authentication- Verifies peer agents before accepting tasks- Signs outputs for verification by recipients- Supports capability-based access control### TrustGatedQueryEngineA query engine wrapper that:- Requires identity verification for queries- Enforces trust score thresholds- Restricts access based on capabilities- Provides audit logging of all queries### Data Access GovernanceControl access to your RAG pipeline:pythonfrom llama_index.agent.agentmesh import DataAccessPolicypolicy = DataAccessPolicy( allowed_collections=["public", "internal"], denied_collections=["confidential"], require_audit=True, max_results_per_query=100,)# Apply policy to indextrusted_index = TrustedVectorStoreIndex( index=base_index, policy=policy,)## Security ModelAgentMesh uses Ed25519 cryptography for:- Identity Generation: Unique DID per agent- Request Signing: All queries are signed- Response Verification: Outputs can be verified## API Reference| Class | Description || ----------------------- | ------------------------------------ || VerificationIdentity | Cryptographic agent identity || TrustedAgentWorker | Agent worker with trust verification || TrustGatedQueryEngine | Query engine with access control || TrustHandshake | Peer verification protocol || TrustedAgentCard | Agent discovery card || DataAccessPolicy | RAG access governance |## LicenseMIT License

Metadata

Release files for llamaindex_agentmesh 3.6.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 llamaindex_agentmesh 3.6.0
File Size Uploaded Provenance Actions
llamaindex_agentmesh-3.6.0.tar.gz 8.6 kB Without provenance Details for llamaindex_agentmesh-3.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for llamaindex_agentmesh 3.6.0
File Interpreter ABI Platform Actions
llamaindex_agentmesh-3.6.0-py3-none-any.whl Python 3 none any Details for llamaindex_agentmesh-3.6.0-py3-none-any.whl

Total release size: 20.7 kB

Release files / llamaindex_agentmesh-3.6.0.tar.gz

Download URL llamaindex_agentmesh-3.6.0.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
10d76044efc040c487963d0ec2c387df11c478ad21b34b9fe64040c93f7c158f
BLAKE2b-256 checksum
How to use checksums
6ba2657cb677efc041d6b1aea4a84b66047c82bb686f37bd0347a50c474da43d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

Release files / llamaindex_agentmesh-3.6.0-py3-none-any.whl

Download URL llamaindex_agentmesh-3.6.0-py3-none-any.whl
Size 12.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3028e12a585c9a96d779309b5471243c3d7c1f2b9e33929565f376687cb94bd5
BLAKE2b-256 checksum
How to use checksums
5b82e62c98fd27bc976110d63c215748c74a8001068b8dc3748d25c445c3a526
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

Security for llamaindex_agentmesh 3.6.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.

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