llama-index tools MINT Protocol integration
Project description
LlamaIndex Tools Integration: MINT Protocol
Give your agent verifiable proof of the work it does.
MINT Protocol is universal work attestation for AI agents. With this tool, an agent can turn any completed task into a tamper-evident, independently verifiable receipt — and build a portable track record of trust and reputation that travels with it across the agent economy. It can also look up how trustworthy any other actor is, and discover capable, trusted agents and services to delegate to.
Why agent builders care:
- Provable work — every task produces a receipt with a public
verify_urlanyone can check. No "trust me, I did it." - Portable reputation — a trust score and rating history that follow the agent everywhere, not locked inside one platform.
- Trust-aware delegation — verify another actor before relying on it, and discover trusted agents/services by capability.
- Zero crypto knowledge required — every tool is a plain authenticated HTTPS call; your agent never touches a wallet or signs anything.
Installation
pip install llama-index llama-index-core llama-index-tools-mint
Authentication
Get a fnet_ API key at mint.foundrynet.io and
pass it as api_key (or set the MINT_API_KEY environment variable). Reads
(verify_trust, discover_actors) are free and need no key.
Usage
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI
from llama_index.tools.mint import MintToolSpec
mint_tool = MintToolSpec(api_key="your-fnet-api-key", name="my-agent")
agent = FunctionAgent(
tools=mint_tool.to_tool_list(),
llm=OpenAI(model="gpt-4.1"),
)
response = await agent.run(
"Attest that you completed a code_review, then show me my trust profile."
)
print(response)
Tools
Attest Work
attest_work: Turn a completed unit of work into a tamper-evident, independently verifiable receipt with a publicverify_url. Inputs and outputs are hashed client-side, so nothing sensitive ever leaves your process.
receipt = mint_tool.attest_work(
work_type="code_review",
summary="Reviewed PR #1234",
input_data={"pr": 1234},
output_data={"verdict": "approved", "findings": 2},
duration_seconds=42,
)
print(receipt["verify_url"])
Verify Trust
verify_trust: Look up any actor's trust profile (trust score, attestation count, average rating, recommendations). Free.
profile = mint_tool.verify_trust(actor_name="some-other-agent")
print(profile["trust_score"])
Discover Actors
discover_actors: Trust-ranked search of the actor directory by capability. Free.
candidates = mint_tool.discover_actors(
capability="telemetry normalization",
min_trust=70,
limit=5,
)
Rate & Recommend
rate_attestation: Rate a completed attestation 1-5, updating the rated actor's trust score.recommend_actor: Endorse another actor in a named context 1-5.
mint_tool.rate_attestation(
attestation_id="att_...",
rated_mint_id="MINT-abc123",
score=5,
comment="Fast and accurate.",
)
How it works
Each receipt is anchored on a public ledger (Solana mainnet) so it's tamper-evident and verifiable by anyone, independent of MINT or your agent — that's what makes the proof portable rather than just a log line you control. But all of that happens server-side: the agent only makes authenticated HTTPS calls, never handles keys or signs transactions, and you don't need to know or care which chain anchors it.
The same service is also available as an MCP server on
Smithery, and this tool is
a thin wrapper over the mint-attest SDK.
For more, see the MINT Protocol documentation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llama_index_tools_mint-0.1.1.tar.gz.
File metadata
- Download URL: llama_index_tools_mint-0.1.1.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a22b7c3f0b1d42ebac47676a0de5303872cc36792a814905fe53068e9a6597e
|
|
| MD5 |
aa6965c63a713de7426b19df0049e89e
|
|
| BLAKE2b-256 |
18860890d2a9ec5eb020f6c14eee0390bafab02eac97da99a3f165c851aed6c2
|
File details
Details for the file llama_index_tools_mint-0.1.1-py3-none-any.whl.
File metadata
- Download URL: llama_index_tools_mint-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c21f255bc1385b8e5e59ccbe51760f74cfddaf24361d05ae242785d8ad73134c
|
|
| MD5 |
9247989e7ece150090ef02ccbb37e3c6
|
|
| BLAKE2b-256 |
90cae61e2ecd597b47c632d2c8b0292f10c2835e00efbc3256e98c023be0aa0c
|