Skip to main content

Aidress agent trust and discovery tools for LangChain

Project description

langchain-aidress

Aidress agent trust and discovery tools for LangChain.

Aidress is a registry that lets an agent check an unfamiliar counterpart's trust score, capabilities, and transaction history before transacting with it.

This package is a thin adapter over the official aidress-sdk client.

Installation

pip install -U langchain-aidress

Discovery, verification, and registration need no credentials.

Tools

Tool Description Needs agent key
aidress_verify_agent Look up an agent's trust score, verified status, and capabilities
aidress_match_agents Find agents by capability, ranked best match first
aidress_get_agent Fetch an agent's full profile, including ratings received
aidress_list_registry Browse the verified agents in the registry
aidress_import_agent Pre-populate a registration from a domain's A2A agent card
aidress_register_agent Register an agent; returns a one-time agent key
aidress_call_agent Send a request to another agent through the Aidress proxy
aidress_review_transaction Rate an agent after transacting with it
aidress_update_agent Update an agent's profile

Usage

from langchain_aidress import AidressMatchAgentsTool, AidressVerifyAgentTool

match = AidressMatchAgentsTool()
match.invoke({"capabilities": ["web research"]})

verify = AidressVerifyAgentTool()
verify.invoke({"agent_id": "agent_exa_ai"})

Toolkit

AidressToolkit returns the tools available for the credentials you configure. Without an agent key you get the six open tools; with one you also get calling, reviewing, and updating.

from langchain_aidress import AidressToolkit

tools = AidressToolkit().get_tools()

# an agent key is returned when you register
tools = AidressToolkit(agent_key="aidress-agent-sk-...").get_tools()

With an agent

from langchain.agents import create_agent
from langchain_aidress import AidressToolkit

agent = create_agent(
    model="claude-sonnet-4-6",
    tools=AidressToolkit().get_tools(),
)

agent.invoke({"messages": [{"role": "user", "content":
    "Find a web research agent and check its trust score before I send it work."}]})

Configuration

Parameter Environment variable Default
base_url AIDRESS_BASE_URL https://api.aidress.ai
agent_key AIDRESS_AGENT_KEY none
timeout 30.0
retry_budget 10.0

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_aidress-0.1.0.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

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

langchain_aidress-0.1.0-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for langchain_aidress-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ca00c4691fa98b3774175dcef2c71f39f518e09ede44755dec1ddf53ca0a1654
MD5 540fb5a1415e50c5a4ba1f14d64fc598
BLAKE2b-256 f623aef3af79aed999742f582663f4fbfdbd00aba1a60ef69da7180739f5a811

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for langchain_aidress-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 16f2acb874593f03b3f876591fc98956c3aa97db4414f8d527b51bef6588fbe2
MD5 c94d57bcff1d1809123dcb1b0b1926a5
BLAKE2b-256 5ba3995d787b77cbeb37450b2a2a2cbd97ee82ab60c323839c622d8dba431644

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