Current collected state Current
Observed since 20 Oct, 22:42 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
agentmesh_langchain
AgentMesh trust layer integration for LangChain - cryptographic identity and trust-gated tool execution
Cryptographic identity verification and trust-gated tool execution for LangChain agents.
pip install agentmesh-langchain
from langchain_agentmesh import VerificationIdentity, TrustGatedTool, TrustedToolExecutor
# Generate agent identity
identity = VerificationIdentity.generate('research-agent', capabilities=['search', 'summarize'])
# Wrap a tool with trust requirements
gated_tool = TrustGatedTool(
tool=search_tool,
required_capabilities=['search'],
min_trust_score=0.8
)
# Execute with verification
executor = TrustedToolExecutor(identity=identity)
result = executor.invoke(gated_tool, 'query')
from langchain_agentmesh import TrustHandshake
# Create handshake for peer verification
handshake = TrustHandshake(my_identity)
# Verify peer before collaboration
result = await handshake.verify_peer(peer_identity)
if result.trusted:
# Safe to delegate task
response = await peer_agent.invoke(task)
from langchain_agentmesh import TrustGatedTool
# Sensitive tool requiring high trust
code_execution_tool = TrustGatedTool(
tool=python_repl,
required_capabilities=['code:execute'],
min_trust_score=0.9,
audit_logging=True
)
# Only trusted agents can use this tool
result = executor.invoke(code_execution_tool, code)
from langchain_agentmesh import TrustCallbackHandler
# Monitor trust events
callback = TrustCallbackHandler(
on_verification=lambda r: print(f"Verified: {r.peer_did}"),
on_violation=lambda v: alert(f"Violation: {v}")
)
agent = create_agent(callbacks=[callback])
| Parameter | Default | Description |
|---|---|---|
min_trust_score | 0.5 | Minimum trust score required |
required_capabilities | [] | Required capability list |
audit_logging | False | Enable audit trail |
cache_ttl | 900 | Verification cache TTL (seconds) |
MIT
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
cryptographyEnvironment{
"extras": "",
"marker": null,
"requires_python": ">=3.9",
"evaluation": "NOT_EVALUATED"
} | cryptography<47.0,>=46.0.7 | runtime |
langchain-coreEnvironment{
"extras": "",
"marker": null,
"requires_python": ">=3.9",
"evaluation": "NOT_EVALUATED"
} | langchain-core>=1.2.28 | runtime |
pytest-asyncioEnvironment{
"extras": "",
"marker": "extra == \"dev\"",
"requires_python": ">=3.9",
"evaluation": "NOT_EVALUATED"
} | pytest-asyncio<1.0,>=0.21; extra == "dev" | runtime |
pytestEnvironment{
"extras": "",
"marker": "extra == \"dev\"",
"requires_python": ">=3.9",
"evaluation": "NOT_EVALUATED"
} | pytest<8.0,>=7.0; extra == "dev" | runtime |
ruffEnvironment{
"extras": "",
"marker": "extra == \"dev\"",
"requires_python": ">=3.9",
"evaluation": "NOT_EVALUATED"
} | ruff<1.0,>=0.1.0; extra == "dev" | runtime |
bdist_wheel · 19.04 KB · Python py3
sdist · 21.3 KB · Python source
Shared repository data · GitHub
Observed since 20 Oct, 22:42 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:a3060f74f357530783dca2c1adc2bbf80fdc2026be5459fde17d4c0992d37953