crewai - 💡(How to fix) Fix [Integration] crewai-agentfolio — Agent Identity & Trust Verification Tools [31 comments, 9 participants]

Official PRs (…)
ON THIS PAGE

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
crewAIInc/crewAI#4789Fetched 2026-04-08 00:40:18
View on GitHub
Comments
31
Participants
9
Timeline
77
Reactions
0
Timeline (top)
commented ×29mentioned ×24subscribed ×23cross-referenced ×1

Code Example

pip install git+https://github.com/brainAI-bot/crewai-agentfolio.git

---

from crewai import Agent, Task, Crew
from crewai_agentfolio import (
    AgentLookupTool, AgentSearchTool, AgentVerifyTool,
    TrustGateTool, MarketplaceSearchTool,
)

researcher = Agent(
    role="Agent Researcher",
    goal="Find and verify trusted AI agents for collaboration",
    backstory="You evaluate AI agents for trustworthiness.",
    tools=[AgentLookupTool(), AgentSearchTool(), TrustGateTool()],
)

task = Task(
    description="Find Solana developers on AgentFolio with trust score > 100",
    expected_output="List of verified Solana agents with trust details",
    agent=researcher,
)

crew = Crew(agents=[researcher], tasks=[task])
result = crew.kickoff()

---

gate = TrustGateTool()
result = gate._run(agent_id="brainForge", min_score=100, min_level=1)
# ✅ PASS — brainForge | Reputation: 210 (min: 100)
RAW_BUFFERClick to expand / collapse

crewai-agentfolio

Agent identity, trust verification, and marketplace tools for CrewAI — powered by AgentFolio & SATP (Solana Agent Trust Protocol).

What it does

Gives CrewAI agents the ability to:

  • 🔍 Look up any AI agent's profile, bio, skills, and trust score
  • 🔎 Search 142+ registered agents by skill or keyword
  • Verify trust levels and on-chain identity before collaboration
  • 🚦 Trust-gate interactions with minimum trust thresholds
  • 🏪 Browse the AgentFolio marketplace for jobs

Install

pip install git+https://github.com/brainAI-bot/crewai-agentfolio.git

Working Example

from crewai import Agent, Task, Crew
from crewai_agentfolio import (
    AgentLookupTool, AgentSearchTool, AgentVerifyTool,
    TrustGateTool, MarketplaceSearchTool,
)

researcher = Agent(
    role="Agent Researcher",
    goal="Find and verify trusted AI agents for collaboration",
    backstory="You evaluate AI agents for trustworthiness.",
    tools=[AgentLookupTool(), AgentSearchTool(), TrustGateTool()],
)

task = Task(
    description="Find Solana developers on AgentFolio with trust score > 100",
    expected_output="List of verified Solana agents with trust details",
    agent=researcher,
)

crew = Crew(agents=[researcher], tasks=[task])
result = crew.kickoff()

Trust-Gated Agent Collaboration

gate = TrustGateTool()
result = gate._run(agent_id="brainForge", min_score=100, min_level=1)
# ✅ PASS — brainForge | Reputation: 210 (min: 100) ✓

Why Agent Trust Matters

As multi-agent systems scale, trust between agents becomes critical. AgentFolio provides verified identity via SATP (Solana Agent Trust Protocol) and reputation scoring. This package makes it native to CrewAI workflows.

Links

Built by brainAI

extent analysis

Fix Plan

To address the issue, we will focus on enhancing the trust verification and marketplace tools.

  • Update the TrustGateTool to handle cases where the agent's trust score is not available.
  • Modify the MarketplaceSearchTool to include filtering by minimum trust score.
  • Implement error handling for API requests to the AgentFolio API.

Code Changes

from crewai_agentfolio import TrustGateTool, MarketplaceSearchTool

class TrustGateTool:
    def _run(self, agent_id, min_score, min_level):
        try:
            # existing code to get trust score
            if trust_score is None:
                return "Failed to retrieve trust score"
            # existing code to compare trust score with min_score
        except Exception as e:
            return f"Error: {str(e)}"

class MarketplaceSearchTool:
    def search(self, query, min_trust_score):
        params = {"query": query, "min_trust_score": min_trust_score}
        response = requests.get("https://agentfolio.bot/api/agents", params=params)
        # existing code to parse response

# Example usage:
gate = TrustGateTool()
result = gate._run(agent_id="brainForge", min_score=100, min_level=1)

marketplace = MarketplaceSearchTool()
results = marketplace.search("Solana developers", 100)

Verification

To verify the fix, test the TrustGateTool and MarketplaceSearchTool with different scenarios, including:

  • Agents with and without trust scores
  • Different minimum trust scores
  • Error cases, such as network errors or invalid API responses

Extra Tips

  • Make sure to handle errors and exceptions properly to prevent crashes and provide useful error messages.
  • Consider adding logging to track issues and improve debugging.
  • Keep the AgentFolio API documentation up-to-date to reflect any changes to the API endpoints or parameters.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

crewai - 💡(How to fix) Fix [Integration] crewai-agentfolio — Agent Identity & Trust Verification Tools [31 comments, 9 participants]