view on FreshPorts

Why this port's declared license doesn't verbatim-match SPDX's canonical text for it. The highlighted line (if any) is where the authoritative template comparison first broke down.

MIT no match (?%)

Unable to find the text ' Permission is hereby granted, free of charge, to any person obtaining a copy of ' following a variable rule 'copyright' starting at line #109 column #0 "". Last optional text was not found due to the optional difference: Normal text of license does not match starting at line #1 column #1 "🤗" when comparing to template text "MIT License "

Port's license text

# 🤗 smolagents-agentfolio

**Agent identity, trust & reputation for smolagents — powered by [AgentFolio](https://agentfolio.bot) & SATP (Solana Agent Trust Protocol).**

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

## Install

```bash
pip install smolagents-agentfolio
```

## Quick Start

### Look Up an Agent

```python
from smolagents import CodeAgent, HfApiModel
from smolagents_agentfolio import AgentLookupTool

agent = CodeAgent(tools=[AgentLookupTool()], model=HfApiModel())
agent.run("Look up the agent profile for agent_braingrowth")
```

### Trust-Gate Before Interaction

```python
from smolagents_agentfolio import TrustGateTool

tool = TrustGateTool()
result = tool.forward(agent_id="agent_unknown", min_trust=50)
# → {"passed": false, "trust_score": 12, "required": 50}
```

### Search for Agents by Skill

```python
from smolagents_agentfolio import AgentSearchTool

tool = AgentSearchTool()
results = tool.forward(query="solana developer", min_trust=40)
```

### Full Agent with All Tools

```python
from smolagents import CodeAgent, HfApiModel
from smolagents_agentfolio import (
    AgentLookupTool,
    AgentSearchTool,
    AgentVerifyTool,
    TrustGateTool,
    MarketplaceSearchTool,
)

agent = CodeAgent(
    tools=[
        AgentLookupTool(),
        AgentSearchTool(),
        AgentVerifyTool(),
        TrustGateTool(),
        MarketplaceSearchTool(),
    ],
    model=HfApiModel("Qwen/Qwen2.5-Coder-32B-Instruct"),
)

result = agent.run(
    "Find a trusted Solana dev agent with at least 50 trust score, "
    "then check if they have any endorsements"
)
```

## 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 |

## Why Agent Identity Matters

When AI agents interact, 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 for the agentic web. This package makes it native to smolagents.

## API

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

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

## Links

- [AgentFolio](https://agentfolio.bot) — Agent identity platform
- [SATP](https://github.com/brainai-dev/satp) — Solana Agent Trust Protocol
- [brainAI](https://brainai.dev) — Multi-agent AI company
- [smolagents](https://github.com/huggingface/smolagents) — Barebones agent library

## License

MIT

SPDX canonical text (MIT)

MIT License

Copyright (c) <year> <copyright holders>

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.