crewai-agentoracle 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,63 @@
1
+ Metadata-Version: 2.4
2
+ Name: crewai-agentoracle
3
+ Version: 0.1.0
4
+ Summary: CrewAI tool for AgentOracle — trust verification for AI agents
5
+ Author: TKCollective
6
+ License: MIT
7
+ Project-URL: Homepage, https://agentoracle.co
8
+ Project-URL: Repository, https://github.com/TKCollective/crewai-agentoracle
9
+ Keywords: crewai,agentoracle,trust,verification,ai-agents,x402
10
+ Requires-Python: >=3.9
11
+ Description-Content-Type: text/markdown
12
+ Requires-Dist: crewai>=0.50.0
13
+ Requires-Dist: requests>=2.28.0
14
+
15
+ # crewai-agentoracle
16
+
17
+ CrewAI tool for [AgentOracle](https://agentoracle.co) — trust verification for AI agents.
18
+
19
+ ## Installation
20
+
21
+ ```bash
22
+ pip install crewai-agentoracle
23
+ ```
24
+
25
+ ## Usage
26
+
27
+ ```python
28
+ from crewai import Agent, Task, Crew
29
+ from crewai_agentoracle import AgentOracleVerifyTool, AgentOracleEvaluateTool
30
+
31
+ # Create tools
32
+ verify_tool = AgentOracleVerifyTool()
33
+ evaluate_tool = AgentOracleEvaluateTool()
34
+
35
+ # Create an agent with verification capabilities
36
+ researcher = Agent(
37
+ role="Research Analyst",
38
+ goal="Find and verify information before making recommendations",
39
+ backstory="An analyst who always fact-checks before reporting.",
40
+ tools=[verify_tool, evaluate_tool],
41
+ )
42
+
43
+ # The agent will automatically use AgentOracle to verify claims
44
+ task = Task(
45
+ description="Research whether Bitcoin reached $100K in 2025 and verify the claim.",
46
+ expected_output="Verified research finding with confidence score.",
47
+ agent=researcher,
48
+ )
49
+
50
+ crew = Crew(agents=[researcher], tasks=[task])
51
+ result = crew.kickoff()
52
+ ```
53
+
54
+ ## Tools
55
+
56
+ | Tool | Description | Price |
57
+ |------|-------------|-------|
58
+ | `AgentOracleVerifyTool` | Quick claim verification via /preview | Free (10/hr) |
59
+ | `AgentOracleEvaluateTool` | Full 4-source verification | $0.02 USDC via x402 |
60
+
61
+ ## License
62
+
63
+ MIT
@@ -0,0 +1,49 @@
1
+ # crewai-agentoracle
2
+
3
+ CrewAI tool for [AgentOracle](https://agentoracle.co) — trust verification for AI agents.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ pip install crewai-agentoracle
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```python
14
+ from crewai import Agent, Task, Crew
15
+ from crewai_agentoracle import AgentOracleVerifyTool, AgentOracleEvaluateTool
16
+
17
+ # Create tools
18
+ verify_tool = AgentOracleVerifyTool()
19
+ evaluate_tool = AgentOracleEvaluateTool()
20
+
21
+ # Create an agent with verification capabilities
22
+ researcher = Agent(
23
+ role="Research Analyst",
24
+ goal="Find and verify information before making recommendations",
25
+ backstory="An analyst who always fact-checks before reporting.",
26
+ tools=[verify_tool, evaluate_tool],
27
+ )
28
+
29
+ # The agent will automatically use AgentOracle to verify claims
30
+ task = Task(
31
+ description="Research whether Bitcoin reached $100K in 2025 and verify the claim.",
32
+ expected_output="Verified research finding with confidence score.",
33
+ agent=researcher,
34
+ )
35
+
36
+ crew = Crew(agents=[researcher], tasks=[task])
37
+ result = crew.kickoff()
38
+ ```
39
+
40
+ ## Tools
41
+
42
+ | Tool | Description | Price |
43
+ |------|-------------|-------|
44
+ | `AgentOracleVerifyTool` | Quick claim verification via /preview | Free (10/hr) |
45
+ | `AgentOracleEvaluateTool` | Full 4-source verification | $0.02 USDC via x402 |
46
+
47
+ ## License
48
+
49
+ MIT
@@ -0,0 +1,4 @@
1
+ """CrewAI tool for AgentOracle — trust verification for AI agents."""
2
+ from crewai_agentoracle.tools import AgentOracleVerifyTool, AgentOracleEvaluateTool
3
+ __all__ = ["AgentOracleVerifyTool", "AgentOracleEvaluateTool"]
4
+ __version__ = "0.1.0"
@@ -0,0 +1,84 @@
1
+ """AgentOracle tools for CrewAI agents."""
2
+
3
+ from typing import Type
4
+ from crewai.tools import BaseTool
5
+ from pydantic import BaseModel, Field
6
+ import requests
7
+
8
+
9
+ class VerifyInput(BaseModel):
10
+ """Input schema for AgentOracle verify tool."""
11
+ claim: str = Field(..., description="The claim or statement to verify for accuracy")
12
+
13
+
14
+ class EvaluateInput(BaseModel):
15
+ """Input schema for AgentOracle evaluate tool."""
16
+ content: str = Field(..., description="Content containing claims to evaluate")
17
+
18
+
19
+ class AgentOracleVerifyTool(BaseTool):
20
+ name: str = "AgentOracle Verify"
21
+ description: str = (
22
+ "Verify whether a claim is true using AgentOracle's multi-source verification. "
23
+ "Returns confidence score and recommendation. Free tier, 10 requests/hour."
24
+ )
25
+ args_schema: Type[BaseModel] = VerifyInput
26
+ base_url: str = "https://agentoracle.co"
27
+
28
+ def _run(self, claim: str) -> str:
29
+ try:
30
+ response = requests.post(
31
+ f"{self.base_url}/preview",
32
+ json={"query": claim, "source": "crewai-agent"},
33
+ headers={"Content-Type": "application/json"},
34
+ timeout=30,
35
+ )
36
+ if response.status_code == 200:
37
+ data = response.json()
38
+ return (
39
+ f"Confidence: {data.get('confidence', 'N/A')}\n"
40
+ f"Summary: {data.get('summary', 'N/A')}\n"
41
+ f"Sources: {data.get('source_count', 'N/A')}"
42
+ )
43
+ return f"Verification returned status {response.status_code}"
44
+ except Exception as e:
45
+ return f"Verification failed: {str(e)}"
46
+
47
+
48
+ class AgentOracleEvaluateTool(BaseTool):
49
+ name: str = "AgentOracle Evaluate"
50
+ description: str = (
51
+ "Full multi-source claim evaluation. Decomposes content into individual claims, "
52
+ "verifies each against 4 independent sources (Sonar, Sonar Pro, Adversarial, Gemma 4), "
53
+ "returns per-claim verdicts with confidence scores. Costs $0.02 USDC via x402."
54
+ )
55
+ args_schema: Type[BaseModel] = EvaluateInput
56
+ base_url: str = "https://agentoracle.co"
57
+
58
+ def _run(self, content: str) -> str:
59
+ try:
60
+ response = requests.post(
61
+ f"{self.base_url}/evaluate",
62
+ json={"content": content, "source": "crewai-agent"},
63
+ headers={"Content-Type": "application/json"},
64
+ timeout=60,
65
+ )
66
+ if response.status_code == 200:
67
+ data = response.json()
68
+ evaluation = data.get("evaluation", {})
69
+ claims = evaluation.get("claims", [])
70
+ lines = [
71
+ f"Overall confidence: {evaluation.get('overall_confidence', 'N/A')}",
72
+ f"Recommendation: {evaluation.get('recommendation', 'N/A')}",
73
+ f"Claims: {evaluation.get('total_claims', 0)} total, "
74
+ f"{evaluation.get('verified_claims', 0)} verified, "
75
+ f"{evaluation.get('refuted_claims', 0)} refuted",
76
+ ]
77
+ for c in claims:
78
+ lines.append(f"- [{c.get('verdict','?')}] (conf:{c.get('confidence','?')}) {c.get('claim','?')[:100]}")
79
+ return "\n".join(lines)
80
+ elif response.status_code == 402:
81
+ return "Payment required: $0.02 USDC via x402 on Base."
82
+ return f"Evaluation returned status {response.status_code}"
83
+ except Exception as e:
84
+ return f"Evaluation failed: {str(e)}"
@@ -0,0 +1,63 @@
1
+ Metadata-Version: 2.4
2
+ Name: crewai-agentoracle
3
+ Version: 0.1.0
4
+ Summary: CrewAI tool for AgentOracle — trust verification for AI agents
5
+ Author: TKCollective
6
+ License: MIT
7
+ Project-URL: Homepage, https://agentoracle.co
8
+ Project-URL: Repository, https://github.com/TKCollective/crewai-agentoracle
9
+ Keywords: crewai,agentoracle,trust,verification,ai-agents,x402
10
+ Requires-Python: >=3.9
11
+ Description-Content-Type: text/markdown
12
+ Requires-Dist: crewai>=0.50.0
13
+ Requires-Dist: requests>=2.28.0
14
+
15
+ # crewai-agentoracle
16
+
17
+ CrewAI tool for [AgentOracle](https://agentoracle.co) — trust verification for AI agents.
18
+
19
+ ## Installation
20
+
21
+ ```bash
22
+ pip install crewai-agentoracle
23
+ ```
24
+
25
+ ## Usage
26
+
27
+ ```python
28
+ from crewai import Agent, Task, Crew
29
+ from crewai_agentoracle import AgentOracleVerifyTool, AgentOracleEvaluateTool
30
+
31
+ # Create tools
32
+ verify_tool = AgentOracleVerifyTool()
33
+ evaluate_tool = AgentOracleEvaluateTool()
34
+
35
+ # Create an agent with verification capabilities
36
+ researcher = Agent(
37
+ role="Research Analyst",
38
+ goal="Find and verify information before making recommendations",
39
+ backstory="An analyst who always fact-checks before reporting.",
40
+ tools=[verify_tool, evaluate_tool],
41
+ )
42
+
43
+ # The agent will automatically use AgentOracle to verify claims
44
+ task = Task(
45
+ description="Research whether Bitcoin reached $100K in 2025 and verify the claim.",
46
+ expected_output="Verified research finding with confidence score.",
47
+ agent=researcher,
48
+ )
49
+
50
+ crew = Crew(agents=[researcher], tasks=[task])
51
+ result = crew.kickoff()
52
+ ```
53
+
54
+ ## Tools
55
+
56
+ | Tool | Description | Price |
57
+ |------|-------------|-------|
58
+ | `AgentOracleVerifyTool` | Quick claim verification via /preview | Free (10/hr) |
59
+ | `AgentOracleEvaluateTool` | Full 4-source verification | $0.02 USDC via x402 |
60
+
61
+ ## License
62
+
63
+ MIT
@@ -0,0 +1,9 @@
1
+ README.md
2
+ pyproject.toml
3
+ crewai_agentoracle/__init__.py
4
+ crewai_agentoracle/tools.py
5
+ crewai_agentoracle.egg-info/PKG-INFO
6
+ crewai_agentoracle.egg-info/SOURCES.txt
7
+ crewai_agentoracle.egg-info/dependency_links.txt
8
+ crewai_agentoracle.egg-info/requires.txt
9
+ crewai_agentoracle.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ crewai>=0.50.0
2
+ requests>=2.28.0
@@ -0,0 +1 @@
1
+ crewai_agentoracle
@@ -0,0 +1,21 @@
1
+ [build-system]
2
+ requires = ["setuptools>=68.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "crewai-agentoracle"
7
+ version = "0.1.0"
8
+ description = "CrewAI tool for AgentOracle — trust verification for AI agents"
9
+ readme = "README.md"
10
+ license = {text = "MIT"}
11
+ requires-python = ">=3.9"
12
+ authors = [{name = "TKCollective"}]
13
+ keywords = ["crewai", "agentoracle", "trust", "verification", "ai-agents", "x402"]
14
+ dependencies = ["crewai>=0.50.0", "requests>=2.28.0"]
15
+
16
+ [project.urls]
17
+ Homepage = "https://agentoracle.co"
18
+ Repository = "https://github.com/TKCollective/crewai-agentoracle"
19
+
20
+ [tool.setuptools.packages.find]
21
+ include = ["crewai_agentoracle*"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+