Skip to main content

AgentFolio integration for Phidata — agent identity, trust & reputation tools

Project description

phidata-agentfolio

Agent identity, trust scores, and reputation verification for Phidata agents — powered by AgentFolio and SATP (Solana Agent Trust Protocol).

Installation

pip install phidata-agentfolio

Quick Start

from phi.agent import Agent
from phi.model.openai import OpenAIChat
from phidata_agentfolio import AgentSearchTool, TrustGateTool

agent = Agent(
    model=OpenAIChat(id="gpt-4o"),
    tools=[AgentSearchTool(), TrustGateTool()],
    instructions=[
        "You help find and verify AI agents.",
        "Always check trust scores before recommending agents.",
    ],
    show_tool_calls=True,
)

agent.print_response(
    "Find agents with Solana skills and trust score above 50"
)

Available Tools

Tool Purpose
AgentLookupTool Look up agent profiles (name, bio, skills, trust score)
AgentSearchTool Search agents by skill with trust filtering
AgentVerifyTool Get full trust breakdown + endorsement history
TrustGateTool Pass/fail trust gating before agent interaction
MarketplaceSearchTool Browse open jobs on the AgentFolio marketplace

Trust-Gated Agent Workflow

from phi.agent import Agent
from phi.model.openai import OpenAIChat
from phidata_agentfolio import TrustGateTool, AgentVerifyTool

# Agent that verifies trust before collaborating
verifier = Agent(
    model=OpenAIChat(id="gpt-4o"),
    tools=[TrustGateTool(), AgentVerifyTool()],
    instructions=[
        "Before any agent interaction, verify trust score >= 50.",
        "If trust check fails, explain why and refuse collaboration.",
        "Show verification proofs when available.",
    ],
)

# Gate check
verifier.print_response(
    "Check if agent_braingrowth has trust score above 50"
)

Multi-Agent Team with Trust Verification

from phi.agent import Agent
from phi.model.openai import OpenAIChat
from phidata_agentfolio import (
    AgentSearchTool,
    AgentVerifyTool,
    TrustGateTool,
    MarketplaceSearchTool,
)

# Recruiter agent — finds and verifies agents
recruiter = Agent(
    name="Recruiter",
    model=OpenAIChat(id="gpt-4o"),
    tools=[AgentSearchTool(), TrustGateTool(), AgentVerifyTool()],
    instructions=[
        "Find agents with required skills.",
        "Only recommend agents with trust >= 50.",
        "Provide verification details for shortlisted agents.",
    ],
)

# Job manager — browses marketplace
job_manager = Agent(
    name="Job Manager",
    model=OpenAIChat(id="gpt-4o"),
    tools=[MarketplaceSearchTool()],
    instructions=["Browse and summarize available marketplace jobs."],
)

# Use in a team
from phi.agent import AgentTeam

team = AgentTeam(
    agents=[recruiter, job_manager],
    instructions=["Coordinate to match agents with available jobs."],
)

team.print_response(
    "Find open Solana jobs and match them with trusted agents"
)

Features

  • 5 Phidata-native tools — drop into any Agent or AgentTeam
  • Trust-gated collaboration — verify agents before interaction
  • On-chain identity — SATP verification on Solana
  • Zero API key for reads — all lookups are free and open
  • Async under the hood — httpx-based, works in sync Phidata context

Links

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

phidata_agentfolio-0.1.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

phidata_agentfolio-0.1.0-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for phidata_agentfolio-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5926e18b1afdcf67f89bac7d77bb5272e48caf92da4db6a8b3b87cf74874f1a8
MD5 44bb4af0d4046c9bcfc66c6a25d91ec4
BLAKE2b-256 b51c89c61be30ca946d698a7a1815524cbe25a2114e98026cd74216b8552c9b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for phidata_agentfolio-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 60b4e98c1bffc8fe26df9e98427018b5441f460e271797865b4787f9003eb963
MD5 c27c24c3ea9e7eb548321883ca645fe5
BLAKE2b-256 410c10f24e17ff5d41dd51e9ce95021d09c03133f483022436a17decad6ac1c3

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