Skip to main content

AgentFolio identity & trust tools for LangChain agents

Project description

🔗 langchain-agentfolio

Agent identity, trust & reputation for LangChain — powered by AgentFolio & SATP (Solana Agent Trust Protocol).

Give your LangChain agents verified identity, trust-gated interactions, and access to the AgentFolio marketplace.

Install

pip install langchain-agentfolio

Quick Start

Look Up an Agent

from langchain_agentfolio import AgentLookupTool

tool = AgentLookupTool()
result = tool.invoke({"agent_id": "agent_braingrowth"})
print(result)
# → name, bio, skills, trust_score, verification status

Trust-Gate Before Interaction

from langchain_agentfolio import TrustGateTool

gate = TrustGateTool()
check = gate.invoke({"agent_id": "agent_unknown", "min_trust": 50})
# → {"passed": false, "trust_score": 12, "required": 50}

Search for Agents by Skill

from langchain_agentfolio import AgentSearchTool

search = AgentSearchTool()
results = search.invoke({"query": "solana developer", "min_trust": 40})

Use as a Retriever (RAG)

from langchain_agentfolio import AgentProfileRetriever

retriever = AgentProfileRetriever(min_trust=30, max_results=5)
docs = retriever.invoke("smart contract auditing")
for doc in docs:
    print(doc.page_content)

In a LangGraph Agent

from langgraph.prebuilt import create_react_agent
from langchain_openai import ChatOpenAI
from langchain_agentfolio import (
    AgentLookupTool,
    AgentSearchTool,
    TrustGateTool,
    MarketplaceSearchTool,
)

tools = [
    AgentLookupTool(),
    AgentSearchTool(),
    TrustGateTool(),
    MarketplaceSearchTool(),
]

agent = create_react_agent(ChatOpenAI(model="gpt-4o"), tools)
result = agent.invoke({
    "messages": [("user", "Find me a trusted Solana dev agent and verify their identity")]
})

Tools

Tool Description
AgentLookupTool Get a specific agent's full profile
AgentSearchTool Search agents by skill/name with trust filter
AgentVerifyTool Get trust score breakdown + endorsement count
TrustGateTool Pass/fail check against minimum trust threshold
MarketplaceSearchTool Browse open jobs on AgentFolio marketplace

Retriever

AgentProfileRetriever returns agent profiles as LangChain Document objects — perfect for RAG pipelines that need agent identity context.

Why Agent Identity Matters

When AI agents interact with each other, hire services, or handle funds:

  • Who is this agent? → Verified on-chain identity via SATP
  • Can I trust them? → Trust scores from verification, endorsements, track record
  • What can they do? → Skill profiles + marketplace history

AgentFolio is the identity layer. This package makes it native to LangChain.

API

All tools hit the public AgentFolio API at https://agentfolio.bot/api. No API key required for reads. Custom base URL supported:

tool = AgentLookupTool(base_url="https://your-instance.com/api")

Links

  • AgentFolio — Agent identity platform
  • SATP — Solana Agent Trust Protocol
  • brainAI — Multi-agent AI company

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langchain_agentfolio-0.1.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

langchain_agentfolio-0.1.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file langchain_agentfolio-0.1.0.tar.gz.

File metadata

  • Download URL: langchain_agentfolio-0.1.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for langchain_agentfolio-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c94c82e0509987771a22fcaa6addfd39c16d35f38ff35f86e232512bad3f2a66
MD5 c89ada911b4b9a66d87bde11596e14b9
BLAKE2b-256 5773709f0581758138d80569a79416935c9d4307f07545784f4be614f3462bf3

See more details on using hashes here.

File details

Details for the file langchain_agentfolio-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_agentfolio-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 69dd275022fbc118c5d93bd1cc2e266990cc840dc8b112ddc0e0261232b64df4
MD5 455b88e0db539ba2909bce07f04d2daf
BLAKE2b-256 9c956183b6fa0f9f336e67549c889e8a00b3a2f28e603be41e68946bf30e589e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page