Skip to content

0xbrainkid/phidata-agentfolio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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

About

πŸ”— Phidata/Agno tools for AgentFolio β€” agent identity, trust scores & on-chain reputation

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages