CrewAI integration for PowerSun.vip — TRON Energy & Bandwidth marketplace with 25 MCP tools for AI agents
Project description
crewai-powersun
CrewAI integration for PowerSun.vip — the TRON Energy & Bandwidth marketplace for AI agents.
Install
pip install crewai-powersun
Quick Start
from crewai import Agent, Task, Crew
from crewai_powersun import PowerSunEstimateCostTool, PowerSunBuyEnergyTool
# Create an agent with PowerSun tools
energy_manager = Agent(
role="TRON Energy Manager",
goal="Minimize transaction costs by renting energy instead of burning TRX",
backstory="Expert in TRON network resource management",
tools=[
PowerSunEstimateCostTool(),
PowerSunBuyEnergyTool(api_key="ps_your_key"),
],
)
# Create a task
task = Task(
description="Estimate cost and buy 65000 energy for address TYourAddress for 1 hour",
agent=energy_manager,
)
crew = Crew(agents=[energy_manager], tasks=[task])
result = crew.kickoff()
Environment Variable
Set POWERSUN_API_KEY to avoid passing the key to each tool:
export POWERSUN_API_KEY=ps_your_key
Available Tools (7)
| Tool | Auth | Description |
|---|---|---|
PowerSunRegisterTool |
No | Start registration — get challenge to sign |
PowerSunVerifyRegistrationTool |
No | Submit signature → get API key |
PowerSunMarketOverviewTool |
No | Market snapshot: prices, availability, stats |
PowerSunEstimateCostTool |
No | Calculate energy rental cost |
PowerSunBuyEnergyTool |
Yes | Purchase energy delegation |
PowerSunGetBalanceTool |
Yes | Account balance and deposit info |
PowerSunGetOrderStatusTool |
Yes | Order status with delegation progress |
Links
- Platform: powersun.vip
- MCP Server: powersun.vip/mcp
- API Docs: powersun.vip/api-docs
License
MIT
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_powersun-1.1.0.tar.gz
(4.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file crewai_powersun-1.1.0.tar.gz.
File metadata
- Download URL: crewai_powersun-1.1.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc8d8e69cf0e12b38239d19da207740f133fd160dcc902d43b398dc092155d53
|
|
| MD5 |
d41af302069fafd8de8941d442a953dc
|
|
| BLAKE2b-256 |
620ac4703a0fd646bbf9b7847eae6264c61e2aced883ac9a44fbf12cea969b6c
|
File details
Details for the file crewai_powersun-1.1.0-py3-none-any.whl.
File metadata
- Download URL: crewai_powersun-1.1.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73e3701f4ea2ec4b4d001e04e8db259d23a6422c1cb16b267664d1f518a63e4a
|
|
| MD5 |
695d9e80f92ff6c6a71c72dbcb0a6882
|
|
| BLAKE2b-256 |
edec3bd4acca75f3a747a8da2e631dec1ab27ec52db0aa875251eb53d3e0feea
|