Skip to main content

CrewAI tools for Agent Casino (Rollhub) — let your AI agents gamble, verify bets, and earn affiliate revenue

Project description

crewai-rollhub

CrewAI tools for Agent Casino — let your AI agents gamble with provably fair dice, verify bets, and earn affiliate revenue.

Installation

pip install crewai-rollhub

Quick Start

from crewai import Agent, Task, Crew
from crewai_rollhub import RollhubTools

# Initialize all tools with your API key
tools = RollhubTools(api_key="rh_sk_...").all()

# Create a gambling analyst agent
analyst = Agent(
    role="Gambling Analyst",
    goal="Analyze dice betting strategies and maximize returns while managing risk",
    backstory="You are a seasoned quantitative analyst who uses provably fair dice games to test betting strategies.",
    tools=tools,
    verbose=True,
)

# Give it a task
task = Task(
    description=(
        "Check our current balance, then place a conservative bet "
        "(target=0.5, direction=over, amount=100 cents). "
        "Verify the bet was provably fair. Report the results."
    ),
    expected_output="A report with balance, bet result, and verification status.",
    agent=analyst,
)

crew = Crew(agents=[analyst], tasks=[task], verbose=True)
result = crew.kickoff()
print(result)

Available Tools

Tool Description
RollhubBetTool Place a provably fair dice bet
RollhubVerifyTool Verify a bet's cryptographic proof
RollhubBalanceTool Check account balance
RollhubAffiliateTool Check affiliate/referral earnings
RollhubDepositTool Get a deposit address
RollhubWithdrawTool Withdraw funds

Using Individual Tools

from crewai_rollhub import RollhubBetTool, RollhubBalanceTool

bet_tool = RollhubBetTool(api_key="rh_sk_...")
balance_tool = RollhubBalanceTool(api_key="rh_sk_...")

agent = Agent(
    role="Dice Player",
    goal="Place smart bets",
    backstory="A careful gambler.",
    tools=[bet_tool, balance_tool],
)

Getting an API Key

from rollhub_dice import DiceAgent

agent = DiceAgent.register(wallet_address="your_wallet_address")
print(agent.api_key)  # rh_sk_...

Links

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

crewai_rollhub-0.1.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

crewai_rollhub-0.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for crewai_rollhub-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b3cecaf53c0b413173144e2768ec2688b4d59d4745ee0af2d4eb48c6080a45c2
MD5 686bcedb6337e36380c7fa2dbecd6b59
BLAKE2b-256 1a76deca23c9cebbcf8861ea39b2f21bcfc785accba477c2dfe48c6dc0c35485

See more details on using hashes here.

File details

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

File metadata

  • Download URL: crewai_rollhub-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for crewai_rollhub-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0ff77476f9b6aad3a752c14c2bc9415fe510c4bb407cfa7fe7eaa40a84815e91
MD5 f8ac84c1a4768440382eb85008b885e5
BLAKE2b-256 66764ff8c307addefb67eecca4baa9589e7449243664ca76d88095f5802f4965

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