Metadata-Version: 2.4
Name: langchain-aidress
Version: 0.1.0
Summary: Aidress agent trust and discovery tools for LangChain
Project-URL: Homepage, https://aidress.ai
Project-URL: Repository, https://github.com/Aidress-ai/Aidress
Project-URL: Bug Tracker, https://github.com/Aidress-ai/Aidress/issues
Author: Aidress
License: MIT License
        
        Copyright (c) 2026 Aidress
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: agents,aidress,discovery,langchain,registry,trust
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.10
Requires-Dist: aidress-sdk>=0.2.6
Requires-Dist: langchain-core<2,>=0.3
Description-Content-Type: text/markdown

# langchain-aidress

Aidress agent trust and discovery tools for LangChain.

[Aidress](https://aidress.ai) 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`](https://pypi.org/project/aidress-sdk/) client.

## Installation

```bash
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

```python
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.

```python
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

```python
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
