Skip to main content

agentavow-bridge-crewai

Formerly agentgraph-bridge-crewai. This distribution is now published as agentavow-bridge-crewai. The import module is unchanged — import agentgraph_bridge_crewai still works.

Trust-gated CrewAI tools for the AgentAvow trust network

Status: Early Development — feedback welcome

Install

pip install agentgraph-bridge-crewai

# With CrewAI trust-gating support:
pip install agentgraph-bridge-crewai[crewai]

Trust-Gated Tools

Wrap any CrewAI tool with an AgentGraph trust check. The tool will verify the trust score of the underlying repo/package before every execution.

from crewai.tools import BaseTool
from agentgraph_bridge_crewai import trust_gated_tool, TrustGuard

class MySearchTool(BaseTool):
    name: str = "search"
    description: str = "Search the web"

    def _run(self, query: str) -> str:
        return f"Results for {query}"

# Wrap a single tool
search = MySearchTool()
safe_search = trust_gated_tool(search, "owner/repo")

# The tool checks trust before each invocation
result = safe_search._run("AI agents")

Gate multiple tools at once

from agentgraph_bridge_crewai import trust_gate_tools

tools = [MySearchTool(), MyAnalysisTool()]
safe_tools = trust_gate_tools(tools, "owner/repo", min_tier="standard")

Custom trust thresholds

from agentgraph_bridge_crewai import TrustGuard, trust_gated_tool

guard = TrustGuard(min_tier="trusted")  # stricter than "standard"
safe_tool = trust_gated_tool(my_tool, "owner/repo", guard=guard)

Quick trust check (no tool wrapping)

from agentgraph_bridge_crewai import check_trust

result = await check_trust("crewai/crewai")
print(f"{result.grade} ({result.score}/100) -- {result.reason}")
if result.allowed:
    # proceed
    ...

Use with CrewAI Agents

from crewai import Agent, Task, Crew
from agentgraph_bridge_crewai import trust_gate_tools

# Gate all tools before assigning to an agent
safe_tools = trust_gate_tools(my_tools, "owner/repo", min_tier="standard")

researcher = Agent(
    role="Researcher",
    goal="Find relevant information",
    backstory="An expert researcher",
    tools=safe_tools,
)

task = Task(
    description="Research AI agent frameworks",
    agent=researcher,
)

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

What This Does

This bridge provides trust-gated execution for CrewAI tools. It wraps CrewAI BaseTool instances so they check AgentGraph trust scores before running. If a tool's repo falls below your minimum trust tier, execution is blocked with a clear error message.

Trust Tiers

From most to least trusted: verified > trusted > standard > minimal > restricted > blocked

Set min_tier to control the minimum acceptable level. Default is "standard".

Documentation

Full docs at agentavow.com/docs

Contributing

This package is in early development. We welcome issues, feedback, and PRs.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentavow_bridge_crewai-0.2.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

agentavow_bridge_crewai-0.2.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file agentavow_bridge_crewai-0.2.0.tar.gz.

File metadata

  • Download URL: agentavow_bridge_crewai-0.2.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for agentavow_bridge_crewai-0.2.0.tar.gz
Algorithm Hash digest
SHA256 35b9f962813b3ddb5c61b9460b300023f074dab6800f19302c931cd27025c183
MD5 fdc18eabd02d0f2831d879d231774c81
BLAKE2b-256 19d0def7ab461b93f959f7f8a8e63476a444643c11249f64a1427d0617fe748c

See more details on using hashes here.

File details

Details for the file agentavow_bridge_crewai-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agentavow_bridge_crewai-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4e7b6324382193e36f858058b3aff2f49dbf9c9d535c3affe2ccff50b3f47432
MD5 0ac34e1bc1ffa7eee0590c7a2ad19f39
BLAKE2b-256 5e3f18a2b73042068c2ce7bf3d673b43186d6862105a1117ce2f952e48cbb93f

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 Sentry Error logging StatusPage Status page